/* Quiet, readable white workspace. The evidence and status text stay in the DOM. */
.workspace-polished{--workspace-ink:#193b4b;--workspace-copy:#48616e;--workspace-muted:#758993;--workspace-accent:#147e85;--workspace-line:#e4edef;--workspace-wash:#f5f9fa;color:var(--workspace-copy)}
.workspace-polished .page-heading{padding:3px 0 25px;border-bottom:1px solid var(--workspace-line);margin-bottom:28px;align-items:center}
.workspace-polished .page-heading .eyebrow{color:#6e9ba5;font-size:10px;letter-spacing:1.8px}
.workspace-polished .page-heading h1{font-size:28px;color:var(--workspace-ink);letter-spacing:-.8px;margin-top:9px;font-weight:600}
.workspace-polished .page-heading p{font-size:13px;line-height:1.8;color:var(--workspace-muted);margin-top:9px}
.workspace-polished .page-heading>.button-row{max-width:none}
.workspace-polished .button{border-radius:8px;font-size:12px;min-height:38px}
.workspace-polished .button.primary{background:var(--workspace-accent);border-color:var(--workspace-accent);box-shadow:0 4px 12px #167c8515}
.workspace-polished .button.secondary{border-color:#dce7eb;color:#326475;background:#fff}
.workspace-polished .button.text{color:var(--workspace-accent);min-height:30px}
.workspace-polished .panel{padding:27px;border-radius:15px;border:1px solid var(--workspace-line);box-shadow:0 3px 14px #16384903;margin-bottom:24px}
.workspace-polished .panel-heading{align-items:flex-start;margin-bottom:22px;gap:16px}
.workspace-polished .panel-heading h2{font-size:18px;font-weight:600;line-height:1.5;color:var(--workspace-ink);letter-spacing:-.25px}
.workspace-polished h3{color:var(--workspace-ink)}
.workspace-polished .panel-heading p{font-size:12px;line-height:1.8;color:var(--workspace-muted);max-width:620px;margin-top:7px}
.workspace-polished .panel-heading>svg{color:#8eb9c1;flex:none;width:25px;height:25px;stroke-width:1.4}
.workspace-polished .panel-heading>.tag{padding:4px 0;color:#798e96;font-size:11px;text-align:right}
.workspace-polished .tag{background:transparent;border:0;border-radius:0;padding:2px 0;color:#758993;font-size:11px;line-height:1.7}
.workspace-polished .tag.teal{background:transparent;color:#197c77}
.workspace-polished .tag.amber{background:transparent;color:#a06a26}
.workspace-polished .tag.red{background:transparent;color:#b45f56}
.workspace-polished .tag-row{gap:13px;margin:5px 0 12px}
.workspace-polished .tag-row .tag+.tag{padding-left:13px;border-left:1px solid #dfe9ec}
.workspace-polished .field-note,.workspace-polished .muted{font-size:12px;line-height:1.8;color:var(--workspace-muted)}
.workspace-polished .field-note{margin:12px 0 16px}
.workspace-polished .empty-state{min-height:180px;padding:33px 17px}
.workspace-polished .empty-state h3{font-size:15px;color:#536f7b;font-weight:500}
.workspace-polished .empty-state p{font-size:12px;line-height:1.8;color:#85989f}
.workspace-polished .notice{font-size:13px;line-height:1.9;border-radius:9px;padding:16px 18px}
.workspace-polished .notice.amber{color:#866631;background:#fffaf0;border-color:#f3e8cd}
.workspace-polished .notice.error{color:#a64f46;background:#fff5f2;border-color:#f0d6d0}
.workspace-polished label{color:#476372;font-size:13px;line-height:1.7}
.workspace-polished textarea,.workspace-polished input,.workspace-polished select{border:1px solid #dce7ec;border-radius:8px;color:#294f60;font-size:13px;background:#fff;padding:12px 13px}
.workspace-polished textarea{line-height:1.85;min-height:108px;margin-top:9px}
.workspace-polished textarea::placeholder,.workspace-polished input::placeholder{color:#95a5ad}
.workspace-polished .two-column{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:24px}
.workspace-polished .record-snippet{padding:17px 0;line-height:1.9;font-size:14px;border-color:var(--workspace-line)}
.workspace-polished .record-snippet:first-of-type{padding-top:0}
.workspace-polished .record-snippet p{color:#355969}
.workspace-polished .record-snippet small{display:block;font-size:11px;color:#81959e;margin-top:6px;line-height:1.7}
.workspace-polished .record-snippet>.button-row,.workspace-polished .record-snippet>div:last-child{margin-top:4px}
.workspace-polished .record-snippet .button.text{font-size:11px;color:#588c95}
.workspace-polished .explanation-grid{grid-template-columns:1fr;gap:0}
.workspace-polished .explanation-card{border:0;border-bottom:1px solid var(--workspace-line);background:transparent;padding:19px 0;border-radius:0;font-size:14px;line-height:1.95;color:#355566}
.workspace-polished .explanation-card:first-child{padding-top:0}
.workspace-polished .explanation-card:last-child{border-bottom:0;padding-bottom:4px}
.workspace-polished .explanation-card p{font-size:14px;line-height:1.95}
.workspace-polished .explanation-card .uncertainty{font-size:12px;line-height:1.85;color:#97794d;margin-top:10px}
.workspace-polished .basis-label{font-size:11px;color:#81959d}
.workspace-polished .ref-chip{padding:2px 3px;font-size:11px;background:transparent;color:#588a94;border-radius:3px;text-decoration:underline;text-decoration-color:#bfdbdf;text-underline-offset:3px}
.workspace-polished .answer-evidence,.workspace-polished .supporting-analysis,.workspace-polished .answer-process{padding-top:12px;border-color:#e7eef0}
.workspace-polished .answer-evidence>summary,.workspace-polished .supporting-analysis>summary,.workspace-polished .answer-process>summary{color:#6a8a96;font-size:12px;padding:3px 0;line-height:1.8}
.workspace-polished .knowledge-overview{background:#fff}
.workspace-polished .knowledge-stats{border-color:var(--workspace-line);font-size:12px;gap:16px 30px;padding:17px 0}
.workspace-polished .knowledge-stats strong{color:#377888;font-size:25px}
.workspace-polished .knowledge-entries{gap:0;grid-template-columns:1fr}
.workspace-polished .knowledge-entry{border:0;border-bottom:1px solid var(--workspace-line);border-radius:0;background:transparent;color:#3e6470}
.workspace-polished .knowledge-entry:last-child{border-bottom:0}
.workspace-polished .knowledge-entry>summary{font-size:13px;padding:15px 0;align-items:center;gap:12px}
.workspace-polished .knowledge-entry>summary:before{color:#7babb5}
.workspace-polished .knowledge-entry>summary>.tag{font-size:10px;max-width:140px;color:#82959e}
.workspace-polished .knowledge-entry-body{padding:1px 0 20px 26px;font-size:12px;line-height:1.9}
.workspace-polished .knowledge-source,.workspace-polished .knowledge-list,.workspace-polished .knowledge-method{font-size:11px;line-height:1.85}
.workspace-polished .knowledge-source a{color:#357e8b}
.workspace-polished .knowledge-overview.compact{border:1px solid var(--workspace-line);border-radius:9px;background:#f9fbfc;padding:12px 15px}
.workspace-polished .knowledge-overview.compact>summary{font-size:12px;color:#668490}
.workspace-polished .recovery-box{border-color:#eee1c3;background:#fffaf0;border-radius:11px;padding:20px;max-width:none}
.workspace-polished .recovery-box h3{font-size:15px;margin-bottom:10px}
.workspace-polished .recovery-box>p,.workspace-polished .recovery-box label,.workspace-polished .recovery-box .field-note{font-size:12px}

/* C2: clear examination values and a small, legible triage overview. */
.workspace-polished[data-workspace-page=C2] .summary-cards{gap:18px;margin:0 0 27px}
.workspace-polished[data-workspace-page=C2] .summary-card{border:0;border-radius:13px;background:#f2f8f7;padding:23px 25px;min-height:124px}
.workspace-polished[data-workspace-page=C2] .summary-card strong{font:500 38px/1.1 system-ui,sans-serif;color:#287c76;letter-spacing:-1.5px;margin-bottom:10px}
.workspace-polished[data-workspace-page=C2] .summary-card span{font-size:12px;line-height:1.6;color:#64817f}
.workspace-polished[data-workspace-page=C2] .summary-card .metric-icon{width:38px;height:38px;background:#e4f2ee;color:#348e83}
.workspace-polished[data-workspace-page=C2] .summary-card.abnormal{background:#fff7ed}
.workspace-polished[data-workspace-page=C2] .summary-card.abnormal strong{color:#b47a32}
.workspace-polished[data-workspace-page=C2] .summary-card.abnormal span{color:#9c825f}
.workspace-polished[data-workspace-page=C2] .summary-card.abnormal .metric-icon{background:#fff0d9;color:#bc8d4a}
.workspace-polished[data-workspace-page=C2] .summary-card.unknown{background:#f2f6fa}
.workspace-polished[data-workspace-page=C2] .summary-card.unknown strong{color:#68859d}
.workspace-polished[data-workspace-page=C2] .summary-card.unknown span{color:#7b91a3}
.workspace-polished[data-workspace-page=C2] .summary-card.unknown .metric-icon{background:#e8eff6;color:#88a0b3}
.workspace-polished .measure-table{font-size:12px;line-height:1.8}
.workspace-polished .measure-table th{padding:13px 10px;font-size:11px;color:#7f939e;background:#f7fafb;border-color:#e4ecef}
.workspace-polished .measure-table td{padding:19px 10px;color:#59737f;border-color:#edf2f4}
.workspace-polished .measure-table td:first-child{font-size:13px;color:#244e60;font-weight:500}
.workspace-polished .measure-table td:nth-child(2) strong{font-size:18px;font-weight:600;color:#224c5d;line-height:1.6;font-variant-numeric:tabular-nums}
.workspace-polished .measure-table .tag{font-size:11px;line-height:1.7}
.workspace-polished .measurement-flag{color:#8d9ba1;font-size:10px;margin-top:3px}
.workspace-polished .measurement-flag.conflict{color:#a66847;font-size:11px}
.workspace-polished .reference-value{font-size:12px;color:#486a79;margin-top:3px;line-height:1.8}
.workspace-polished .reference-kind{font-size:10px;color:#90a1a8}
.workspace-polished .reference-details>summary{font-size:10px;color:#7b939e;line-height:1.8;cursor:pointer}
.workspace-polished .source-button{font-size:11px;color:#5d8a95;line-height:1.8;padding:2px 0}

/* C3: the answer is the visual center; context opens on demand below it. */
.workspace-polished[data-workspace-page=C3] .chat-layout{max-width:1000px;margin:0 auto;gap:16px;grid-template-columns:minmax(0,1fr)}
.workspace-polished[data-workspace-page=C3] .chat-panel{padding:0;border-radius:17px;box-shadow:0 8px 28px #234f6206}
.workspace-polished[data-workspace-page=C3] .chat-header{background:#fbfdfe;padding:19px 26px;border-color:var(--workspace-line)}
.workspace-polished[data-workspace-page=C3] .chat-header .status-inline{font-size:12px;color:#5e8290}
.workspace-polished[data-workspace-page=C3] .chat-header select{padding:8px 12px;border:1px solid #e6edef;background:#fff;border-radius:7px;font-size:11px}
.workspace-polished[data-workspace-page=C3] .chat-messages{padding:31px 33px;min-height:380px;max-height:calc(100vh - 330px)}
.workspace-polished[data-workspace-page=C3] .message{gap:15px;margin-bottom:31px}
.workspace-polished[data-workspace-page=C3] .message-avatar{width:33px;height:33px;background:#eff7f8;color:#53858e;border-radius:11px}
.workspace-polished[data-workspace-page=C3] .message-avatar .healseek-mark{width:33px;height:33px;border-radius:11px}
.workspace-polished[data-workspace-page=C3] .message-body{font-size:14px;line-height:1.95;color:#355c6c;max-width:calc(100% - 48px)}
.workspace-polished[data-workspace-page=C3] .message.user .message-body{background:#edf6f7;border-radius:12px 3px 12px 12px;padding:15px 19px;max-width:80%;color:#2c5d6b}
.workspace-polished[data-workspace-page=C3] .message-meta{font-size:10px;color:#92a5ad;letter-spacing:.7px;margin-bottom:11px}
.workspace-polished[data-workspace-page=C3] .message .explanation-card{border:0;padding:0;margin-bottom:18px}
.workspace-polished[data-workspace-page=C3] .message .explanation-card p{font-size:15px;line-height:1.95}
.workspace-polished[data-workspace-page=C3] .chat-composer{padding:19px 25px 18px;background:#fbfdfe;border-color:var(--workspace-line)}
.workspace-polished[data-workspace-page=C3] .chat-composer textarea{border:0;padding:0;background:transparent;font-size:14px;min-height:74px;margin:0}
.workspace-polished[data-workspace-page=C3] .composer-footer{justify-content:flex-end}
.workspace-polished[data-workspace-page=C3] .composer-footer small{font-size:10px;color:#91a3ab;line-height:1.7}
.workspace-polished[data-workspace-page=C3] .chat-empty{padding:44px 18px 49px}
.workspace-polished[data-workspace-page=C3] .chat-empty .hero-cross{width:58px;height:58px;border-radius:18px;background:#eef8f7;margin-bottom:25px}
.workspace-polished[data-workspace-page=C3] .chat-empty h2{font-size:24px;color:#2b5869;font-weight:500}
.workspace-polished[data-workspace-page=C3] .chat-empty p{font-size:13px;line-height:1.9;color:#849ca6;max-width:490px}
.workspace-polished[data-workspace-page=C3] .prompt-suggestions{gap:10px;max-width:560px;margin:26px auto 0}
.workspace-polished[data-workspace-page=C3] .prompt-suggestions button{border:1px solid #e0edf0;background:#fff;font-size:12px;color:#5f8896;border-radius:9px;padding:14px 17px;line-height:1.8}
.workspace-polished[data-workspace-page=C3] .context-disclosure{border:0;border-top:1px solid var(--workspace-line);border-radius:0;padding:16px 4px;background:transparent}
.workspace-polished[data-workspace-page=C3] .context-disclosure>summary{color:#7d96a1;font-size:12px}
.workspace-polished[data-workspace-page=C3] .context-disclosure>.panel{padding:18px 0;border:0;border-radius:0;box-shadow:none;margin-bottom:0;background:transparent}
.workspace-polished[data-workspace-page=C3] .context-disclosure>.panel+.panel{border-top:1px solid var(--workspace-line)}
.workspace-polished[data-workspace-page=C3] .context-aside{display:block}
.workspace-polished[data-workspace-page=C3] .context-stat span,.workspace-polished[data-workspace-page=C3] .context-record small{font-size:11px}
.workspace-polished[data-workspace-page=C3] .context-record button{font-size:12px;color:#4c7a89;line-height:1.9}

/* C4: plans read as a sequence of actions instead of a stack of badges. */
.workspace-polished[data-workspace-page=C4] .two-column>div:first-child>.panel:first-child{background:linear-gradient(135deg,#f6fbfc,#fff 68%);border-color:#dfedef}
.workspace-polished[data-workspace-page=C4] #goal-text{min-height:140px;background:#fff}
.workspace-polished[data-workspace-page=C4] #goal-form>.button-row{margin-top:16px;gap:12px}
.workspace-polished[data-workspace-page=C4] #goal-form .muted{font-size:11px}
.workspace-polished[data-workspace-page=C4] .plan-card,.workspace-polished[data-workspace-page=C5] .plan-card{border:0;border-top:1px solid var(--workspace-line);border-radius:0;background:transparent;padding:23px 0 20px;margin:0;position:relative}
.workspace-polished[data-workspace-page=C4] .plan-card:first-of-type,.workspace-polished[data-workspace-page=C5] .plan-card:first-of-type{border-top:0;padding-top:0}
.workspace-polished .plan-card h3{font-size:15px;line-height:1.85;font-weight:500;color:#2e586b}
.workspace-polished .plan-card .tag-row{margin:0 0 10px}
.workspace-polished .plan-card .button-row{gap:15px;margin-top:17px}
.workspace-polished .plan-card .button.compact{padding:8px 13px;font-size:11px}
.workspace-polished .plan-feedback{font-size:12px;line-height:1.85;background:#f7fafb;border-left:2px solid #9fcbd1;border-radius:0 8px 8px 0;color:#60828d;padding:13px 15px;margin:16px 0}
.workspace-polished .plan-feedback p{font-size:13px;color:#456b7b;margin-top:5px;line-height:1.9}

/* C5: the latest change form and existing care records have separate emphasis. */
.workspace-polished[data-workspace-page=C5] .two-column{grid-template-columns:minmax(0,1fr) minmax(0,.95fr)}
.workspace-polished[data-workspace-page=C5] .two-column>div:last-child>.panel:first-child{border-top:3px solid #86bec8;background:#fcfefe}
.workspace-polished[data-workspace-page=C5] #recovery-form label{margin-bottom:16px}
.workspace-polished[data-workspace-page=C5] #recovery-source,.workspace-polished[data-workspace-page=C5] #recovery-time{margin-top:7px}
.workspace-polished[data-workspace-page=C5] #recovery-text{min-height:139px}
.workspace-polished[data-workspace-page=C5] #recovery-form>.button{width:100%;margin-top:5px}

/* C6: a continuous visit timeline, with dates separate from the narrative. */
.workspace-polished[data-workspace-page=C6] .two-column{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
.workspace-polished[data-workspace-page=C6] .two-column>div:first-child>.panel:first-child{background:linear-gradient(125deg,#f6fbfc,#fff 75%)}
.workspace-polished[data-workspace-page=C6] #visit-purpose{min-height:141px;margin-bottom:18px}
.workspace-polished[data-workspace-page=C6] .timeline-item{grid-template-columns:83px minmax(0,1fr);position:relative;padding:19px 0 19px 18px;margin-left:4px;border:0;border-left:1px solid #cfe2e7;gap:17px;font-size:14px;line-height:1.9;color:#436879}
.workspace-polished[data-workspace-page=C6] .timeline-item:before{content:'';position:absolute;left:-4px;top:29px;width:7px;height:7px;background:#70aab5;border:2px solid #fff;border-radius:50%;box-sizing:content-box;transform:translateX(-1px)}
.workspace-polished[data-workspace-page=C6] .timeline-item:first-of-type{padding-top:2px}
.workspace-polished[data-workspace-page=C6] .timeline-item:first-of-type:before{top:12px}
.workspace-polished[data-workspace-page=C6] .timeline-item:last-of-type{padding-bottom:3px}
.workspace-polished[data-workspace-page=C6] .timeline-item time{font-size:11px;color:#76929e;line-height:1.9;font-variant-numeric:tabular-nums;padding-top:2px}
.workspace-polished[data-workspace-page=C6] .timeline-item .button{font-size:11px;color:#759aa4}
.workspace-polished[data-workspace-page=C6] .two-column>div:last-child>.panel:last-child{background:#f6fafb;border:0}
.workspace-polished[data-workspace-page=C6] .two-column>div:last-child>.panel:last-child h3{font-size:16px}

/* Export controls stay outside the paper preview. */
.workspace-polished[data-workspace-page=exports] .export-toolbar{background:#f5f9fb;padding:18px;border-radius:12px;gap:12px 20px;border:1px solid #e4edf1;align-items:center;margin-bottom:19px}
.workspace-polished[data-workspace-page=exports] .segment{background:#e8f0f3;border-radius:8px;padding:3px}
.workspace-polished[data-workspace-page=exports] .segment button{font-size:11px;color:#7c969f;padding:10px 15px;border-radius:6px}
.workspace-polished[data-workspace-page=exports] .segment button.active{background:#fff;color:#337c86;box-shadow:0 2px 5px #20546f0b}
.workspace-polished[data-workspace-page=exports] .export-toolbar .button-row{gap:8px}
.workspace-polished[data-workspace-page=exports] .export-toolbar .button{font-size:11px;padding:9px 12px}
.workspace-polished[data-workspace-page=exports] .export-note{font-size:11px;line-height:1.8;color:#91a1aa;margin-bottom:19px}
.workspace-polished[data-workspace-page=exports] .report-page{border:1px solid #e2eaee;border-radius:5px;padding:46px 48px;box-shadow:0 10px 40px #274d6307;max-width:1050px}
.workspace-polished[data-workspace-page=exports] .report-page h1{color:#224b5e;font-size:26px}
.workspace-polished[data-workspace-page=exports] .report-page h2{color:#2a6273;font-size:17px;border-bottom:1px solid #e5eef1;padding-bottom:10px}
.workspace-polished[data-workspace-page=exports] .report-page p{font-size:13px;color:#486a7a;line-height:1.95}
.workspace-polished[data-workspace-page=exports] .report-page nav{gap:10px 23px;background:transparent}
.workspace-polished[data-workspace-page=exports] .report-page nav a{font-size:11px;color:#6c99a4}
.workspace-polished[data-workspace-page=exports] .report-page .report-meta{font-size:11px;color:#91a2aa;border-bottom:2px solid #79b3be}
.workspace-polished[data-workspace-page=exports] .report-page .report-state{background:transparent;border:0;border-radius:0;padding:0;margin-right:13px;color:#7b969f;font-size:11px}
.workspace-polished[data-workspace-page=exports] .report-page .report-item-meta,.workspace-polished[data-workspace-page=exports] .report-page .report-limitation{font-size:11px;color:#8a9da6;line-height:1.8}
.workspace-polished[data-workspace-page=exports] .report-page .source-details>summary{font-size:11px;color:#6e929e;cursor:pointer;line-height:1.9}
.workspace-polished[data-workspace-page=exports] .report-page .report-warning{font-size:12px;color:#986c3e;background:#fff8ee}

/* Plugin descriptions share the same spacing and typographic hierarchy. */
.workspace-polished[data-workspace-page=plugins] .plugin-grid{gap:20px}
.workspace-polished[data-workspace-page=plugins] .plugin-card{border:1px solid var(--workspace-line);border-radius:13px;padding:24px;background:#fff;box-shadow:none}
.workspace-polished[data-workspace-page=plugins] .plugin-card h3{font-size:16px;margin-top:17px}
.workspace-polished[data-workspace-page=plugins] .plugin-card p{font-size:12px;line-height:1.9;color:#7a929d}
.workspace-polished[data-workspace-page=plugins] .plugin-icon{background:#edf7f8;color:#6eacb8;border-radius:11px}
.workspace-polished[data-workspace-page=plugins] .section-title-row h2{font-size:19px;color:#234f60}

@media(max-width:1200px){
  .workspace-polished .page-heading h1{font-size:26px}
  .workspace-polished .panel{padding:23px}
  .workspace-polished .two-column{gap:20px}
  .workspace-polished .measure-table th,.workspace-polished .measure-table td{padding-left:8px;padding-right:8px}
}
@media(max-width:1000px){
  .workspace-polished .two-column,.workspace-polished[data-workspace-page=C5] .two-column,.workspace-polished[data-workspace-page=C6] .two-column{grid-template-columns:1fr}
  .workspace-polished[data-workspace-page=exports] .report-page{padding:32px}
}
@media(max-width:680px){
  .workspace-polished .page-heading{padding-bottom:20px;margin-bottom:22px;display:block}
  .workspace-polished .page-heading h1{font-size:25px;letter-spacing:-.5px}
  .workspace-polished .page-heading p{font-size:12px}
  .workspace-polished .page-heading>.button-row{margin-top:18px;justify-content:flex-start}
  .workspace-polished .page-heading .button{font-size:12px}
  .workspace-polished .panel{padding:20px 18px;border-radius:12px;margin-bottom:19px}
  .workspace-polished .panel-heading{gap:11px;margin-bottom:19px}
  .workspace-polished .panel-heading h2{font-size:17px}
  .workspace-polished .panel-heading p{font-size:11px}
  .workspace-polished .panel-heading>.tag{font-size:10px;max-width:95px}
  .workspace-polished .panel-heading>.button{font-size:10px;min-height:28px}
  .workspace-polished .empty-state{padding:26px 4px;min-height:155px}
  .workspace-polished .empty-state h3{font-size:14px}
  .workspace-polished .empty-state p{font-size:11px}
  .workspace-polished .explanation-card,.workspace-polished .explanation-card p{font-size:13px}
  .workspace-polished .record-snippet{font-size:13px}
  .workspace-polished .plan-card h3{font-size:14px}
  .workspace-polished[data-workspace-page=C2] .summary-cards{gap:9px;margin-bottom:22px}
  .workspace-polished[data-workspace-page=C2] .summary-card{padding:17px 12px;min-height:116px;border-radius:11px}
  .workspace-polished[data-workspace-page=C2] .summary-card strong{font-size:30px;margin-bottom:8px}
  .workspace-polished[data-workspace-page=C2] .summary-card span{font-size:10px;line-height:1.7;display:block}
  .workspace-polished[data-workspace-page=C2] .summary-card .metric-icon{display:none}
  .workspace-polished .measure-table{min-width:0}
  .workspace-polished .measure-table tr{padding:20px 0;gap:12px 18px;border-color:var(--workspace-line)}
  .workspace-polished .measure-table td{padding:0;border:0;font-size:12px}
  .workspace-polished .measure-table td:first-child{font-size:14px;grid-column:1/-1}
  .workspace-polished .measure-table td:before{font-size:10px;color:#93a5ac}
  .workspace-polished .measure-table td:nth-child(2) strong{font-size:21px}
  .workspace-polished .measure-table .table-date{font-size:11px}
  .workspace-polished .measure-table .reference-details{max-width:none}
  .workspace-polished .reference-value{font-size:12px}
  .workspace-polished[data-workspace-page=C3] .chat-header{padding:16px}
  .workspace-polished[data-workspace-page=C3] .chat-header .status-inline{font-size:11px}
  .workspace-polished[data-workspace-page=C3] .chat-header select{max-width:145px;font-size:10px;padding:7px}
  .workspace-polished[data-workspace-page=C3] .chat-messages{padding:25px 16px;min-height:350px;max-height:none}
  .workspace-polished[data-workspace-page=C3] .message{gap:10px;margin-bottom:28px}
  .workspace-polished[data-workspace-page=C3] .message-avatar,.workspace-polished[data-workspace-page=C3] .message-avatar .healseek-mark{width:28px;height:28px;border-radius:9px}
  .workspace-polished[data-workspace-page=C3] .message-body{max-width:calc(100% - 38px);font-size:13px}
  .workspace-polished[data-workspace-page=C3] .message .explanation-card p{font-size:14px}
  .workspace-polished[data-workspace-page=C3] .message.user .message-body{max-width:83%;padding:12px 15px}
  .workspace-polished[data-workspace-page=C3] .chat-composer{padding:18px 17px}
  .workspace-polished[data-workspace-page=C3] .chat-composer textarea{font-size:13px}
  .workspace-polished[data-workspace-page=C3] .composer-footer small{font-size:9px;max-width:210px}
  .workspace-polished[data-workspace-page=C3] .chat-empty{padding:37px 8px 35px}
  .workspace-polished[data-workspace-page=C3] .chat-empty h2{font-size:21px}
  .workspace-polished[data-workspace-page=C3] .chat-empty p{font-size:12px}
  .workspace-polished[data-workspace-page=C3] .context-disclosure{padding:14px 0}
  .workspace-polished[data-workspace-page=C6] .timeline-item{grid-template-columns:72px minmax(0,1fr);gap:12px;padding-left:15px;font-size:13px}
  .workspace-polished[data-workspace-page=C6] .timeline-item time{font-size:10px}
  .workspace-polished[data-workspace-page=exports] .export-toolbar{padding:13px;border-radius:11px;gap:13px}
  .workspace-polished[data-workspace-page=exports] .export-toolbar .button-row{gap:7px}
  .workspace-polished[data-workspace-page=exports] .export-toolbar .button{font-size:10px;padding:8px 11px;min-height:34px}
  .workspace-polished[data-workspace-page=exports] .segment button{font-size:10px;padding:9px 12px}
  .workspace-polished[data-workspace-page=exports] .report-page{padding:24px 20px}
  .workspace-polished[data-workspace-page=exports] .report-page h1{font-size:22px}
  .workspace-polished[data-workspace-page=exports] .report-page h2{font-size:16px}
  .workspace-polished[data-workspace-page=exports] .report-page p{font-size:12px}
  .workspace-polished[data-workspace-page=exports] .report-page nav{gap:10px 14px}
  .workspace-polished[data-workspace-page=plugins] .plugin-card{padding:20px}
}
@media print{
  .workspace-polished[data-workspace-page=exports] .report-page{box-shadow:none;border:0;padding:0;max-width:none}
}

/* C4: a visible goal → suggestion → action flow, separate from the care view. */
.workspace-polished[data-workspace-page=C4]{--workspace-accent:#3469a8;--workspace-ink:#203d58;--workspace-copy:#516b7e;--workspace-line:#e4ebf2}
.workspace-polished[data-workspace-page=C4] .c4-workspace{max-width:1240px;margin:0 auto}
.workspace-polished[data-workspace-page=C4] .c4-process{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;list-style:none;padding:0 0 26px;margin:0 0 25px;border-bottom:1px solid var(--workspace-line)}
.workspace-polished[data-workspace-page=C4] .c4-process li{display:flex;align-items:flex-start;gap:12px;min-width:0;position:relative}
.workspace-polished[data-workspace-page=C4] .c4-process li+li:before{content:'›';position:absolute;left:-18px;top:4px;font:25px/1 system-ui,sans-serif;color:#bdcdda}
.workspace-polished[data-workspace-page=C4] .c4-process-number{width:31px;height:31px;flex:none;display:grid;place-items:center;border-radius:50%;background:#eef4fa;color:#6383a2;font:500 13px/1 system-ui,sans-serif}
.workspace-polished[data-workspace-page=C4] .c4-process li:first-child .c4-process-number{background:#3469a8;color:#fff}
.workspace-polished[data-workspace-page=C4] .c4-process strong{display:block;color:#3d5c77;font-size:13px;line-height:1.5;font-weight:600}
.workspace-polished[data-workspace-page=C4] .c4-process p{margin:5px 0 0;color:#879aa9;font-size:11px;line-height:1.65}
.workspace-polished[data-workspace-page=C4] .c4-primary-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:24px;align-items:stretch;margin-bottom:26px}
.workspace-polished[data-workspace-page=C4] .c4-workspace .panel{margin:0;border-radius:15px;padding:27px;border-color:#e4ebf2;box-shadow:none;background:#fff;min-width:0}
.workspace-polished[data-workspace-page=C4] .c4-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:21px}
.workspace-polished[data-workspace-page=C4] .c4-panel-heading h2{font-size:18px;font-weight:600;line-height:1.55;letter-spacing:-.2px;color:#244660}
.workspace-polished[data-workspace-page=C4] .c4-panel-heading p{font-size:12px;line-height:1.8;color:#8195a5;margin-top:7px;max-width:610px}
.workspace-polished[data-workspace-page=C4] .c4-goal-panel{border-top:3px solid #79a0c6!important;background:linear-gradient(140deg,#f9fbff,#fff 64%)!important;padding-top:25px!important}
.workspace-polished[data-workspace-page=C4] .c4-goal-form label{font-size:12px;color:#648196}
.workspace-polished[data-workspace-page=C4] .c4-goal-form #goal-text{min-height:142px;margin-top:8px;border-radius:10px;border:1px solid #dfe8f0;background:#fff;font-size:13px;line-height:1.9;padding:13px 14px;resize:vertical}
.workspace-polished[data-workspace-page=C4] .c4-goal-form #goal-text::placeholder{color:#99aabd}
.workspace-polished[data-workspace-page=C4] .c4-goal-form #goal-text:focus{outline:2px solid #a8c4e144;outline-offset:2px;border-color:#83a6c9}
.workspace-polished[data-workspace-page=C4] .c4-goal-form #goal-form>.button-row{margin:16px 0 0;gap:12px}
.workspace-polished[data-workspace-page=C4] .c4-goal-form .button[type=submit]{padding:11px 19px;min-height:41px;border-radius:9px;font-size:12px}
.workspace-polished[data-workspace-page=C4] .c4-previous-goals{border-top:1px solid #e7eef4;margin-top:22px;padding-top:16px}
.workspace-polished[data-workspace-page=C4] .c4-previous-goals>summary{list-style:none;font-size:11px;line-height:1.7;color:#7790a5;cursor:pointer;display:flex;align-items:center;gap:8px}
.workspace-polished[data-workspace-page=C4] .c4-previous-goals>summary::-webkit-details-marker{display:none}
.workspace-polished[data-workspace-page=C4] .c4-previous-goals>summary:before{content:'›';display:inline-block;font-size:17px;color:#8ba8bf;transform:rotate(0deg);width:9px}
.workspace-polished[data-workspace-page=C4] .c4-previous-goals[open]>summary:before{transform:rotate(90deg)}
.workspace-polished[data-workspace-page=C4] .c4-previous-goals>summary>span{margin-left:auto;font-size:11px;color:#8ca2b4}
.workspace-polished[data-workspace-page=C4] .c4-previous-goals>div{padding-top:18px}
.workspace-polished[data-workspace-page=C4] .c4-previous-goals .record-snippet{font-size:12px;padding:12px 0}
.workspace-polished[data-workspace-page=C4] .c4-previous-goals .record-snippet p{line-height:1.9}
.workspace-polished[data-workspace-page=C4] .c4-archive-action{padding-top:1px;flex:none;max-width:170px}
.workspace-polished[data-workspace-page=C4] .c4-archive-action .button{font-size:10px;line-height:1.7;color:#7896af;background:transparent;border:0;padding:1px 0;min-height:27px;text-align:right;display:block}
.workspace-polished[data-workspace-page=C4] .c4-archive-action .button:hover{color:#3469a8;text-decoration:underline;text-underline-offset:4px}
.workspace-polished[data-workspace-page=C4] .c4-advice-body{max-height:412px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#cad9e6 transparent;padding-right:5px;outline:none;overflow-wrap:anywhere}
.workspace-polished[data-workspace-page=C4] .c4-advice-body:focus-visible{outline:2px solid #a8c4e166;outline-offset:7px;border-radius:3px}
.workspace-polished[data-workspace-page=C4] .c4-advice-body>.empty-state{min-height:231px;padding:37px 7px;align-items:center;max-width:385px;margin:0 auto}
.workspace-polished[data-workspace-page=C4] .c4-advice-body .empty-icon{background:#f1f6fc;color:#86a6c6;border-radius:13px;width:43px;height:43px}
.workspace-polished[data-workspace-page=C4] .c4-advice-body .empty-state h3{font-size:14px;color:#718aa0;line-height:1.7}
.workspace-polished[data-workspace-page=C4] .c4-advice-body .empty-state p{font-size:12px;line-height:1.9;color:#94a6b5}
.workspace-polished[data-workspace-page=C4] .c4-advice-body .explanation-card{font-size:13px;line-height:1.95;border-color:#e9eff5;padding:17px 0;color:#46647c}
.workspace-polished[data-workspace-page=C4] .c4-advice-body .explanation-card:first-child{padding-top:0}
.workspace-polished[data-workspace-page=C4] .c4-advice-body .explanation-card p{font-size:13px;line-height:1.95;color:#46647c}
.workspace-polished[data-workspace-page=C4] .c4-advice-body .notice{font-size:12px;line-height:1.9;margin-bottom:15px}
.workspace-polished[data-workspace-page=C4] .c4-actions-panel>.c4-panel-heading{align-items:flex-start;margin-bottom:18px;padding-bottom:19px;border-bottom:1px solid #e9eff5}
.workspace-polished[data-workspace-page=C4] .c4-actions-panel .c4-panel-heading .c4-plan-summary{margin-top:6px;flex:none;white-space:nowrap;color:#829bad;font-size:11px}
.workspace-polished[data-workspace-page=C4] .c4-plan-list{counter-reset:c4-actions}
.workspace-polished[data-workspace-page=C4] .c4-plan-list>.plan-card{counter-increment:c4-actions;padding:22px 0 22px 55px;border:0;border-top:1px solid #edf2f6;border-radius:0;margin:0;background:transparent}
.workspace-polished[data-workspace-page=C4] .c4-plan-list>.plan-card:first-of-type{padding-top:5px;border-top:0}
.workspace-polished[data-workspace-page=C4] .c4-plan-list>.plan-card:last-of-type{padding-bottom:1px}
.workspace-polished[data-workspace-page=C4] .c4-plan-list>.plan-card:before{content:counter(c4-actions,decimal-leading-zero);position:absolute;left:0;top:22px;display:grid;place-items:center;width:33px;height:33px;background:#f0f5fb;color:#83a1bb;border-radius:9px;font:500 11px/1 system-ui,sans-serif}
.workspace-polished[data-workspace-page=C4] .c4-plan-list>.plan-card:first-of-type:before{top:5px}
.workspace-polished[data-workspace-page=C4] .c4-plan-list>.plan-card:has(.tag.teal):before{background:#eaf3fc;color:#4b80b6}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card h3{font-size:14px;line-height:1.9;color:#3f607c;font-weight:500;max-width:940px}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .tag-row{margin:0 0 7px;gap:10px}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .tag{font-size:10px;line-height:1.7;color:#8ba0b0}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .tag.teal{color:#517eab}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .tag.amber{color:#ae925f}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .tag-row .tag+.tag{border-color:#e2eaf1;padding-left:10px}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .button-row{gap:10px;margin-top:16px;align-items:center}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .button{min-height:33px;font-size:11px;line-height:1.7;padding:7px 12px}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card [data-adopt]{background:#edf4fc;color:#426f9e;border-color:#edf4fc}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card [data-feedback]{background:#fff;color:#69879e;border:1px solid #e2eaf1}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card [data-followup]{margin-left:auto;padding-right:0;color:#819aaf}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .plan-feedback{background:#f7faff;border-left-color:#adcae5;color:#7892aa;font-size:11px;margin:14px 0}
.workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .plan-feedback p{font-size:12px;color:#5d7890}
.workspace-polished[data-workspace-page=C4] .c4-plan-list>.empty-state{min-height:130px;padding:22px 12px}
@media(max-width:1100px){
  .workspace-polished[data-workspace-page=C4] .c4-primary-grid{gap:20px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .workspace-polished[data-workspace-page=C4] .c4-workspace .panel{padding:24px}
  .workspace-polished[data-workspace-page=C4] .c4-panel-heading{gap:10px}
  .workspace-polished[data-workspace-page=C4] .c4-panel-heading h2{font-size:17px}
  .workspace-polished[data-workspace-page=C4] .c4-archive-action{max-width:115px}
}
@media(max-width:880px){
  .workspace-polished[data-workspace-page=C4] .c4-primary-grid{grid-template-columns:1fr;gap:19px;margin-bottom:19px}
  .workspace-polished[data-workspace-page=C4] .c4-advice-body{max-height:none;padding-right:0}
  .workspace-polished[data-workspace-page=C4] .c4-advice-body>.empty-state{min-height:160px;padding:25px 3px}
  .workspace-polished[data-workspace-page=C4] .c4-process{gap:19px}
  .workspace-polished[data-workspace-page=C4] .c4-process p{display:none}
  .workspace-polished[data-workspace-page=C4] .c4-process strong{font-size:12px;line-height:31px}
  .workspace-polished[data-workspace-page=C4] .c4-process li+li:before{left:-15px}
}
@media(max-width:540px){
  .workspace-polished[data-workspace-page=C4] .c4-process{gap:17px;margin-bottom:20px;padding-bottom:21px}
  .workspace-polished[data-workspace-page=C4] .c4-process li{gap:7px}
  .workspace-polished[data-workspace-page=C4] .c4-process-number{width:23px;height:23px;font-size:10px}
  .workspace-polished[data-workspace-page=C4] .c4-process strong{font-size:11px;line-height:23px}
  .workspace-polished[data-workspace-page=C4] .c4-process li+li:before{font-size:20px;top:0;left:-13px}
  .workspace-polished[data-workspace-page=C4] .c4-workspace .panel{padding:22px 18px;border-radius:13px}
  .workspace-polished[data-workspace-page=C4] .c4-panel-heading{gap:9px;margin-bottom:19px}
  .workspace-polished[data-workspace-page=C4] .c4-panel-heading h2{font-size:16px}
  .workspace-polished[data-workspace-page=C4] .c4-panel-heading p{font-size:11px;line-height:1.8;margin-top:7px}
  .workspace-polished[data-workspace-page=C4] .c4-goal-form #goal-text{min-height:130px;font-size:13px}
  .workspace-polished[data-workspace-page=C4] .c4-goal-form .button[type=submit]{width:100%;min-height:42px;font-size:12px}
  .workspace-polished[data-workspace-page=C4] .c4-previous-goals{margin-top:20px;padding-top:15px}
  .workspace-polished[data-workspace-page=C4] .c4-archive-action{max-width:110px}
  .workspace-polished[data-workspace-page=C4] .c4-archive-action .button{font-size:9px;line-height:1.8}
  .workspace-polished[data-workspace-page=C4] .c4-actions-panel>.c4-panel-heading{display:block;padding-bottom:17px;margin-bottom:17px}
  .workspace-polished[data-workspace-page=C4] .c4-actions-panel .c4-panel-heading .c4-plan-summary{font-size:10px;margin-top:12px}
  .workspace-polished[data-workspace-page=C4] .c4-plan-list>.plan-card{padding:22px 0 22px 39px}
  .workspace-polished[data-workspace-page=C4] .c4-plan-list>.plan-card:before{width:26px;height:26px;font-size:10px;border-radius:7px}
  .workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card h3{font-size:13px;line-height:1.95}
  .workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .button-row{gap:9px;flex-wrap:wrap;margin-top:14px}
  .workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card .button{font-size:10px;padding:7px 10px}
  .workspace-polished[data-workspace-page=C4] .c4-plan-list .plan-card [data-followup]{margin-left:0;padding-left:0;flex-basis:100%;text-align:left;justify-content:flex-start}
}
