/* A concept: navy navigation, blue actions, analytical dashboard.
   Screen only: reports, court forms and print pagination keep their own styles. */
@media screen{
 body.workspace-theme{--ws-paper:#f3f6fb;--ws-card:#fff;--ws-ink:#17243b;--ws-muted:#64748b;--ws-border:#dce3ed;--ws-accent:#2459d3;--ws-tint:#edf3ff;--ws-nav-height:62px;background:var(--ws-paper);color:var(--ws-ink);font-family:system-ui,'Malgun Gothic',sans-serif;font-variant-numeric:tabular-nums}
 .workspace-theme>header{background:#fff;color:var(--ws-ink);padding:20px max(24px,calc((100vw - 1280px)/2));gap:22px;border-bottom:1px solid var(--ws-border)}
 .workspace-theme>header small{font-size:10px;letter-spacing:2px;color:var(--ws-accent)}
 .workspace-theme>header h1{font-size:24px;letter-spacing:-.9px;margin:6px 0 0;line-height:1.4}
 .workspace-theme .header-actions{gap:12px}
 .workspace-theme a{color:#2459d3}
 .workspace-theme button{border-radius:8px;min-height:42px;background:var(--ws-accent);border:1px solid transparent;color:#fff;box-shadow:none}
 .workspace-theme button:hover:not(:disabled){filter:brightness(.94)}
 .workspace-theme :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--ws-accent);outline-offset:3px}
 .workspace-theme .header-actions button{background:transparent;border:1px solid transparent;filter:none}
 .workspace-theme button:disabled{opacity:.5;cursor:default}
 .workspace-theme :is(input,select,textarea){color:var(--ws-ink);border-color:#c7d2e3;border-radius:7px;background:#fff}
 .workspace-theme :is(input,select){min-height:42px}
 .workspace-theme :is(.muted,.source,.fact label){color:var(--ws-muted)}
 .workspace-theme h2{font-size:19px;letter-spacing:-.5px}
 .workspace-theme h3{font-size:16px}
 .workspace-theme.dashboard-layout main{display:block;max-width:1280px;padding:0 24px;margin:0 auto}
 .workspace-theme .workspace-content{padding-top:22px}
 .workspace-theme .section-nav{display:flex;flex-direction:row;align-items:center;justify-content:space-between;position:sticky;top:0;left:auto;z-index:35;width:auto;max-height:none;overflow:visible;padding:10px 0;margin:0;background:var(--ws-paper);border-bottom:1px solid var(--ws-border);border-radius:0;gap:12px;backdrop-filter:none}
 .workspace-theme .workspace-nav-primary{display:flex;align-items:center;gap:4px;min-width:0;flex-wrap:wrap}
 .workspace-theme .section-nav a{display:flex;flex-direction:row;align-items:center;gap:8px;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--ws-muted);font-size:13px;line-height:1.4;min-height:42px;padding:10px 13px;white-space:nowrap;text-decoration:none;text-align:left}
 .workspace-theme .section-nav a svg{display:none}
 .workspace-theme .section-nav a[aria-current=location]{background:transparent;color:var(--ws-accent);box-shadow:inset 0 -2px var(--ws-accent);font-weight:700}
 .workspace-theme .section-nav a:hover{background:var(--ws-tint);color:var(--ws-ink)}
 .workspace-theme .workspace-more-trigger{background:#fff;border:1px solid var(--ws-border);color:var(--ws-ink);font-size:12px;min-width:75px;flex-shrink:0}
 .workspace-theme .workspace-more-trigger[data-active=true]{background:var(--ws-tint);color:var(--ws-accent);border-color:#9db6ed}
 .workspace-theme #workspaceMore{width:min(590px,calc(100vw - 28px));max-height:85dvh;padding:22px;border-radius:13px;border:1px solid var(--ws-border);background:#fff;color:var(--ws-ink)}
 .workspace-theme #workspaceMore::backdrop{background:#17243b77}
 .workspace-theme .workspace-more-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}
 .workspace-theme .workspace-more-links a{border:1px solid var(--ws-border);border-radius:8px;white-space:normal;min-height:48px;color:var(--ws-ink);background:#f7f9fd;box-shadow:none}
 .workspace-theme .workspace-more-links a svg{display:block;width:18px;height:18px;flex-shrink:0;color:var(--ws-accent)}
 .workspace-theme .section-nav .workspace-more-links a[hidden]{display:none!important}
 .workspace-theme #workspaceMore .preferences-heading{margin:0}
 .workspace-theme #workspaceMore .preferences-heading button{background:#f1f5fb;border-color:var(--ws-border);color:var(--ws-ink)}
 .workspace-theme .workspace-content section{border-color:var(--ws-border);border-radius:10px;box-shadow:none}
 .workspace-theme :is(#filePanel,#priceInputs,#propertyOverview,#taxSection,#rightsSection,#factsSection,#bidComparisonPanel,#tradingJournal,#resultSummary){scroll-margin-top:calc(var(--section-nav-height,62px) + 16px)}
 .workspace-theme .upload{padding:20px 22px;margin-bottom:20px;border-color:var(--ws-border)}
 .workspace-theme #drop{background:#f7faff;border:1px dashed #a9bad5;border-radius:8px;padding:12px 15px}
 .workspace-theme .saved-list{background:#f6f9fe;border-color:var(--ws-border)}
 .workspace-theme .saved-history{background:#f3f6fc;border-color:var(--ws-border)}
 .workspace-theme #analysisActions :is(#changeStatus,#manageSaved){background:#fff;color:var(--ws-ink);border-color:var(--ws-border)}
 .workspace-theme :is(.status-change-button,.analysis-status-tag){background:var(--ws-tint);border-color:#b5c8f0;color:#2459b3}
 .workspace-theme .danger-button{background:#fff6f5;color:#a12e25;border-color:#e2bdb9}
 .workspace-theme :is(.detail-shortcut,details>summary){background:#edf3fd;color:#284c86;border-color:#c5d5ef}
 .workspace-theme .condition-shortcuts{gap:10px}
 .workspace-theme .sale-basis-buttons button{background:#fff;color:#284c86;border:1px solid #c5d5ef}
 .workspace-theme .sale-basis-buttons button[aria-pressed=true]{background:var(--ws-accent);border-color:var(--ws-accent);color:#fff}
 .workspace-theme :is(#bidSection #bid,#sale,#target){background:#fffbef!important;color:var(--ws-ink)!important;border:1px solid #b99a59!important;box-shadow:none;font-size:26px!important;letter-spacing:-.6px;border-radius:8px!important}
 .workspace-theme .overview-facts b{color:var(--ws-ink)}
 .workspace-theme .property-top-row{grid-template-columns:minmax(0,.85fr) minmax(0,1.6fr);gap:18px}
 .workspace-theme #propertyPhotos{background:#fff;padding:14px;border:1px solid var(--ws-border)}
 .workspace-theme #photos{gap:10px}
 .workspace-theme #photos img{max-height:155px;object-fit:cover;border-radius:7px}
 .workspace-theme #propertyOverview{padding:20px 23px;border-top:2px solid #2459d3}
 .workspace-theme #workspaceMetrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--ws-border);border-radius:10px;padding:0;margin:0 0 19px;overflow:hidden}
 .workspace-theme #workspaceMetrics #profitSummary{display:contents}
 .workspace-theme #workspaceMetrics :is(.workspace-price-card,.profit-card){background:#fff;color:var(--ws-ink);border:0;border-right:1px solid var(--ws-border);border-radius:0;margin:0;padding:17px 19px;box-shadow:none;min-width:0}
 .workspace-theme #workspaceMetrics .profit-card:last-child{border-right:0;background:#edf3ff}
 .workspace-theme #workspaceMetrics :is(.workspace-price-card>span,.profit-card>span){display:block;font-size:12px;color:var(--ws-muted)}
 .workspace-theme #workspaceMetrics strong{display:block;font-size:23px;line-height:1.4;letter-spacing:-.7px;margin:9px 0;overflow-wrap:anywhere;color:var(--ws-ink)}
 .workspace-theme #workspaceMetrics small{display:block;font-size:11px;line-height:1.6;color:var(--ws-muted)}
 .workspace-theme #workspaceMetrics .green{background:transparent;color:#276148;border:0;padding:0;margin:6px 0;font-size:11px}
 .workspace-theme #workspaceMetrics .yellow{padding:6px;margin:6px 0;background:#fff3cb;color:#7c590e;font-size:11px}
 .workspace-theme .analysis-dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
 .workspace-theme .analysis-dashboard>section{padding:23px;background:#fff}
 .workspace-theme #cashFlowPanel{background:#f7f9fd;border-color:var(--ws-border)}
 .workspace-theme #cashSummary .maximum{background:#edf3ff;color:var(--ws-ink);border-color:var(--ws-border)}
 .workspace-theme :is(th,.fact,.preferences-account){background:#f7f9fd;border-color:var(--ws-border)}
 .workspace-theme :is(td,.fact){border-color:var(--ws-border)}
 .workspace-theme .preference-important{background:#fff8df!important;border-color:#c39c40!important}
 .workspace-theme .preference-required{background:#f3e0a6;color:#674d18}
 .workspace-theme dialog:not(.auction-report){color:var(--ws-ink);border-color:var(--ws-border);border-radius:12px}
 .workspace-theme :is(.bid-preview-scroll,#reportPreview,#jrContent){background:#fff}
 .workspace-theme .save-status-option{background:#f4f7fc}
 .workspace-theme .data-entry{border-color:var(--ws-border)}
 .workspace-theme .analysis-save-state{color:#4d6080}
 .workspace-theme .analysis-save-state[data-state=dirty]{color:#865600}
 .workspace-theme :is(.data-cloud-badge,.data-cloud-badge.cloud-synced){background:#edf3ff;color:#2459b3;border-color:#b5c8f0}
 .workspace-theme :is(#driveDialog,#fieldVisits) :is(.notice,.green){border-color:#b5c8f0}
 .workspace-theme .workspace-bottom-nav,.workspace-theme .workspace-mobilebar{display:none}
 @media(max-width:1000px) and (min-width:701px){
  .workspace-theme>header{padding:16px 24px}.workspace-theme>header h1{font-size:21px}
  .workspace-theme .section-nav a{font-size:12px;padding:10px}
  .workspace-theme #workspaceMetrics strong{font-size:20px}
  .workspace-theme .analysis-dashboard{grid-template-columns:1fr}
 }
 @media(max-width:700px){
  .workspace-theme>header{padding:16px;gap:12px;align-items:center;flex-wrap:wrap}
  .workspace-theme>header h1{font-size:20px;line-height:1.45;margin-top:5px;letter-spacing:-.6px}
  .workspace-theme>header small{font-size:9px}
  .workspace-theme .header-actions{gap:10px;margin:0;justify-content:flex-start}
  .workspace-theme .header-icon-button{min-width:36px;min-height:36px;width:36px;height:36px;padding:4px}
  .workspace-theme.dashboard-layout main{padding:0 12px;margin:0 auto;max-width:100%}
  .workspace-theme .workspace-content{padding-top:15px}
  .workspace-theme .section-nav{position:static;display:block;height:0;min-height:0;padding:0;margin:0;border:0;overflow:visible;z-index:auto}
  .workspace-theme :is(.workspace-nav-primary,.workspace-more-trigger){display:none}
  .workspace-theme .workspace-more-links{grid-template-columns:1fr 1fr;gap:9px}
  .workspace-theme .section-nav .workspace-more-links a{font-size:13px;gap:8px;padding:11px 10px;min-height:48px;text-align:left;justify-content:flex-start}
  .workspace-theme #workspaceMore{padding:18px}
  .workspace-theme #workspaceMore h2{font-size:19px}
  .workspace-theme :is(#filePanel,#priceInputs,#propertyOverview,#taxSection,#rightsSection,#factsSection,#bidComparisonPanel,#tradingJournal,#resultSummary){scroll-margin-top:16px}
  .workspace-theme .upload{padding:16px;margin-bottom:16px}
  .workspace-theme .upload h2{font-size:16px}
  .workspace-theme .saved-list{padding:12px}
  .workspace-theme .saved-select-row{gap:8px}
  .workspace-theme .saved-select-row select{font-size:13px}
  .workspace-theme .property-top-row{grid-template-columns:1fr;gap:12px}
  .workspace-theme #photos img{max-height:145px}
  .workspace-theme #propertyOverview{padding:18px}
  .workspace-theme #workspaceMetrics{grid-template-columns:1fr 1fr;gap:0;margin-bottom:14px}
  .workspace-theme #workspaceMetrics :is(.workspace-price-card,.profit-card){padding:13px;min-height:110px;border-right:1px solid var(--ws-border);border-bottom:1px solid var(--ws-border)}
  .workspace-theme #workspaceMetrics .workspace-price-card:nth-child(2){border-right:0}
  .workspace-theme #workspaceMetrics .profit-card{border-bottom:0}
  .workspace-theme #workspaceMetrics strong{font-size:20px;letter-spacing:-.5px;margin:7px 0}
  .workspace-theme #workspaceMetrics :is(small,.profit-card .green,.profit-card .yellow){font-size:10px}
  .workspace-theme .analysis-dashboard{display:block}
  .workspace-theme .analysis-dashboard>section{padding:18px;margin-bottom:15px}
  .workspace-theme :is(#bidSection #bid,#sale,#target){font-size:24px!important;min-height:48px}
  .workspace-theme .workspace-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:50;background:#fff;border-top:1px solid var(--ws-border);padding:3px 8px calc(3px + env(safe-area-inset-bottom));height:calc(65px + env(safe-area-inset-bottom));box-shadow:0 -2px 18px #17243b08}
  .workspace-theme .workspace-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;color:var(--ws-muted);border:0;min-width:0;min-height:52px;font-size:11px;padding:5px;border-radius:0}
  .workspace-theme .workspace-bottom-nav button[aria-current=location]{color:var(--ws-accent);font-weight:700}
  .workspace-theme .workspace-bottom-nav svg{width:20px;height:20px;flex-shrink:0}
  .workspace-theme .workspace-mobilebar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 12px;background:#fff;position:fixed;left:0;right:0;bottom:calc(65px + env(safe-area-inset-bottom));border-top:1px solid var(--ws-border);z-index:49;box-shadow:0 -3px 15px #17243b08}
  .workspace-theme .workspace-mobilebar small{display:block;font-size:9px;color:var(--ws-muted);line-height:1.5}
  .workspace-theme .workspace-mobilebar strong{display:block;color:var(--ws-accent);font-size:15px;line-height:1.4;overflow-wrap:anywhere;letter-spacing:-.5px}
  .workspace-theme .workspace-mobilebar button{min-height:44px;font-size:12px;padding:8px 12px;white-space:nowrap}
  .workspace-theme>main{padding-bottom:90px!important}
  .workspace-theme.workspace-has-profitbar>main{padding-bottom:165px!important}
  .workspace-theme :is(input,select,textarea){scroll-margin-bottom:160px}
  .workspace-theme.workspace-keyboard .workspace-mobilebar,.workspace-theme.workspace-keyboard .workspace-bottom-nav{display:none}
  .workspace-theme #analysisActions{grid-template-columns:repeat(3,minmax(0,1fr));display:grid;gap:8px;align-items:stretch}
  .workspace-theme #analysisActions>button,.workspace-theme #quickSyncStatus{min-height:44px;min-width:0;white-space:normal;font-size:12px;padding:8px 4px;margin:0;display:flex;align-items:center;justify-content:center;text-align:center}
  .workspace-theme #save{grid-column:1;grid-row:1}.workspace-theme #changeStatus{grid-column:2;grid-row:1}.workspace-theme #manageSaved{grid-column:3;grid-row:1}
  .workspace-theme #quickSync{grid-column:1;grid-row:2}.workspace-theme #quickSyncStatus{grid-column:2;grid-row:2}.workspace-theme #deleteAnalysis{grid-column:3;grid-row:2}
 }
 .workspace-theme [hidden]{display:none!important}
 @media(prefers-reduced-motion:reduce){.workspace-theme *{scroll-behavior:auto!important;transition:none!important}}
 /* A: full functional sidebar on PC; the compact four-tab navigation stays mobile-only. */
 @media(min-width:701px){
  .workspace-theme>header{padding:18px max(24px,calc((100vw - 1440px)/2))}
  .workspace-theme.dashboard-layout main{display:grid;grid-template-columns:196px minmax(0,1fr);gap:24px;max-width:1488px;align-items:start}
  .workspace-theme .workspace-content{min-width:0;padding-top:22px}
  .workspace-theme .section-nav{position:sticky;top:16px;display:block;align-self:start;height:auto;max-height:calc(100dvh - 32px);overflow:auto;width:100%;padding:12px;margin:16px 0;background:#12223e;border:0;border-radius:12px;scrollbar-width:thin;scrollbar-color:#536784 #12223e}
  .workspace-theme .workspace-nav-primary{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:100%}
  .workspace-theme .section-nav .workspace-nav-primary a{display:flex;justify-content:flex-start;gap:11px;padding:8px 12px;color:#c7d1e1;font-size:13px;min-height:44px;border-radius:8px;white-space:normal}
  .workspace-theme .section-nav .workspace-nav-primary a svg{display:block;width:18px;height:18px;flex-shrink:0}
  .workspace-theme .section-nav .workspace-nav-primary a:hover{background:#1b3153;color:#fff}
  .workspace-theme .section-nav .workspace-nav-primary a[aria-current=location]{background:#263e61;color:#fff;box-shadow:none;font-weight:700}
  .workspace-theme .section-nav .workspace-nav-primary a:focus-visible{outline-color:#a7c6ff;outline-offset:0}
  .workspace-theme .workspace-more-trigger{display:none}
  .workspace-theme :is(#filePanel,#priceInputs,#propertyOverview,#taxSection,#rightsSection,#factsSection,#bidComparisonPanel,#tradingJournal,#resultSummary){scroll-margin-top:20px}
 }
 .workspace-theme .workspace-content section{border-radius:14px}
 .workspace-theme #workspaceMetrics{gap:12px;background:transparent;border:0;border-radius:0;overflow:visible}
 .workspace-theme #workspaceMetrics :is(.workspace-price-card,.profit-card){border:1px solid var(--ws-border);border-radius:12px;padding:16px;box-shadow:0 5px 20px #17243b04}
 .workspace-theme #workspaceMetrics .profit-card,.workspace-theme #workspaceMetrics .profit-card:last-child{background:#2459d3;color:#fff}
 .workspace-theme #workspaceMetrics .profit-card :is(strong,span,small){color:#fff}
 .workspace-theme #workspaceMetrics .profit-card>small{color:#e4edff}
 .workspace-theme #workspaceMetrics .profit-card .green{background:#163d9f;color:#fff;padding:6px;border-radius:5px}
 .workspace-theme #workspaceMetrics .profit-card .yellow{background:#fff3cb;color:#745008}
 .workspace-theme #propertyOverview{border-top:1px solid var(--ws-border)}
 .workspace-theme #cashSummary .maximum{background:#edf3ff}
 @media(min-width:701px) and (max-width:1100px){
  .workspace-theme.dashboard-layout main{grid-template-columns:160px minmax(0,1fr);gap:16px;padding:0 16px}
  .workspace-theme .section-nav{padding:12px 8px}
  .workspace-theme .section-nav .workspace-nav-primary a{padding:8px 9px;font-size:12px;gap:8px}
  .workspace-theme .property-top-row{grid-template-columns:1fr}
  .workspace-theme #photos img{max-height:130px}
  .workspace-theme .analysis-dashboard{grid-template-columns:1fr}
  .workspace-theme #workspaceMetrics{grid-template-columns:1fr 1fr}
 }
 @media(max-width:700px){
  .workspace-theme #workspaceMetrics{gap:9px}
  .workspace-theme #workspaceMetrics :is(.workspace-price-card,.profit-card){border:1px solid var(--ws-border);padding:13px;border-radius:11px}
  .workspace-theme #workspaceMetrics .workspace-price-card:nth-child(2){border-right:1px solid var(--ws-border)}
  .workspace-theme #workspaceMetrics .profit-card{border-bottom:1px solid var(--ws-border)}
 }

 /* Save feedback is separate from action controls and import progress. */
 .workspace-theme #analysisMeta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:14px;min-width:0}
 .workspace-theme #analysisMeta:not(:has(>:not([hidden]))){display:none}
 .workspace-theme #analysisMeta #analysisSaveState{margin:0;padding:0;font-size:13px;line-height:1.6}
 .workspace-theme #analysisMeta #currentAnalysisStatus{display:inline-flex;align-items:center;margin:0;padding:4px 10px;font-size:12px;line-height:1.6;border-radius:6px}
 .workspace-theme #analysisMeta #originalPdf{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 12px;margin:0;border:1px solid #c5d5ef;border-radius:7px;background:#f7faff;color:#2459b3;text-decoration:none;font-size:13px;line-height:1.6;overflow-wrap:anywhere;max-width:100%}
 .workspace-theme #analysisMeta #originalPdf:hover{background:#edf3ff;text-decoration:underline}
 .workspace-theme .upload #parseStatus{margin:10px 0 0;padding-top:10px;border-top:1px solid var(--ws-border);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
 .workspace-theme .upload #parseStatus:empty{display:none}
 @media(max-width:700px){
  .workspace-theme #analysisMeta{gap:8px 10px;margin-top:12px}
  .workspace-theme #analysisMeta #analysisSaveState{font-size:12px;flex:1 1 100%}
  .workspace-theme #analysisMeta #originalPdf{font-size:12px}
 }

}
@media print{.workspace-bottom-nav,.workspace-mobilebar,#workspaceMore,#serviceIntroBanner,.workspace-service-footer,.workspace-service-links{display:none!important}}
@media screen{
 .workspace-theme .workspace-service-links{display:flex;flex-direction:column;gap:2px;margin-top:22px;padding-top:14px;border-top:1px solid #3d5376}
 .workspace-theme .section-nav .workspace-service-links a{color:#c7d1e1;font-size:12px;min-height:40px;padding:8px 12px;white-space:normal;border-radius:6px}
 .workspace-theme #workspaceMore .workspace-service-links{flex-direction:row;flex-wrap:wrap;border-color:#dce3ed;gap:8px}
 .workspace-theme #workspaceMore .workspace-service-links a{color:#2459b3;font-size:13px;min-height:44px;padding:8px 10px;border-radius:7px}
 .workspace-theme .workspace-service-footer{display:flex;gap:18px;flex-wrap:wrap;padding:26px 0 36px;font-size:12px;color:#526780}
 .workspace-theme #memberPanel{margin-top:20px;border-top:1px solid #dce3ed;padding-top:18px}
 .workspace-theme #memberDetails{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 14px;margin:16px 0;font-size:13px}
 .workspace-theme #memberDetails dt{color:#526780}.workspace-theme #memberDetails dd{margin:0;overflow-wrap:anywhere}
 .workspace-theme #memberPanel .member-danger-zone{border-top:1px solid #dce3ed;margin-top:24px;padding-top:18px}
 .workspace-theme #memberDeleteDialog{max-width:min(580px,calc(100vw - 28px));max-height:88dvh;overflow:auto;padding:24px}
 .workspace-theme .member-confirm-line{display:flex;gap:10px;align-items:flex-start;font-size:14px;margin-top:20px}
 .workspace-theme .member-confirm-line input{width:20px;min-width:20px;min-height:20px;margin-top:3px}
 @media(max-width:700px){
  .workspace-theme #memberDetails{grid-template-columns:85px minmax(0,1fr);gap:8px;font-size:12px}
 }
}


@media screen{
 .workspace-theme #serviceIntroBanner{display:block;width:92%;padding:0;margin:0 auto 20px;border:0;border-radius:12px;background:#0c1d38;overflow:hidden;min-width:0;container-type:inline-size}
 .workspace-theme #serviceIntroBanner>a{position:relative;display:block;aspect-ratio:6/1;min-height:44px;padding:0;border:0;background:none;line-height:0;text-decoration:none}
 .workspace-theme #serviceIntroBanner img{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center 65%}
 .workspace-theme #serviceIntroBanner .intro-banner-headline{position:absolute;left:3.3333%;top:50%;transform:translateY(-50%);color:#fff;font-size:clamp(11px,2.7778cqw,30px);font-weight:700;line-height:1.35;letter-spacing:-.02em;text-shadow:0 1px 10px #0002}
 .workspace-theme #serviceIntroBanner .intro-banner-cta{position:absolute;right:1.6667%;bottom:8.3333%;background:#0757ff;color:#fff;font-size:clamp(9px,1.4815cqw,16px);font-weight:700;line-height:1.25;padding:clamp(4px,1.0185cqw,11px) clamp(6px,1.6667cqw,18px);border:1px solid #ffffff18;border-radius:clamp(4px,.7407cqw,8px);white-space:nowrap;box-shadow:0 2px 10px #0002}
 .workspace-theme #serviceIntroBanner>a:focus-visible{outline:3px solid #76b6ff;outline-offset:-4px;border-radius:12px}
 @media(max-width:700px){.workspace-theme #serviceIntroBanner{margin-bottom:15px;border-radius:10px}}
}

@media screen{.workspace-theme #journalPicker{width:min(620px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:24px}.workspace-theme #journalPicker select{max-width:100%;width:100%}}

@media screen and (min-width:701px){
 .workspace-theme .section-nav .workspace-service-links{flex-direction:row;align-items:center;justify-content:space-between;gap:4px;margin-top:12px;padding-top:10px}
 .workspace-theme .section-nav .workspace-service-links a{min-height:28px;padding:4px 0;font-size:11px;line-height:1.4;white-space:nowrap}
}
@media screen and (min-width:701px) and (max-height:650px){
 .workspace-theme .section-nav{padding-top:8px;padding-bottom:8px;top:8px;max-height:calc(100dvh - 16px)}
 .workspace-theme .workspace-nav-primary{gap:2px}
 .workspace-theme .section-nav .workspace-service-links{margin-top:8px;padding-top:6px}
}

@media screen{.workspace-theme .sample-welcome{margin-block:16px;background:#edf3ff;border:1px solid #cbdcfb;border-radius:10px;padding:16px}.workspace-theme .sample-welcome p{margin:8px 0;font-size:13px}.workspace-theme .sample-welcome .toolbar{margin-top:12px;gap:12px;flex-wrap:wrap}.workspace-theme .sample-welcome a{color:#2459b3;font-size:13px}.workspace-theme #journalSamplePreview a{display:inline-flex;min-height:44px;align-items:center}}

/* Brand and explanatory subtitle have distinct visual weights. */
@media screen{
 .workspace-theme>header h1.app-title{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:10px;row-gap:3px;line-height:1.4}
 .workspace-theme .app-title-name{font-size:28px;font-weight:750;letter-spacing:-1px;white-space:nowrap}
 .workspace-theme .app-title-subtitle{font-size:16px;font-weight:400;letter-spacing:-.35px;color:#526780}
 .workspace-theme .app-title-divider{color:#a4b0c2;margin-right:7px;font-weight:300}
 @media(max-width:700px){
  .workspace-theme>header h1.app-title{display:block}
  .workspace-theme .app-title-name{font-size:24px}
  .workspace-theme .app-title-subtitle{display:block;font-size:13px;line-height:1.5;margin-top:3px}
  .workspace-theme .app-title-divider{display:none}
 }
}

/* Keep the four mobile header actions together with compact visual spacing. */
@media screen and (max-width:700px){
 .workspace-theme .header-actions{gap:2px;flex-wrap:nowrap;flex:0 0 auto;max-width:100%}
 .workspace-theme .header-actions .header-icon-button{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;padding:2px}
}

@media screen{
 .workspace-theme .app-title-name{display:inline-flex;align-items:center;gap:9px}
 .workspace-theme .app-title-name .brand-logo{display:block;width:36px;height:36px;flex:0 0 36px;object-fit:contain;border-radius:8px}
 @media(max-width:700px){.workspace-theme .app-title-name .brand-logo{width:32px;height:32px;flex-basis:32px}.workspace-theme .app-title-name{gap:7px}}
}

/* The subtitle must not determine the mobile action row's available space. */
@media screen{
 .workspace-theme .app-heading{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:10px;row-gap:3px;min-width:0}
 .workspace-theme .app-heading>.app-title-subtitle{margin:0}
 @media(max-width:700px){
  .workspace-theme>header{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:2px;align-items:center}
  .workspace-theme .app-heading{display:contents}
  .workspace-theme>header h1.app-title{display:flex;grid-column:1;grid-row:1;margin:0;min-width:0}
  .workspace-theme .header-actions{grid-column:2;grid-row:1;justify-self:end}
  .workspace-theme .app-heading>.app-title-subtitle{grid-column:1/-1;grid-row:2;margin:0}
 }
 @media(max-width:360px){
  .workspace-theme>header{padding:12px;column-gap:6px}
  .workspace-theme .app-title-name{font-size:20px;gap:5px}
  .workspace-theme .app-title-name .brand-logo{width:26px;height:26px;flex-basis:26px}
  .workspace-theme .header-actions{gap:0}
 }
}

@media screen and (max-width:700px){
 .workspace-theme>header>.header-account-button{grid-column:2;grid-row:1;justify-self:end}
 .workspace-theme>header .header-actions{grid-column:1/-1;grid-row:2;justify-self:end}
 .workspace-theme>header .app-heading>.app-title-subtitle{grid-column:1/-1;grid-row:3}
}
