/* A writing surface, distinct from its controls and supporting source records. */
.report-area{margin-top:20px;scroll-margin-top:18px;max-width:1080px}
.report-heading{margin:0 0 18px}.report-heading h2{font-size:clamp(1.35rem,2.2vw,2rem);line-height:1.25;margin:8px 0}.report-heading p{font-size:.86rem;margin:0}
.document-toolbar{margin:0 0 16px}.document-toolbar>.button-row{gap:8px;align-items:start}.document-toolbar .button{font-size:.8rem;min-height:42px;padding:10px 14px}
.document-feedback:empty{display:none}.copy-confirmation{color:var(--success);font-size:.85rem;margin:0 0 16px}
.export-menu{position:relative;margin:0;border:0;padding:0}.export-menu>summary{list-style:none;display:flex;gap:10px;min-height:42px}.export-menu>summary:after{content:'⌄';color:var(--muted)}
.export-menu>summary::-webkit-details-marker{display:none}.export-options{position:absolute;right:0;top:calc(100% + 6px);z-index:12;min-width:230px;padding:8px;display:grid;gap:4px;border:1px solid var(--edge);border-radius:12px;box-shadow:0 15px 40px #0003;background:var(--surface)}
.export-options .button{justify-content:start;text-align:left;border-color:transparent}
.document-editor{padding:22px;border:1px solid var(--edge);border-radius:14px;margin:16px 0;background:var(--surface)}.document-editor textarea{font-family:ui-monospace,monospace;font-size:.88rem;line-height:1.6}
.report-tabs{display:flex;gap:26px;border-bottom:1px solid var(--line);margin:20px 0 22px}.report-tabs .report-tab{border:0;border-bottom:3px solid transparent;border-radius:0;background:none;padding:11px 2px;color:var(--muted);min-height:44px}
.report-tabs .report-tab[aria-selected=true]{color:var(--text);border-bottom-color:var(--accent)}
.document-paper{max-width:820px;margin:0 auto;border:1px solid var(--edge);border-radius:5px;background:var(--surface);box-shadow:0 12px 35px #00000012;overflow:hidden}
.paper-label{padding:28px 44px 0;color:var(--muted);font-size:.64rem;letter-spacing:.14em;font-weight:700}
.document-paper>.document{font-family:Georgia,'Times New Roman',serif;padding:26px 44px 45px;background:transparent;border:0;box-shadow:none;border-radius:0;font-size:1.02rem;line-height:1.75}
.document h1,.document h2,.document h3,.document h4,.document h5,.document h6{font-family:Inter,ui-sans-serif,system-ui,sans-serif;line-height:1.3;letter-spacing:-.02em}
.document h1{font-size:1.65rem;margin:0 0 1.2em}.document h2{font-size:1.25rem;margin:1.7em 0 .65em}.document h3{font-size:1.05rem;margin:1.4em 0 .5em}.document h4{font-size:1rem;margin:1.3em 0 .5em}
.document p{margin:0 0 1em;white-space:normal}.document li{margin:.35em 0}.document ul,.document ol{padding-left:1.5em;margin:.7em 0 1.2em}.document li>ul,.document li>ol{margin:.35em 0}
.document blockquote{padding:10px 18px;border-left:3px solid var(--accent);margin:1em 0;background:var(--raised)}.document blockquote p:last-child{margin:0}
.document pre{padding:18px;background:var(--bg);border:1px solid var(--line);border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.document pre code{background:none;padding:0;font-size:.8rem}
.document hr{border:0;border-top:1px solid var(--line);margin:1.6em 0}.document .table-scroll{overflow:auto;margin:1em 0;border:1px solid var(--line);border-radius:6px;max-width:100%}
.document table{border-collapse:collapse;width:100%;font-family:ui-sans-serif,system-ui,sans-serif;font-size:.82rem;line-height:1.5}.document th,.document td{border-bottom:1px solid var(--line);padding:11px 13px;vertical-align:top;min-width:100px}.document th{font-weight:650;background:var(--raised);text-align:left}.document tr:last-child td{border-bottom:0}
.document .citation-link{font-family:ui-sans-serif,system-ui,sans-serif;white-space:nowrap}
.document .align-center{text-align:center}.document .align-right{text-align:right}
.document .document-page-break{border-top:1px dashed var(--line);margin:1.5em 0;padding-top:.5em;color:var(--muted);font:11px ui-sans-serif,system-ui,sans-serif}
@media print{.document .document-page-break{break-after:page;page-break-after:always;height:0;margin:0;padding:0;border:0;font-size:0;color:transparent}}
.evidence-overview{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:18px 0}.evidence-overview h3{font-size:1rem;margin:0 0 6px}.evidence-overview p{font-size:.8rem;margin:0;max-width:340px}
.evidence-panel .document{font-size:.86rem;padding:24px}.sources-panel{position:static}.source-metadata{margin:16px 0 0;font-size:.78rem}.source-metadata summary{min-height:30px}.source-usage-count{font-size:.72rem;color:var(--muted);font-weight:400;white-space:nowrap}
.completion-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--edge);border-left:3px solid var(--accent);padding:15px 18px;margin-bottom:18px;border-radius:10px;background:var(--surface)}.completion-panel strong{font-size:.86rem}.completion-panel p{font-size:.8rem;color:var(--muted);margin:4px 0 0}
.model-review{margin:16px 0;padding:12px 18px;border:1px solid var(--line);border-radius:12px}.model-review summary{font-size:.85rem;font-weight:600}.model-review .document{padding:16px 0;background:none;border:0;font-size:.87rem}
.profile-settings{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.8fr);gap:36px;align-items:start}.signature-preview{display:grid;gap:3px;padding:24px;border-left:3px solid var(--accent);background:var(--raised);margin-top:55px;font-size:.83rem;overflow-wrap:anywhere}.signature-preview .eyebrow{margin-bottom:14px}.signature-preview strong{font-size:1.1rem}.signature-preview span:not(.eyebrow){color:var(--muted)}
.sender-panel{border:1px solid var(--line);border-radius:10px;padding:0 16px;margin:0 0 22px;background:var(--raised)}.sender-panel>summary{display:grid;gap:3px;padding:12px 0}.sender-panel>summary>span:last-child{font-size:.84rem;color:var(--muted)}.sender-label{font-size:.82rem;font-weight:650}.sender-panel .fine{margin:6px 0 18px}.sender-panel a{color:var(--link)}
.workspace-hint{font-size:.8rem;color:var(--muted);margin:12px 0 24px}.workspace-hint a{color:var(--link)}.prepare-bar{position:static;margin-top:22px;box-shadow:none}
.document-paper>.campaign-decision-document{font-family:ui-sans-serif,system-ui,sans-serif;font-size:.91rem;line-height:1.62;padding:26px clamp(22px,4vw,40px) 36px}
.campaign-decision-document h1{font-size:1.55rem;line-height:1.24;margin:0 0 1em}
.campaign-decision-document h2{font-size:1.13rem;margin:1.5em 0 .55em}
.campaign-decision-document h3{font-size:.98rem;margin:1.3em 0 .45em}
.campaign-decision-document p{margin:0 0 .75em}
.campaign-decision-document ul,.campaign-decision-document ol{margin:.5em 0 .9em}
.campaign-decision-document li{margin:.24em 0}
.template-form{max-width:940px}.template-progress{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 0;font-size:.85rem}.template-progress span:last-child{color:var(--muted)}.progress-dot{width:9px;height:9px;background:var(--accent);border-radius:50%;animation:breathe 1.4s infinite alternate}.template-live .document{max-width:820px;margin:0 auto}
.workspace-welcome{display:flex;justify-content:space-between;align-items:end;gap:24px;padding:14px 0 30px}.workspace-welcome h2{font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.15;margin:12px 0}.workspace-welcome p{max-width:620px;color:var(--muted);font-size:.94rem;margin:0}.profile-nudge{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;background:var(--raised);border:1px solid var(--line);border-radius:12px;margin-bottom:24px}.profile-nudge strong{font-size:.95rem}.profile-nudge p{font-size:.82rem;color:var(--muted);margin:4px 0 0}
@media(max-width:950px){.profile-settings{grid-template-columns:minmax(0,1fr)}.signature-preview{margin:0}.workspace-welcome{align-items:start;flex-direction:column}.evidence-overview{display:block}.evidence-overview>.fine{margin-top:12px}}
@media(max-width:650px){.report-area{margin-top:12px}.report-heading{margin-bottom:12px}.report-heading h2{font-size:1.4rem}.report-heading p{display:none}.report-heading .eyebrow{font-size:.6rem}.document-toolbar>.button-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.document-toolbar .button{font-size:.72rem;padding:9px 10px;min-height:40px;width:100%}.export-menu{width:100%}.export-menu .export-options{width:240px;max-width:calc(100vw - 40px)}.report-tabs{margin:14px 0 16px;gap:24px}.paper-label{padding:20px 20px 0;font-size:.58rem}.document-paper>.document{padding:20px 20px 28px;font-size:.96rem}.document h1{font-size:1.3rem}.document h2{font-size:1.15rem}.completion-panel{align-items:start;flex-direction:column;gap:10px}.completion-panel .button{min-height:36px;font-size:.75rem}.profile-nudge{align-items:start;flex-direction:column}.template-live .document{padding:20px}.document-editor{padding:16px}}
@media print{.report-heading,.paper-label{display:none}.document-panel{display:block!important}.document-paper{border:0;box-shadow:none;max-width:none}.document-paper>.document{padding:0;font-size:11pt}.document .table-scroll{overflow:visible}.document h1{font-size:20pt}.document h2{font-size:15pt}.document table{font-size:9pt}}
@media print{.document-paper>.campaign-decision-document{font-family:Georgia,'Times New Roman',serif;padding:0;font-size:11pt;line-height:1.55}}
.campaign-draft-source-preview{margin:12px 0 18px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.campaign-draft-source-preview p{margin:0 0 8px}.campaign-draft-source-preview ul{margin:0;padding-left:1.2rem}.campaign-draft-source-preview li+li{margin-top:4px}.campaign-draft-existing{padding:12px 14px;border-left:3px solid var(--accent);border-radius:0 8px 8px 0;background:var(--surface);font-size:.86rem}

.casebook-question-evidence{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 24px;min-width:0}.casebook-question-evidence>p,.casebook-question-evidence>h3{margin:0}.question-evidence-row{min-width:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow-wrap:anywhere}.question-evidence-row h4{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:0 0 8px}.question-evidence-question{white-space:pre-wrap;margin:8px 0;font-weight:600}.question-evidence-state{font-size:.76rem;font-weight:500;color:var(--muted);padding:3px 8px;border:1px solid var(--line);border-radius:5px}.question-evidence-quote{min-width:0;margin:12px 0 0;padding:12px 0 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.question-evidence-quote summary{cursor:pointer;min-height:32px;font-size:.86rem}.question-evidence-quote pre{margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.question-evidence-quote .button{white-space:normal;text-align:left;max-width:100%}

/* Summary controls and narrow-screen reading are local to this handover feature. */
.handover-summary-item{min-width:0;border:1px solid var(--line);border-radius:8px;padding:12px 14px;background:var(--surface)}
.handover-summary-item>summary{overflow-wrap:anywhere}.summary-item-heading,.summary-item-detail{display:block}
.summary-item-detail{margin-top:4px;color:var(--muted);font-size:.8rem;font-weight:400}
.handover-summary-review-actions{margin-top:12px}.handover-summary-scroll-hint{display:none}
@media screen and (max-width:650px){.handover-summary-scroll-hint{display:block;padding:0 20px}.handover-summary-document .table-scroll{overflow-x:auto}.handover-summary-document table{min-width:680px}.handover-summary-document th,.handover-summary-document td{overflow-wrap:normal;word-break:normal}}
