:root{font-family:Segoe UI,system-ui,sans-serif;color:#18243b;background:#f4f6fa;font-size:16px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{height:84px;background:#fff;border-bottom:1px solid #dfe5ef;display:flex;align-items:center;justify-content:space-between;padding:0 4vw}.brand{color:#18243b;font-size:1.1rem;font-weight:700;text-decoration:none;display:flex;align-items:center;gap:12px}.mark{display:grid;place-items:center;color:white;background:#305eea;width:36px;height:36px;border-radius:9px}.local,.muted{color:#657189;font-size:.875rem}.local{border:1px solid #dfe5ef;padding:8px 12px;border-radius:30px}main{max-width:1440px;margin:auto;padding:40px 4vw}.heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.eyebrow{font-size:.75rem;letter-spacing:.17em;color:#526589;font-weight:700;margin:0 0 10px}h1{font-size:clamp(1.8rem,3vw,2.6rem);letter-spacing:-.04em;margin:0;font-weight:650}h2{font-size:1.1rem;margin:0}h3{font-size:1rem;margin:0 0 10px}p{line-height:1.6}button,.button{font:inherit;font-size:.875rem;font-weight:600;background:#305eea;color:white;border:1px solid #305eea;border-radius:7px;cursor:pointer;padding:12px 18px;display:inline-block}button:hover,.button:hover{background:#2249c5}.secondary{background:white;color:#254fcb;border-color:#cbd6f7}button:disabled,.button.disabled{opacity:.5;cursor:not-allowed}.connections{display:grid;grid-template-columns:1fr 1fr;gap:16px}.connections>div{border:1px solid #dfe5ef;border-radius:10px;background:white;padding:22px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.connections .service{width:100%;font-size:.75rem;letter-spacing:.1em;color:#657189}.connections strong{font-size:1rem}.connections span:not(.service){font-size:.875rem;color:#657189}.connections button{margin-left:auto;padding:8px 12px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.section-heading>span{font-size:.875rem;color:#657189}#editor{background:white;border:1px solid #dfe5ef;border-radius:10px;padding:30px;max-width:900px;min-width:0}#editor-back{margin-bottom:22px}.empty-list{padding:35px 0;color:#657189;font-size:.9rem}label{display:block;font-weight:600;font-size:.875rem;margin:18px 0 8px}label.button{margin:0}input:not([type=file]),textarea,select{width:100%;border:1px solid #cad3e1;border-radius:6px;padding:12px;font:inherit;color:#18243b;background:#fff}textarea{resize:vertical}input[type=file]{max-width:100%;font:inherit;font-size:.875rem}input::file-selector-button{background:#eef2fa;border:1px solid #d0d9eb;border-radius:5px;padding:9px;cursor:pointer;color:#18243b;margin-right:8px}input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #a9bafa;outline-offset:2px}#save{margin-top:16px}.thumbnail-row{display:flex;align-items:center;gap:18px;margin-top:12px}.thumbnail-row img{width:150px;aspect-ratio:16/9;object-fit:cover;border-radius:6px}.thumbnail-row>div{min-width:0}.thumbnail-row p{margin:8px 0}.publish,.analysis{border-top:1px solid #e0e6f0;margin-top:30px;padding-top:25px}.analysis .chart-head{margin-bottom:4px}#analysis-progress{margin:0 0 8px}#analysis-info{margin:4px 0 8px}.publish select{margin-bottom:16px}#player{width:100%;max-height:340px;background:#111a2b;border-radius:8px}#file-info{overflow-wrap:anywhere}#notice{padding:0;margin:18px 0;overflow-wrap:anywhere}#notice:not(:empty){padding:12px 16px;border:1px solid #bfd0ff;border-radius:8px;background:#edf2ff}#notice.error{background:#fff0f0;border-color:#efc1c1;color:#9a2727}#upload-progress{padding:20px;border-radius:8px;background:#fff;border:1px solid #cad6f6}.progress-label{display:flex;justify-content:space-between;gap:16px;overflow-wrap:anywhere}progress{width:100%;height:8px;accent-color:#305eea;margin-top:14px}#upload-progress p{font-size:.875rem;color:#657189;margin-bottom:0}a{color:#254fcb}footer{color:#657189;font-size:.8rem;margin-top:28px}.badge{font-size:.75rem!important;padding:5px 8px;background:#edf2ff;color:#305eea!important;border-radius:4px}.header-actions{display:flex;align-items:center;gap:12px}#logout{padding:8px 12px}.login{max-width:420px;margin:40px auto;background:white;border:1px solid #dfe5ef;border-radius:10px;padding:30px}.login button{margin-top:18px}.login .error{color:#9a2727;margin-bottom:0}.tabs{display:flex;gap:4px;border-bottom:1px solid #dfe5ef;margin:-12px 0 28px}.tabs a{padding:10px 16px;color:#526589;text-decoration:none;font-weight:600;font-size:.9rem;border-bottom:2px solid transparent;margin-bottom:-1px}.tabs a[aria-current]{color:#18243b;border-bottom-color:#305eea}
[hidden]{display:none!important}.secondary:hover{background:#eef2fa;color:#254fcb}button:disabled:hover{background:#305eea}.secondary:disabled:hover{background:white}.secondary[aria-pressed=true]{background:#edf2ff;border-color:#305eea}button.link{all:unset;cursor:pointer;color:#254fcb;font-weight:600}button.link:hover{text-decoration:underline}button.link:focus-visible{outline:3px solid #a9bafa}
.card{background:#fff;border:1px solid #dfe5ef;border-radius:10px;padding:24px;margin-bottom:24px}.card h2{margin-bottom:8px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.small{padding:7px 12px;font-size:.8rem}
.title-cell{white-space:normal;min-width:260px}.title-cell a{font-weight:600;color:#18243b;text-decoration:none}.title-cell a:hover{color:#254fcb;text-decoration:underline}.title-cell small{display:block;color:#657189;font-size:.75rem;margin-top:4px}
.badge.state-final,.state-final{background:#e3f6ea;color:#1d7a43!important}.badge.state-regenerate,.badge.state-outdated,.state-outdated,.state-changed{background:#fff4e0;color:#9a5b00!important}.badge.state-outline{background:#eef1f6;color:#526589!important}
.back{display:inline-block;margin-bottom:18px;text-decoration:none;font-size:.9rem}.project-heading{margin-bottom:20px}
.steps{list-style:none;display:grid;grid-template-columns:repeat(7,1fr);gap:0;padding:0;margin:0 0 26px;counter-reset:step}
.steps li{position:relative;padding:14px 16px 14px 52px;background:#fff;border:1px solid #dfe5ef;margin-left:-1px;display:flex;flex-direction:column;gap:2px;counter-increment:step}
.steps li:first-child{border-radius:10px 0 0 10px;margin-left:0}.steps li:last-child{border-radius:0 10px 10px 0}
.steps li::before{content:counter(step);position:absolute;left:16px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:700;background:#eef1f6;color:#526589}
.steps li strong{font-size:.9rem}.steps li span{font-size:.78rem;color:#657189}
.steps li.done::before{content:'✓';background:#e3f6ea;color:#1d7a43}.steps li.current{border-color:#305eea;box-shadow:inset 0 -3px 0 #305eea;z-index:1}.steps li.current::before{background:#305eea;color:#fff}
.steps li.warning{border-color:#e0a030;box-shadow:inset 0 -3px 0 #e0a030}.steps li.warning::before{content:'!';background:#e0a030}
.doc-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid #dfe5ef;margin-bottom:0}
.doc-tabs button{background:none;color:#526589;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 16px;margin-bottom:-1px;display:flex;align-items:center;gap:8px}
.doc-tabs button:hover{background:#eef2fa}.doc-tabs button[aria-selected=true]{color:#18243b;border-bottom-color:#305eea}
.state{font-size:.72rem;font-weight:600;padding:3px 7px;border-radius:4px;background:#edf2ff;color:#305eea}
.doc-controls{position:sticky;top:0;z-index:10;background:#f4f6fa;box-shadow:0 6px 12px -10px rgba(24,36,59,.35);display:flow-root}
.doc-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px 0 14px}.doc-toolbar select{width:auto;max-width:100%;padding:7px 10px;font-size:.85rem}.toolbar-gap{flex:1}.doc-toolbar .button{text-decoration:none}
.banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 16px;border-radius:8px;margin-bottom:10px;font-size:.9rem;border:1px solid #bfd0ff;background:#edf2ff}
.banner.warning{background:#fff7e8;border-color:#f0cf8f;color:#7a4a00}.banner.success{background:#e9f8ef;border-color:#a8dcb9;color:#1d6b3c}.banner.muted{background:#f6f8fb;border-color:#e0e6f0;color:#526589}.banner.progress{background:#edf2ff}
.doc-body{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start;margin-top:6px}
.doc-main{position:relative;min-width:0}
.reader{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #dfe5ef;border-radius:10px;padding:32px 36px;font-family:Georgia,'Iowan Old Style',serif;font-size:1.06rem;line-height:1.75;min-height:320px}
.reader:focus{outline:none}.reader::selection,.reader ::selection{background:#c9d6ff}
.reader mark{background:#fff0b3;color:inherit;border-bottom:2px solid #f0c419;cursor:pointer;border-radius:2px}.reader mark.multiple{background:#ffe08a}.reader mark.resolved{background:#eef1f6;border-bottom-color:#b5bfd1}.reader mark.active{background:#ffd34d;border-bottom-color:#c78f00}
.diff-view del{background:#fde4e4;color:#9a2727}.diff-view ins{background:#dff5e6;color:#1d6b3c;text-decoration:none}
.empty-doc{background:#fff;border:1px dashed #cad3e1;border-radius:10px;padding:40px;text-align:center;color:#657189}
#editor textarea{font-family:Georgia,serif;font-size:1rem;line-height:1.7;min-height:420px}#editor label:first-child{margin-top:0}
.check{display:flex;align-items:center;gap:8px;font-weight:500}.check input{width:auto}.check.inline{margin:0;font-size:.8rem;color:#526589}
.floating{position:absolute;z-index:5;box-shadow:0 6px 18px rgba(24,36,59,.2)}
.doc-side{display:flex;flex-direction:column;gap:0;min-width:0}.side-card{padding:18px;margin-bottom:18px}.side-card h3{margin:0 0 6px}.side-head{display:flex;justify-content:space-between;align-items:center}
.side-card p{margin:6px 0;font-size:.85rem;line-height:1.5}.side-card label{margin:12px 0 6px}
.jobs,.comments,.versions{list-style:none;margin:10px 0 0;padding:0}
.job{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:1px solid #eef1f6;font-size:.82rem}.job .error{color:#9a2727}.job.failed strong{color:#9a2727}
.comment{border:1px solid #e3e8f1;border-radius:8px;padding:10px 12px;margin-top:10px;cursor:pointer;font-size:.88rem}.comment:hover{border-color:#bfd0ff}.comment.active{border-color:#e0b000;box-shadow:0 0 0 2px #fff0b3}.comment.resolved{opacity:.7}
.comment blockquote,#comment-quote{margin:0 0 6px;padding:2px 0 2px 10px;border-left:3px solid #f0c419;color:#526589;font-style:italic;font-size:.82rem;overflow-wrap:anywhere}
.comment p{margin:4px 0 8px;white-space:pre-wrap}.comment-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.75rem}.comment-meta .small{padding:4px 8px;font-size:.72rem}
#comment-form{margin:10px 0}
.versions li{padding:9px 0;border-top:1px solid #eef1f6;font-size:.85rem}.versions li div{display:flex;align-items:center;gap:6px}.versions li p{margin:3px 0}.versions li.viewing{background:#f4f7ff;margin:0 -10px;padding:9px 10px;border-radius:6px}
.versions small{display:block;font-size:.75rem}
.checklist{list-style:none;padding:0;margin:8px 0 0}.checklist li{display:flex;flex-direction:column;padding:8px 0;border-top:1px solid #eef1f6}.checklist li.ok strong{color:#1d7a43}.checklist li.missing strong{color:#9a5b00}
.copy-list dt{font-size:.75rem;letter-spacing:.06em;color:#657189;text-transform:uppercase;margin-top:14px}.copy-list dd{margin:6px 0 0}.copy-list code{display:block;background:#f4f6fa;border:1px solid #e0e6f0;border-radius:6px;padding:10px 12px;overflow-wrap:anywhere;font-size:.82rem}
.model-row{padding:12px 0;border-top:1px solid #eef1f6}.model-row label{margin-top:0}.inline-form{display:flex;gap:10px}.inline-form input{max-width:360px}.model-row .muted{display:block;margin-top:6px}
@media (max-width:1000px){.doc-body{grid-template-columns:1fr}.steps{grid-template-columns:1fr 1fr}.steps li{margin:0}.steps li:first-child,.steps li:last-child{border-radius:0}}
@media (max-width:560px){.local{display:none}header{padding:0 16px}main{padding:28px 16px}.reader{padding:20px;font-size:1rem}.steps{grid-template-columns:1fr}.heading{flex-wrap:wrap}}
#selection-actions{display:flex;gap:6px}.voice-status{margin:8px 0 0;font-size:.82rem;color:#526589}.voice-status.error{color:#9a2727}#voice-toggle[aria-pressed=true]{background:#fdecec;border-color:#e0a0a0;color:#9a2727}
@media (pointer:coarse){#selection-actions{position:fixed;top:auto!important;left:12px!important;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:20;flex-wrap:wrap;padding:8px;background:#fff;border:1px solid #cad3e1;border-radius:10px}#selection-actions button{min-height:44px;flex:1 1 auto}}
.reader .speaking{background:#d9e4ff;box-shadow:0 0 0 2px #d9e4ff;border-radius:2px}.reader .speaking mark{background:#c6d6ff}
.speech-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;margin-bottom:10px;background:#fff;border:1px solid #bfd0ff;border-radius:8px}.speech-bar label{margin:0;font-weight:500;color:#526589}.speech-bar select{width:auto;padding:6px 8px;font-size:.82rem;max-width:260px}.speech-bar .muted{margin-left:auto;font-size:.8rem}
.reader .annotation{color:#7a869c;font-style:italic;background:#f1f3f8;border-radius:3px}.reader.spoken-only .annotation{display:none}

.step-link{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;padding:0;text-align:left;cursor:pointer}.step-link:hover{background:transparent;color:#305eea}.step-link:focus-visible{outline:2px solid #305eea;outline-offset:3px}
.spoken-preamble{font:0.85rem/1.6 system-ui,sans-serif;color:#657189;margin-bottom:24px}.spoken-segment{display:grid;grid-template-columns:165px minmax(0,1fr);gap:16px;margin-bottom:20px}.spoken-time{font:0.78rem/1.7 ui-monospace,monospace;color:#526589;padding-top:5px}.spoken-segment p{margin:0}@media(max-width:560px){.spoken-segment{grid-template-columns:1fr;gap:4px}}

.broll-scene{margin:0 0 22px;padding-bottom:18px;border-bottom:1px solid #e0e6f0}.broll-scene h3{font:600 .85rem/1.6 system-ui,sans-serif;color:#526589}.broll-scene p{margin:8px 0 0}.broll-fields{min-width:0;border:1px solid #dfe5ef;border-radius:8px;margin:18px 0;padding:14px}.broll-fields legend{font-size:.9rem;font-weight:600}.broll-times{display:grid;grid-template-columns:1fr 1fr;gap:14px}.broll-times label{margin-top:0}.broll-fields textarea{min-height:100px}

.quality-group{margin-top:24px}.quality-group>h3{border-bottom:1px solid #dfe5ef;padding-bottom:8px}.quality-check{padding:12px 0;border-bottom:1px solid #eef1f6}.quality-check h4{margin:0 0 6px}.quality-check p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.quality-check.disabled{opacity:.6}.quality-check-editor{min-width:0;border:1px solid #dfe5ef;border-radius:8px;padding:16px;margin:14px 0}.quality-check-editor legend{font-weight:600;font-size:.9rem}.quality-check-editor textarea{min-height:100px}.quality-check-options{display:flex;gap:20px;flex-wrap:wrap}.quality-check-options label{margin:12px 0}.quality-check-result{padding:18px;margin:14px 0;border:1px solid #dfe5ef;border-left:4px solid #aab6ca;border-radius:8px;background:#fff}.quality-check-result.pass{border-left-color:#299352}.quality-check-result.warning{border-left-color:#d39624}.quality-check-result.fail{border-left-color:#b84646}.quality-check-result h4{margin:0 0 8px}.quality-check-result p{white-space:pre-wrap;overflow-wrap:anywhere}.state-passed{background:#e3f6ea;color:#1d7a43}.state-failed,.state-error{background:#fdecec;color:#9a2727}.state-warning{background:#fff4e0;color:#9a5b00}.quality-settings-actions{display:flex;gap:8px;flex-wrap:wrap}

.quality-suggestion{margin:16px 0 0;padding:14px;background:#f6f8fc;border:1px solid #dfe5ef;border-radius:8px}.quality-suggestion.accepted{border-color:#9cb8ef}.quality-suggestion.applied{border-color:#9bcba9}.quality-suggestion>p:first-child{margin-top:0}.quality-suggestion-actions{display:flex;gap:8px;flex-wrap:wrap}.quality-feedback textarea{min-height:90px}.suggestion-status{font-size:.82rem}.suggestion-comment{border-left:3px solid #9cb8ef;padding-left:12px}.quality-suggestion .error{color:#9a2727}

.materials-panel{margin:18px 0}.materials-panel>summary{font-weight:700;cursor:pointer}.materials-panel>summary .state{margin-left:8px}.material-fields{display:grid;grid-template-columns:1fr 2fr;gap:16px}.materials-list{margin-top:24px}.material-item{padding:14px 0;border-top:1px solid #dfe5ef;overflow-wrap:anywhere}.material-item summary{cursor:pointer}.material-item summary .muted{font-size:.85rem}.material-content{padding-top:12px}.material-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.material-content img{display:block;max-width:100%;max-height:360px;border-radius:8px;margin:12px 0;object-fit:contain}#material-status{font-size:.85rem}@media(max-width:560px){.material-fields{grid-template-columns:1fr;gap:0}}
.projects-description{margin:10px 0 0;max-width:48ch}
main:has(#app:not([hidden]) > #projects-view:not([hidden])){max-width:none;padding-inline:clamp(16px,2vw,40px)}
.project-view-switch{display:flex;gap:8px;margin-bottom:20px}.project-view-switch button{min-height:44px}
.project-kanban{display:flex;gap:16px;overflow-x:auto;padding:4px 4px 16px;align-items:flex-start;scroll-snap-type:x proximity}
.project-kanban:focus-visible{outline:3px solid #a9bafa;outline-offset:2px}
.kanban-column{flex:1 0 290px;max-width:100%;min-width:0;background:#eaf0f7;border:1px solid #dfe5ef;border-radius:12px;padding:14px;scroll-snap-align:start}
.kanban-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;min-height:32px}.kanban-heading h2{min-width:0}.kanban-heading .badge{display:inline-block;white-space:normal;line-height:1.5}
.kanban-count{font-size:.8rem;font-weight:600;color:#526589;flex-shrink:0}
.kanban-cards{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.kanban-card{background:#fff;border:1px solid #dfe5ef;border-radius:8px;padding:16px;overflow-wrap:anywhere}.kanban-card h3{line-height:1.5}.kanban-card h3 a{color:#18243b;text-decoration:none}.kanban-card h3 a:hover{color:#254fcb;text-decoration:underline}
.kanban-card p{margin:10px 0;font-size:.8rem}.kanban-brief{color:#657189;white-space:pre-wrap}.kanban-card>.badge{display:inline-block}
.kanban-details{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;font-size:.8rem;margin:14px 0}.kanban-details dt{color:#657189}.kanban-details dd{margin:0}.kanban-card button{min-height:44px;width:100%;margin-top:4px}
.kanban-empty{font-size:.85rem;color:#657189;text-align:center;padding:20px 0;margin:0}
.kanban-column{min-height:220px;transition:border-color .15s,background .15s}.kanban-column.drag-over{border-color:#305eea;background:#dce7ff;box-shadow:inset 0 0 0 2px #305eea}
.kanban-card[draggable=true]{cursor:grab}.kanban-card.dragging{opacity:.4}.kanban-card.saving{opacity:.65}.kanban-card label{margin:12px 0 6px;font-size:.75rem;color:#657189}.kanban-card select{padding:9px 8px;font-size:.8rem;min-height:44px}
#kanban-help{margin:0 0 18px;max-width:90ch}
#projects-view .heading>div{min-width:0}
#new-project-open{flex-shrink:0;min-height:44px}
#projects-view .table-wrap{background:#fff;border:1px solid #dfe5ef;border-radius:12px}
.project-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:.875rem}
.project-table th{padding:16px;color:#657189;font-size:.75rem;font-weight:600;border-bottom:1px solid #dfe5ef}
.project-table th:first-child{width:28%}
.project-table th:last-child{width:140px}
.project-table td{padding:18px 16px;border-bottom:1px solid #eef1f6;vertical-align:top;overflow-wrap:anywhere;line-height:1.5}
.project-table tr:last-child td{border-bottom:0}
.project-table .title-cell{min-width:0}
.project-table .title-cell a{display:inline-block;padding:10px 0;margin:-10px 0;font-size:1rem}
.project-table .title-cell small{line-height:1.6;margin-top:8px}
.project-table .badge{display:inline-block}
.project-table .num{text-align:right}
.project-cell-label{display:none}
.project-controls{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.project-status-control{max-width:100%}.project-status-control label{margin:0 0 6px}.project-status-control select{min-height:44px}
.badge.status-idea,.badge.status-planned{background:#eef1f6;color:#526589!important}
.badge.status-in_review,.badge.status-on_hold{background:#fff4e0;color:#9a5b00!important}
.badge.status-speech_review{background:#fff4e0;color:#9a5b00!important}
.badge.status-ready,.badge.status-ready_to_speak,.badge.status-published{background:#e3f6ea;color:#1d7a43!important}
.broll-kind{display:inline-block;margin-bottom:4px}.broll-kind.kind-demonstration{background:#eee8fb;color:#6841a3!important}.broll-kind.kind-unspecified{background:#fff4e0;color:#9a5b00!important}.broll-kind-help{font-size:.85rem;line-height:1.6}
.broll-scene p{white-space:pre-wrap}
@media(max-width:560px){.project-controls{width:100%}.project-status-control{flex:1 1 100%;min-width:0}.project-controls button{min-height:44px}}
#projects-empty{padding:32px 24px;margin:0;background:#fff;border:1px dashed #cad3e1;border-radius:12px;text-align:center;line-height:1.7}
#new-project{max-width:760px}

@media (max-width:900px){
  #projects-view .table-wrap{background:transparent;border:0;border-radius:0}
  .project-table,.project-table tbody{display:block}
  .project-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .project-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;background:#fff;border:1px solid #dfe5ef;border-radius:12px;padding:20px;margin-bottom:16px}
  .project-table td{display:block;min-width:0;padding:0;border:0}
  .project-table .title-cell,.project-table td:nth-child(2){grid-column:1/-1}
  .project-table .title-cell a{font-size:1.0625rem;line-height:1.5}
  .project-table .title-cell small{margin-top:6px}
  .project-table .num{text-align:left}
  .project-cell-label{display:block;font-size:.75rem;font-weight:500;color:#657189;margin-bottom:5px}
  .project-table td:nth-child(2){display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid #eef1f6}
  .project-table td:nth-child(2) .project-cell-label{margin:0}
}

@media (max-width:560px){
  header{height:auto;min-height:72px;gap:12px;padding:12px 16px}
  .brand{gap:8px}
  .mark{flex-shrink:0}
  #logout{min-height:44px}
  main{padding:24px 16px}
  .tabs{margin:0 0 24px}
  .tabs a{min-height:44px;flex:1;text-align:center;padding:12px 8px}
  #notice:empty{margin:0}
  #projects-view .heading{align-items:stretch;gap:20px;margin-bottom:24px}
  #projects-view .heading>div{width:100%}
  #new-project-open{width:100%}
  .projects-description{font-size:.9375rem;line-height:1.6}
  #new-project{padding:20px}
  #new-project label .muted{display:block;font-weight:400;margin-top:4px;line-height:1.5}
  #new-project .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #new-project .actions button{padding:12px 8px;min-height:44px}
  .project-table tr{padding:18px;gap:16px}
  .login{margin:16px auto;padding:24px 20px}
  .login button{width:100%;min-height:44px}
}

.project-table .project-actions button{min-height:44px}
@media (max-width:900px){
  .project-table .project-actions{grid-column:1/-1;border-top:1px solid #eef1f6;padding-top:16px}
  .project-actions .project-cell-label{display:none}
  .project-table .project-actions button{width:100%}
}

#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,8px);max-width:calc(100vw - 32px);background:#18243b;color:#fff;padding:10px 18px;border-radius:8px;font-size:.875rem;font-weight:600;box-shadow:0 6px 20px rgba(24,36,59,.25);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:50}#toast.visible{opacity:1;transform:translate(-50%,0)}

.reader .inline-correction{display:inline-block;vertical-align:baseline;max-width:100%;margin:2px 6px;padding:4px 10px;border-left:3px solid #d1a400;border-radius:4px;background:#fff8dc;color:#604b12;font-family:system-ui,sans-serif;font-size:.85rem;line-height:1.5;white-space:pre-wrap;box-decoration-break:clone}
.reader .correction-label{display:block;font-size:.7rem;letter-spacing:.03em}
.reader .inline-correction.resolved{background:#f1f3f8;border-color:#b5bfd1;color:#526589}
.reader .inline-correction.active{outline:2px solid #d1a400}

/* Persistent writing pipeline */
.pipeline-view { max-width: 1120px; margin: 0 auto; }
.pipeline-view > h1 { margin-bottom: .5rem; }
.pipeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pipeline-field { min-width: 0; margin-bottom: .8rem; }
.pipeline-field input, .pipeline-field select, .pipeline-field textarea { width: 100%; box-sizing: border-box; }
.pipeline-config-steps, .pipeline-step-list { padding: 0; list-style: none; }
.pipeline-config-step, .pipeline-run-step { margin: 1rem 0; }
.pipeline-config-step summary, .pipeline-run-step > summary { font-weight: 650; cursor: pointer; padding: .4rem 0; }
.pipeline-run-step > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.pipeline-config-step details > .pipeline-field:first-of-type { margin-top: 1rem; }
.pipeline-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1rem 0; }
.pipeline-facts dt { color: var(--muted, #687079); font-size: .85rem; }
.pipeline-facts dd { margin: .25rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.pipeline-result { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 28rem; overflow: auto; padding: 1rem; background: var(--bg, #f6f7f8); border-radius: .5rem; font-size: .85rem; }
.pipeline-events { padding-left: 1.2rem; }
.pipeline-events li { padding: .35rem 0; overflow-wrap: anywhere; }
.pipeline-view details.card { margin-bottom: 1rem; }
.pipeline-entry { display: flex; justify-content: flex-start; }
.pipeline-warnings { color: var(--warning, #8b5500); }
@media (max-width: 600px) {
  .pipeline-view .actions { align-items: stretch; }
  .pipeline-view .actions > * { max-width: 100%; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .pipeline-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Native disclosures retain the original text order and UTF-16 comment offsets. */
.reader-chapter{white-space:normal;border:1px solid #dfe5ef;border-radius:8px;margin:0 0 18px;overflow:hidden}
.reader-chapter>summary{white-space:pre-wrap;padding:12px 16px;background:#f4f6fa;cursor:pointer;font-family:system-ui,sans-serif;font-size:.95rem;font-weight:650;line-height:1.5}
.reader-chapter>summary:hover{background:#edf2ff}
.reader-chapter>summary:focus-visible{outline:3px solid #a9bafa;outline-offset:-3px}
.reader-chapter>summary .annotation{color:inherit;font-style:normal;background:none}
.reader-chapter-body{white-space:pre-wrap;padding:16px}
@media(max-width:560px){.reader-chapter>summary,.reader-chapter-body{padding:12px}}
