/* Shared finish for operational and reading routes. Paper output keeps its own contract. */
@media screen {
  .identity-page ::selection,.estimator-home ::selection {background:#cfdef1;color:#0d1725}
  .identity-page :is(input,textarea),.estimator-home input {caret-color:#086de8}
  .identity-page :is(a,button,summary,input,select,textarea):focus-visible,.estimator-home :is(a,button,summary):focus-visible {outline:3px solid #086de8;outline-offset:3px}
  .identity-page :is(button,a,summary) {touch-action:manipulation}
  body.workspace-v2.identity-page .admin-sidebar {background:var(--ui-surface)!important;border-inline-end:1px solid var(--ui-line)!important}
  body.workspace-v2.identity-page .admin-side-nav button {color:var(--ui-muted)!important;min-height:44px;padding:10px 12px}
  body.workspace-v2.identity-page .admin-side-nav button i img {filter:none;opacity:1}
  body.workspace-v2.identity-page .admin-side-nav button:hover {background:var(--ui-page)!important;color:var(--ui-ink)!important}
  body.workspace-v2.identity-page .admin-side-nav button.active {background:var(--ui-soft)!important;color:var(--ui-primary)!important}
  body.workspace-v2.identity-page :is(.nav-group-title,.nav-secondary>summary) {color:var(--ui-muted)!important;letter-spacing:0;font-size:12px}
  body.workspace-v2.identity-page details.nav-secondary,body.workspace-v2.identity-page .admin-side-footer {border-color:var(--ui-line)!important}
  body.workspace-v2.identity-page .nav-secondary>summary {min-height:44px;align-content:center}
  body.workspace-v2.identity-page .admin-side-footer a {color:var(--ui-muted)!important;min-height:44px;align-content:center}
  body.workspace-v2.identity-page .admin-side-footer button {background:var(--ui-surface)!important;color:var(--ui-muted)!important;border-color:var(--ui-line)!important;min-height:44px}
  body.workspace-v2.identity-page .admin-topbar {border-radius:12px!important;box-shadow:none!important}
  body.workspace-v2.identity-page .admin-topbar h1 {font-size:clamp(22px,2vw,28px);line-height:1.5}
  body.workspace-v2.identity-page .admin-topbar p#admin-section-subtitle {font-size:14px;line-height:1.8}
  body.workspace-v2.identity-page :is(.admin-panel-card,.overview-stat,.finance-stat,.finance-record,.finance-entry,.finance-detail,.finance-ledger,.admin-insights-disclosure,.request-tools,.proj-kpi-card) {border-radius:12px;box-shadow:none!important;border-color:var(--ui-line)!important}
  body.workspace-v2.identity-page .proj-kpi-card {border-inline-start-width:1px}
  body.workspace-v2.identity-page .comp-kpi-card {border-inline-start-width:1px!important;box-shadow:none!important;border-color:var(--ui-line)!important;border-radius:12px}
  body.workspace-v2.identity-page .panel-heading h2 {font-size:19px;line-height:1.6}
  body.workspace-v2.identity-page .admin-workspace :is(.form-control,select,textarea) {border-radius:8px!important;line-height:1.6}
  body.workspace-v2.identity-page .admin-workspace :is(button,.btn-action,.text-action,summary) {min-height:44px!important;white-space:normal}
  body.workspace-v2.identity-page .admin-workspace :is(input:not([type=checkbox]):not([type=radio]),select) {min-height:44px!important}
  body.workspace-v2.identity-page :is(.project-editor-tabs,.company-workspace-tabs,.dossier-tabs) {scrollbar-width:thin;overscroll-behavior-inline:contain}
  body.workspace-v2.identity-page :is(.project-editor-tabs,.company-workspace-tabs,.dossier-tabs) button {line-height:1.7;min-height:44px!important}
  body.workspace-v2.identity-page .admin-workspace :is(th,td) {font-variant-numeric:tabular-nums}
  body.workspace-v2.identity-page .admin-workspace .table-responsive {overscroll-behavior-inline:contain;scrollbar-width:thin}
  body.workspace-v2.identity-page .admin-workspace :is(.form-message,[role=alert],.finance-feedback) {overflow-wrap:anywhere}
  body.workspace-v2.identity-page .admin-workspace label {line-height:1.8}
  body.workspace-v2.identity-page #main #admin-main-section :is(button,.btn-action,.text-action,summary) {min-height:44px!important}
  body.workspace-v2.identity-page #admin-main-section .field-reveal-btn {height:44px!important}
  .identity-page.legal-identity .legal-page {padding-top:32px}
  .identity-page.legal-identity .legal-navigation {gap:8px;margin-bottom:32px;padding:6px;background:#edf5ff;border:1px solid #cfdef1;border-radius:12px}
  .identity-page.legal-identity .legal-navigation a {flex:1;justify-content:center;text-align:center;min-height:44px;padding:10px 14px;border:0;border-radius:8px}
  .identity-page.legal-identity .legal-navigation [aria-current=page] {background:#086de8;color:#fff}
  .reading-index {margin-block:24px 32px;border-block:1px solid #cfdef1}
  .reading-index summary {padding-block:14px;min-height:48px;font-size:15px;font-weight:600;color:#21418f;cursor:pointer}
  .reading-index nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;padding-bottom:16px}
  .reading-index a {display:flex;align-items:center;min-height:44px;padding:8px 0;font-size:14px;line-height:1.7;color:#21418f;text-underline-offset:4px;overflow-wrap:anywhere}
  .legal-page h2[id] {scroll-margin-top:116px}
  .identity-page.legal-identity .legal-page :is(summary,button,.btn-primary,.btn-secondary) {min-height:44px;line-height:1.7}
  .identity-page.legal-identity .wd-hero-actions {flex-wrap:wrap}
  .identity-page.legal-identity .wd-hero-actions a {text-align:center;white-space:normal}
  .partner-auth-page #partner-auth-section :is(input,select) {scroll-margin-block:112px 96px}
  .partner-auth-page .auth-access-help {line-height:1.9}
  .estimator-home :is(.estimator-method,.estimator-options) summary {min-height:48px;align-content:center}
  @media(max-width:760px) {
    body.workspace-v2.identity-page .admin-topbar h1 {font-size:22px}
    body.workspace-v2.identity-page .admin-header .workspace-language select {width:96px;min-width:96px!important}
    body.workspace-v2.identity-page .admin-company .save-bar {position:static!important;margin:20px 0 0!important;padding:16px 0 0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none}
    body.workspace-v2.identity-page .admin-workspace :is(.panel-heading,.project-list-toolbar) {gap:12px;flex-wrap:wrap}
    body.workspace-v2.identity-page .company-workspace-tabs {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible!important}
    body.workspace-v2.identity-page .company-workspace-tabs button {min-width:0!important;white-space:normal!important;padding:10px 8px!important;font-size:13px;overflow-wrap:anywhere}
    body.workspace-v2.identity-page .admin-mobile-nav {gap:4px;padding-inline:8px}
    body.workspace-v2.identity-page .admin-mobile-nav button {min-width:0;line-height:1.5}
    .identity-page.legal-identity .legal-page {padding:24px 20px 48px}
    .identity-page.legal-identity .legal-navigation a {font-size:14px;padding-inline:8px}
    .identity-page.legal-identity .legal-page h1 {font-size:32px;line-height:1.5}
    .identity-page.legal-identity .legal-page h2 {font-size:23px;line-height:1.6}
    .identity-page.legal-identity .legal-page p {font-size:16px;line-height:1.95}
    .reading-index nav {grid-template-columns:minmax(0,1fr)}
    .identity-page.legal-identity .wd-hero-actions a {width:100%;justify-content:center}
  }
  @media(prefers-reduced-motion:no-preference) {.reading-index a {transition:color 160ms ease-out}}
}
@media print {.reading-index {display:none!important}}
