/* Library controls use the same charcoal and green as the workspace. */
.ai-list-controls{display:flex;align-items:start;gap:24px;padding:24px;margin:24px 0 0;background:#171c1c;border:1px solid #343d39;border-radius:12px}
.ai-list-controls .ai-library-search{flex:1 1 420px;min-width:0}
.ai-list-controls label{display:block;margin:0 0 10px;min-width:0;font-size:14px;font-weight:500;line-height:1.5;color:#c5ceca}
.ai-list-controls>label{flex:0 1 220px;display:grid;gap:10px;margin:0}
.ai-list-controls .ai-search-field{display:flex;align-items:center;gap:12px;min-height:54px;padding:0 14px;background:#101514;border:1px solid #52635b;border-radius:8px;transition:border-color .16s,box-shadow .16s}
.ai-search-field:focus-within{border-color:#c8ddaa;box-shadow:0 0 0 3px #bdd59e1f}
.ai-search-field>svg{width:21px;height:21px;flex:none;color:#aab9b0}
.ai-list-controls .ai-search-field input{flex:1;min-width:0;width:100%;height:52px;margin:0;padding:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;color:#eef2ef;font:400 16px/1.5 var(--font-ui)}
.ai-search-field input::placeholder{color:#92a197;opacity:1}
.ai-search-field input::-webkit-search-cancel-button{display:none}
.ai-search-field button{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border-radius:6px;background:transparent;color:#c5ceca;font-size:24px}
.ai-search-field button[hidden]{display:none}
.ai-search-field button:hover{background:#2b3630}
.ai-search-field button:focus-visible{outline:2px solid #c8ddaa;outline-offset:2px}
.ai-search-hint{display:block;font-size:12px;line-height:1.6;color:#a3aea7;margin-top:9px}
.ai-list-controls select{width:100%;height:54px;min-width:0;padding:0 36px 0 14px;border:1px solid #52635b;border-radius:8px;background:#101514;color:#dce4de;font:400 15px var(--font-ui);color-scheme:dark}
.ai-list-controls select:focus-visible{outline:2px solid #c8ddaa;outline-offset:3px}
.ai-library-result{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:64px;padding:16px 2px;color:#aebbb3;font-size:14px}
.ai-library-result>strong{font-size:18px;font-weight:600;color:#e4ece6;font-variant-numeric:tabular-nums}
.ai-search-term{padding-left:12px;margin-left:8px;border-left:1px solid #425046;overflow-wrap:anywhere}
.ai-library-empty{padding:48px 24px;text-align:center;border-top:1px solid var(--line)}
.ai-library-empty h3{font-size:20px;color:var(--ink)}
.ai-library-empty p{color:var(--muted);margin:10px 0 24px}

/* Content stages retain their labels as well as their colors. */
.ai-report .ai-shot-media{min-width:220px;max-width:320px}
.ai-report .ai-shot-table th.ai-shot-media-cell{width:270px}
.ai-report .ai-shot-media .ai-frame{width:100%}
.ai-report .ai-shot-media .ai-frame img{width:100%;height:300px}
.ai-report .ai-shot-video{display:block;width:100%;max-height:380px;background:#111;border-radius:6px}
.ai-report .ai-shot-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}
.ai-report .ai-shot-controls span{font-size:12px;color:var(--reader-muted)}
.ai-report .ai-shot-status:empty{display:none}
@media print{.ai-shot-player,.ai-shot-controls,.ai-shot-status{display:none!important}.ai-shot-still[hidden]{display:block!important}}
.ai-report [data-shot-stage]{--stage-color:#647168;--stage-bg:#f0f3f0}
.ai-report [data-shot-stage=opening]{--stage-color:#7652a4;--stage-bg:#f3edfb}
.ai-report [data-shot-stage=product]{--stage-color:#2b669a;--stage-bg:#ebf4fc}
.ai-report [data-shot-stage=value]{--stage-color:#946013;--stage-bg:#fff5df}
.ai-report [data-shot-stage=lifestyle]{--stage-color:#2c7654;--stage-bg:#eaf6ef}
.ai-report [data-shot-stage=closing]{--stage-color:#a34457;--stage-bg:#fceef1}
.ai-report[data-reader-theme=dark] [data-shot-stage]{--stage-color:#b1beb5;--stage-bg:#2c342f}
.ai-report[data-reader-theme=dark] [data-shot-stage=opening]{--stage-color:#d6b9fa;--stage-bg:#342d41}
.ai-report[data-reader-theme=dark] [data-shot-stage=product]{--stage-color:#a4d2f7;--stage-bg:#253647}
.ai-report[data-reader-theme=dark] [data-shot-stage=value]{--stage-color:#ebc477;--stage-bg:#3e3525}
.ai-report[data-reader-theme=dark] [data-shot-stage=lifestyle]{--stage-color:#9ed7b6;--stage-bg:#263a30}
.ai-report[data-reader-theme=dark] [data-shot-stage=closing]{--stage-color:#f2b1be;--stage-bg:#422e35}
.ai-stage-legend{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.ai-report .ai-stage-badge{display:inline-block;padding:4px 10px;border:1px solid var(--stage-color);border-radius:5px;background:var(--stage-bg);color:var(--stage-color);font-size:13px;font-weight:600;white-space:nowrap}
.ai-report[data-reader-theme] .ai-brief-shot-table tbody tr[data-shot-stage]>:is(th,td){background:var(--stage-bg)}
.ai-report[data-reader-theme] .ai-brief-shot-table tbody tr[data-shot-stage]>th{border-left:4px solid var(--stage-color)}
.ai-report .ai-brief-shot-table th:nth-child(2),.ai-report .ai-brief-shot-table td:nth-child(2){min-width:130px}
.ai-report[data-reader-theme] .ai-brief-commerce{margin:0}
.ai-report[data-reader-theme] .ai-brief-commerce>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:18px;padding:14px 0;border-bottom:1px solid var(--reader-line)}
.ai-report[data-reader-theme] .ai-brief-commerce>div:first-child{padding-top:0}
.ai-report[data-reader-theme] .ai-brief-commerce>div:last-child{border-bottom:0;padding-bottom:0}
.ai-report[data-reader-theme] .ai-brief-commerce dt{font-size:16px;font-weight:600;color:var(--reader-ink);margin:0}
.ai-report[data-reader-theme] .ai-brief-commerce :is(dd,p){margin:0}
@media(max-width:600px){.ai-report[data-reader-theme] .ai-brief-commerce>div{grid-template-columns:74px minmax(0,1fr);gap:12px}}
.ai-report .ai-transcript.ai-brief-transcript{padding:14px 18px;white-space:normal}
.ai-report[data-reader-theme] .ai-brief-transcript .ai-brief-prose{margin:0;font-size:16px;line-height:1.75;white-space:normal;overflow-wrap:anywhere}
.ai-report .ai-brief-prose .ai-verbatim{white-space:normal;line-height:inherit}
@media print{.ai-report [data-shot-stage]{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Reports are document surfaces. Both appearances share layout and contrast tokens. */
.ai-report[data-reader-theme]{--reader-paper:#f5f6f2;--reader-surface:#fff;--reader-soft:#ecefe9;--reader-ink:#28332e;--reader-muted:#626f66;--reader-line:#d5ddd3;--reader-accent:#426545;--reader-highlight:#e6eddf;--reader-warning:#765820;--reader-warning-bg:#f5efe1;--ink:var(--reader-ink);--muted:var(--reader-muted);--line:var(--reader-line);--line-soft:var(--reader-line);--card:var(--reader-surface);--bg:var(--reader-paper);--surface-input:var(--reader-surface);--mint:var(--reader-accent);--green:var(--reader-accent);--accent:var(--reader-accent);color-scheme:light;background:var(--reader-paper);color:var(--reader-ink);font:400 17px/1.85 var(--font-ui);padding-top:1px}
.ai-report[data-reader-theme=dark]{--reader-paper:#1b201e;--reader-surface:#242b27;--reader-soft:#272f2a;--reader-ink:#dce2dc;--reader-muted:#a7b3aa;--reader-line:#3c4840;--reader-accent:#bbd49d;--reader-highlight:#303e2b;--reader-warning:#dfc68d;--reader-warning-bg:#352f23;color-scheme:dark}
dialog:has(.ai-reader){width:min(1380px,96vw);max-width:1380px;border:1px solid #49534a;border-radius:14px;box-shadow:0 24px 90px #0006}
dialog:has(.ai-reader)>.modalhead{height:68px;background:#1c231f;border-color:#3b453d;padding:14px 24px}
dialog:has(.ai-reader)>.modalhead h2{font:500 15px var(--font-ui);color:#ccd7ce}
.report-page:has(.ai-reader){min-height:100dvh;background:#1b201e}
.report-page>.ai-report[data-reader-theme]{max-width:none;min-height:calc(100dvh - 75px);margin:0;padding:0;border-radius:0;background:var(--reader-surface)}
.ai-report[data-reader-theme] .ai-reader{display:grid;grid-template-columns:195px minmax(0,1fr);align-items:start;gap:40px;padding:32px}
.ai-report[data-reader-theme] .ai-reader-sidebar{position:sticky;top:96px;min-width:0;max-height:calc(100dvh - 145px);overflow:auto;scrollbar-width:thin}
.ai-reader-appearance{display:flex;flex:none;gap:3px;padding:3px;margin:0;width:116px;border:1px solid #49554b;border-radius:8px;background:#262f29}
.ai-reader-appearance button{flex:1;min-height:34px;padding:0 8px;background:transparent;border-radius:5px;font-size:13px;color:#c3cec5}
.ai-reader-appearance button[aria-pressed=true]{background:#c0d5a5;color:#22301e;font-weight:600}
.ai-reader-appearance button:focus-visible{outline:2px solid #d7ff7a;outline-offset:3px}
.ai-report[data-reader-theme] .ai-outline{position:static;max-height:none;overflow:visible;gap:5px;background:transparent}
.ai-report[data-reader-theme] .ai-outline>.ai-kicker{margin:0 10px 12px;font-size:12px;letter-spacing:.1em;color:var(--reader-muted)}
.ai-report[data-reader-theme] .ai-outline button{min-height:44px;padding:10px;border:0;border-left:2px solid transparent;border-radius:0 6px 6px 0;font-size:14px;line-height:1.6;color:var(--reader-muted);background:transparent}
.ai-report[data-reader-theme] .ai-outline button span{color:var(--reader-muted);opacity:.8;font-size:12px}
.ai-report[data-reader-theme] .ai-outline button:hover{background:var(--reader-soft);color:var(--reader-ink)}
.ai-report[data-reader-theme] .ai-outline button[aria-current]{background:var(--reader-highlight);border-left-color:var(--reader-accent);color:var(--reader-accent);font-weight:600}
.ai-report[data-reader-theme] .ai-reading{width:100%;max-width:960px;min-width:0;padding:32px 40px 0;background:var(--reader-surface);border:1px solid var(--reader-line);border-radius:10px}
.ai-report[data-reader-theme] .ai-report-heading{padding-bottom:8px}
.ai-report[data-reader-theme] .ai-report-heading h2{font:600 clamp(25px,2.3vw,32px)/1.5 var(--font-ui);letter-spacing:-.025em;color:var(--reader-ink);margin:0 0 22px;text-wrap:pretty}
.ai-report[data-reader-theme] :is(p,li,dd){font-size:17px;line-height:1.9;color:var(--reader-ink);font-weight:400}
.ai-report[data-reader-theme] p{margin:8px 0 16px}
.ai-report[data-reader-theme] :is(h3,h4,h5,strong){color:var(--reader-ink)}
.ai-report[data-reader-theme] h4{font-size:18px;font-weight:600;line-height:1.65;margin:24px 0 12px}
.ai-report[data-reader-theme] .ai-chapter{counter-increment:reader-chapter;scroll-margin-top:96px;padding:34px 0;border-color:var(--reader-line)}
.ai-reading{counter-reset:reader-chapter}
.ai-report[data-reader-theme] :is(.ai-chapter>h3,.ai-chapter-heading>h3){display:flex;align-items:baseline;gap:12px;font:600 23px/1.5 var(--font-ui);letter-spacing:-.02em;color:var(--reader-ink);margin:0 0 24px;border:0;padding:0}
.ai-report[data-reader-theme] :is(.ai-chapter>h3,.ai-chapter-heading>h3)::before{content:counter(reader-chapter,decimal-leading-zero);font:500 13px var(--font-mono);color:var(--reader-accent)}
.ai-report[data-reader-theme] :is(.ai-kicker,dt,.ai-section-intro,.ai-muted,.ai-note,.sub,small,.ai-row-index,.ai-frame figcaption,.ai-verbatim-meta,.ai-save-bar>span,.ai-status,.ai-video-stats){font-size:14px;line-height:1.75;color:var(--reader-muted);font-weight:400}
.ai-report[data-reader-theme] :is(.ai-details dt,.ai-data-row dt,.ai-shot-notes dt){font-weight:500;font-size:14px;color:var(--reader-muted);margin-bottom:7px}
.ai-report[data-reader-theme] .ai-lead,.ai-report[data-reader-theme] .ai-account-intro{font-size:19px;line-height:1.85;color:var(--reader-ink)}
.ai-report[data-reader-theme] .ai-template-summary{padding:22px 24px;margin:4px 0 28px;background:var(--reader-highlight);border-left:3px solid var(--reader-accent);border-radius:0 6px 6px 0}
.ai-report[data-reader-theme] .ai-template-summary>span{color:var(--reader-accent);font-size:13px;font-weight:600}
.ai-report[data-reader-theme] .ai-template-summary p{font-size:19px;line-height:1.85;color:var(--reader-ink);margin:8px 0 0}
.ai-report[data-reader-theme] :is(.ai-data-row,.ai-list-item,.ai-shot,.ai-takeaways>div,.ai-video-card,.ai-comment-list blockquote,.ai-transcript){background:var(--reader-soft);border-color:var(--reader-line);box-shadow:none}
.ai-report[data-reader-theme] :is(.ai-data-row,.ai-publication-analysis){padding:22px 24px;border-radius:6px}
.ai-report[data-reader-theme] .ai-publication-analysis{background:transparent;border:0;border-left:2px solid var(--reader-line);margin:24px 0;padding:4px 0 4px 22px}
.ai-report[data-reader-theme] .ai-publication-analysis h4{font-size:19px;margin-top:0}
.ai-report[data-reader-theme] .ai-publication-analysis dl>div{grid-template-columns:100px minmax(0,1fr);gap:20px}
.ai-report[data-reader-theme] :is(.ai-finding,.ai-template-step,.ai-template-method,.ai-source-card,.ai-script-scenes article,.ai-details-nested,.ai-evidence-strip){border-color:var(--reader-line)}
.ai-report[data-reader-theme] :is(.ai-template-step,.ai-template-method):last-child{border-bottom:0}
.ai-report[data-reader-theme] .ai-template-step h4>span{background:var(--reader-soft);color:var(--reader-accent)}
.ai-report[data-reader-theme] .ai-key-point{background:var(--reader-highlight);border-left:3px solid var(--reader-accent);border-radius:0 6px 6px 0;padding:18px 20px}
.ai-report[data-reader-theme] .ai-key-point>dt{color:var(--reader-accent);font-size:15px;font-weight:600}
.ai-report[data-reader-theme] .ai-key-point :is(dd,p){color:var(--reader-ink);font-weight:500}
.ai-report[data-reader-theme] .ai-key-chapter>h3{color:var(--reader-accent)}
.ai-report[data-reader-theme] .ai-disclosure{background:transparent;border:1px solid var(--reader-line);border-radius:6px;padding:12px 16px;margin:16px 0}
.ai-report[data-reader-theme] .ai-disclosure[open]{background:var(--reader-soft)}
.ai-report[data-reader-theme] .ai-disclosure summary{font-size:15px;line-height:1.8;font-weight:500;color:var(--reader-accent)}
.ai-report[data-reader-theme] .ai-disclosure p{font-size:16px;color:var(--reader-ink)}
/* Override the global pre background so text and paper follow the same theme. */
.ai-report[data-reader-theme] pre{background:var(--reader-soft) !important;color:var(--reader-ink)}
.ai-report[data-reader-theme]{--reader-prompt-bg:#e2ebdc;--reader-prompt-line:#b2c5a6}
.ai-report[data-reader-theme=dark]{--reader-prompt-bg:#344334;--reader-prompt-line:#687e5d}
.ai-report[data-reader-theme] .ai-prompt-text{padding:16px;background:var(--reader-prompt-bg) !important;color:var(--reader-ink);border:1px solid var(--reader-prompt-line);border-left:3px solid var(--reader-accent);border-radius:6px}
.ai-report[data-reader-theme] :is(.ai-notice,.ai-disclaimer,.risk-summary,.ai-risk-results article){background:var(--reader-warning-bg);color:var(--reader-warning);border-color:var(--reader-line)}
.ai-report[data-reader-theme] :is(.ai-notice p,.ai-risk-results strong){color:var(--reader-warning)}
.ai-report[data-reader-theme] .ai-disclaimer{font-size:13px;line-height:1.7;margin-top:0}
.ai-report[data-reader-theme] .ai-reference{background:var(--reader-soft);color:var(--reader-accent);border-color:var(--reader-line);font-size:13px}
.ai-report[data-reader-theme] .ai-evidence-excerpt{background:var(--reader-soft);color:var(--reader-muted);border-color:var(--reader-accent)}
.ai-report[data-reader-theme] :is(.ai-video-card a,.ai-video-stats strong,.ai-metrics b,.ai-shot-table tbody th b,.ai-success){color:var(--reader-accent)}
.ai-report[data-reader-theme] .ai-analysis-scroll{border-color:var(--reader-line);border-radius:7px}
.ai-report[data-reader-theme] :is(.ai-analysis-table,.ai-analysis-table p){font-size:15px;line-height:1.8;color:var(--reader-ink)}
.ai-report[data-reader-theme] .ai-analysis-table :is(th,td){padding:16px;border-color:var(--reader-line);background:transparent;color:var(--reader-ink)}
.ai-report[data-reader-theme] .ai-analysis-table thead th{background:var(--reader-highlight);color:var(--reader-accent);font-size:14px;font-weight:600}
.ai-report[data-reader-theme] .ai-analysis-table tbody tr:nth-child(even){background:var(--reader-soft)}
.ai-report[data-reader-theme] .ai-analysis-table td.ai-key-point{background:var(--reader-highlight);border-left:2px solid var(--reader-accent);border-radius:0}
.ai-report[data-reader-theme] :is(textarea,input:not([type=checkbox]),select){background:var(--reader-surface);color:var(--reader-ink);border:1px solid var(--reader-line);border-radius:6px;font:400 16px/1.85 var(--font-ui)}
.ai-report[data-reader-theme] textarea{min-height:280px;line-height:2;padding:20px}
.ai-report[data-reader-theme] .btn{min-height:42px;padding:9px 14px;font-size:14px;font-weight:500;background:var(--reader-surface);color:var(--reader-accent);border:1px solid var(--reader-line);box-shadow:none}
.ai-report[data-reader-theme] .btn:hover{background:var(--reader-highlight);border-color:var(--reader-accent)}
.ai-report[data-reader-theme] .btn.primary{background:var(--reader-accent);border-color:var(--reader-accent);color:var(--reader-surface)}
.ai-report[data-reader-theme] :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid var(--reader-accent);outline-offset:3px}
.ai-report[data-reader-theme] .ai-export-bar{margin:0;padding:20px 32px 12px;background:transparent;border:0}
.ai-report[data-reader-theme] .ai-export-status{color:var(--reader-muted);font-size:13px}
.ai-report[data-reader-theme] .ai-report-footer{color:var(--reader-muted);border-color:var(--reader-line);font-size:13px}
@media(min-width:1500px){.ai-report[data-reader-theme] .ai-reader{gap:48px;padding:40px}.ai-report[data-reader-theme] .ai-reading{padding:40px 48px 0}}
@media(max-width:1000px){.ai-report[data-reader-theme] .ai-reader{grid-template-columns:165px minmax(0,1fr);gap:24px;padding:24px}.ai-report[data-reader-theme] .ai-reading{padding:26px 26px 0}}
@media(max-width:700px){
 .ai-list-controls{padding:18px;gap:18px;flex-direction:column}.ai-list-controls .ai-library-search,.ai-list-controls>label{width:100%;flex:auto}.ai-search-field input::placeholder{font-size:14px}.ai-search-term{max-width:100%;margin-left:0;padding-left:0;border-left:0;flex-basis:100%}
 dialog:has(.ai-reader){width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border:0;border-radius:0}
 dialog:has(.ai-reader)>.modalhead{padding:12px 16px;height:64px}
 .ai-report[data-reader-theme] .ai-reader{display:block;padding:20px 16px}
 .ai-report[data-reader-theme] .ai-reader-sidebar{position:static;max-height:none;overflow:visible;margin-bottom:20px}
 .ai-report[data-reader-theme] .ai-outline{display:flex;gap:6px;overflow-x:auto;padding:0 0 8px;white-space:nowrap}
 .ai-report[data-reader-theme] .ai-outline>.ai-kicker{display:none}
 .ai-report[data-reader-theme] .ai-outline button{flex:none;border:1px solid var(--reader-line);border-radius:6px;padding:9px 12px;font-size:13px}
 .ai-report[data-reader-theme] .ai-reading{padding:24px 20px 0;border-radius:8px}
 .ai-report[data-reader-theme] .ai-report-heading h2{font-size:25px}
 .ai-report[data-reader-theme] :is(.ai-chapter>h3,.ai-chapter-heading>h3){font-size:21px;gap:10px;margin-bottom:20px}
 .ai-report[data-reader-theme] .ai-chapter{padding:28px 0;scroll-margin-top:84px}
 .ai-report[data-reader-theme] :is(p,li,dd){font-size:16px;line-height:1.9}
 .ai-report[data-reader-theme] :is(.ai-data-row,.ai-template-summary,.ai-key-point){padding:16px}
 .ai-report[data-reader-theme] .ai-publication-analysis{padding-left:14px}
 .ai-report[data-reader-theme] .ai-publication-analysis dl>div{grid-template-columns:1fr;gap:4px}
 .ai-report[data-reader-theme] .ai-export-bar{padding:18px 16px 8px}
 .ai-report[data-reader-theme] .creative-shot-table :is(th,td){padding:8px 0;border:0}
}
.ai-report[data-reader-theme] .ai-template-method>p:first-child{font-size:18px;color:var(--reader-ink);margin-top:0;font-weight:500}
.ai-report[data-reader-theme] .ai-template-method{padding:12px 0 20px}
.ai-report[data-reader-theme] .ai-template-step{padding:22px 0}
.ai-report[data-reader-theme] .ai-outline button span{color:var(--reader-accent);opacity:1}

.ai-report[data-reader-theme] .ai-report-heading .ai-export-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 20px}
.ai-report[data-reader-theme] .ai-export-bar .ai-feedback-entry{margin:0 0 0 auto}
.ai-report[data-reader-theme] .ai-reading>.ai-disclaimer{margin:0 0 28px;padding:12px 16px}

@media(max-width:700px){
 dialog:has(.ai-reader)>.modalhead h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .report-page:has(.ai-reader)>.report-page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px}
 .report-page:has(.ai-reader)>.report-page-head .report-window-actions{grid-column:2;grid-row:1 / span 2}
 .report-page:has(.ai-reader)>.report-page-head h1{grid-column:1;font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
 .report-page:has(.ai-reader)>.report-page-head .btn{padding:8px;font-size:13px}
 .ai-reader-appearance{width:104px}.ai-reader-appearance button{min-height:36px;padding:0 5px}
}
@media(max-width:380px){
 dialog:has(.ai-reader)>.modalhead{height:auto;min-height:64px;flex-wrap:wrap}
 dialog:has(.ai-reader)>.modalhead .report-window-actions{margin-left:auto}
}

/* Standalone reports fill the viewport; only prose has a reading-width limit. */
.report-page{--report-rail:240px;--report-gutter:clamp(28px,4vw,72px)}
.report-page .ai-report[data-reader-theme] .ai-reader{grid-template-columns:var(--report-rail) minmax(0,1fr);gap:0;padding:0;min-height:calc(100dvh - 75px)}
.report-page .ai-report[data-reader-theme] .ai-reader-sidebar{top:75px;min-height:calc(100dvh - 75px);max-height:calc(100dvh - 75px);padding:32px 20px;background:var(--reader-paper);border-right:1px solid var(--reader-line);margin:0}
.report-page .ai-report[data-reader-theme] .ai-reading{max-width:none;min-height:calc(100dvh - 75px);padding:40px var(--report-gutter) 24px;border:0;border-radius:0;box-shadow:none}
.report-page .ai-report[data-reader-theme] .ai-reading :is(p,li,dd){max-width:76ch}
.report-page .ai-report[data-reader-theme] .ai-report-heading h2{max-width:40ch}
.report-page>.ai-report[data-reader-theme]>.ai-feedback,.report-page>.ai-report[data-reader-theme]>.ai-report-footer{margin:0 0 0 var(--report-rail);padding:24px var(--report-gutter);border-radius:0}
@media(min-width:701px){.report-page:has(.ai-reader)>.report-page-head{padding:16px 24px}}
@media(min-width:701px) and (max-width:1000px){.report-page{--report-rail:190px;--report-gutter:28px}}
@media(max-width:700px){
 .report-page{--report-rail:0px;--report-gutter:20px}
 .report-page>.ai-report[data-reader-theme],.report-page .ai-report[data-reader-theme] .ai-reader{min-height:calc(100dvh - 85px)}
 .report-page .ai-report[data-reader-theme] .ai-reader-sidebar{position:static;min-height:0;max-height:none;padding:16px 16px 8px;border-right:0;border-bottom:1px solid var(--reader-line)}
 .report-page .ai-report[data-reader-theme] .ai-reading{min-height:0;padding:28px var(--report-gutter) 16px}
}

.ai-report .ai-chapter-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.ai-report[data-reader-theme] .ai-chapter-heading>h3{margin:0}
.ai-report .ai-chapter-heading>.btn{flex-shrink:0}
