.report-command-bar{position:sticky;top:82px;z-index:15;background:rgba(255,253,248,.97);padding:12px 0;border-bottom:1px solid #ded4bf;backdrop-filter:blur(10px)}
.report-command-copy{display:flex;align-items:baseline;justify-content:space-between;gap:14px;color:#343a2d}.report-command-copy strong{font-size:17px}.report-command-copy span{font-size:12px;color:#77705f}
.report-actions-menu{padding-top:8px}.report-actions-menu summary{cursor:pointer;color:#695938;font-size:14px}.report-actions-row{display:flex;flex-wrap:wrap;gap:8px;padding-top:8px}.report-actions-menu button,.report-actions-menu a{min-height:42px;margin:0}
.report-summary-block{padding-top:14px}.report-summary-block>.report-snapshot:first-child{margin-top:0}.report-fold{margin-top:18px;border:1px solid #ddd2bc;border-radius:15px;background:#fffdf8;overflow:hidden}.report-fold>summary{list-style:none;cursor:pointer;padding:15px 16px;font-weight:800;color:#39402f;background:#f7f3e8}.report-fold>summary::-webkit-details-marker{display:none}.report-fold>summary:after{content:"⌄";float:inline-end;color:#8d7441}.report-fold[open]>summary:after{content:"⌃"}.report-fold-body{padding:8px 15px 18px}.report-fold-body>*:first-child{margin-top:8px}
.report-scope{font-size:13px;color:#636655}.omitted-notice{padding:12px;border:1px solid #b2904f;border-radius:10px;font-size:15px;background:#fff6de}
.report-loading-panel{padding:28px 20px;text-align:center;min-height:260px;border:1px solid #d2c29e;border-radius:20px;background:#fffdf7}.report-spinner{display:block;width:44px;height:44px;border:4px solid #e6dfcd;border-top-color:#897041;border-radius:50%;margin:4px auto 16px;animation:report-turn 1s linear infinite}#elapsed-report{font-size:17px;font-variant-numeric:tabular-nums;color:#625539}.report-loading-steps{font-size:15px}.report-loading-panel h2{font-size:25px!important}@keyframes report-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.report-spinner{animation:none;border-top-color:#5b642f}}
@media(max-width:600px){.report-command-bar{top:72px}.premium-report{padding:16px!important}.report-command-copy{display:block}.report-command-copy span{display:block;margin-top:3px}.report-fold>summary{font-size:16px}}
@media print{.report-command-bar{display:none!important}.report-fold,.report-fold[open]{display:block!important}.report-fold>summary{display:none!important}.report-fold-body{padding:0}.report-spinner{display:none}}.report-instant-preview{margin:16px auto 18px;max-width:720px;padding:14px 16px;border:1px solid #ded3bb;border-radius:14px;background:#f7f4eb;text-align:start;color:#33392d}.report-instant-preview strong{display:block;color:#705a31;margin-bottom:6px}.report-instant-preview p{margin:0 0 6px;line-height:1.75}.report-instant-preview small{color:#666052}

/* CARE26: mobile report layout hardening — no sticky command bar over report text, no box/text collisions. */
.report-command-bar{position:static!important;top:auto!important;z-index:auto!important;margin:0 0 14px!important}
.premium-report,.premium-report *{box-sizing:border-box;min-width:0}
.premium-report{overflow:visible!important;word-break:normal;overflow-wrap:anywhere}
.premium-report p,.premium-report li,.premium-report h3,.premium-report h4,.premium-report h5,.premium-report strong,.premium-report small,.premium-report span{max-width:100%;overflow-wrap:anywhere;word-break:normal}
.premium-report .ai-section,.premium-report .report-snapshot,.premium-report .ai-evidence,.premium-report .ai-plan,.premium-report .doctor-handover,.premium-report .ai-document-analysis,.premium-report .document-findings>div{height:auto!important;min-height:0!important;overflow:visible!important}
.premium-report .document-head{flex-wrap:wrap;align-items:flex-start}
.premium-report .document-head>*{max-width:100%}
.premium-report .source-trace span{white-space:normal}
.document-read-warning{padding:.7rem .8rem;border:1px solid #d6a56b;border-radius:10px;background:#fff6e6;color:#754b1e;line-height:1.65}
@media(max-width:600px){
 .premium-report{font-size:16px!important;line-height:1.85!important}
 .premium-report h3{font-size:1.45rem!important;line-height:1.45!important}
 .premium-report h4{font-size:1.15rem!important;line-height:1.55!important;margin-top:1.1rem!important}
 .premium-report .report-snapshot,.premium-report .ai-evidence,.premium-report .ai-plan,.premium-report .doctor-handover,.premium-report .ai-document-analysis{padding:14px!important;margin:12px 0!important}
 .report-fold-body{padding:10px 12px 16px!important}
}


/* CARE27 — report readability and explicit PDF action */
.report-pdf-primary{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:46px;margin-top:10px;padding:10px 16px;border-radius:12px;
 border:1px solid #9d7b3d;background:#a98445;color:#fff;font:inherit;font-weight:800;
}
.premium-report .differential-card{position:static!important;padding-top:14px!important}
.premium-report .diagnostic-rank{
 position:static!important;inset:auto!important;display:inline-block!important;
 margin:0 0 10px 0!important;padding:.28rem .62rem!important;
 width:auto!important;height:auto!important;line-height:1.35!important;
 white-space:normal!important;vertical-align:middle!important;
}
.premium-report .differential-card>strong{display:block!important;margin:.15rem 0 .65rem!important;line-height:1.65!important}
.premium-report .source-trace{position:static!important;margin:.55rem 0 .9rem!important}
.premium-report details>summary,.premium-report .report-fold>summary{line-height:1.55!important;min-height:0!important}
.patient-key-answers{margin:16px 0!important}
.key-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.key-answer-grid>div{border:1px solid #e0dacd;border-radius:12px;padding:11px 12px;background:#fbfaf5}
.key-answer-grid b{display:block;font-size:.9rem;line-height:1.5;margin-bottom:4px}
.key-answer-grid span{display:block;font-size:.95rem;line-height:1.65;color:#4d5147}
@media(max-width:600px){
 .report-pdf-primary{width:100%;margin-top:12px}
 .key-answer-grid{grid-template-columns:1fr}
 .premium-report .diagnostic-rank{font-size:.78rem!important}
 .premium-report .differential-card>strong{font-size:1.02rem!important}
}

/* CARE30: status is plain text, never a button-shaped control. */
.report-loading-panel .report-loading-steps p{background:transparent!important;color:#454b42!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;cursor:default!important}
.report-loading-panel{min-height:0}.report-loading-panel>p{line-height:1.9}.report-failure-panel{padding:20px;border:1px solid #d2c29e;border-radius:12px}.document-card{overflow-wrap:anywhere}

.report-use-notice{font-size:.9rem;line-height:1.8;padding:12px 0;border-top:1px solid #ded8c9}.report-use-notice summary{color:#725931;cursor:pointer}.report-use-notice strong{display:block;margin-top:12px}.report-use-notice p{margin:5px 0 12px!important}
/* V3.2 patient-value report: compact, decision-oriented, less template-like. */
.value-report{max-width:900px!important;margin-inline:auto!important}
.value-report .clinical-report-header{padding-bottom:12px!important;border-bottom:1px solid rgba(150,116,61,.28)!important}
.value-report .report-identity{grid-template-columns:1fr 1fr!important;gap:10px!important}
.value-report .value-verdict{padding:22px!important;border:1px solid rgba(150,116,61,.34)!important;background:linear-gradient(180deg,#f8f5ed,#fff)!important}
.value-report .value-verdict h4{font-size:1.35rem!important;margin:.25rem 0 .6rem!important;line-height:1.5!important}
.value-report .value-verdict p{font-size:1.04rem!important;line-height:1.9!important;margin:0!important}
.value-report .compact-priority{padding:14px 16px!important;margin:10px 0!important;background:#f7f8f6!important;border-radius:14px!important}
.value-report .compact-priority p{margin:.35rem 0 0!important}
.value-report .ai-section{padding:16px 0!important;margin:0!important;border-top:1px solid rgba(0,0,0,.08)!important}
.value-report .ai-section h4{margin:0 0 .7rem!important;font-size:1.12rem!important}
.value-report .case-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.value-report .case-facts h4{grid-column:1/-1!important}
.value-report .case-fact{padding:12px 14px!important;border-radius:12px!important;background:#fafafa!important;border:1px solid rgba(0,0,0,.06)!important}
.value-report .case-fact b{display:block!important;font-size:.92rem!important;line-height:1.55!important}
.value-report .case-fact p{margin:.35rem 0 0!important;font-size:.9rem!important;line-height:1.65!important;color:#55605a!important}
.value-report .leading-reason p,.value-report .decision-gap p,.value-report .next-action p{line-height:1.8!important}
.value-report .secondary-fit{margin-top:12px!important;padding:12px 14px!important;background:#f7f8f6!important;border-radius:12px!important}
.value-report .decision-gap{background:#f9f6ef!important;padding:16px!important;border-radius:14px!important;border-top:none!important;margin:10px 0!important}
.value-report .next-action .ai-plan{padding:12px 0!important}
.value-report .doctor-handover{background:#f4f7f5!important;padding:16px!important;border-radius:14px!important;border-top:none!important;margin-top:8px!important}
.value-report .private-note{font-size:.78rem!important;line-height:1.65!important;opacity:.68!important;margin-top:12px!important}
@media(max-width:640px){.value-report .case-facts{grid-template-columns:1fr!important}.value-report .report-identity{grid-template-columns:1fr!important}}

/* MASARAT clinical-v3.3 — portable professional report, inspired by the original complex-fistula report. */
.portable-report{max-width:980px!important;margin:18px auto 28px!important;background:#fff!important;border:1px solid #ded8cc!important;border-radius:18px!important;overflow:hidden!important;box-shadow:0 10px 34px rgba(27,35,30,.07)!important;color:#1f2f28!important}
.portable-report-head{display:grid!important;grid-template-columns:1fr 1.3fr 1fr!important;gap:18px!important;align-items:center!important;padding:22px 24px!important;background:#171a18!important;color:#fff!important;border-top:5px solid #a47b3f!important}
.portable-report-brand{display:flex!important;gap:12px!important;align-items:center!important;direction:ltr!important}.portable-report-brand img{width:58px!important;height:58px!important;object-fit:contain!important;border-radius:12px!important}.portable-report-brand b{display:block!important;color:#d7b77d!important;letter-spacing:.08em!important;font-size:.92rem!important}.portable-report-brand small{display:block!important;color:#c8cbc7!important;font-size:.72rem!important;margin-top:3px!important}
.portable-report-title{text-align:center!important}.portable-report-title h3{margin:0!important;color:#fff!important;font-size:1.5rem!important;line-height:1.35!important}.portable-report-title p{margin:6px 0 0!important;color:#d7b77d!important;font-size:.82rem!important}
.portable-report-doctor{text-align:end!important}.portable-report-doctor b{display:block!important;color:#fff!important;font-size:1rem!important}.portable-report-doctor span{display:block!important;color:#d7b77d!important;font-size:.78rem!important;margin-top:4px!important;line-height:1.5!important}
.portable-meta{display:grid!important;grid-template-columns:repeat(4,1fr)!important;margin:0!important;border-bottom:1px solid #e5dfd4!important}.portable-meta>div{padding:12px 16px!important;border-inline-start:1px solid #eee8de!important}.portable-meta>div:first-child{border-inline-start:0!important}.portable-meta dt{font-size:.73rem!important;color:#7d8079!important}.portable-meta dd{margin:3px 0 0!important;font-weight:800!important;font-size:.9rem!important;color:#29362f!important;line-height:1.45!important}
.portable-summary{margin:20px 24px!important;padding:20px 22px!important;border:1px solid #cfdce8!important;border-radius:15px!important;background:linear-gradient(180deg,#f3f8fc,#fff)!important;border-inline-end:5px solid #18385f!important}.portable-section-kicker{font-size:.72rem!important;letter-spacing:.08em!important;color:#54708f!important;font-weight:900!important}.portable-summary h4{font-size:1.35rem!important;line-height:1.45!important;margin:7px 0 8px!important;color:#18385f!important}.portable-summary p{font-size:1rem!important;line-height:1.9!important;margin:0!important}.portable-summary-tags{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:13px!important}.portable-summary-tags span{display:inline-flex!important;padding:5px 9px!important;border-radius:999px!important;background:#eef1ed!important;color:#536058!important;font-size:.72rem!important}.portable-summary-tags span.urgent{background:#fff0ec!important;color:#984f42!important;font-weight:800!important}
.portable-two{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;margin:0 24px 20px!important}.portable-two>section{padding:17px 18px!important;border:1px solid #e1dacd!important;border-radius:14px!important;background:#fffdf8!important}.portable-two h4{margin:0 0 8px!important;color:#6f542d!important;font-size:1rem!important}.portable-two p{margin:0!important;line-height:1.75!important}.portable-alt{margin-top:12px!important;padding-top:11px!important;border-top:1px solid #e6e0d6!important}.portable-alt b,.portable-alt span{display:block!important}.portable-alt span{font-weight:800!important;color:#24362e!important;margin:2px 0 4px!important}
.portable-documents,.portable-record,.portable-plan,.portable-handover{margin:0 24px 22px!important}.portable-section-head{padding:12px 0 10px!important;border-top:2px solid #a47b3f!important}.portable-section-head h4,.portable-handover h4{margin:0!important;color:#18385f!important;font-size:1.15rem!important}.portable-section-head small{display:block!important;color:#737b75!important;margin-top:4px!important;line-height:1.55!important}
.portable-doc-card{border:1px solid #ded8ce!important;border-radius:14px!important;padding:15px 17px!important;margin:10px 0!important;background:#fff!important;border-inline-end:5px solid #a47b3f!important}.portable-doc-card>header{display:flex!important;justify-content:space-between!important;gap:12px!important;align-items:flex-start!important}.portable-doc-card>header strong{color:#203a5b!important;font-size:1rem!important}.portable-doc-card>header span{font-size:.76rem!important;color:#777f79!important}.portable-doc-card>p{line-height:1.75!important;margin:.65rem 0!important}.portable-doc-card ul{margin:.4rem 0!important;padding-inline-start:1.2rem!important}.portable-doc-card li{margin:.55rem 0!important;line-height:1.6!important}.portable-doc-card li b,.portable-doc-card li span{display:block!important}.portable-doc-card li span{color:#5c665f!important;font-size:.9rem!important}.portable-doc-impact{margin-top:11px!important;padding:10px 12px!important;border-radius:10px!important;background:#f5f2e9!important}.portable-doc-impact b{color:#755728!important}.portable-doc-impact p{margin:4px 0 0!important;line-height:1.7!important}.portable-empty-docs{padding:15px 16px!important;border:1px dashed #c8c1b5!important;border-radius:12px!important;background:#f8f8f6!important}.portable-empty-docs p{margin:5px 0 0!important;line-height:1.7!important;color:#606b64!important}
.portable-plan{border-top:2px solid #a47b3f!important;padding-top:10px!important}.portable-plan .portable-section-head{border-top:0!important;padding-top:0!important}.portable-plan>div:not(.portable-section-head){display:grid!important;grid-template-columns:38px 1fr!important;gap:10px!important;align-items:start!important;padding:10px 0!important;border-bottom:1px solid #eee8df!important}.portable-plan>div>b{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border-radius:50%!important;background:#171a18!important;color:#d6b475!important}.portable-plan>div p{margin:0!important}.portable-plan>div p strong,.portable-plan>div p span{display:block!important}.portable-plan>div p span{color:#5f6962!important;margin-top:3px!important;line-height:1.65!important}
.portable-handover{padding:16px 18px!important;border-radius:14px!important;background:#eef6f0!important;border:1px solid #cbdccf!important}.portable-handover p{margin:8px 0 0!important;line-height:1.75!important}.portable-handover>div{margin-top:11px!important;padding-top:10px!important;border-top:1px solid #d4e2d7!important}.portable-handover>div b,.portable-handover>div span{display:block!important}.portable-handover>div span{margin-top:3px!important;line-height:1.65!important}
.portable-record>.portable-section-head{margin-bottom:10px!important}.portable-record-section{margin:12px 0 18px!important;border:1px solid #ded7ca!important;border-radius:12px!important;overflow:hidden!important}.portable-record-section>h4{display:flex!important;align-items:center!important;gap:9px!important;margin:0!important;padding:10px 13px!important;background:#171a18!important;color:#fff!important;font-size:.95rem!important}.portable-record-section>h4 span{display:inline-grid!important;place-items:center!important;min-width:28px!important;height:24px!important;border-radius:6px!important;background:#a47b3f!important;color:#fff!important;font-size:.7rem!important;direction:ltr!important}.portable-answer-row{display:grid!important;grid-template-columns:minmax(0,58%) minmax(0,42%)!important;gap:0!important;border-top:1px solid #eee8df!important}.portable-answer-row:first-child{border-top:0!important}.portable-answer-row b{padding:10px 12px!important;background:#faf7f1!important;font-size:.84rem!important;line-height:1.55!important}.portable-answer-row span{padding:10px 12px!important;color:#204064!important;font-size:.88rem!important;line-height:1.55!important}.portable-disclaimer{margin:20px 24px 24px!important;padding:13px 15px!important;border-radius:12px!important;background:#f8f5ee!important;color:#686d68!important;font-size:.76rem!important;line-height:1.7!important;border:1px solid #e4ddd2!important}
.portable-command-bar{max-width:980px!important;margin:10px auto 0!important;padding:12px 0!important}
@media(max-width:760px){.portable-report{margin-inline:0!important;border-radius:14px!important}.portable-report-head{grid-template-columns:1fr!important;text-align:center!important;padding:18px 16px!important}.portable-report-brand{justify-content:center!important}.portable-report-doctor{text-align:center!important}.portable-meta{grid-template-columns:1fr 1fr!important}.portable-two{grid-template-columns:1fr!important}.portable-doc-card>header{display:block!important}.portable-doc-card>header span{display:block!important;margin-top:3px!important}.portable-answer-row{grid-template-columns:1fr!important}.portable-answer-row b{padding-bottom:5px!important}.portable-answer-row span{padding-top:5px!important}.portable-summary,.portable-two,.portable-documents,.portable-record,.portable-plan,.portable-handover,.portable-disclaimer{margin-inline:14px!important}.portable-command-bar{margin-inline:0!important}}
@media print{.portable-report{box-shadow:none!important;border:0!important}.portable-report-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}.portable-record-section,.portable-doc-card,.portable-summary,.portable-handover{break-inside:avoid}}

/* MASARAT V3.5 — unmistakable report-reading state and frictionless PDF handoff. */
.report-reading-focus{max-width:760px!important;margin:18px auto 28px!important;padding:30px 24px!important;border:1px solid #cdbb95!important;border-radius:22px!important;background:linear-gradient(180deg,#fffdf8 0%,#f8f4e9 100%)!important;box-shadow:0 12px 34px rgba(55,47,32,.08)!important;text-align:center!important}
.report-live-badge{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;padding:7px 11px;border-radius:999px;background:#eef4ed;color:#31533e;font-size:.84rem;font-weight:800}.report-live-dot{width:9px;height:9px;border-radius:50%;background:#4f7d62;box-shadow:0 0 0 5px rgba(79,125,98,.12);animation:report-live-pulse 1.6s ease-in-out infinite}.report-reading-focus h2{margin:.2rem 0 .7rem!important;color:#24352e!important;font-size:clamp(1.55rem,5vw,2.05rem)!important;line-height:1.45!important}.report-loading-lead{max-width:620px;margin:0 auto 18px!important;font-size:1rem!important;line-height:1.9!important;color:#58615b!important}
.report-files-read{display:grid;gap:8px;margin:18px 0 14px;text-align:start}.report-file-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 12px;border:1px solid #d8e1d9;border-radius:12px;background:#f7fbf7}.report-file-row>span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#4f7d62;color:#fff;font-weight:900}.report-file-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;color:#2e4538}.report-file-row small{color:#567064;font-size:.75rem}.report-loading-steps{display:grid!important;gap:10px!important;margin:16px 0!important;text-align:start!important}.report-loading-panel .report-loading-steps .report-step{display:grid!important;grid-template-columns:32px 1fr!important;gap:11px!important;align-items:start!important;padding:13px 14px!important;border:1px solid #ddd6c7!important;border-radius:14px!important;background:#fff!important;color:#39433d!important}.report-loading-panel .report-loading-steps .report-step.done{background:#f5faf6!important;border-color:#d5e3d8!important}.report-loading-panel .report-loading-steps .report-step.active{background:#24352e!important;border-color:#24352e!important;color:#fff!important}.report-step>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ebe4d4;color:#6c5932;font-weight:900}.report-step.done>span{background:#4f7d62;color:#fff}.report-step.active>span{background:rgba(255,255,255,.12)}.report-step b{display:block;line-height:1.55}.report-step small{display:block;margin-top:3px;line-height:1.55;color:#747b76}.report-step.active small{color:#dbe4de}.mini-spinner{width:20px!important;height:20px!important;margin:4px!important;border:3px solid rgba(255,255,255,.28)!important;border-top-color:#fff!important;background:transparent!important;animation:report-turn 1s linear infinite}.report-files-read>.report-step{margin-bottom:2px}#elapsed-report{display:inline-block;margin:4px 0 0!important;padding:6px 10px;border-radius:999px;background:#eee8dc;color:#6e6249!important;font-size:.84rem!important}.report-reading-focus .report-spinner{width:52px;height:52px;margin:3px auto 14px;border-width:5px}
@keyframes report-live-pulse{0%,100%{opacity:1}50%{opacity:.45}}

.report-ready-card{max-width:980px!important;margin:12px auto 16px!important;padding:16px!important;border:1px solid #cfbea0!important;border-radius:18px!important;background:linear-gradient(180deg,#fffdf8,#f7f2e8)!important;box-shadow:0 10px 28px rgba(45,39,28,.08)!important;scroll-margin-top:84px!important}.report-ready-state{display:flex;align-items:center;gap:12px}.report-ready-check{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#4f7d62;color:#fff;font-size:1.2rem;font-weight:900}.report-ready-card .report-command-copy{display:block!important}.report-ready-card .report-command-copy strong{display:block;font-size:1.15rem;color:#25362f}.report-ready-card .report-command-copy span{display:block;margin-top:2px;font-size:.88rem;color:#6b6f69}.report-ready-card .report-pdf-primary{display:flex;width:100%;min-height:54px;margin-top:13px;font-size:1rem;box-shadow:0 6px 16px rgba(145,108,51,.16)}.report-command-ready{animation:report-ready-ring 1.25s ease-out 1}.report-download-success{border-color:#95b29e!important;box-shadow:0 0 0 5px rgba(79,125,98,.10)!important}.report-action-status{margin:.55rem 0 0;line-height:1.6;color:#5e645f}
@keyframes report-ready-ring{0%{box-shadow:0 0 0 0 rgba(169,132,69,.45)}100%{box-shadow:0 0 0 14px rgba(169,132,69,0)}}
.report-bottom-actions{max-width:980px;margin:18px auto 34px;padding:18px;border:1px solid #d9cfbd;border-radius:16px;background:#faf7f0;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,340px);align-items:center;gap:16px}.report-bottom-actions strong,.report-bottom-actions span{display:block}.report-bottom-actions strong{color:#2d3d35;font-size:1rem}.report-bottom-actions span{margin-top:4px;color:#72766f;font-size:.85rem;line-height:1.6}.report-bottom-actions .report-pdf-primary{margin:0;width:100%}
.report-download-dock{display:none}
@media(max-width:760px){
 .report-reading-focus{margin:10px 0 20px!important;padding:24px 16px!important;border-radius:18px!important}.report-files-read{margin-inline:0}.report-file-row{grid-template-columns:26px minmax(0,1fr)}.report-file-row small{grid-column:2}.report-ready-card{margin:8px 0 14px!important;padding:14px!important}.report-bottom-actions{grid-template-columns:1fr;margin:16px 0 92px;padding:15px}.report-download-dock{position:fixed;display:block;z-index:80;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));pointer-events:none}.report-download-dock button{pointer-events:auto;width:100%;min-height:52px;border:1px solid #8f6d35;border-radius:15px;background:#a98445;color:#fff;font:inherit;font-weight:900;box-shadow:0 8px 26px rgba(33,29,22,.24);display:flex;align-items:center;justify-content:center;gap:8px}.report-download-dock button>span{font-size:1.15rem}.report-download-dock button:disabled{opacity:.78}.portable-report{margin-bottom:12px!important}
}
@media print{.report-download-dock,.report-bottom-actions,.report-ready-card{display:none!important}}

/* V3.6 — explicit document-reading state + consultant report sections */
.document-reading-hero{display:flex;gap:16px;align-items:flex-start;margin:18px 0 20px;padding:22px 20px;border:2px solid rgba(160,125,55,.35);border-radius:22px;background:linear-gradient(180deg,#fffdf7,#f7f2e7);box-shadow:0 14px 34px rgba(25,28,24,.10)}
.document-reading-hero strong{display:block;font-size:1.35rem;line-height:1.4;color:#16221d;margin-bottom:6px}.document-reading-hero p{margin:0 0 10px;font-size:1rem;line-height:1.8;color:#4d514d}.document-reading-hero b{display:block;direction:ltr;text-align:start;overflow-wrap:anywhere;font-size:.95rem;margin-bottom:8px}.document-reading-hero span{display:block;font-weight:800;color:#7b5c1d}.document-reading-spinner{width:34px;height:34px;min-width:34px;border:4px solid rgba(160,125,55,.18);border-top-color:#a17c37;border-radius:50%;animation:masaratSpin 1s linear infinite;margin-top:4px}@keyframes masaratSpin{to{transform:rotate(360deg)}}
.document-reading-success{margin:16px 0;padding:16px 18px;border-radius:18px;background:#eef7f0;border:1px solid #b9d9c1}.document-reading-success b{display:block;font-size:1.05rem;color:#285b38}.document-reading-success span{display:block;margin-top:4px;color:#4b5d50;line-height:1.7}
.portable-explanation,.portable-management,.portable-redflags,.portable-evidence{margin-top:22px;padding:20px;border:1px solid #e4ded1;border-radius:20px;background:#fff}.portable-explanation>p,.portable-management-lead,.portable-exam-role p,.portable-evidence p{font-size:1rem;line-height:1.9;margin:8px 0;color:#28312d}.portable-management{background:linear-gradient(180deg,#fffefb,#fbf7ee)}.portable-management-lead{font-weight:750}.portable-treatment-options{display:grid;gap:10px;margin-top:14px}.portable-treatment-options article{padding:14px 15px;border-radius:14px;border:1px solid #e7dfcf;background:#fff}.portable-treatment-options b{display:block;font-size:1rem;color:#163129}.portable-treatment-options p{margin:6px 0;line-height:1.7}.portable-treatment-options small{display:block;line-height:1.65;color:#67635b}.portable-exam-role{margin-top:14px;padding:14px 15px;border-radius:14px;background:#eef4f7;border-inline-start:4px solid #35556a}.portable-exam-role b{color:#24475d}.portable-redflags{background:#fff7f3;border-color:#ecd0c3}.portable-redflags ul{margin:8px 0 0;padding-inline-start:22px}.portable-redflags li{margin:7px 0;line-height:1.7}.portable-evidence{background:#f7faf8}.portable-evidence p{padding:10px 0;border-bottom:1px solid #e7ece8}.portable-evidence p:last-child{border-bottom:0}.portable-answer-row b:has(+ span){font-weight:700}
@media(max-width:640px){.document-reading-hero{padding:18px 16px;gap:12px}.document-reading-hero strong{font-size:1.18rem}.portable-explanation,.portable-management,.portable-redflags,.portable-evidence{padding:16px 14px}.portable-treatment-options{grid-template-columns:1fr}}

.portable-references{margin-top:22px;padding:20px;border:1px solid #e4ded1;border-radius:20px;background:#fffdf8}.portable-references ol{margin:12px 0 0;padding-inline-start:24px}.portable-references li{margin:10px 0;line-height:1.65}.portable-references a{color:#24475d;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}.portable-references small{color:#6f716c;line-height:1.6}
@media(max-width:640px){.portable-references{padding:16px 14px}}
