@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&display=swap');
:root{font-family:'Heebo',Arial,sans-serif;color:#18332d;background:#e8e9e5;font-synthesis:none;font-size:16px;--ink:#18332d;--green:#103c35;--accent:#c6f391;--muted:#687873;--line:#e1e7e2}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button,select{cursor:pointer}button{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #52896d;outline-offset:3px}button{border:0;background:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button:disabled{opacity:.5}h1,h2,h3,p{margin:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;top:-80px;right:1rem;z-index:10;background:white;padding:1rem}.skip:focus{top:0}.masthead{height:94px;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:20px}.brand{display:flex;gap:14px;align-items:center}.brand-icon{width:42px;height:42px;display:grid;place-items:center;background:var(--accent);color:var(--green);border-radius:12px}.brand-icon svg{width:28px;height:28px}.brand-icon svg path:first-child{fill:none}.brand h1{font-size:1.6rem;font-weight:800;line-height:1.1;letter-spacing:-.04em}.brand-dot{color:var(--accent)}.brand p{color:#b8ccc3;font-size:.82rem;margin-top:6px}.mast-actions{display:flex;align-items:center;gap:24px}.edition{font-size:.85rem;color:#c2d3cc}.outline-button{border:1px solid #628078;padding:9px 15px;border-radius:8px;font-size:.88rem;display:flex;gap:24px;align-items:center}.outline-button:hover{background:#ffffff12}.workspace{height:calc(100dvh - 94px);display:grid;grid-template-columns:370px minmax(0,1fr);max-width:1800px;margin:auto;background:#fff}.sidebar{display:flex;min-height:0;flex-direction:column;border-left:1px solid #d7e0d9;background:#fff}.sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 16px}.sidebar-title h2{font-size:1.25rem;font-weight:700}.count{background:#e9f0e9;padding:3px 10px;border-radius:20px;font-size:.8rem;color:#436250}.search-wrap{display:flex;align-items:center;gap:9px;margin:0 20px;background:#f1f4f1;border:1px solid transparent;border-radius:9px;padding:10px 12px;color:#6c7c74}.search-wrap:focus-within{border-color:#52896d}.search-wrap input{border:0;outline:none;background:transparent;min-width:0;width:100%;color:var(--ink);font-size:.875rem}.search-wrap input:focus-visible{outline:none}.search-wrap svg{width:18px;height:18px;flex-shrink:0}.search-wrap kbd{border:1px solid #d4ddd5;border-radius:4px;font:12px Arial;padding:2px 5px}.filters{display:flex;gap:8px;padding:12px 20px 16px}.filters label{min-width:0;flex:1}select{width:100%;border:1px solid #dfe6df;background:#fff;color:#415b4e;border-radius:7px;padding:7px 9px;font-size:.875rem}.list-meta{display:flex;justify-content:space-between;align-items:center;color:var(--muted);padding:0 24px 10px;font-size:.78rem}.list-meta button{color:#176a4e;text-decoration:underline;padding:0;font-size:inherit}.chat-list{flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.chat-row{position:relative;display:flex;gap:12px;text-align:right;width:100%;padding:18px 22px;border-top:1px solid #edf0ec;transition:background .15s}.chat-row:hover{background:#f5f7f3}.chat-row.active{background:#ecf4e8}.chat-row.active:before{content:'';position:absolute;right:0;top:0;bottom:0;width:4px;background:#337c55}.avatar{width:44px;height:44px;flex-shrink:0;border-radius:50%;background:#dce9e0;display:grid;place-items:center;color:#456650;font-size:.9rem;font-weight:700;border:1px solid #ffffff88}.avatar.purple{background:#e8e2ee;color:#716085}.avatar.blue{background:#deebee;color:#4b6f7a}.avatar.gold{background:#f0e7d7;color:#87704c}.avatar.rose{background:#f0e0dd;color:#8e6259}.row-body{min-width:0;flex:1}.row-top{display:flex;gap:8px;justify-content:space-between;align-items:baseline}.row-title{font-size:.91rem;font-weight:600}.row-date{font-size:.72rem;white-space:nowrap;color:#7c8a80}.row-topic{font-size:.8rem;color:#718174;margin:4px 0}.row-preview{font-size:.85rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#466053;line-height:1.5}.row-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.row-tag{font-size:.71rem;color:#5f7867;background:#f1f3ed;padding:2px 7px;border-radius:4px}.active .row-tag{background:#ddebd7}.row-messages{font-size:.7rem;color:#7c8a80}.sidebar-foot{padding:15px 23px;border-top:1px solid var(--line);font-size:.75rem;color:#718174;display:flex;gap:9px;align-items:center}.archive-mark{font-size:1.05rem}.reader{display:flex;flex-direction:column;min-height:0;min-width:0;background:#eeeae2}.chat-header{height:85px;min-height:85px;display:flex;align-items:center;gap:13px;padding:16px 30px;background:#fafbf8;border-bottom:1px solid var(--line)}.chat-heading{min-width:0;flex:1}.chat-heading h2{font-size:1.06rem;line-height:1.5;font-weight:600}.chat-heading p{font-size:.82rem;color:#6d7d70;margin-top:2px}.source-button{display:flex;align-items:center;gap:7px;padding:8px 14px;border:1px solid #d8e1d8;background:white;border-radius:7px;font-size:.85rem}.source-button:hover{background:#eff5ec}.source-button svg{width:17px;height:17px}.reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 30px;background:#f5f6ef;border-bottom:1px solid #e0e3d9;min-height:51px}.topic-label{font-size:.8rem;display:flex;align-items:center;gap:10px;color:#6c796c;flex:1}.topic-label span:first-child{color:#3e624a;font-weight:500}.dot-divider{color:#adb5a6}.reader-toolbar select{font-size:.75rem;max-width:225px;padding:5px}.icon-button{width:34px;min-width:34px;height:34px;display:grid;place-items:center;border-radius:6px}.icon-button:hover{background:#dbe4d6}.icon-button svg{width:18px;height:18px}.mobile-back{display:none}.messages{flex:1;overflow:auto;padding:24px 5% 34px;overscroll-behavior:contain;scrollbar-width:thin;scroll-behavior:smooth}.conversation{max-width:840px;margin:auto;display:flex;flex-direction:column}.date-chip{align-self:center;background:#fffdf4e6;box-shadow:0 1px 2px #00000010;border-radius:7px;padding:6px 14px;font-size:.75rem;color:#6c7865;margin-bottom:22px}.context-card{align-self:center;max-width:580px;width:100%;background:#faf9f4;border:1px solid #deded2;border-radius:10px;padding:19px 22px;margin-bottom:30px;box-shadow:0 2px 0 #00000002}.context-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:15px}.eyebrow{font-size:.75rem;font-weight:500;color:#738167}.context-index{font:12px Arial;color:#99a08e;letter-spacing:.06em}.context-card h3{font-size:1.02rem;font-weight:600;margin-bottom:7px;line-height:1.6}.context-card p{font-size:.875rem;line-height:1.85;color:#697560}.bubble{max-width:74%;min-width:120px;padding:12px 16px 9px;background:#fff;align-self:flex-end;border-radius:2px 12px 12px 12px;box-shadow:0 1px 1px #22332320;margin-bottom:10px;scroll-margin-top:24px;position:relative}.bubble.side-a{align-self:flex-start;background:#d9fdd3;border-radius:12px 2px 12px 12px}.bubble-sender{font-size:.78rem;color:#38835d;font-weight:600;margin-bottom:5px}.bubble.side-b .bubble-sender{color:#756199}.bubble-text{font-size:1.06rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext}.bubble-meta{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:5px;font-size:.68rem;color:#849780;min-height:20px}.bubble-meta button{font-size:.73rem;color:#657e60;display:flex;align-items:center;gap:5px;border-radius:4px;padding:1px 4px}.bubble-meta button:hover{background:#00000009}.bubble-meta svg{width:12px;height:12px}.bubble.target{outline:2px solid #568953;outline-offset:4px}.quote-break{align-self:center;color:#7c8270;font-size:.75rem;margin:12px 0 22px}.end-note{display:flex;flex-direction:column;align-items:center;text-align:center;align-self:center;max-width:480px;font-size:.78rem;line-height:1.8;color:#7d8272;margin:25px 0 16px;gap:7px}.end-note span:first-child{width:32px;height:1px;background:#bdc6b1;margin-bottom:7px}.next-segment{align-self:center;border:1px solid #cad4c2;border-radius:8px;background:#f5f7ee;padding:10px 15px;display:flex;gap:15px;align-items:center;margin-top:10px;font-size:.85rem}.reader-footer{background:#f7f8f2;padding:13px 30px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #dde2d6;font-size:.78rem;color:#7d8778}.reader-footer button{font-size:inherit;color:#4e7256}.reader-footer button:hover{text-decoration:underline}.empty{padding:45px 25px;text-align:center;color:#72816f;line-height:1.8}.empty h3{color:#395b42;font-size:1rem;margin-bottom:10px}.empty button{margin-top:20px;padding:9px 15px;background:#eaf2e4;border-radius:6px}mark{background:#ffed9f;color:inherit;border-radius:2px;padding:0 1px}dialog{border:0;padding:28px;box-shadow:0 15px 80px #0003;color:var(--ink);max-height:90dvh;overflow:auto;font-size:1rem}dialog::backdrop{background:#0c241c66;backdrop-filter:blur(3px)}.source-dialog{margin:0 auto 0 0;min-height:100dvh;max-height:100dvh;width:430px;max-width:100%;border-radius:0}.about-dialog{border-radius:15px;max-width:560px;width:calc(100% - 32px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.close-dialog.icon-button{font-size:1.7rem;font-weight:400}.source-dialog h2,.about-dialog h2{font-size:1.5rem;line-height:1.5;margin-bottom:15px}.source-dialog h3,.about-dialog h3{font-size:1rem;margin-top:28px;margin-bottom:8px}.source-dialog p,.about-dialog p{font-size:.94rem;line-height:1.9;color:#67796a}.source-meta{display:grid;grid-template-columns:110px 1fr;gap:14px;font-size:.86rem;margin:24px 0}.source-meta dt{color:#81907f}.source-meta dd{margin:0;line-height:1.65}.source-link,.primary-button{display:flex;justify-content:space-between;align-items:center;gap:14px;background:var(--green);color:#fff;border-radius:8px;padding:13px 17px;text-decoration:none;margin-top:24px;font-size:.9rem}.primary-button{justify-content:center;width:100%}.source-link:hover,.primary-button:hover{background:#21624d}.source-quote{border-right:3px solid #a5c998;background:#f4f7ef;padding:14px 18px;font-size:.94rem;line-height:1.8;margin:18px 0}.source-quote strong{display:block;font-size:.78rem;color:#68895c}.source-extra{border-top:1px solid var(--line);margin-top:26px;padding-top:8px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(100px);z-index:5;background:#153e32;color:#fff;border-radius:9px;padding:13px 22px;font-size:.875rem;box-shadow:0 8px 35px #0003;transition:transform .2s;max-width:90%;text-align:center}.toast.visible{transform:translateX(-50%) translateY(0)}
@media(min-width:1550px){.workspace{grid-template-columns:405px minmax(0,1fr)}.messages{padding-right:9%;padding-left:9%}}
@media(max-width:1050px){.workspace{grid-template-columns:325px minmax(0,1fr)}.chat-header{padding:15px 20px}.reader-toolbar{padding:10px 20px}.reader-toolbar select{max-width:160px}.messages{padding:22px}.bubble{max-width:88%}.chat-row{padding:17px 17px}.masthead{padding:0 22px}.edition{display:none}}
@media(max-width:720px){.masthead{height:76px;padding:0 18px}.brand{gap:10px}.brand-icon{width:35px;height:35px;border-radius:10px}.brand h1{font-size:1.3rem}.brand p{font-size:.68rem;max-width:220px}.outline-button{font-size:.75rem;padding:7px 10px;gap:8px}.mast-actions{gap:0}.workspace{height:calc(100dvh - 76px);display:block}.sidebar{height:100%;border:0}.reader{height:100%;display:none}.workspace.reading .sidebar{display:none}.workspace.reading .reader{display:flex}.mobile-back{display:grid;font-size:1.5rem}.chat-header{padding:12px 12px;height:78px;min-height:78px;gap:9px}.chat-header .avatar{display:none}.chat-heading h2{font-size:.94rem}.chat-heading p{font-size:.75rem}.source-button{padding:7px 10px;font-size:.8rem}.source-button svg{width:16px}.reader-toolbar{padding:9px 17px;flex-wrap:wrap;gap:4px 10px}.topic-label{font-size:.73rem;white-space:nowrap}.reader-toolbar select{max-width:165px;font-size:.7rem}#segment-switch-wrap{order:3;width:100%;margin-top:5px}.messages{padding:20px 15px 30px}.bubble{max-width:88%;padding:10px 14px 7px}.bubble-text{font-size:1rem}.context-card{padding:15px 17px;margin-bottom:22px}.context-card p{font-size:.82rem}.context-card h3{font-size:.94rem}.context-top{margin-bottom:7px}.reader-footer{padding:11px 17px;font-size:.7rem}.sidebar-title{padding-top:24px}.chat-row{padding:17px 21px}.row-title{font-size:1rem}.row-preview{font-size:.875rem}.row-date{font-size:.75rem}.source-dialog{min-height:0;max-height:92dvh;width:100%;margin:auto 0 0;border-radius:18px 18px 0 0;padding:24px}.source-dialog h2{font-size:1.35rem}.end-note{max-width:300px}.reader:has(.bubble.target) .messages{scroll-behavior:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-height:500px){.masthead{height:62px}.workspace{height:calc(100dvh - 62px)}.sidebar-title{padding-top:12px}.chat-header{height:62px;min-height:62px}}

.row-topic,.row-preview{display:block}

.row-coverage{display:block;font-size:.75rem;color:#607465;margin:4px 0}.row-coverage.catalog{color:#96632f}.coverage-control{padding:0 20px 12px}.coverage-control select{font-size:.875rem}.list-meta{font-size:.75rem}.catalog-card{align-self:center;background:#fff;border:1px solid #d9d9cc;border-radius:10px;padding:22px;max-width:580px;width:100%;line-height:1.85}.catalog-card h3{font-size:1rem}.catalog-card p{font-size:.9rem;color:#687664;margin-top:10px}.additional-context{margin-top:22px}.end-note a,.source-entry a{color:#21634b;text-underline-offset:3px}.source-entry{padding:16px 0;border-bottom:1px solid #dde4d9}.source-entry h3{margin:0!important;font-size:1rem}.source-entry p{font-size:.85rem!important}.sidebar-foot button{padding:0;text-decoration:underline;font-size:.85rem}.chat-heading h2{overflow-wrap:anywhere}@media(max-width:720px){.chat-header:has(+ .reader-toolbar){height:auto;min-height:78px}.row-coverage{font-size:.75rem}}

.forwarded{font-size:12px;color:#63766b;margin-bottom:8px}.coverage-warning{border-top:1px solid #ccd8ce;padding-top:10px;font-size:13px!important}

.completion-card{padding:18px 22px;border:1px solid #c8ac6c;background:#fff8e8;border-radius:12px;margin:16px 0;color:#493c23}.completion-card.complete{border-color:#83b79a;background:#eaf7ee;color:#214d35}.completion-card h3{margin:0 0 8px;font-size:16px}.completion-card p{font-size:14px;line-height:1.6;margin:8px 0}.completion-card a{font-weight:700;color:inherit}

/* Reader improvements and owner curation */
.mast-actions a{color:inherit;text-decoration:none;font-size:14px;white-space:nowrap}.mast-actions{gap:10px}.edition{display:none}
.completion-card{margin:0 0 14px;padding:11px 14px;border-radius:8px;max-width:100%;width:100%;align-self:center}.completion-card summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:600}.completion-card summary::after{content:'⌄'}.completion-card .details-label{font-weight:400;margin-inline-start:auto;white-space:nowrap}.completion-card.supplied{background:#edf3ff;border-color:#9bb2d9;color:#294b78}.intro-details{padding-top:12px}.intro-details p{line-height:1.8}.one-side{font-size:14px;color:#705e3b;margin:0 0 12px;line-height:1.6}.date-chip{margin-bottom:10px;padding:4px 10px}.messages{padding-top:14px}.row-coverage{font-size:14px}.row-date,.row-messages{font-size:12px}
#segment-switch-wrap{display:flex;align-items:center;gap:7px;min-width:0}#segment-switch-wrap button{padding:5px;font-size:18px}#segment-position{font-size:12px;white-space:nowrap}.reader-toolbar select{max-width:300px;font-size:14px}.match-controls{display:flex;flex-wrap:wrap;gap:12px;padding:8px 20px;background:#fff5cb;font-size:14px}.match-controls button{text-decoration:underline}.editor-bar{background:#eef3fb;border-bottom:1px solid #acc0d6;padding:10px 22px;font-size:14px}.editor-bar>div:first-child{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.editor-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap;align-items:center}.editor-actions select{width:auto;font-size:14px}.editor-actions button{border:1px solid #aebdcc;padding:6px 10px;border-radius:6px;background:#fff;font-size:14px}#save-selection{background:#103c35;color:#fff}#publish-selection{margin-inline-start:auto}.remove-chat{align-self:flex-end;margin:5px 20px;padding:5px 12px;color:#943e30;border:1px solid #c89d94;border-radius:6px;background:#fff;font-size:14px}#editor-error{margin-top:9px;color:#9a3327}#editor-error button{text-decoration:underline}.is-editing{height:100dvh;display:flex;flex-direction:column}.is-editing .masthead{flex-shrink:0}.is-editing .workspace{height:auto;flex:1;min-height:0;width:100%}.previewing #edit-view{opacity:.5}#publish-dialog .close-dialog{margin-top:16px}.bubble-meta button{min-height:25px}
@media(max-width:1050px){.reader-toolbar{flex-wrap:wrap}#segment-switch-wrap{width:100%;order:3}.reader-toolbar select{max-width:none;flex:1;min-width:0}}
@media(max-width:720px){.masthead{padding:0 12px}.brand p{display:none}.mast-actions a{padding:7px;font-size:12px}.brand h1{font-size:1.1rem}.brand-icon{display:none}.editor-bar{padding:8px 12px}.editor-actions{gap:5px}.editor-actions button{font-size:12px;padding:6px}.editor-bar>div:first-child{gap:8px;font-size:12px}.editor-actions select{font-size:12px;max-width:145px}.completion-card summary{font-size:14px}.details-label{font-size:12px}.messages{padding-top:10px}.reader-toolbar{padding:6px 12px}.reader-footer{padding:8px 12px}.remove-chat{margin:4px 12px}.match-controls{padding:5px 12px;gap:8px;font-size:12px}#segment-switch-wrap{margin-top:0}.reader-toolbar select{font-size:14px}.chat-header{min-height:64px!important}.is-editing .sidebar{height:100%}}

.sidebar-foot{flex-wrap:wrap}.sidebar-foot #archive-link{color:#103c35;text-decoration:none;font-size:14px;border-color:#bacbbc;padding:6px 10px}.sidebar-foot{gap:10px}

.story-context{font-size:14px;line-height:1.75;color:#435c4c;margin:0 0 14px;padding:0 2px}.related-card{font-size:14px;display:flex;justify-content:space-between;gap:12px;align-self:flex-start;margin:0 0 16px;color:#29694e;text-decoration:none;border-bottom:1px solid #9eb9a2;padding-bottom:3px}.related-card:hover{text-decoration:underline}

/* Selected creative review: calm frame, scannable list, on-demand filters */
.filter-panel{margin:10px 20px}.filter-panel summary{font-size:14px;cursor:pointer;color:#496455;padding:5px 0}.filter-panel .filters{padding:10px 0}.filter-panel .coverage-control{padding:0 0 10px}.active-filters{display:flex;flex-wrap:wrap;gap:5px;padding:0 20px}.active-filters:not(:empty){padding-bottom:10px}.active-filters button{font-size:12px;background:#edf4eb;border:1px solid #cadac7;border-radius:18px;padding:4px 8px}.chat-row{padding-top:13px;padding-bottom:13px}.row-topic{font-size:14px;color:#294d3a;line-height:1.5}.row-coverage{margin:5px 0;font-size:14px;line-height:1.5}.row-bottom{margin-top:5px}.chat-header,.reader-toolbar,.reader-footer{background:#f9faf7}.chat-header{border-bottom:0}.reader-toolbar{border-bottom:1px solid #dce3d9}.reader-footer{border-top:0}.completion-card,.completion-card.complete,.completion-card.supplied{background:#fafbf8;border-width:0 3px 0 0;border-radius:4px;box-shadow:0 1px 2px #17251b0a}.completion-card{border-color:#b19049}.completion-card.complete{border-color:#75a783}.completion-card.supplied{border-color:#8ea7d0}.story-context{max-width:710px}.list-meta{padding-top:4px}

/* One-at-a-time curation keeps the decision controls outside the scroll area. */
.review-progress{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px 24px;background:#fff;border-bottom:1px solid #dbe5df;font-size:14px}.review-progress strong{font-size:16px}.review-progress span{margin-inline-start:auto;color:#60746b}.review-progress progress{width:100%;height:5px;accent-color:#247853;border:0;border-radius:10px;overflow:hidden}.review-actions{padding:16px 24px 12px;background:#fff;border-top:1px solid #d9e4dc;flex-shrink:0}.review-decisions{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:600px;margin:auto}.review-decisions button{min-height:60px;border-radius:14px;display:flex;justify-content:center;align-items:center;gap:14px;font-size:18px;font-weight:700;transition:background .15s,transform .15s}.review-decisions button:active{transform:scale(.98)}#review-archive{background:#fff2e9;color:#8c4324;border:1px solid #e8c5b3}#review-archive:hover{background:#fce5d7}#review-keep{background:#176c4e;color:#fff}#review-keep:hover{background:#10593f}.review-decisions span{font-size:25px}.review-secondary{max-width:600px;display:flex;gap:14px;justify-content:space-between;align-items:center;margin:10px auto 0;font-size:12px;color:#687d72}.review-secondary button{font-size:14px;text-decoration:underline;min-height:36px;padding:0}.review-finish{background:#fff;border-radius:16px;padding:32px;line-height:1.9;max-width:600px;margin:30px auto}.review-finish h3{font-size:22px;margin-bottom:12px}.reviewing .workspace{display:flex;justify-content:center;background:#e4ebe6;padding:14px}.reviewing .sidebar,.reviewing #remove-chat,.reviewing #segment-switch-wrap,.reviewing .next-segment,.reviewing .related-card,.reviewing #back,.reviewing #preview-selection,.reviewing #undo-selection,.reviewing #edit-view{display:none!important}.reviewing .reader{display:flex!important;position:static!important;width:100%;max-width:950px;border:1px solid #d4dfd7;border-radius:18px;overflow:hidden;box-shadow:0 6px 24px #203d2e0b;min-height:0;height:100%}.reviewing .chat-header{height:auto;min-height:70px}.reviewing .messages{padding-inline:5%}.reviewing .reader-toolbar{min-height:40px}.reviewing .reader-footer{padding-block:6px}.reviewing .editor-bar>div:first-child>strong{display:none}.reviewing .masthead{height:72px}.reviewing .editor-bar{flex-shrink:0}.reviewing .reader .end-note{margin-bottom:0}
@media(max-width:720px){.reviewing .workspace{padding:0}.reviewing .reader{border:0;border-radius:0}.reviewing .masthead{height:56px}.reviewing .brand h1{font-size:18px}.reviewing .editor-bar{padding:6px 10px}.reviewing .editor-actions{margin-top:4px}.reviewing #edit-count{display:none}.review-progress{padding:9px 14px;gap:8px}.review-actions{padding:10px 14px max(8px,env(safe-area-inset-bottom))}.review-decisions{gap:10px}.review-decisions button{min-height:55px;font-size:17px}.review-secondary{gap:5px;flex-wrap:wrap;margin-top:5px}.review-secondary span{font-size:12px}.reviewing .chat-header{padding:10px 14px}.reviewing .reader-toolbar{padding-block:3px}.reviewing .reader-footer{display:none}}

/* Group related excerpts without changing editorial records. */
.avatar{background:transparent!important;overflow:visible;flex-shrink:0}.portrait-stack{display:flex;align-items:center;justify-content:center;direction:rtl;width:54px;height:48px}.portrait{display:block;position:relative;flex:0 0 32px;width:32px;height:32px;border:2px solid #fff;border-radius:50%;background:#dce3e1;overflow:hidden}.portrait+.portrait{margin-inline-start:-12px;margin-top:16px}.portrait:nth-child(3){margin-inline-start:-20px;margin-top:-18px}.portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;z-index:1}.portrait svg{width:100%;height:100%;fill:#8c9d98}.story-group{border-bottom:1px solid #e5ebe8}.story-group>summary{display:flex;align-items:center;gap:12px;padding:17px 14px;cursor:pointer;list-style:none;background:#f7faf8}.story-group>summary::-webkit-details-marker{display:none}.group-copy{flex:1;min-width:0}.group-copy strong{display:block;font-size:15px;line-height:1.5;font-weight:650;color:#1c3b31}.group-copy>span{display:block;font-size:13px;color:#708078;margin-top:4px}.group-chevron{font-size:22px;color:#61786e}.story-group[open]>summary .group-chevron{transform:rotate(180deg)}.group-children{border-inline-start:2px solid #cbdcd3;margin-inline-start:36px}.group-children .chat-row{padding-inline-start:12px}.group-children .avatar{display:none}.group-children .row-title{display:none}.group-children .row-topic{font-size:15px;font-weight:550}.overlap-note{display:block;font-size:12px;color:#727d77;margin-top:4px;font-weight:400}.review-date{font-size:13px;color:#758079}.portrait-credits{margin-top:20px;font-size:14px}.portrait-credits summary{cursor:pointer}.portrait-credits a{color:#28755b}.chat-row{padding-top:16px;padding-bottom:16px}.row-coverage{color:#7c857f;font-size:12px}.chat-row.active{background:#eef6f1}.story-group>summary:focus-visible{outline:2px solid #31886a;outline-offset:-3px}

/* Interactive upgrades: Discreet edit, Play mode, Typing indicator, Redacted reveal, Tooltips & Export Dialog */
#edit-link{display:none}
body.is-editing #edit-link{display:flex}
.discreet-edit{opacity:0.35;text-decoration:none;color:inherit;font-size:14px;margin-inline-start:auto;transition:opacity .2s;padding:2px 6px;border-radius:4px}
.discreet-edit:hover{opacity:0.9;background:#eef3ee}

.toolbar-actions{display:flex;align-items:center;gap:8px}
.action-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:20px;border:1px solid #cedcd4;background:#fff;color:#18332d;font-size:0.8rem;font-weight:600;cursor:pointer;transition:all 0.18s ease;box-shadow:0 1px 2px rgba(0,0,0,0.03)}
.action-pill:hover{background:#eaf4ed;border-color:#52896d;color:#103c35;transform:translateY(-1px)}
.action-pill.active{background:#103c35;color:#fff;border-color:#103c35;box-shadow:0 2px 8px rgba(16,60,53,0.3)}
.action-pill svg{width:14px;height:14px;fill:currentColor}

.typing-bubble{display:flex;align-items:center;gap:9px;padding:9px 15px;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,0.08);margin-bottom:12px;width:fit-content;animation:popIn .2s ease-out}
.typing-bubble.side-a{align-self:flex-start;background:#d9fdd3;border-radius:12px 2px 12px 12px}
.typing-bubble.side-b{align-self:flex-end;background:#fff;border-radius:2px 12px 12px 12px}
.typing-name{font-size:0.75rem;font-weight:600;color:#38835d}
.typing-bubble.side-b .typing-name{color:#756199}
.typing-dots{display:inline-flex;gap:4px;align-items:center}
.typing-dot{width:6px;height:6px;border-radius:50%;background:#5b7365;animation:typeBounce 1.2s infinite ease-in-out}
.typing-dot:nth-child(2){animation-delay:0.2s}
.typing-dot:nth-child(3){animation-delay:0.4s}
@keyframes typeBounce{0%,60%,100%{transform:translateY(0);opacity:0.35}30%{transform:translateY(-5px);opacity:1}}
@keyframes popIn{from{opacity:0;transform:scale(0.96) translateY(5px)}to{opacity:1;transform:scale(1) translateY(0)}}
.bubble.pop-in{animation:popIn .25s ease-out}

.redacted-text{background:#18332d;color:#fff;padding:1px 7px;border-radius:4px;display:inline-block;font-weight:600}


.bubble-sender{cursor:pointer;position:relative}
.sender-bio-tooltip{position:absolute;bottom:calc(100% + 5px);right:0;background:#18332d;color:#fff;font-size:0.75rem;font-weight:400;padding:6px 10px;border-radius:6px;box-shadow:0 4px 16px rgba(0,0,0,0.25);z-index:30;white-space:nowrap;pointer-events:none;animation:popIn .15s ease-out;line-height:1.4}
.sender-bio-tooltip::after{content:'';position:absolute;top:100%;right:12px;border:5px solid transparent;border-top-color:#18332d}

.export-dialog{max-width:620px;width:calc(100% - 32px);border-radius:16px}
.export-preview-box{max-height:460px;overflow:auto;border:1px solid #d4ddd5;border-radius:12px;background:#e5ddd5;display:flex;justify-content:center;padding:18px;margin:18px 0;box-shadow:inset 0 2px 8px rgba(0,0,0,0.06)}
.export-preview-box canvas{max-width:100%;height:auto;border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,0.2)}
.export-dialog-actions{display:flex;gap:12px;margin-top:16px}
.download-btn{display:flex;justify-content:center;align-items:center;width:100%;border-color:#52896d;color:#103c35;font-weight:600}
.download-btn:hover{background:#edf6f0}

.creator-credit{flex-basis:100%;margin:3px 0 0;font-size:.875rem;line-height:1.6;color:var(--muted)}
.creator-credit a{color:var(--green);font-weight:600;text-underline-offset:3px}
.creator-credit a:hover{color:#28755b}

/* Reading comes first: compact navigation, complete context, quieter list. */
.masthead{height:64px;padding-inline:24px}
.brand-icon{width:34px;height:34px;border-radius:10px}
.brand-icon svg{width:24px;height:24px}
.brand h1{font-size:1.4rem}
.brand p{margin-top:3px;font-size:.75rem}
.workspace{height:calc(100dvh - 64px)}
.sidebar-title{padding:16px 20px 12px}
.sidebar-title h2{font-size:1.125rem}
.count{background:none;padding:0;font-size:.8125rem;color:var(--muted)}
.filter-panel{margin:7px 20px 10px}
.list-meta:has(#list-label:empty){display:none}
.chat-row{padding:12px 18px;align-items:center;gap:12px}
.row-top{flex-wrap:wrap;gap:2px 8px}
.row-title{font-size:.8125rem;font-weight:400;color:var(--muted)}
.row-date{font-size:.75rem;white-space:normal}
.row-topic{font-size:.9375rem;font-weight:550;line-height:1.55;margin:4px 0 0}
.row-preview{margin-top:6px}
.story-group>summary{padding:12px 14px}
.group-copy>span{margin-top:2px}
.group-children .chat-row{padding-block:11px}
.sidebar-foot{padding:10px 18px;gap:8px 10px}
.sidebar-foot .archive-mark{display:none}
.creator-credit{font-size:.8125rem;margin-top:2px}
.chat-header{height:auto;min-height:70px;padding:10px 20px;gap:12px}
.chat-heading h2{font-size:1rem;line-height:1.45}
.chat-heading p{font-size:.75rem}
.reader-toolbar{padding:6px 20px;min-height:48px;gap:12px;flex-wrap:nowrap;justify-content:flex-end;flex-shrink:0}
#segment-switch-wrap{order:0;width:auto;flex:1;margin:0;gap:2px}
#segment-switch-wrap button{min-width:32px;min-height:36px;padding:4px}
.reader-toolbar select{max-width:none;min-width:0;width:100%;flex:1;font-size:.875rem;min-height:36px;padding:5px 7px}
.toolbar-actions{gap:6px;flex-shrink:0}
.action-pill{font-size:.875rem;min-height:36px;padding:5px 10px;white-space:nowrap;box-shadow:none}
.action-pill:hover{transform:none}
.share-menu{position:relative}
.share-menu>summary{cursor:pointer;list-style:none}
.share-menu>summary::-webkit-details-marker{display:none}
.share-menu>summary:focus-visible{outline:3px solid #52896d;outline-offset:3px}
.share-menu[open]>summary{background:#eaf4ed;border-color:#52896d}
.share-options{position:absolute;inset-inline-end:0;top:calc(100% + 7px);z-index:4;min-width:200px;padding:6px;border:1px solid #d6e1da;border-radius:10px;background:#fff;box-shadow:0 8px 28px #18332d26}
.share-options button{display:block;text-align:start;width:100%;padding:12px;border-radius:6px;font-size:.875rem;min-height:44px;white-space:nowrap}
.share-options button:hover{background:#eef6f1}
.share-options button:focus-visible{outline-offset:-2px}
.completion-card{padding:9px 12px;margin-bottom:12px}
.completion-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.completion-date{font-size:.75rem;font-weight:400;color:var(--muted);line-height:1.5}
.completion-card summary{gap:8px;line-height:1.55}
.completion-card .details-label{font-size:.75rem}
.date-qualification{font-size:.875rem;color:#705e3b;line-height:1.7;margin-bottom:12px}
.sender-role{font-size:.75rem;font-weight:400;line-height:1.5;color:#57715f}
.bubble.side-b .sender-role{color:#716381}
.bubble-sender{cursor:auto;font-size:.8125rem}
.related-card{margin-top:12px}
.reader-footer{padding-block:8px;flex-shrink:0}
@media(max-width:1050px){.reader-toolbar{flex-wrap:nowrap}#segment-switch-wrap{width:auto;order:0}.reader-toolbar select{max-width:none}.chat-header{padding-inline:18px}}
@media(max-width:720px){
 .masthead{height:56px;padding-inline:14px}
 .brand h1{font-size:1.125rem}
 .workspace{height:calc(100dvh - 56px)}
 .sidebar-title{padding:16px 20px 12px}
 .chat-header{height:auto;min-height:64px;padding:9px 12px;gap:8px}
 .chat-heading h2{font-size:.9375rem}
 .chat-heading p{font-size:.75rem}
 .source-button{padding:7px 9px;min-height:36px}
 .reader-toolbar{padding:5px 10px;gap:6px;min-height:46px}
 #segment-switch-wrap{gap:0}
 #segment-switch-wrap button{min-width:28px}
 .reader-toolbar select{padding-inline:4px}
 .action-pill{padding-inline:8px}
 .toolbar-actions{gap:5px}
 .play-pill svg{display:none}
 .play-pill{max-width:84px}
 .messages{padding:12px 15px 24px}
 .completion-card{padding:8px 10px}
 .completion-card .details-label{white-space:normal;max-width:56px}
 .sidebar-foot{padding:10px 18px max(10px,env(safe-area-inset-bottom))}
}
@media(max-width:360px){.reader-toolbar{flex-wrap:wrap}.toolbar-actions{margin-inline-start:auto}#segment-switch-wrap{flex-basis:100%;order:2}}
.is-editing .workspace{height:auto}
.reviewing .masthead{height:64px}
@media(max-width:720px){.reviewing .masthead{height:56px}}

.source-provenance{font-size:.78rem;line-height:1.65;color:#5b655f;border-top:1px solid #93aa9a55;padding-top:8px;margin-top:12px}
