:root {
  --navy: #0f4865;
  --navy-dark: #073a51;
  --blue: #2076af;
  --blue-bright: #0f84c7;
  --orange: #fd7c14;
  --ink: #183247;
  --muted: #63788a;
  --line: #d5e2ea;
  --wash: #f3f7f9;
  --blue-wash: #e8f4fa;
  --green: #238a64;
  --green-wash: #e6f5ef;
  --danger: #b44242;
  --white: #fff;
  --shadow: 0 18px 50px rgba(15, 72, 101, .08);
}
* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--wash); }
body { margin: 0; min-height: 100vh; max-width: 100%; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.app-shell { display: block; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand strong, .brand small { display: block; }
.brand strong { text-transform: uppercase; letter-spacing: .05em; font-size: .94rem; }
.brand small { margin-top: 2px; color: var(--orange); font-size: .72rem; }
.brand.large strong { font-size: 1.1rem; }
.brand-symbol { display: block; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; }
.brand-wordmark-block { min-width: 0; }
.brand .brand-wordmark { color: var(--navy); font-size: 1rem; font-weight: 700; letter-spacing: .11em; }
.brand .brand-wordmark::after { display: block; width: 38px; height: 3px; margin-top: 5px; border-radius: 2px; background: var(--orange); content: ""; }
.brand-mark { position: relative; width: 30px; height: 28px; display: inline-block; flex: 0 0 auto; }
.brand-mark i, .brand-mark b { position: absolute; width: 17px; height: 17px; }
.brand-mark i { left: 0; top: 0; background: var(--navy); }
.brand-mark b { right: 0; bottom: 0; background: var(--orange); }
.site-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 250px minmax(360px, 1fr) minmax(250px, auto); min-height: 104px; align-items: center; gap: 28px; padding: 15px clamp(22px, 3.4vw, 54px); background: var(--navy); color: var(--white); box-shadow: 0 2px 12px rgba(4, 31, 52, .18); }
.brand-link { display: inline-flex; width: min(230px, 100%); align-items: center; gap: 11px; color: var(--white); }
.brand-link .brand-symbol { width: 46px; height: 46px; flex-basis: 46px; border-radius: 0; }
.brand-link .brand-wordmark { color: var(--white); font-size: 1.15rem; font-weight: 600; letter-spacing: .105em; white-space: nowrap; }
.brand-link .brand-wordmark::after { display: block; width: 42px; height: 3px; margin-top: 5px; border-radius: 2px; background: var(--orange); content: ""; }
.brand-signature { display: block; margin-top: 5px; color: #b7d0dc; font-size: .5rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.main-navigation { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 2vw, 34px); }
.main-navigation a { position: relative; padding: 15px 0 13px; color: #e1edf2; font-size: 1rem; white-space: nowrap; }
.main-navigation a.active { color: var(--white); }
.main-navigation a.active::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 4px; border-radius: 5px; background: var(--orange); content: ""; }
.mobile-navigation { display: none; }
.account-zone { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.account-context { max-width: 300px; overflow-wrap: anywhere; color: #d8e8ef; font-size: .86rem; line-height: 1.35; }
.account-context .account-avatar { margin-right: .4rem; font-size: 1rem; line-height: 1; }
.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.topbar-actions { display: flex; min-width: 0; }
.context-switcher { position: relative; min-width: 0; }
.context-switcher summary { list-style: none; color: var(--white); font-size: .78rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.context-switcher summary::-webkit-details-marker { display: none; }
.context-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 20; display: grid; width: min(290px, calc(100vw - 24px)); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: var(--shadow); }
.context-menu form + form { border-top: 1px solid var(--line); }
.context-menu button { display: grid; width: 100%; border: 0; padding: 12px 14px; background: var(--white); color: var(--navy); text-align: left; }
.context-menu button:hover, .context-menu button:focus-visible { background: var(--blue-wash); }
.role-badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--blue-wash); color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.role-badge.accountant { color: #a6530d; background: #fff0e3; }
.desktop-logout { display: block; }
.responsive-logout { display: none; }
.sidebar-footer { margin-top: auto; }
.site-header .link-button { color: var(--white); font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.logout-label { font-size: .78rem; }
.main-content { width: min(1480px, 100%); min-width: 0; min-height: calc(100vh - 104px); margin: 0 auto; padding: clamp(28px, 4vw, 58px) clamp(20px, 4vw, 60px) 70px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 4px 0 7px; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.08; }
.page-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--blue) !important; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.section-card { padding: 24px; margin-bottom: 24px; }
.section-card h2 { margin: 0 0 8px; color: var(--navy); font-size: 1.15rem; }
.section-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.section-title p { color: var(--muted); margin: 0; font-size: .85rem; }
.mandate-page { width: 100%; max-width: 1360px; margin: 0 auto; }
.mandate-context-nav { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 8px; overflow: visible; flex-wrap: wrap; margin: -12px 0 24px; border-radius: 13px; padding: 9px 14px; background: var(--navy-dark); box-shadow: 0 10px 28px rgba(7, 58, 81, .13); scrollbar-width: thin; }
.mandate-context-nav > * { flex: 0 0 auto; border-radius: 8px; padding: 9px 14px; color: #dceaf0; font-size: .8rem; font-weight: 750; white-space: nowrap; }
.mandate-context-nav strong { letter-spacing: .03em; }
.mandate-context-nav a.active { color: var(--navy); background: var(--white); }
.mandate-context-nav > .folder-nav-menu.active { color: var(--navy); background: var(--white); }
.mandate-context-nav a:hover, .mandate-context-nav a:focus-visible { color: var(--white); background: rgba(255,255,255,.12); }
.mandate-context-nav a.active:hover, .mandate-context-nav a.active:focus-visible { color: var(--navy); background: var(--white); }
.mandate-screen-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: var(--muted); font-size: .75rem; }
.accountant-client-bar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 26px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; background: var(--white); box-shadow: var(--shadow); }
.accountant-client-bar label { display: grid; grid-template-columns: auto minmax(260px, 420px); align-items: center; gap: 12px; }
.accountant-client-bar label > span, .accountant-client-bar p > span { color: var(--muted); font-size: .74rem; font-weight: 800; }
.accountant-client-bar select { min-height: 42px; border: 1px solid #b9d1de; border-radius: 10px; padding: 0 38px 0 12px; background: var(--white); color: var(--navy); font-weight: 750; opacity: 1; }
.accountant-client-bar p { display: grid; gap: 3px; margin: 0; text-align: right; }
.accountant-client-bar p strong { color: var(--navy); }
.accountant-folder-nav { justify-content: flex-start; }
.folder-nav-menu { position: relative; flex: 0 0 auto; }
.folder-nav-menu > summary { cursor: pointer; list-style: none; }
.folder-nav-menu > summary::-webkit-details-marker { display: none; }
.folder-nav-menu > summary::after { content: " ▾"; font-size: .7rem; }
.folder-nav-menu > div { position: absolute; z-index: 12; top: calc(100% + 8px); left: 0; display: grid; min-width: 210px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--white); box-shadow: var(--shadow); }
.folder-nav-menu > div a { border-radius: 7px; padding: 9px 11px; color: var(--navy); }
.folder-nav-menu > div a:hover, .folder-nav-menu > div a.active { background: var(--surface); color: var(--blue); }
.client-list-tabs { display: flex; gap: 8px; margin: -8px 0 18px; }
.client-list-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: var(--white); color: var(--navy); font-weight: 800; }
.client-list-tabs a.active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.accountant-client-list form { margin: 0; }
.accountant-client-list button.table-action { border: 0; padding: 0; background: transparent; color: var(--blue); font: inherit; font-weight: 800; cursor: pointer; }
.count-badge { display: inline-grid; min-width: 34px; place-items: center; border-radius: 999px; padding: 5px 9px; background: #e5f4f7; color: var(--navy); font-weight: 850; }
.accountant-folder-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.accountant-folder-heading h1 { margin: 3px 0; color: var(--navy); }
.accountant-folder-heading p { margin: 0; }
.accountant-folder-heading .accountant-validation-intro { max-width: 76ch; margin-top: 8px; color: var(--muted); }
.validation-selection-card { margin-bottom: 16px; padding: 18px; }
.validation-selection-controls { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.validation-selection-controls label { min-width: 210px; }
.validation-selection-controls [hidden] { display: none !important; }
.reconciliation-period-heading, .reconciliation-decision, .reconciliation-run-form { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reconciliation-period-heading h2, .reconciliation-decision h2 { margin: 3px 0; }
.reconciliation-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.reconciliation-tabs a { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; background: var(--white); color: var(--navy); font-weight: 800; }
.reconciliation-tabs a.active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.reconciliation-sequence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.reconciliation-sequence article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.reconciliation-sequence article > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: white; background: var(--navy); font-weight: 800; }
.reconciliation-sequence h3, .reconciliation-sequence p { margin: 0; }
.reconciliation-run-form { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.reconciliation-tabs + .card td strong, .reconciliation-tabs + .card td small { display: block; }
.reconciliation-tabs + .card td small { margin-top: 3px; }
.accountant-folder-heading + .card td strong, .accountant-folder-heading + .card td small { display: block; }
.accountant-folder-heading + .card td small { margin-top: 3px; }
.declaration-review dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.declaration-review dl > div { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.declaration-review dt { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.declaration-review dd { margin: 5px 0 0; font-weight: 700; }
.selection-operated { display: flex; gap: 10px; align-items: baseline; margin: 16px 0 0; border-radius: 10px; padding: 11px 13px; background: #eff7f8; }
.selection-operated span { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.selection-operated strong { color: var(--navy); }
.accountant-validation-table { overflow: hidden; }
.accountant-validation-table table { white-space: nowrap; }
.accountant-validation-table .validation-choice-column { width: 46px; text-align: center; }
.accountant-validation-table .validation-document-name { min-width: 210px; white-space: normal; overflow-wrap: anywhere; }
.accountant-validation-table .validation-document-name strong { color: var(--navy); }
.accountant-validation-table .validation-blocked-note { display: block; margin-top: 4px; color: var(--danger); }
.document-choice { display: flex; align-items: center; justify-content: center; }
.document-choice input { width: 18px; height: 18px; flex: 0 0 auto; }
.validation-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 14px 16px; }
.validation-submit-bar span { color: var(--muted); font-size: .82rem; }
.accountant-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: 18px; }
.source-document-card, .decision-card { padding: 22px; }
.source-document-card h1, .decision-card h2 { margin: 4px 0 10px; color: var(--navy); }
.source-document-card dl, .decision-card dl { display: grid; gap: 9px; }
.source-document-card dl div, .decision-card dl div { display: grid; grid-template-columns: minmax(120px, .7fr) 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 9px; }
.source-document-card dt, .decision-card dt { color: var(--muted); font-size: .78rem; font-weight: 800; }
.source-document-card dd, .decision-card dd { margin: 0; color: var(--navy); font-weight: 750; }
.mandate-page-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 28px; }
.mandate-page-heading h1 { margin: 0; color: var(--navy); font-size: clamp(1.9rem, 3.1vw, 2.8rem); font-weight: 550; letter-spacing: -.035em; line-height: 1.1; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 12px; color: #187251; background: #e3f4ec; font-size: .78rem; font-weight: 800; }
.mandate-card { min-width: 0; border-radius: 15px; padding: 20px 24px; box-shadow: 0 14px 38px rgba(7, 58, 81, .08); }
.mandate-card h2 { margin: 0 0 16px; color: var(--ink); font-size: 1.12rem; font-weight: 700; }
.mandate-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.mandate-card-heading h2, .mandate-card-heading p { margin: 0; }
.mandate-card-heading p { max-width: 760px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.client-relationship-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.client-relationship-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--navy); background: var(--white); font-size: .78rem; font-weight: 750; text-decoration: none; }
.client-relationship-tabs a:hover, .client-relationship-tabs a:focus-visible { border-color: var(--blue); color: var(--blue); }
.client-current-mandate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; background: var(--line); box-shadow: 0 14px 38px rgba(7, 58, 81, .08); }
.client-current-mandate > div { display: grid; align-content: center; gap: 5px; min-width: 0; padding: 18px 22px; background: var(--white); }
.client-current-mandate span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.client-current-mandate h2, .client-current-mandate strong { margin: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 1.08rem; }
.client-current-mandate .status-pill { justify-self: start; color: #187251; }
.client-office-contact { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: -4px 0 16px; }
.client-office-contact a { overflow-wrap: anywhere; color: var(--blue); font-size: .82rem; }
.client-relationship-services { min-width: 0; margin-bottom: 16px; }
.client-relationship-services > h2 { margin: 0 0 4px; }
.client-relationship-services > p { margin: 0 0 16px; color: var(--muted); font-size: .8rem; }
.client-relationship-services table { min-width: 620px; }
.client-relationship-services h3 { margin: 24px 0 10px; font-size: 1rem; }
.client-available-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.client-available-services li { display: grid; gap: 2px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f8fbfc; }
.client-available-services li span { color: var(--muted); font-size: .76rem; }
.client-relationship-change { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.client-relationship-change > article { min-width: 0; }
.client-relationship-change p { color: var(--muted); font-size: .82rem; }
.client-relationship-change .table-scroll table { min-width: 360px; }
.client-relationship-change .stacked-form { max-width: 460px; }
.mandate-relationships-page > .mandate-table-layout { margin-top: 16px; }
.transmission-heading { display: grid; gap: 5px; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.readonly-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 18px; }
.readonly-field-grid > .readonly-field { display: grid; min-width: 0; align-content: start; gap: 5px; border: 0; padding: 0; background: transparent; }
.readonly-field span { color: var(--muted); font-size: .72rem; font-weight: 750; }
.readonly-field strong { display: flex; min-height: 48px; align-items: center; overflow-wrap: anywhere; border: 1px solid #d6e0e5; border-radius: 10px; padding: 10px 13px; color: #627583; background: #f2f5f7; font-size: .83rem; font-weight: 500; line-height: 1.35; }
.client-contact-card { padding: 20px 24px; }
.client-contact-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; }
.client-contact-details > div { min-width: 0; }
.client-contact-details dt { color: var(--muted); font-size: .7rem; font-weight: 750; }
.client-contact-details dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--navy); font-size: .84rem; font-weight: 700; }
.compact-empty-state { margin: 0; color: var(--muted); font-size: .82rem; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: var(--white); scrollbar-width: thin; }
.mandate-table-card .table-scroll { box-shadow: none; }
.mandate-table-card table { min-width: 620px; font-size: .8rem; }
.mandate-table-card th, .mandate-table-card td { padding: 10px 12px; }
.mandate-table-card th { font-size: .65rem; }
.transmission-table { min-width: 760px !important; }
.transmission-table th:last-child, .transmission-table td:last-child { width: 180px; text-align: center; }
.stacked-form { display: grid; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mandate-profile-form { gap: 18px; }
.mandate-form-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.mandate-form-layout .mandate-card { height: 100%; margin: 0; }
.wide-mandate-card { grid-column: 1 / -1; }
.mandate-compact-fields { gap: 13px 18px; }
.mandate-compact-fields label { gap: 5px; }
.mandate-compact-fields input, .mandate-compact-fields select, .mandate-compact-fields textarea { min-height: 42px; padding: 8px 11px; }
.mandate-compact-fields textarea { min-height: 72px; resize: vertical; }
.mandate-compact-fields .wide-field { grid-column: 1 / -1; }
.mandate-service-list { display: grid; gap: 10px; }
.mandate-service-row { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(180px, .8fr) minmax(180px, .8fr); align-items: end; gap: 14px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: #f7fafb; }
.mandate-service-row .check { min-height: 42px; align-items: center; }
.mandate-service-row .check span, .mandate-service-row .check strong, .mandate-service-row .check small { display: block; }
.mandate-service-row .check small { margin-top: 3px; color: var(--muted); font-weight: 500; }
.transmission-field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 18px; }
.transmission-field-grid label { gap: 5px; }
.transmission-field-grid select { min-height: 42px; padding: 8px 11px; }
.mandate-form-actions { justify-content: flex-end; }
.mandate-list-heading { margin-bottom: 22px; }
.mandate-invitation-card { margin-bottom: 16px; }
.office-invitation-summary { margin-bottom: 16px; }
.office-invitation-summary h2 { margin-top: 0; }
.office-invitation-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 20px; margin: 0; }
.office-invitation-facts div { min-width: 0; }
.office-invitation-facts dt { color: var(--muted); font-size: .82rem; }
.office-invitation-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 600; }
.compact-mandate-form { gap: 13px; }
.compact-mandate-form > label { max-width: 720px; }
.compact-mandate-form fieldset { padding: 13px 15px; }
.mandate-service-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.mandate-service-choices .check { min-width: 0; align-items: flex-start; }
.mandate-service-choices .check span, .mandate-service-choices .check strong, .mandate-service-choices .check small { display: block; }
.mandate-service-choices .check small { margin-top: 2px; color: var(--muted); font-weight: 500; }
.invitation-paths { display: grid; gap: 12px; }
.invitation-path-card { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #f8fbfc; }
.invitation-path-card > div { display: flex; align-items: center; gap: 10px; }
.invitation-path-card h3 { margin: 0; color: var(--navy); font-size: .94rem; }
.path-number { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; color: var(--white); background: var(--blue); font-size: .74rem; font-weight: 850; }
.invitation-path-card .secondary, .invitation-path-card .primary { justify-self: start; }
.mandate-table-layout { display: grid; gap: 16px; }
.compact-result-card { max-width: 920px; }
.readonly-field-input { border-color: #d6e0e5; background: #f2f5f7; color: #627583; }
.mandate-invitation-result .page-heading { margin-bottom: 22px; }
.mandate-public-invitation { display: grid; min-height: 100vh; place-items: center; padding: 30px 18px; background: var(--wash); }
.mandate-public-invitation .compact-result-card { width: min(720px, 100%); margin: 0; padding: clamp(24px, 5vw, 42px); }
.mandate-public-invitation h1 { margin: 4px 0 16px; color: var(--navy); font-size: clamp(1.75rem, 4vw, 2.55rem); line-height: 1.15; }
.mandate-public-invitation p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 14px; padding: 20px; }
.stat-card.orange { border-top-color: var(--orange); }
.stat-card span, .stat-card small { display: block; color: var(--muted); }
.stat-card strong { display: block; color: var(--navy); font-size: 2rem; margin: 10px 0 4px; }
.stat-card small { font-size: .75rem; }
.table-wrap { overflow-x: auto; }
.supervision-page { min-width: 0; }
.supervision-counters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.supervision-counter { display: grid; gap: 4px; min-width: 0; padding: 16px; color: var(--navy); text-decoration: none; }
.supervision-counter strong { font-size: 1.8rem; }
.supervision-counter span { overflow-wrap: anywhere; color: var(--muted); }
.accountant-reconciliation-workspace { min-width: 0; }
.accountant-reconciliation-period-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.accountant-reconciliation-period-heading h2, .accountant-reconciliation-period-heading p { margin-block: 4px; }
.accountant-reconciliation-period-status { display: grid; justify-items: end; gap: 7px; text-align: right; }
.accountant-reconciliation-period-status small { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.accountant-reconciliation-refresh { display: flex; align-items: center; gap: 10px; border: 1px solid #bcd9e7; border-radius: 12px; margin: 0 0 18px; padding: 12px 15px; color: #0b668f; background: #eaf5fa; }
.accountant-reconciliation-refresh::before { width: 10px; height: 10px; flex: none; border-radius: 50%; background: currentColor; content: ""; }
.accountant-reconciliation-refresh span { color: var(--muted); }
.accountant-reconciliation-refresh.warning { border-color: #f2c088; color: #a6530d; background: #fff0e3; }
.accountant-reconciliation-counters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.accountant-reconciliation-counter { display: grid; min-width: 0; gap: 3px; margin: 0; padding: 15px; color: var(--navy); text-decoration: none; }
.accountant-reconciliation-counter strong { font-size: 1.8rem; line-height: 1.1; }
.accountant-reconciliation-counter span { overflow-wrap: anywhere; color: var(--muted); font-size: .76rem; }
.accountant-reconciliation-counter-to_arbitrate strong, .accountant-reconciliation-counter-to_reconfirm strong { color: #a6530d; }
.accountant-reconciliation-counter-overallocated strong { color: #b73e3e; }
.accountant-reconciliation-counter-validated strong { color: #187251; }
.accountant-reconciliation-ensembles { scroll-margin-top: 18px; }
.accountant-reconciliation-capability { display: grid; gap: 3px; border: 1px solid #d5e2ea; border-radius: 10px; margin: 15px 0; padding: 11px 14px; color: #617084; background: #eef4f8; font-size: .78rem; }
.accountant-reconciliation-ensemble { overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 13px; margin-top: 12px; background: var(--white); }
.accountant-reconciliation-ensemble-validated { border-left-color: #187251; }
.accountant-reconciliation-ensemble-to-reconfirm, .accountant-reconciliation-ensemble-arbitration-required { border-left-color: var(--orange); }
.accountant-reconciliation-ensemble-rupture-proposed { border-left-color: #b73e3e; }
.accountant-reconciliation-ensemble-replaced { border-left-color: #8b9aa5; }
.accountant-reconciliation-ensemble > summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.accountant-reconciliation-ensemble > summary::-webkit-details-marker { display: none; }
.accountant-reconciliation-ensemble > summary > span:first-child { display: grid; min-width: 0; gap: 2px; flex: 1; }
.accountant-reconciliation-ensemble > summary strong { overflow-wrap: anywhere; color: var(--navy); }
.accountant-reconciliation-ensemble > summary small { color: var(--muted); }
.accountant-reconciliation-chevron { flex: none; color: var(--muted); transition: transform .18s ease; }
.accountant-reconciliation-ensemble[open] .accountant-reconciliation-chevron { transform: rotate(180deg); }
.accountant-reconciliation-ensemble-body { border-top: 1px dashed var(--line); padding: 14px 16px 16px; }
.accountant-reconciliation-allocation-table { min-width: 720px; }
.accountant-reconciliation-allocation-table td strong, .accountant-reconciliation-allocation-table td small { display: block; }
.accountant-reconciliation-allocation-table td small { margin-top: 3px; color: var(--muted); }
.accountant-reconciliation-ensemble-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 10px; margin-top: 12px; padding: 10px 13px; background: var(--wash); font-size: .8rem; }
.accountant-reconciliation-readonly-action { border: 1px dashed #9fbdcc; border-radius: 999px; padding: 5px 10px; color: var(--muted); background: var(--white); text-align: center; }
.accountant-reconciliation-audit { margin: 10px 0 0; color: var(--muted); font-size: .76rem; }
.supervision-sections { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.supervision-sections a, .supervision-sections .read-only-section { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; color: var(--navy); font-weight: 750; text-decoration: none; }
.supervision-sections span { overflow-wrap: anywhere; }
.supervision-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.supervision-groups > * { min-width: 0; margin: 0; }
.supervision-detail { scroll-margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th { text-align: left; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; background: var(--wash); }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--muted); margin-top: 3px; }
.status { display: inline-block; padding: 5px 9px; border-radius: 999px; background: var(--wash); color: var(--muted); font-size: .7rem; font-weight: 800; }
.status.success { background: var(--green-wash); color: var(--green); }
.status.danger { background: #faeaea; color: var(--danger); }
.primary, .secondary { border: 0; border-radius: 9px; padding: 11px 16px; font-weight: 800; }
.primary { color: var(--white); background: var(--blue-bright); }
.primary:hover { background: var(--navy); }
.secondary { color: var(--blue); background: var(--blue-wash); }
.button { display: inline-flex; align-items: center; justify-content: center; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: .8rem; }
.danger-text { color: var(--danger); }
label { display: grid; gap: 7px; color: var(--navy); font-size: .78rem; font-weight: 700; }
input, select, textarea { min-width: 0; width: 100%; border: 1px solid #bdd0dc; border-radius: 8px; padding: 10px 11px; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(32, 118, 175, .14); border-color: var(--blue); }
.split-layout { display: flex; align-items: flex-start; gap: 20px; }
.grow { flex: 1 1 auto; min-width: 0; }
.side-form { width: 330px; display: grid; gap: 15px; }
.form-pair, .two-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-pair form { display: grid; gap: 14px; }
.step-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--white); background: var(--blue); font-weight: 900; }
.step-dot.orange, .avatar.orange { background: #fff0e3; color: var(--orange); }
.simple-list { display: grid; gap: 8px; }
.simple-list > div { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.simple-list > div:last-child { border-bottom: 0; }
.simple-list p { margin: 0; }
.simple-list small { color: var(--muted); margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.one-column { grid-template-columns: 1fr; }
.mandate-form { display: grid; gap: 18px; }
.profile-form { display: grid; gap: 0; margin-bottom: 24px; }
.profile-read-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.profile-read-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.profile-read-grid h3 { margin: 0 0 8px; color: var(--navy); font-size: .9rem; }
.profile-read-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.fact-field { display: grid; grid-template-columns: minmax(150px, .75fr) minmax(180px, 1.25fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.validation-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); gap: 24px; align-items: start; }
.validation-card p { color: var(--muted); }
.validation-card form { display: grid; gap: 14px; }
.inline-form { display: flex; align-items: end; gap: 12px; margin: 20px 0; }
.inline-form label { flex: 1 1 auto; }
.inline-action { display: inline; margin-right: 10px; }
.separation-note { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; margin-bottom: 24px; padding: 18px 20px; border-left: 4px solid var(--orange); background: var(--blue-wash); border-radius: 10px; }
.separation-note span { color: var(--muted); }
.profile-section { scroll-margin-top: 20px; }
.profile-section details { margin-top: 20px; }
.profile-section summary { cursor: pointer; color: var(--blue); font-weight: 800; }
.validation-row { display: flex; align-items: end; gap: 14px; margin: 20px 0; padding: 16px; background: var(--wash); border-radius: 10px; }
.validation-row label:first-of-type { min-width: 190px; }
.mandate-configuration { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.mandate-configuration h3, .collection-form h4 { margin: 0 0 7px; color: var(--navy); }
.collection-form { display: grid; gap: 14px; margin: 20px 0; padding: 18px; background: var(--wash); border-radius: 10px; }
.future-scope { border-left: 4px solid var(--blue); }
fieldset { border: 1px solid var(--line); border-radius: 11px; padding: 16px; }
legend { color: var(--navy); font-size: .8rem; font-weight: 800; padding: 0 7px; }
.permission-grid { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.check { display: flex; grid-template-columns: none; align-items: center; gap: 8px; color: var(--ink); }
.check input { width: auto; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 24px; }
.space-welcome { min-height: clamp(360px, 54vh, 560px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.space-welcome p { margin: 0 0 12px; color: var(--muted); font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.4; }
.space-welcome h1 { margin: 0; color: var(--navy); font-size: clamp(2.65rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; overflow-wrap: anywhere; }
.space-choice-page { display: grid; max-width: 620px; min-height: 55vh; align-content: center; gap: 22px; margin: 0 auto; }
.space-choice-page h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; }
.space-choice-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; padding: 22px; }
.space-choice-panel .button { min-height: 42px; white-space: nowrap; }
.space-create-card { max-width: 640px; }
.space-create-card form { display: grid; gap: 18px; }
.onboarding-form { display: grid; gap: 20px; max-width: 980px; }
.onboarding-form fieldset { display: grid; gap: 16px; }
.onboarding-enhanced [hidden] { display: none !important; }
.onboarding-heading { max-width: 980px; }
.public-content:has(.onboarding-form), .public-content:has(.signup-closed) { width: min(1100px, 100%); min-width: 0; margin: 0 auto; padding: 88px clamp(20px, 4vw, 60px) 70px; }
.onboarding-progress { display: grid; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.onboarding-progress > div { display: flex; justify-content: space-between; gap: 16px; color: var(--navy); font-size: .75rem; letter-spacing: .06em; }
.onboarding-progress ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.onboarding-form[data-registration="false"] .onboarding-progress ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.onboarding-progress li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); font-size: .72rem; }
.onboarding-progress li span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #aac2cf; border-radius: 50%; background: var(--white); }
.onboarding-progress li.active { color: var(--navy); }
.onboarding-progress li.active span { border-color: var(--orange); color: var(--white); background: var(--orange); }
.onboarding-progress li.complete span { border-color: var(--blue); color: var(--white); background: var(--blue); }
.onboarding-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.onboarding-profile-card { display: flex; min-height: 76px; align-items: center; gap: 12px; border: 1px solid #bdd0dc; border-radius: 12px; padding: 15px; color: var(--navy); background: var(--white); text-decoration: none; cursor: pointer; }
.onboarding-profile-card:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(231, 108, 18, .13); }
.onboarding-profile-card input { width: auto; }
.onboarding-profile-card span { font-weight: 800; }
.onboarding-profile-card small { display: block; color: var(--muted); font-weight: 500; }
.onboarding-office-card { align-items: flex-start; flex-direction: column; justify-content: center; border-style: dashed; }
.onboarding-review, .onboarding-confirmation { border: 1px solid var(--line); border-radius: 11px; padding: 20px; background: var(--wash); }
.onboarding-review h2, .onboarding-confirmation h2 { margin-top: 0; color: var(--navy); }
.onboarding-review dl { display: grid; gap: 0; }
.onboarding-review dl > div { display: grid; grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.onboarding-review dt { color: var(--muted); font-weight: 700; }
.onboarding-review dd { margin: 0; overflow-wrap: anywhere; }
.onboarding-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.onboarding-actions > div { display: flex; gap: 10px; }
.public-shell:has(.registration-wizard) .public-home-header { background: #203d56; }
.public-content:has(.registration-wizard) { width: min(1180px, 100%); padding: 48px clamp(20px, 4vw, 50px) 70px; }
.registration-wizard { width: 100%; max-width: none; gap: 20px; }
.onboarding-heading:has(+ .registration-wizard) { max-width: none; margin-bottom: 30px; }
.onboarding-heading:has(+ .registration-wizard) h1 { margin: 0; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 550; letter-spacing: -.035em; }
.registration-wizard .onboarding-progress { gap: 0; margin: 0; padding: 0; border: 0; }
.registration-wizard .onboarding-progress > div { align-items: center; color: #a85724; font-size: .82rem; font-weight: 800; letter-spacing: .06em; }
.registration-wizard .onboarding-progress > div span { padding: 13px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--navy); font-size: 1.25rem; letter-spacing: 0; }
.registration-wizard .onboarding-progress ol { display: flex; gap: 16px; margin-top: 16px; }
.registration-wizard .onboarding-progress li { position: relative; display: flex; flex: 1; align-items: center; gap: 10px; color: #8297a8; font-size: .88rem; }
.registration-wizard .onboarding-progress li:not(:last-child)::after { display: block; height: 2px; flex: 1; min-width: 16px; margin-left: 6px; background: var(--line); content: ""; }
.registration-wizard .onboarding-progress li:last-child { flex: 0 0 auto; }
.registration-wizard .onboarding-progress li span { width: 34px; height: 34px; flex: 0 0 34px; }
.registration-wizard .onboarding-progress li.active { color: var(--navy); font-weight: 750; }
.registration-wizard .onboarding-why { border: 1px solid #cbdce7; border-radius: 12px; background: #eef7fd; }
.registration-wizard .onboarding-why summary, .registration-wizard .onboarding-professional-info summary { padding: 14px 16px; color: var(--navy); font-weight: 700; cursor: pointer; }
.registration-wizard .onboarding-why > div, .registration-wizard .onboarding-professional-info > div { padding: 0 18px 16px; color: var(--muted); line-height: 1.5; }
.registration-wizard .onboarding-kind-step { padding: 28px 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.registration-wizard .onboarding-kind-step h2 { margin: 0 0 4px; color: var(--navy); font-size: 1.38rem; }
.registration-wizard .onboarding-profile-grid { gap: 14px; }
.registration-wizard .onboarding-profile-card { min-height: 110px; align-items: flex-start; padding: 17px 18px; }
.registration-wizard .onboarding-profile-card:has(input:checked) { border-color: #205a7b; background: #eef7fd; box-shadow: none; }
.registration-wizard .onboarding-profile-card input { margin-top: 4px; accent-color: #205a7b; }
.registration-wizard .onboarding-profile-card strong { display: block; margin-bottom: 8px; font-size: .95rem; }
.registration-wizard .onboarding-profile-card small { font-size: .86rem; line-height: 1.5; }
.registration-wizard .onboarding-professional-info { border: 1px solid var(--line); border-radius: 10px; }
.registration-wizard .onboarding-account-step { padding: 32px 34px; border-radius: 14px; background: var(--white); }
.registration-wizard .onboarding-account-step > p { margin: 0 0 4px; color: var(--muted); }
.registration-wizard .onboarding-account-step .form-grid { gap: 20px 28px; }
.registration-wizard .onboarding-account-step label { align-content: start; gap: 8px; color: var(--navy); font-weight: 700; }
.registration-wizard .onboarding-account-step input:not([type="checkbox"]), .registration-wizard .onboarding-account-step select { min-height: 46px; }
.registration-wizard .onboarding-account-step .onboarding-account-wide { grid-column: 1 / -1; }
.registration-wizard .onboarding-account-step .onboarding-email-login { display: flex; align-items: center; gap: 12px; font-weight: 400; }
.registration-wizard .onboarding-email-login input { width: auto; }
.registration-wizard .onboarding-password-control { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; }
.registration-wizard .onboarding-password-control:focus-within { outline: 3px solid rgba(32, 118, 175, .14); border-color: var(--blue); }
.registration-wizard .onboarding-password-control input { flex: 1; min-width: 0; border: 0; outline: 0; }
.registration-wizard .onboarding-password-control button { padding: 0 12px; border: 0; background: transparent; color: var(--blue); font-weight: 700; cursor: pointer; }
.registration-wizard .onboarding-account-step small { color: var(--muted); font-weight: 400; }
.registration-wizard .onboarding-coordinates-step { padding: 32px 34px; border-radius: 14px; background: var(--white); }
.registration-wizard .onboarding-coordinates-step .form-grid { gap: 20px 28px; }
.registration-wizard .onboarding-coordinates-step label { align-content: start; gap: 8px; color: var(--navy); font-weight: 700; }
.registration-wizard .onboarding-coordinates-step input:not([type="checkbox"]), .registration-wizard .onboarding-coordinates-step select { min-height: 46px; }
.registration-wizard .onboarding-coordinates-step h3 { grid-column: 1 / -1; margin: 18px 0 0; color: var(--navy); font-size: 1.1rem; }
.registration-wizard .onboarding-coordinates-step .onboarding-private-address-option { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.registration-wizard .onboarding-coordinates-step .onboarding-private-address-option h3 { margin: 18px 0; }
.registration-wizard .onboarding-coordinates-step .onboarding-private-address-option .check { font-weight: 400; }
.registration-wizard .onboarding-coordinates-step .form-note { margin: 0; }
.registration-wizard .onboarding-confirmation-panel { display: grid; gap: 14px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.registration-wizard .onboarding-confirmation-panel h2 { margin: 0; color: var(--navy); font-size: 1.38rem; }
.registration-wizard .onboarding-confirmation-panel p { margin: 0; line-height: 1.5; }
.registration-wizard .onboarding-confirmation-panel .check { align-items: flex-start; flex-wrap: wrap; }
.registration-wizard .onboarding-confirmation-panel .check input { flex: 0 0 auto; margin-top: 3px; }
.registration-wizard .onboarding-price-notice { display: grid; gap: 8px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.registration-wizard .onboarding-price-notice h3 { margin: 0; color: var(--navy); }
.registration-wizard .onboarding-price-notice .onboarding-price-pending { font-size: 1.25rem; font-weight: 700; }
.registration-wizard .onboarding-actions .primary { border-color: #ed8b34; background: #ed8b34; color: var(--white); }
.compact-add-form { display: grid; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.office-management-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 24px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.office-management-nav a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.office-management-nav a.active { color: var(--white); background: var(--blue); }
.office-form-card { max-width: 980px; }
.office-collaborator-edit-heading h1 { margin: 0; }
.office-collaborator-edit-card { padding: 22px; }
.office-collaborator-edit-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px 18px; }
.office-collaborator-edit-grid > label { grid-column: span 3; }
.office-collaborator-edit-grid > .office-collaborator-identity { grid-column: span 2; }
.office-collaborator-edit-grid > .office-collaborator-active { grid-column: 1 / -1; }
.office-collaborator-edit-grid input, .office-collaborator-edit-grid select { min-height: 42px; }
.office-collaborator-edit-actions { display: flex; justify-content: flex-end; gap: 14px; margin: 16px 0 24px; }
.office-collaborator-edit-actions > .secondary { border: 1px solid #b9cfda; background: var(--white); color: var(--navy); }
.office-collaborator-inactive-notice { border: 1px solid #cddfe9; border-radius: 12px; padding: 15px 20px; background: #eef7fd; color: var(--navy); }
.regulatory-archive-details { min-width: 180px; }
.regulatory-archive-details summary { width: fit-content; color: var(--blue); cursor: pointer; font-weight: 700; }
.regulatory-archive-details dl { display: grid; grid-template-columns: minmax(110px, auto) minmax(160px, 1fr); gap: 6px 12px; margin: 12px 0 0; font-size: .82rem; }
.regulatory-archive-details dt { color: var(--muted); font-weight: 700; }
.regulatory-archive-details dd { margin: 0; }
.manager-support-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.manager-support-heading h2 { margin: 8px 0 0; }
.manager-support-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.manager-support-facts dt { color: var(--muted); font-size: .8rem; font-weight: 700; }
.manager-support-facts dd { margin: 5px 0 0; }
.manager-support-authorization fieldset { display: grid; gap: 12px; margin: 18px 0; }
.manager-support-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.manager-support-journal { margin: 0; padding-left: 24px; }
@media (max-width: 760px) { .manager-support-facts { grid-template-columns: 1fr; } .manager-support-heading { flex-direction: column; } }
@media (max-width: 760px) { .office-collaborator-edit-grid > label, .office-collaborator-edit-grid > .office-collaborator-identity { grid-column: 1 / -1; } }
.access-boundary { margin: -12px 0 20px; padding: 11px 14px; border-left: 4px solid #d88935; border-radius: 0 8px 8px 0; background: #fff7eb; color: #6f4a1d; font-size: .88rem; }
.office-collaborators-table td:first-child small { display: block; margin-top: 4px; color: var(--muted); }
.office-collaborators-table td:nth-child(2) { min-width: 220px; }
.office-collaborators-table table { min-width: 720px; }
.compact-action { display: inline-flex; padding: 7px 12px; white-space: nowrap; }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.office-service-list { display: grid; gap: 12px; }
.office-service-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.3fr) auto auto; align-items: end; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.office-services-heading { align-items: center; }
.office-services-heading h1 { margin: 0; }
.office-services-heading > .secondary { border: 1px solid #b9cfda; background: var(--white); color: var(--navy); }
.office-services-table { overflow-x: auto; }
.office-services-table table { min-width: 620px; }
.office-services-table th { background: #eef7fd; }
.office-services-table th, .office-services-table td { padding: 17px 16px; }
.office-services-table th:nth-child(1) { width: 64%; }
.office-services-table th:nth-child(2) { width: 20%; }
.office-services-table .status { border: 1px solid #d3e2df; }
.office-services-table .status::before { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; content: ""; vertical-align: 1px; }
.office-services-table .office-services-inactive { border-color: #d4e0e7; background: #f1f6f8; color: #617686; }
.office-services-edit { color: var(--blue); font-weight: 700; }
.office-services-editor { margin-bottom: 20px; }
.office-services-description { grid-column: 1 / -1; }
.office-services-editor-actions { display: flex; gap: 10px; margin-top: 18px; }
.readonly-field { border-color: #d5dce0; background: #eef1f3; color: var(--muted); }
.optional { color: var(--muted); font-weight: 500; }
.password-last { border-color: #a8cbdc; background: var(--blue-wash); }
.company-card { display: flex; gap: 18px; padding: 24px; }
.company-card h2 { color: var(--navy); margin: 3px 0 5px; }
.company-card p { color: var(--muted); margin: 0 0 12px; }
.client-navigation { min-width: 0; margin: -8px 0 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.client-navigation-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.client-navigation-context strong { color: var(--navy); }
.client-navigation-context span { display: flex; gap: 14px; flex-wrap: wrap; font-size: .74rem; }
.client-tabs { display: flex; min-width: 0; overflow-x: auto; padding: 0 6px; }
.client-tabs > * { flex: 0 0 auto; padding: 12px 11px; border-bottom: 3px solid transparent; color: var(--muted); font-size: .77rem; font-weight: 800; white-space: nowrap; }
.client-tabs a.active { color: var(--blue); border-bottom-color: var(--blue-bright); }
.client-tabs .disabled { opacity: .6; cursor: default; }
.client-tabs small { margin-left: 4px; color: var(--orange); }
.cockpit-grid, .overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.cockpit-grid .section-card, .overview-grid .section-card { margin: 0; min-width: 0; }
.cockpit-list { display: grid; gap: 9px; }
.cockpit-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.3fr) auto; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--wash); }
.cockpit-row strong, .cockpit-row small { display: block; }
.cockpit-row small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.cockpit-row .progress-track { height: 6px; margin-top: 7px; }
.cockpit-finalized summary { cursor: pointer; color: var(--navy); font-weight: 850; }
.cockpit-finalized .cockpit-list { margin-top: 16px; }
.recent-client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.recent-client-grid article { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--wash); }
.recent-client-grid span, .recent-client-grid small { color: var(--muted); }
.recent-client-grid div { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 5px; font-size: .76rem; }
.overview-grid p { color: var(--muted); }
.overview-count { display: block; margin: 12px 0; color: var(--navy); font-size: 2rem; }
.overview-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.validation-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.validation-filters a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white); font-size: .76rem; font-weight: 800; }
.validation-filters a.active { color: var(--white); border-color: var(--blue); background: var(--blue); }
.validation-filters strong { margin-left: 5px; }
.validation-queue-card { min-width: 0; overflow: hidden; }
.validation-queue-card form { min-width: 0; }
.compact-button { margin-left: 8px; padding: 6px 10px; font-size: .72rem; }
.delivery-form { max-width: 720px; }
.delivery-form form { display: grid; gap: 18px; margin-top: 20px; }
.demo-limits { margin-top: 20px; padding: 18px 20px; border: 1px solid #bddfeb; border-left: 4px solid var(--orange); border-radius: 11px; background: var(--blue-wash); }
.demo-limits h3 { margin: 0 0 7px; color: var(--navy); font-size: 1rem; }
.demo-limits p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.demo-limits ul { margin: 13px 0 0; padding-left: 19px; color: var(--ink); font-size: .82rem; line-height: 1.65; }
.selected-files { padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.selected-files h3 { margin: 0 0 8px; color: var(--navy); font-size: .9rem; }
.selected-files p { margin: 0; }
.selected-files ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.selected-files li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.selected-files li:last-child { border-bottom: 0; }
.selected-files small { display: block; margin-top: 2px; color: var(--muted); }
.compact-check { display: inline-flex; align-items: center; }
.compact-check input { width: 18px; height: 18px; }
.grouped-analysis-controls { display: grid; gap: 8px; margin-top: 18px; }
.grouped-analysis-controls p { margin: 0; color: var(--muted); }
.grouped-analysis-controls .warning-note { max-width: 880px; color: #8a4f0b; }
.grouped-analysis-controls .button { justify-self: start; margin-top: 4px; }
.grouped-analysis-controls .button:disabled { opacity: .45; cursor: not-allowed; }
.grouped-source-selection { display: grid; gap: 12px; margin: 8px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.grouped-source-selection .section-title { margin: 0; }
.grouped-source-selection h3 { margin: 0 0 4px; color: var(--navy); }
.grouped-source-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grouped-source-group { display: grid; gap: 8px; background: var(--white); }
.grouped-source-group[hidden] { display: none; }
.page-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.analysis-monitor-counts { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px; margin-bottom: 24px; }
.analysis-monitor-counts .stat-card strong { font-size: 1.6rem; }
.analysis-monitor-list { display: grid; gap: 12px; }
.analysis-monitor-item { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.analysis-monitor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.analysis-monitor-heading strong, .analysis-monitor-heading small { display: block; }
.analysis-monitor-heading small { margin-top: 3px; color: var(--muted); }
.analysis-pdf-names { display: flex; gap: 7px; flex-wrap: wrap; margin: 0; }
.analysis-pdf-names span { padding: 5px 8px; border-radius: 7px; color: var(--navy); background: var(--white); font-size: .73rem; overflow-wrap: anywhere; }
.demo-analysis-note { margin: -12px 0 24px; padding: 12px 14px; border-left: 4px solid var(--blue); background: var(--blue-wash); color: var(--navy); }
.retry-summary { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--navy); }
.retry-summary span { color: var(--muted); }
.cancellation-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: #edc7c7; }
.cancellation-card p { margin: 0; color: var(--muted); }
.danger-button { border: 0; border-radius: 9px; padding: 11px 16px; color: var(--white); background: var(--danger); font-weight: 800; white-space: nowrap; }
.permanent-danger-zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); gap: 28px; align-items: start; border: 2px solid #d99b9b; background: #fffafa; }
.permanent-danger-zone p { margin: 6px 0; color: var(--muted); line-height: 1.5; }
.permanent-danger-zone form, .permanent-delete-action form { display: grid; gap: 11px; }
.permanent-danger-zone > *, .permanent-danger-zone form, .permanent-danger-zone label { min-width: 0; }
.permanent-danger-zone input, .permanent-danger-zone .danger-button { box-sizing: border-box; max-width: 100%; }
.permanent-danger-zone .danger-button { overflow-wrap: anywhere; white-space: normal; }
.danger-note { color: var(--danger) !important; font-weight: 750; }
.permanent-delete-action { min-width: 280px; }
.permanent-delete-action summary { cursor: pointer; color: var(--danger); font-weight: 800; }
.permanent-delete-action p { max-width: 420px; margin: 9px 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.permanent-delete-action form { margin-top: 11px; }
.permanent-delete-action .danger-button { white-space: normal; }
.compact-status { font-size: 1.45rem !important; }
.validation-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.validation-heading h1 { margin: 4px 0 7px; color: var(--navy); font-size: 2rem; }
.validation-heading p { margin: 0; color: var(--muted); }
.validation-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.business-status { padding: 7px 11px; border-radius: 999px; color: #9a590f; background: #fff0df; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.button.disabled { opacity: .45; cursor: default; }
.simple-analysis-state { padding: 40px; text-align: center; }
.simple-analysis-state h2 { margin: 0 0 8px; color: var(--navy); }
.simple-analysis-state p { margin: 0; color: var(--muted); }
.simple-analysis-state .button { margin-top: 18px; }
.bulk-review { margin-bottom: 14px; overflow: hidden; }
.bulk-review > summary { cursor: pointer; list-style-position: inside; }
.bulk-review > summary::marker { color: var(--blue); }
.bulk-review form { display: grid; }
.bulk-review-table { white-space: nowrap; }
.bulk-review-table input[type="checkbox"] { width: 18px; height: 18px; }
.bulk-review-controls { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; padding: 13px 15px; border-top: 1px solid var(--line); }
.bulk-review-controls > strong { margin-right: auto; padding: 10px 0; color: var(--navy); font-size: .78rem; }
.bulk-review-controls label { min-width: 220px; }
.bulk-confirmation-summary { margin: 0; padding: 0 15px 13px; color: var(--muted); font-size: .74rem; }
.bulk-action-guidance { margin: -5px 0 0; padding: 0 15px 13px; color: #8a4f0b; font-size: .72rem; font-weight: 750; }
.bulk-review button:disabled { opacity: .45; cursor: not-allowed; }
.bulk-type-control { padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--wash); }
.bulk-status { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: .68rem; font-weight: 850; }
.status-valide { color: var(--green); background: var(--green-wash); }
.status-corrige { color: var(--blue); background: var(--blue-wash); }
.status-alerte { color: #8a4f0b; background: #fff0df; }
.status-a-completer { color: #8a4f0b; background: #fff0df; }
.status-a-valider { color: var(--muted); background: var(--wash); }
.proposal-badge { justify-self: start; padding: 4px 7px; border-radius: 999px; color: #8a4f0b; background: #fff0df; font-size: .62rem; }
.job-progress { width: 100%; display: grid; gap: 10px; padding: 12px 4px; text-align: left; }
.job-progress-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--navy); }
.progress-track { width: 100%; height: 10px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--blue-bright); transition: width .25s ease; }
.source-progress-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.source-progress-list li { display: flex; justify-content: space-between; gap: 18px; padding: 7px 9px; border-radius: 7px; background: var(--wash); font-size: .73rem; }
.source-progress-list strong { overflow-wrap: anywhere; }
.source-progress-list span { flex: none; color: var(--muted); }
.worker-unavailable, .job-failure-category { color: #8a4f0b !important; font-weight: 800; }
.validation-detail-section { min-width: 0; scroll-margin-top: 12px; }
.detail-review-nav { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 12px; border: 1px solid #b9d8e8; border-radius: 10px; background: rgba(241, 249, 253, .97); box-shadow: 0 6px 18px rgba(15, 72, 101, .08); }
.detail-review-nav strong { margin-right: auto; color: var(--navy); }
.detail-review-nav > * { min-width: 0; }
.review-workspace { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(310px, 1.05fr) minmax(390px, 1.4fr); gap: 14px; align-items: stretch; min-width: 0; min-height: 680px; }
.review-workspace.detailed-only { grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.35fr); }
.review-workspace > .card { overflow: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 72, 101, .06); }
.review-panel-title { min-height: 48px; padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--navy); font-size: .82rem; font-weight: 900; }
.review-panel-title.proposed { color: var(--green); background: var(--green-wash); border-bottom-color: #c9e9dd; }
.review-panel-title.proposed strong { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.review-queue-items { display: grid; }
.review-queue-item { display: grid; gap: 5px; padding: 15px 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
.review-queue-item:hover, .review-queue-item.active { background: var(--blue-wash); }
.review-queue-item.active { box-shadow: inset 4px 0 var(--blue-bright); }
.review-queue-item.unassigned { background: #fff7ed; }
.review-queue-item strong { font-size: .82rem; overflow-wrap: anywhere; }
.review-queue-item span { color: var(--muted); font-size: .72rem; }
.review-state { justify-self: start; margin-top: 3px; padding: 4px 7px; border-radius: 999px; background: var(--wash); color: var(--muted); font-size: .63rem; font-weight: 900; }
.state-validee { color: var(--green); background: var(--green-wash); }
.state-precision_requise { color: #9a590f; background: #fff0df; }
.state-a_completer { color: #9a590f; background: #fff0df; }
.state-correction_enregistree { color: var(--blue); background: var(--blue-wash); }
.page-preview { min-width: 0; background: #eeeae2; }
.page-tools { min-height: 43px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; background: var(--white); border-bottom: 1px solid var(--line); }
.page-tools a { padding: 4px 7px; border-radius: 6px; font-size: .67rem; font-weight: 800; }
.page-tools a.active { color: var(--white); background: var(--blue); }
.page-canvas { width: 100%; max-width: 100%; height: 670px; padding: 18px; overflow: auto; text-align: center; }
.page-canvas img { display: inline-block; max-width: none; height: auto; background: var(--white); box-shadow: 0 8px 30px rgba(24, 50, 71, .18); }
.page-canvas img.zoom-75 { width: 75%; }
.page-canvas img.zoom-100 { width: 100%; }
.page-canvas img.zoom-150 { width: 150%; }
.page-canvas img.zoom-200 { width: 200%; }
.proposed-reading { min-width: 0; }
.review-form { display: grid; gap: 18px; padding: 18px; }
.review-field-sections { display: grid; gap: 16px; }
.review-field-group { min-width: 0; }
.review-field-group h3 { margin: 0 0 9px; color: var(--navy); font-size: .86rem; }
.review-field-group > p { margin: -3px 0 10px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.amount-fields { padding: 13px; border: 1px solid #c9dfea; border-radius: 10px; background: #f7fbfd; }
.review-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.review-field-grid label { min-width: 0; font-size: .7rem; }
.review-field-grid input, .review-field-grid select, .review-table input { padding: 9px 10px; font-size: .77rem; }
.review-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.review-table summary { margin: 0; padding: 12px 14px; color: var(--navy); background: var(--wash); font-size: .85rem; font-weight: 850; cursor: pointer; }
.review-table table { font-size: .74rem; }
.review-table-row + .review-table-row tr:first-child td { border-top: 3px solid var(--blue-wash); }
.review-alert { margin: 14px 18px 0; padding: 12px 13px; color: #8a4f0b; background: #fff0df; border-left: 4px solid var(--orange); border-radius: 8px; font-size: .78rem; line-height: 1.45; }
.review-alert span { display: block; margin-top: 4px; color: var(--muted); }
.review-comment { margin-top: 2px; }
.review-comment small { display: block; margin-top: 5px; color: var(--muted); }
.review-actions { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; margin: 0 -18px -18px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.precision-button { border: 1px solid #e8bd8e; border-radius: 9px; padding: 11px 16px; color: #8a4f0b; background: #fff0df; font-weight: 800; }
.unassigned-review { padding: 28px; }
.unassigned-review h2 { margin-top: 0; color: var(--navy); }
.unassigned-review p { color: var(--muted); line-height: 1.55; }
.review-history { margin: 0 18px 18px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; }
.review-history summary { cursor: pointer; color: var(--blue); font-size: .76rem; font-weight: 800; }
.review-history ol { margin-bottom: 0; padding-left: 20px; color: var(--muted); font-size: .73rem; line-height: 1.7; }
.workspace-boundary { margin: 16px 0 0; color: var(--muted); font-size: .76rem; text-align: right; }
.empty-state { display: grid; place-items: center; gap: 7px; min-height: 140px; color: var(--muted); text-align: center; }
.muted { color: var(--muted); }
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); }
.flash.error { border-color: #edc7c7; color: var(--danger); background: #fff6f6; }
.flash.success { border-color: #b9dfd1; color: var(--green); background: #f4fbf8; }
.public-content { min-height: 100vh; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 8vw; padding: 7vh 9vw; background: linear-gradient(135deg, #f5fafc 0 58%, #e5f2f8 58%); }
.login-intro { max-width: 650px; }
.login-intro h1 { color: var(--navy); font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; margin: 22px 0; letter-spacing: -.04em; }
.login-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.trust-note { margin-top: 35px; padding: 18px; border-left: 4px solid var(--orange); background: rgba(255,255,255,.65); }
.trust-note strong, .trust-note span { display: block; }
.trust-note span { margin-top: 5px; color: var(--muted); font-size: .85rem; }
.login-card { max-width: 410px; width: 100%; padding: 34px; display: grid; gap: 17px; }
.login-card h2 { margin: 0; color: var(--navy); font-size: 1.7rem; }
.login-card p { margin: -10px 0 5px; }
.form-note { color: var(--muted); line-height: 1.5; }
.client-type-fields { display: contents; }
.client-type-fields[hidden] { display: none; }
.narrow-page { max-width: 680px; margin: 80px auto; padding: 0 20px; }
.narrow-page form { padding: 28px; display: grid; gap: 18px; }
.narrow-page .recovery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.narrow-page form :disabled { opacity: .48; cursor: not-allowed; }
.public-recovery-page { max-width: none; margin-block: 48px; padding-inline: clamp(16px, 4vw, 52px); }
.public-recovery-heading h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); font-weight: 550; letter-spacing: -.035em; }
.public-recovery-heading p { max-width: 680px; margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.public-recovery-page .public-recovery-card { width: min(660px, 100%); margin: 36px auto 0; padding: 34px; }
.public-recovery-card h2 { margin: 0; color: var(--navy); font-size: 1.35rem; }
.public-recovery-card > p:not(.public-recovery-help) { margin: 0; color: var(--muted); line-height: 1.55; }
.public-recovery-card label { color: var(--navy); font-weight: 700; }
.public-recovery-card input { min-height: 48px; }
.public-recovery-help { margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.error-page { min-height: calc(100vh - 170px); display: grid; align-content: center; justify-items: start; max-width: 650px; }
.error-page > span { color: var(--orange); font-size: 5rem; line-height: 1; font-weight: 900; }
.error-page h1 { color: var(--navy); font-size: 2.6rem; margin: 5px 0; }
.error-page > p:not(.eyebrow) { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 1280px) {
  .analysis-monitor-counts { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .review-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .review-workspace.detailed-only { grid-template-columns: minmax(300px, .9fr) minmax(390px, 1.2fr); }
  .proposed-reading { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .supervision-counters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .accountant-reconciliation-counters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .supervision-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supervision-groups { grid-template-columns: 1fr; }
  .site-header { grid-template-columns: minmax(160px, 1fr) auto; min-height: 88px; height: auto; gap: 14px; padding: 13px 20px; }
  .main-navigation { display: none; }
  .mobile-navigation { position: relative; display: block; justify-self: end; }
  .mobile-navigation > summary { border: 1px solid rgba(255,255,255,.55); border-radius: 9px; padding: 8px 12px; color: var(--white); list-style: none; cursor: pointer; }
  .mobile-navigation > summary::-webkit-details-marker { display: none; }
  .mobile-navigation-links { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; display: grid; min-width: 220px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: var(--shadow); }
  .mobile-navigation-links a { padding: 12px 14px; color: var(--navy); }
  .mobile-navigation-links a + a { border-top: 1px solid var(--line); }
  .account-zone { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; border-top: 1px solid rgba(255,255,255,.18); padding-top: 9px; text-align: left; }
  .sidebar-footer, .desktop-logout { display: none; }
  .responsive-logout { display: block; flex: none; }
  .responsive-logout .link-button { white-space: nowrap; }
  .main-content { min-height: calc(100vh - 88px); padding-bottom: 45px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split-layout { flex-direction: column; }
  .cancellation-card { align-items: flex-start; flex-direction: column; }
  .permanent-danger-zone { grid-template-columns: minmax(0, 1fr); }
  .validation-card { grid-template-columns: 1fr; }
  .validation-row { align-items: stretch; flex-direction: column; }
  .side-form { width: 100%; }
  .login-layout { grid-template-columns: 1fr; background: var(--wash); }
  .login-intro h1 { font-size: 2.7rem; }
  .cockpit-grid { grid-template-columns: 1fr; }
  .review-workspace.detailed-only { grid-template-columns: 1fr; }
  .readonly-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mandate-form-layout { grid-template-columns: 1fr; }
  .wide-mandate-card { grid-column: auto; }
  .transmission-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .client-current-mandate, .client-relationship-change, .client-available-services { grid-template-columns: 1fr; }
  .client-relationship-tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .client-relationship-tabs a { flex: none; }
  .supervision-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accountant-reconciliation-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accountant-reconciliation-period-heading, .accountant-reconciliation-ensemble > summary, .accountant-reconciliation-ensemble-footer { align-items: flex-start; flex-direction: column; }
  .accountant-reconciliation-period-status { justify-items: start; text-align: left; }
  .accountant-reconciliation-refresh { align-items: flex-start; flex-direction: column; }
  .supervision-sections { grid-template-columns: 1fr; }
  .stats-grid, .stats-grid.two, .form-pair, .two-tables, .form-grid, .profile-read-grid, .fact-field, .separation-note, .office-service-row { grid-template-columns: 1fr; }
  .page-heading { flex-direction: column; }
  .page-heading-actions { justify-content: flex-start; }
  .analysis-monitor-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .validation-heading { flex-direction: column; }
  .validation-heading-actions { justify-content: flex-start; }
  .review-workspace { grid-template-columns: 1fr; }
  .proposed-reading { grid-column: auto; }
  .page-canvas { height: 520px; }
  .review-field-grid { grid-template-columns: 1fr; }
  .detail-review-nav { align-items: stretch; }
  .detail-review-nav strong { width: 100%; }
  .detail-review-nav .button, .detail-review-nav a { flex: 1 1 140px; text-align: center; white-space: normal; }
  .review-actions { align-items: stretch; }
  .review-actions button { flex: 1 1 100%; white-space: normal; }
  .main-content { padding-inline: 14px; }
  .topbar { align-items: flex-start; gap: 12px; padding: 14px 0; }
  .topbar > div:first-child { min-width: 0; }
  .topbar > div:first-child strong { overflow-wrap: anywhere; }
  .topbar-actions { flex-direction: column; align-items: flex-end; }
  .site-header { padding-inline: 14px; }
  .account-zone { align-items: flex-start; flex-direction: column; }
  .account-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 10px 13px; }
  .login-layout { padding: 35px 18px; }
  .login-intro h1 { font-size: 2.2rem; }
  .overview-grid { grid-template-columns: 1fr; }
  .client-navigation-context { align-items: flex-start; flex-direction: column; }
  .cockpit-row { grid-template-columns: 1fr; align-items: start; }
  .bulk-review-controls { align-items: stretch; flex-direction: column; }
  .bulk-review-controls > * { width: 100%; }
  .context-switcher summary { white-space: normal; text-align: left; }
  .context-menu { position: fixed; top: auto; right: 10px; left: 10px; width: auto; }
  .space-choice-panel { grid-template-columns: 1fr; }
  .space-choice-panel .button { width: 100%; }
  .mandate-context-nav { flex-wrap: wrap; justify-content: flex-start; overflow-x: visible; margin-inline: -14px; border-radius: 0; padding-inline: 14px; }
  .mandate-screen-meta { margin-bottom: 14px; }
  .accountant-client-bar, .accountant-client-bar label { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .accountant-client-bar { gap: 12px; padding: 12px 14px; }
  .accountant-client-bar p { text-align: left; }
  .accountant-folder-heading, .validation-submit-bar, .reconciliation-period-heading, .reconciliation-decision, .reconciliation-run-form { align-items: stretch; flex-direction: column; }
  .validation-selection-controls { align-items: stretch; flex-direction: column; }
  .validation-selection-controls > *, .validation-selection-controls label { width: 100%; }
  .reconciliation-sequence, .declaration-review dl { grid-template-columns: 1fr; }
  .reconciliation-sequence article { grid-template-columns: auto 1fr; }
  .reconciliation-sequence article > strong { grid-column: 2; }
  .selection-operated { align-items: flex-start; flex-direction: column; }
  .accountant-detail-grid { grid-template-columns: 1fr; }
  .mandate-context-nav { position: relative; }
  .folder-nav-menu { position: static; }
  .folder-nav-menu > div { position: absolute; top: auto; right: 14px; left: 14px; }
  .mandate-page-heading { margin-bottom: 22px; }
  .mandate-card { padding: 18px; }
  .mandate-card-heading { display: grid; gap: 6px; }
  .readonly-field-grid, .client-contact-details, .transmission-field-grid, .mandate-service-choices { grid-template-columns: 1fr; }
  .mandate-service-row { grid-template-columns: 1fr; align-items: stretch; }
  .mandate-form-actions { align-items: stretch; justify-content: stretch; }
  .mandate-form-actions > * { flex: 1 1 100%; }
  .invitation-path-card > div { align-items: flex-start; }
  .office-invite-card .form-grid { grid-template-columns: minmax(0, 1fr); }
  .office-invite-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .office-invite-actions > .button, .office-invite-actions > button { width: 100%; }
}

/* Client space information: progressive four-step editor, scoped to this screen. */
.space-settings-wizard { display: grid; gap: 22px; }
.space-settings-progress ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.space-settings-progress li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: center; color: var(--muted); }
.space-settings-progress li span { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--white); font-weight: 700; }
.space-settings-progress li strong { font-size: .85rem; line-height: 1.25; }
.space-settings-progress li.active { color: var(--navy); }
.space-settings-progress li.active span { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(231, 124, 48, .14); }
.space-settings-progress li.complete span { border-color: var(--blue); background: var(--blue); color: var(--white); }
.space-settings-caption { margin: -8px 0 0; color: var(--muted); font-size: .9rem; }
.space-settings-page { display: grid; gap: 16px; }
.space-settings-page [data-private-address], .space-settings-page [data-professional-address], .space-settings-page #professional-address-note { grid-column: 1 / -1; }
.space-settings-wizard.is-enhanced [hidden] { display: none !important; }
.space-settings-page > h2 { margin: 0; }
.space-settings-actions { display: flex; justify-content: space-between; gap: 12px; }
.space-settings-actions [data-space-next], .space-settings-actions [data-space-submit] { margin-left: auto; }
.space-settings-review { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.space-settings-review dt, .space-settings-review dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.space-settings-review dt { background: var(--soft); font-weight: 650; }
.space-settings-review dt:last-of-type, .space-settings-review dd:last-of-type { border-bottom: 0; }
@media (max-width: 700px) {
  .space-settings-progress ol { grid-template-columns: 1fr 1fr; }
  .space-settings-progress li { grid-template-columns: 30px minmax(0, 1fr); }
  .space-settings-progress li span { width: 30px; height: 30px; }
  .space-settings-review { grid-template-columns: 1fr; }
  .space-settings-review dd { padding-top: 4px; }
}
@media (max-width: 320px) {
  .main-content { padding-inline: 10px; }
  .mandate-context-nav { margin-inline: -10px; padding-inline: 10px; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-inline: 10px; }
  .client-tabs > * { padding-inline: 9px; }
  .detail-review-nav { position: static; }
  .page-canvas { height: 430px; padding: 10px; }
  .brand-link { min-width: 0; }
  .brand-link .brand-symbol { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-link .brand-wordmark { font-size: .85rem; }
  .brand-signature { font-size: .39rem; }
  .account-context { font-size: .74rem; }
  .context-switcher summary, .site-header .link-button { font-size: .7rem; }
  .logout-label { font-size: .7rem; }
  .space-welcome h1 { font-size: 2.25rem; }
}

@media (max-width: 700px) {
  .public-recovery-page { margin-block: 24px; }
  .public-recovery-page .public-recovery-card { margin-top: 28px; padding: 22px 20px; }
  .public-recovery-card .recovery-actions { align-items: flex-start; flex-direction: column; }
  .public-content:has(.onboarding-form), .public-content:has(.signup-closed) { width: 100%; padding: 28px 14px 45px; }
  .onboarding-heading, .onboarding-form, .onboarding-form fieldset { width: 100%; min-width: 0; }
  .onboarding-heading h1 { overflow-wrap: anywhere; }
  .onboarding-progress ol { grid-template-columns: 1fr; }
  .onboarding-form[data-registration="false"] .onboarding-progress ol { grid-template-columns: 1fr; }
  .onboarding-progress li:not(.active) strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .onboarding-progress ol { display: flex; justify-content: space-between; }
  .onboarding-progress li { grid-template-columns: auto; }
  .onboarding-profile-grid, .form-grid { grid-template-columns: 1fr; }
  .onboarding-actions { align-items: stretch; flex-direction: column; }
  .onboarding-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .onboarding-actions .button { width: 100%; }
  .registration-wizard .onboarding-progress ol { gap: 4px; }
  .registration-wizard .onboarding-progress li, .registration-wizard .onboarding-progress li:last-child { flex: 1; flex-direction: column; gap: 5px; text-align: center; font-size: .7rem; }
  .registration-wizard .onboarding-progress li:not(.active) strong { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .registration-wizard .onboarding-progress li:not(:last-child)::after { display: none; }
  .registration-wizard .onboarding-kind-step { padding: 22px 16px; }
  .registration-wizard .onboarding-profile-card { min-height: 0; }
  .registration-wizard .onboarding-account-step { padding: 22px 16px; }
  .registration-wizard .onboarding-account-step .onboarding-account-wide { grid-column: auto; }
  .registration-wizard .onboarding-coordinates-step { padding: 22px 16px; }
}

/* Parcours documentaire client 0965. */
.document-subnavigation { display: flex; min-width: 0; align-items: center; gap: 8px; overflow-x: auto; margin: -12px 0 28px; border-radius: 13px; padding: 9px 14px; background: var(--navy-dark); box-shadow: 0 10px 28px rgba(7, 58, 81, .13); scrollbar-width: thin; }
form.document-subnavigation label > span { color: #dceaf0; }
.document-subnavigation a { flex: 0 0 auto; border-radius: 8px; padding: 9px 14px; color: #dceaf0; font-size: .8rem; font-weight: 750; white-space: nowrap; }
.document-subnavigation a:hover, .document-subnavigation a:focus-visible { color: var(--white); background: rgba(255,255,255,.12); }
.document-subnavigation a.active { color: var(--navy); background: var(--white); }
.document-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.document-page-heading h1 { margin: 4px 0 8px; color: var(--navy); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 550; letter-spacing: -.04em; line-height: 1.05; }
.document-page-heading p { max-width: 850px; margin: 0; color: var(--muted); line-height: 1.55; }
.document-door-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.document-door-card { display: grid; min-height: 180px; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 18px; border: 1px solid #bcd4df; border-radius: 18px; padding: clamp(24px, 3vw, 38px); color: var(--ink); background: var(--white); box-shadow: var(--shadow); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.document-door-card:hover, .document-door-card:focus-visible { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 22px 54px rgba(15,72,101,.14); }
.document-door-card > span:last-child { color: var(--orange); font-size: 1.6rem; }
.document-door-card strong, .document-door-card small { display: block; }
.document-door-card strong { color: var(--navy); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.25; }
.document-door-card small { margin-top: 9px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.document-door-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; color: var(--white); background: linear-gradient(145deg, var(--blue), var(--navy)); font-size: 1.25rem; font-weight: 850; }
.document-door-card:nth-child(2) .document-door-icon { background: linear-gradient(145deg, var(--orange), #c75c09); }
.document-assurance { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: 15px 18px; color: var(--muted); background: rgba(255,255,255,.76); font-size: .82rem; line-height: 1.45; }
.document-assurance strong { flex: 0 0 auto; color: var(--navy); }
.panel { min-width: 0; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 2.6vw, 30px); background: var(--white); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0 0 6px; color: var(--navy); font-size: 1.22rem; }
.section-heading p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.document-upload-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.document-upload-context > div { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; background: var(--wash); }
.document-upload-context span { color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.document-upload-context strong { color: var(--navy); }
.document-dropzone { position: relative; display: grid; min-height: 150px; place-items: center; align-content: center; gap: 7px; border: 2px dashed #9fbfce; border-radius: 15px; padding: 24px; color: var(--navy); background: #f7fbfd; text-align: center; cursor: pointer; }
.document-dropzone:hover, .document-dropzone:focus-within { border-color: var(--blue); background: var(--blue-wash); }
.document-dropzone > span { color: var(--muted); font-weight: 500; }
.document-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.selected-document-files { display: grid; gap: 8px; margin-top: 14px; }
.selected-document-files > p { margin: 0; border-radius: 10px; padding: 12px 14px; color: var(--muted); background: var(--wash); }
.selected-document-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(100px, auto); align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: .8rem; }
.selected-document-row strong { overflow-wrap: anywhere; }
.selected-document-row .ready { color: var(--green); font-weight: 750; }
.selected-document-row .error { color: var(--danger); font-weight: 750; }
.office-selection-header, .office-selected-document-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(100px, auto) auto; align-items: center; gap: 16px; }
.office-selection-header { border-bottom: 1px solid var(--line); padding: 0 14px 8px; color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.office-selected-document-row { grid-template-columns: minmax(0, 1fr) auto minmax(100px, auto) auto; }
.office-file-remove { justify-self: end; font-weight: 750; cursor: pointer; }
.office-document-actions { justify-content: flex-end; margin-top: 20px; }
.export-list-table, .regulatory-archive-table { min-width: 760px; }
.regulatory-archive-table td strong, .regulatory-archive-table td small { display: block; }
.regulatory-archive-table td small { margin-top: 3px; color: var(--muted); }
.export-list-table td strong, .export-list-table td small { display: block; }
.export-list-table td small { margin-top: 3px; color: var(--muted); }
.table-empty-row td { padding: 32px 18px; text-align: center; }
.table-empty-row strong, .table-empty-row span { display: block; }
.table-empty-row span { margin-top: 6px; color: var(--muted); }
.document-limit-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.document-limit-strip > span { border-radius: 999px; padding: 6px 10px; color: var(--muted); background: var(--wash); font-size: .7rem; font-weight: 650; }
.document-confirm-actions { justify-content: flex-end; margin-top: 20px; }
.document-table { min-width: 760px; }
.document-table td strong, .document-table td small { display: block; }
.document-table td small { line-height: 1.4; }
.document-hierarchy { margin: 0 0 22px; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--white); }
.document-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.document-category-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--navy); background: #f8fbfc; text-decoration: none; }
.document-category-card:hover, .document-category-card.active { border-color: var(--blue); background: #eef8fa; }
.document-category-card span { min-width: 0; font-weight: 650; }
.document-category-card strong { font-size: 1.35rem; }
.document-hierarchy-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; border-radius: 12px; padding: 16px; background: #f3f7f8; }
.document-hierarchy-filters label { display: grid; gap: 6px; min-width: 180px; flex: 1; }
.document-hierarchy-filters label > span { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.document-hierarchy-filters select { width: 100%; }
.document-hierarchy-filters button { border: 0; border-radius: 9px; padding: 11px 20px; color: #fff; background: var(--blue); font: inherit; font-weight: 700; }
.hierarchy-arrow { align-self: center; color: var(--blue); font-size: 1.4rem; }
.document-hierarchy-note { margin: 14px 0 0; color: var(--muted); font-size: .84rem; }
.document-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.document-source-card { margin: 0 !important; border-top: 4px solid var(--blue); }
.document-source-card.office-source { border-top-color: #8268a8; }
.document-source-card > span { display: block; color: var(--navy); font-weight: 750; }
.document-source-card > strong { display: block; margin: 8px 0; color: var(--navy); font-size: 2rem; }
.document-source-card p { margin: 0 0 10px; color: var(--muted); }
.document-hierarchy-path { margin-top: 8px; border-radius: 8px; padding: 7px 9px; color: var(--navy); background: #f3f7f8; }
.status-pill.warning { color: #94530d; background: #fff0df; }
.status-pill.error { color: var(--danger); background: #faeaea; }
.status-pill.success { color: var(--green); background: var(--green-wash); }
.delivery-state-badge { flex: 0 0 auto; border-radius: 999px; padding: 10px 16px; color: var(--navy); background: var(--blue-wash); font-size: .83rem; font-weight: 800; }
.delivery-file-list { display: grid; gap: 14px; }
.delivery-file-card { margin: 0; }
.delivery-file-card.has-error { border-color: #edc7c7; }
.delivery-file-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.delivery-file-heading strong, .delivery-file-heading small { display: block; }
.delivery-file-heading strong { overflow-wrap: anywhere; color: var(--navy); }
.delivery-file-heading small { margin-top: 4px; color: var(--muted); }
.file-error-message { margin: 15px 0 0; border-radius: 10px; padding: 12px 14px; color: var(--danger); background: #fff6f6; line-height: 1.5; }
.document-metadata { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.document-metadata > div { min-width: 0; border-radius: 10px; padding: 10px 12px; background: var(--wash); }
.document-metadata dt { color: var(--muted); font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.document-metadata dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--navy); font-size: .8rem; font-weight: 700; }
.classification-proposal { display: grid; gap: 4px; border-left: 3px solid var(--blue); padding: 4px 0 4px 13px; }
.classification-proposal span { color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.classification-form { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; align-items: end; gap: 12px; margin-top: 18px; }
.classification-form .compact { min-height: 42px; padding-block: 9px; }
.private-movement-list { display: grid; gap: 9px; }
.private-movement-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: #f9fbfc; }
.private-movement-row input { width: 18px; height: 18px; }
.private-movement-row strong, .private-movement-row small { display: block; }
.private-movement-row small { margin-top: 3px; color: var(--muted); font-weight: 500; }

@media (max-width: 980px) {
  .document-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-door-grid { grid-template-columns: 1fr; }
  .classification-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classification-form .button { width: 100%; }
}
@media (max-width: 640px) {
  .document-source-grid, .document-category-grid { grid-template-columns: 1fr; }
  .document-hierarchy { padding: 16px; }
  .document-hierarchy-filters { align-items: stretch; flex-direction: column; }
  .document-hierarchy-filters label { width: 100%; min-width: 0; }
  .document-hierarchy-filters button { width: 100%; }
  .hierarchy-arrow { display: none; }
  .document-subnavigation { justify-content: flex-start; margin-inline: -14px; border-radius: 0; padding-inline: 14px; }
  .document-page-heading, .document-assurance { flex-direction: column; }
  .document-page-heading .button { width: 100%; }
  .document-door-card { min-height: 0; grid-template-columns: 48px minmax(0, 1fr) auto; padding: 20px 16px; }
  .document-door-icon { width: 48px; height: 48px; border-radius: 13px; }
  .document-upload-context, .document-metadata, .classification-form { grid-template-columns: 1fr; }
  .selected-document-row { grid-template-columns: minmax(0, 1fr) auto; }
  .selected-document-row > span:last-child { grid-column: 1 / -1; }
  .office-selection-header { display: none; }
  .office-selected-document-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .office-selected-document-row > span:nth-of-type(2) { grid-column: 1; }
  .office-file-remove { grid-column: 2; grid-row: 2; }
  .office-document-actions { align-items: stretch; }
  .office-document-actions > * { width: 100%; }
  .office-document-table, .received-office-document-table { min-width: 0; }
  .office-document-table thead, .received-office-document-table thead { display: none; }
  .office-document-table, .office-document-table tbody, .office-document-table tr, .office-document-table td,
  .received-office-document-table, .received-office-document-table tbody, .received-office-document-table tr, .received-office-document-table td { display: block; width: 100%; }
  .office-document-table tr, .received-office-document-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--white); }
  .office-document-table td, .received-office-document-table td { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); gap: 10px; border-bottom: 1px solid var(--line); padding: 9px 0; overflow-wrap: anywhere; }
  .office-document-table td::before, .received-office-document-table td::before { content: attr(data-label); color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .office-document-table td:last-child, .received-office-document-table td:last-child { border-bottom: 0; }
  .export-list-table, .regulatory-archive-table { min-width: 0; }
  .export-list-table thead, .regulatory-archive-table thead { display: none; }
  .export-list-table, .export-list-table tbody, .export-list-table tr, .export-list-table td,
  .regulatory-archive-table, .regulatory-archive-table tbody, .regulatory-archive-table tr, .regulatory-archive-table td { display: block; width: 100%; }
  .export-list-table tr, .regulatory-archive-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--white); }
  .export-list-table td, .regulatory-archive-table td { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); gap: 10px; border-bottom: 1px solid var(--line); padding: 9px 0; overflow-wrap: anywhere; text-align: left; }
  .export-list-table td::before, .regulatory-archive-table td::before { content: attr(data-label); color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .export-list-table td:last-child, .regulatory-archive-table td:last-child { border-bottom: 0; }
  .export-list-table .table-empty-row td, .regulatory-archive-table .table-empty-row td { display: block; border: 0; text-align: center; }
  .export-list-table .table-empty-row td::before, .regulatory-archive-table .table-empty-row td::before { content: none; }
  .document-confirm-actions { align-items: stretch; }
  .document-confirm-actions > * { width: 100%; }
  .private-movement-row { grid-template-columns: auto minmax(0, 1fr); }
  .private-movement-row .status-pill { grid-column: 2; justify-self: start; }
  .missing-expectations-table { min-width: 0; }
  .missing-expectations-table th:nth-child(2), .missing-expectations-table td:nth-child(2),
  .missing-expectations-table th:nth-child(3), .missing-expectations-table td:nth-child(3),
  .missing-expectations-table th:nth-child(4), .missing-expectations-table td:nth-child(4) { display: none; }
  .missing-expectations-table th:last-child, .missing-expectations-table td:last-child { width: 96px; text-align: right; }
}

.subsection-tabs { display: flex; min-width: 0; gap: 8px; overflow-x: auto; margin: 0 0 20px; border-bottom: 1px solid var(--line); padding: 0 2px 9px; }
.subsection-tabs a { flex: 0 0 auto; border-radius: 8px; padding: 9px 13px; color: var(--muted); font-size: .86rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.subsection-tabs a.active { background: var(--navy); color: var(--white); }
.expected-period-card { margin-bottom: 18px; }
.expected-period-actions { align-items: end; justify-content: flex-end; }
.expected-period-actions form { display: flex; align-items: end; gap: 10px; }
.expected-period-actions label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.expected-period-actions input { min-height: 38px; }
.table-token { display: inline-block; margin: 2px 4px 2px 0; border-radius: 999px; padding: 4px 8px; background: var(--blue-wash); color: var(--navy); font-size: .76rem; }

@media (max-width: 640px) {
  .subsection-tabs { display: grid; grid-template-columns: 1fr; overflow-x: visible; margin-inline: 0; padding-inline: 0; }
  .subsection-tabs a { min-width: 0; white-space: normal; text-align: center; }
  .expected-definitions-table { min-width: 0; }
  .expected-definitions-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .expected-definitions-table, .expected-definitions-table tbody, .expected-definitions-table tr { display: block; width: 100%; }
  .expected-definitions-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 11px; padding: 5px 12px; background: var(--white); }
  .expected-definitions-table tr:last-child { margin-bottom: 0; }
  .expected-definitions-table td { display: grid; grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr); gap: 10px; width: 100%; border-bottom: 1px solid var(--line); padding: 10px 0; overflow-wrap: anywhere; }
  .expected-definitions-table td::before { align-self: center; color: var(--muted); content: attr(data-label); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .expected-definitions-table td:last-child { border-bottom: 0; }
  .expected-definitions-table td form, .expected-definitions-table td .button { width: 100%; }
  .expected-period-actions, .expected-period-actions form { align-items: stretch; flex-direction: column; width: 100%; }
  .expected-period-actions .button { width: 100%; }
}

/* Accueil public Fyonalis, aligné sur la référence figée public/home. */
.public-home-shell { min-width: 0; background: #f4f8fa; color: #173247; font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif; }
.public-home-shell a { color: inherit; }
.public-home-skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; border-radius: 8px; padding: 10px 16px; background: #fff; color: #0b4e6a; }
.public-home-skip-link:focus { top: 10px; }
.public-home-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(210px, 1fr) auto; min-height: 112px; align-items: center; gap: 28px; padding: 16px clamp(24px, 3.4vw, 56px); background: #0b4e6a; color: #fff; box-shadow: 0 2px 12px rgba(4, 31, 52, .18); }
.public-home-brand { display: inline-flex; width: min(252px, 100%); min-width: 0; align-items: center; gap: 11px; text-decoration: none; }
.public-home-brand img { display: block; width: 46px; height: 46px; flex: 0 0 46px; }
.public-home-brand .public-home-symbol { display: block; width: 46px; height: 46px; flex: 0 0 46px; }
.public-home-brand > span { display: block; min-width: 0; padding-top: 2px; }
.public-home-brand strong { display: block; color: #fff; font-family: "DM Sans", Arial, sans-serif; font-size: 20px; font-weight: 500; letter-spacing: .105em; line-height: 1.05; white-space: nowrap; }
.public-home-brand strong::after { display: block; width: 42px; height: 3px; margin-top: 5px; border-radius: 2px; background: #ff760f; content: ""; }
.public-home-brand small { display: block; margin-top: 5px; color: #b7d0dc; font-size: 8px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.public-home-navigation { display: flex; min-width: 0; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 34px); }
.public-home-navigation > a { position: relative; padding: 16px 0 13px; color: #e1edf2; font-size: 17px; text-decoration: none; white-space: nowrap; }
.public-home-navigation > a:hover, .public-home-navigation > a:focus-visible { color: #fff; }
.public-home-navigation > a.active { color: #fff; }
.public-home-navigation > a.active::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 3px; border-radius: 4px; background: #f08a24; content: ""; }
.public-home-content { width: min(1480px, 100%); min-width: 0; min-height: calc(100vh - 112px); margin: 0 auto; padding: clamp(28px, 4vw, 58px) clamp(24px, 4vw, 62px) 72px; }
.public-home-dedicated-content { display: grid; align-content: start; }
.public-home-dedicated-content > .public-home-discover, .public-home-dedicated-content > .public-home-workflow { margin-top: 0; }
.public-home-hero { display: grid; max-width: 1050px; padding: clamp(18px, 2.5vw, 36px) 0 0; }
.public-home-hero h1 { max-width: 980px; margin: 0; color: #0b4e6a; font-size: clamp(38px, 5vw, 66px); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.public-home-hero p { max-width: 880px; margin: 10px 0 0; color: #61798a; font-size: clamp(18px, 2vw, 24px); line-height: 1.5; }
.public-home-access-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: clamp(22px, 3vw, 42px); margin-top: clamp(38px, 5vw, 64px); }
.public-home-card-stack { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.public-home-card-stack article { position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: center; border: 1px solid #c7dbe6; border-radius: 15px; padding: 22px 27px; background: #fff; box-shadow: 0 14px 38px rgba(7, 58, 81, .08); }
.public-home-card-stack h2 { margin: 0 0 9px; color: #173247; font-size: 21px; font-weight: 600; line-height: 1.25; }
.public-home-card-stack p { margin: 0; color: #61798a; font-size: 15px; line-height: 1.45; }
.public-home-login-panel { display: flex; min-width: 0; flex-direction: column; border: 1px solid #bcd4df; border-radius: 18px; padding: clamp(28px, 3.4vw, 46px); background: #fff; box-shadow: 0 18px 48px rgba(7, 58, 81, .12); }
.public-home-login-heading > span { color: #0b668f; font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.public-home-login-heading h2 { margin: 8px 0 9px; color: #0b4e6a; font-size: clamp(30px, 3vw, 42px); font-weight: 550; letter-spacing: -.035em; line-height: 1.1; }
.public-home-login-heading p { margin: 0; color: #61798a; font-size: 16px; line-height: 1.5; }
.public-home-login-panel .flash-stack { margin: 22px 0 0; }
.public-home-login-fields { display: grid; gap: 17px; margin-top: 28px; }
.public-home-login-fields label { display: grid; gap: 7px; color: #173247; font-size: 14px; font-weight: 700; }
.public-home-login-fields input { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #b9d1de; border-radius: 10px; padding: 10px 13px; background: #fff; color: #173247; font: inherit; }
.public-home-login-fields input:focus { border-color: #0b668f; outline: 3px solid rgba(11, 102, 143, .13); }
.public-home-login-submit { width: 100%; min-height: 48px; margin-top: 2px; font-size: 16px; }
.public-home-register-zone { display: grid; justify-items: center; gap: 8px; margin-top: auto; padding-top: clamp(36px, 6vw, 82px); text-align: center; }
.public-home-register-zone > span { color: #61798a; font-size: 13px; }
.public-home-register-link { color: #d7680f !important; font-size: 17px; font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.public-home-discover, .public-home-workflow { scroll-margin-top: 130px; margin-top: clamp(34px, 6vw, 82px); border-radius: 24px; padding: clamp(28px, 4vw, 52px); }
.public-home-discover { overflow: hidden; background: linear-gradient(145deg, #073a51, #0a5d7c 66%, #117ca5); color: #fff; box-shadow: 0 24px 60px rgba(7, 58, 81, .2); }
.public-home-section-intro { max-width: 860px; }
.public-home-section-intro > span { color: #ffb56d; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.public-home-section-intro h2 { margin: 9px 0 12px; color: #fff; font-size: clamp(29px, 3.4vw, 47px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.public-home-section-intro p { margin: 0; color: #d6e8ef; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.public-home-transformation { display: grid; grid-template-columns: minmax(220px, 1fr) 42px minmax(180px, .7fr) 42px minmax(220px, 1fr); align-items: center; gap: 14px; margin-top: 34px; border: 1px solid rgba(255,255,255,.17); border-radius: 20px; padding: clamp(22px, 3vw, 34px); background: rgba(255,255,255,.07); }
.public-home-transformation article { min-width: 0; }
.public-home-column-label { display: block; margin-bottom: 14px; color: #bcd8e4; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.public-home-document-list, .public-home-result-list { display: grid; gap: 10px; }
.public-home-document-list > span, .public-home-result-list > span { display: flex; min-width: 0; min-height: 48px; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.19); border-radius: 11px; padding: 11px 13px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; }
.public-home-document-list b { border-radius: 5px; padding: 4px 6px; background: rgba(240,138,36,.22); color: #ffc68f; font-size: 10px; }
.public-home-result-list > span { justify-content: space-between; }
.public-home-result-list b { color: #7be0b3; }
.public-home-arrow { color: #88cce8; font-size: 30px; text-align: center; }
.public-home-engine { display: grid; justify-items: center; gap: 7px; text-align: center; }
.public-home-engine > strong { font-size: 20px; }
.public-home-engine > small { color: #bcd8e4; line-height: 1.35; }
.public-home-orbit { position: relative; display: grid; width: 104px; height: 104px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: radial-gradient(circle, rgba(20,141,202,.72), rgba(7,58,81,.18) 66%); }
.public-home-orbit::before, .public-home-orbit::after { position: absolute; content: ""; border: 1px solid rgba(116,211,245,.45); border-radius: 50%; inset: 11px; }
.public-home-orbit::after { border-color: rgba(240,138,36,.65); inset: 23px; }
.public-home-orbit b { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: #fff; color: #0b4e6a; }
.public-home-discover-note { min-height: 116px; margin-top: 24px; }
.public-home-discover-note > span { color: #ffb56d; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.public-home-discover-note h3 { margin: 7px 0 6px; font-size: clamp(22px, 2.3vw, 31px); font-weight: 600; }
.public-home-discover-note p { max-width: 850px; margin: 0; color: #d6e8ef; font-size: 17px; line-height: 1.5; }
.public-home-workflow { border: 1px solid #c7dbe6; background: #fff; box-shadow: 0 14px 38px rgba(7, 58, 81, .08); }
.public-home-workflow-intro > span { color: #0b668f; }
.public-home-workflow-intro h2 { color: #0b4e6a; }
.public-home-workflow-intro p { color: #61798a; }
.public-home-journeys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.public-home-journey { min-width: 0; overflow: hidden; border: 1px solid #bcd4df; border-radius: 18px; padding: clamp(24px, 3vw, 38px); background: linear-gradient(145deg, #f8fbfc, #eaf5fa); }
.public-home-journey.accountant { border-color: #ead4bb; background: linear-gradient(145deg, #fffaf5, #f7eee4); }
.public-home-journey-label { color: #0b668f; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.public-home-journey.accountant .public-home-journey-label { color: #a6530d; }
.public-home-journey h3 { margin: 8px 0 22px; color: #0b4e6a; font-size: clamp(26px, 2.7vw, 37px); font-weight: 600; line-height: 1.15; }
.public-home-journey ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.public-home-journey li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; border-radius: 10px; padding: 10px; background: rgba(255,255,255,.82); color: #173247; }
.public-home-journey li span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #b9d1de; border-radius: 50%; background: #fff; color: #0b668f; font-size: 12px; }
.public-home-journey.accountant li span { border-color: #e7b980; color: #a6530d; }
.public-home-journey li strong { min-width: 0; font-size: 14px; line-height: 1.35; }

@media (max-width: 950px) {
  .public-home-access-layout { grid-template-columns: 1fr; }
  .public-home-transformation { grid-template-columns: 1fr; }
  .public-home-arrow { transform: rotate(90deg); }
}

@media (max-width: 700px) {
  .public-home-header { grid-template-columns: minmax(132px, 1fr) auto; min-height: 96px; gap: 10px; padding: 12px 16px; }
  .public-home-brand { width: 154px; }
  .public-home-brand img { width: 40px; height: 40px; flex-basis: 40px; }
  .public-home-brand .public-home-symbol { width: 40px; height: 40px; flex-basis: 40px; }
  .public-home-brand strong { font-size: 16px; }
  .public-home-brand small { display: none; }
  .public-home-navigation { justify-content: flex-end; gap: 8px; }
  .public-home-navigation > a { display: none; }
  .public-home-content { padding: 24px 16px 58px; }
  .public-home-hero { padding-top: 12px; }
  .public-home-access-layout, .public-home-journeys { grid-template-columns: 1fr; }
  .public-home-card-stack { grid-template-rows: none; }
  .public-home-card-stack article { min-height: 0; padding: 22px; }
  .public-home-login-panel { padding: 26px 22px; }
  .public-home-register-zone { padding-top: 44px; }
  .public-home-discover, .public-home-workflow { scroll-margin-top: 104px; margin-inline: -2px; border-radius: 17px; padding: 24px 18px; }
  .public-home-transformation { padding: 18px; }
  .public-home-journey { padding: 24px 18px; }
}

@media (max-width: 359px) {
  .public-home-header { grid-template-columns: minmax(112px, 1fr) auto; padding-inline: 10px; }
  .public-home-brand { width: 132px; gap: 8px; }
  .public-home-brand img { width: 35px; height: 35px; flex-basis: 35px; }
  .public-home-brand .public-home-symbol { width: 35px; height: 35px; flex-basis: 35px; }
  .public-home-brand strong { font-size: 14px; }
  .public-home-content { padding-inline: 12px; }
}

.navigation-dropdown { position: relative; }
.navigation-dropdown > summary { cursor: pointer; list-style: none; white-space: nowrap; }
.navigation-dropdown > summary::-webkit-details-marker { display: none; }
.navigation-dropdown > div { position: absolute; right: 0; z-index: 20; min-width: 250px; padding: .45rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 14px 30px rgba(21, 43, 72, .14); }
.navigation-dropdown > div a, .navigation-dropdown > div a.active { display: block; padding: .55rem .65rem; color: var(--navy); white-space: normal; }
.mobile-navigation .navigation-dropdown > summary { padding: 12px 14px; color: var(--navy); white-space: normal; }
.mobile-navigation .navigation-dropdown > div { position: static; min-width: 0; box-shadow: none; }
.lifecycle-steps, .closure-diagram { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.lifecycle-steps li, .closure-diagram article { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: white; }
.lifecycle-steps span, .step-button { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--blue); color: white; font-weight: 800; text-decoration: none; }
.closure-diagram article { text-align: center; }
.closure-diagram article.disabled { opacity: .55; }
.closure-diagram h2 { font-size: 1rem; }
.recovery-categories { display: grid; gap: .8rem; margin: 1rem 0; }
.recovery-category summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; cursor: pointer; }
.recovery-category > div { display: grid; gap: .5rem; padding: 0 1rem 1rem; }
.recovery-category-title { display: inline-flex; min-width: 0; gap: .55rem; align-items: center; }
.recovery-category-title input { width: 18px; height: 18px; flex: 0 0 18px; }
.recovery-category-content, .recovery-document-list { display: grid; gap: .55rem; }
.recovery-filter { max-width: 32rem; }
.recovery-document-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; align-items: start; min-width: 0; }
.recovery-document-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: baseline; min-width: 0; }
.recovery-document-name { min-width: 0; overflow-wrap: anywhere; }
.recovery-document-meta small { white-space: nowrap; }
.mandate-termination-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); }
.financial-state { padding: .8rem 1rem; border-radius: 12px; background: var(--wash); }
.closure-step-form { align-items: center; }
.step-button:disabled { cursor: not-allowed; }

@media (max-width: 700px) {
  .lifecycle-steps, .closure-diagram, .mandate-termination-row { grid-template-columns: 1fr; }
  .navigation-dropdown > div { position: static; min-width: 0; box-shadow: none; }
  .closure-diagram article { overflow-wrap: anywhere; }
  .recovery-category summary, .recovery-document-meta { align-items: start; }
  .recovery-document-meta { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .recovery-document-meta small { white-space: normal; }
}

/* 0984: the additional client progress destination must not overlap the brand. */
@media (min-width: 981px) {
  .site-header:has(.main-navigation a[href="/espace/avancement"]) { grid-template-columns: minmax(230px, 1fr) auto; gap: 8px 24px; }
  .site-header:has(.main-navigation a[href="/espace/avancement"]) > .brand-link { grid-column: 1; grid-row: 1; }
  .site-header:has(.main-navigation a[href="/espace/avancement"]) > .account-zone { grid-column: 2; grid-row: 1; }
  .site-header:has(.main-navigation a[href="/espace/avancement"]) > .main-navigation { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 8px 24px; }
}

/* ADM04c: announcements occupy space only when present, below the shell menu. */
#system-announcements { width: 100%; overflow-anchor: none; }
#system-announcements[hidden], #announcement-form [hidden] { display: none; }
.system-announcement { padding: 14px clamp(20px, 4vw, 60px); background: #eaf4fa; color: #153b55; border-bottom: 1px solid #bfd6e4; overflow-wrap: anywhere; }
.system-announcement[data-kind="MAINTENANCE"] { background: #fff3da; color: #624510; }
.system-announcement[data-kind="INCIDENT"] { background: #fdeceb; color: #702823; }
.announcement-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.announcement-entry { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.announcement-pagination { display: flex; gap: 24px; margin-top: 18px; }
#announcement-form textarea { width: 100%; min-width: 0; }
#announcement-form > label, #announcement-form > details { display: block; margin: 18px 0; }

.site-header[data-administration="1"] .main-navigation { flex-wrap: wrap; column-gap: 18px; row-gap: 0; }

/* ADM07a: help overlays only its own panel; dossier controls remain mounted. */
#support-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 45; border-radius: 24px; background: var(--navy); color: white; padding: 12px 22px; box-shadow: var(--shadow); }
#support-panel { position: fixed; top: 14px; bottom: 14px; right: 14px; width: 420px; max-width: calc(100vw - 28px); z-index: 50; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
#support-panel[hidden], #support-panel [hidden] { display: none; }
#support-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--navy); color: white; }
#support-panel h2 { font-size: 1.15rem; margin: 0; }
#support-close { background: transparent; color: white; font-size: 1.5rem; border: 0; padding: 4px 10px; }
.support-context { margin: 0; padding: 10px 18px; background: #eaf4fa; }
.support-tabs { display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 18px; }
.support-tabs button { background: white; color: var(--navy); }
.support-tabs [aria-pressed="true"], .support-tabs .active { border-bottom: 3px solid var(--orange); }
.support-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 18px 20px; }
#support-panel label { display: block; margin: 12px 0; }
#support-panel textarea, #support-panel input, #support-panel select { width: 100%; }
.support-message, .support-ticket-entry { border-bottom: 1px solid var(--line); padding: 14px 0; overflow-wrap: anywhere; }
.support-message p { white-space: pre-wrap; }
#support-panel h2, #support-panel p { overflow-wrap: anywhere; }
@media (max-width: 520px) { #support-panel { inset: 0; width: 100%; max-width: 100%; border-radius: 0; } }

.support-tabs button, .support-body button[type="submit"] { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; cursor: pointer; }
.support-tabs button[aria-pressed="true"] { border-bottom: 3px solid var(--orange); }
.support-body button[type="submit"] { background: var(--navy); color: white; margin: 8px 0; }
.support-body button:disabled { opacity: .6; cursor: default; }

#support-panel input[type="checkbox"] { width: auto; }
.support-statistics { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; max-width: 650px; }
.support-statistics dd { margin: 0; font-weight: 600; }
/* ADM06: keep the PH navigation clear of the account area. */
@media (min-width: 981px) {
  .site-header:has(.main-navigation a[href="/administration/factures"]) { grid-template-columns: minmax(230px, 1fr) auto; gap: 8px 24px; }
  .site-header:has(.main-navigation a[href="/administration/factures"]) > .brand-link { grid-column: 1; grid-row: 1; }
  .site-header:has(.main-navigation a[href="/administration/factures"]) > .account-zone { grid-column: 2; grid-row: 1; }
  .site-header:has(.main-navigation a[href="/administration/factures"]) > .main-navigation { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 8px 24px; }
}
.navigation-dropdown:has(a[href="/administration/factures"]) > div a { color: var(--navy); }
.navigation-dropdown:has(a[href="/administration/factures"]) [aria-disabled] { display: block; padding: .55rem .65rem; color: #77838b; cursor: not-allowed; }
.mobile-navigation .navigation-dropdown:has(a[href="/administration/factures"]) > summary { padding: 12px 14px; color: var(--navy); }
.mobile-navigation .navigation-dropdown:has(a[href="/administration/factures"]) > div { position: static; min-width: 0; box-shadow: none; }
/* ADM08: visible only inside the personal PH intervention context. */
.ff-navigation { display:flex; align-items:center; justify-content:center; gap:.6rem; min-width:0; }
.ff-badge { flex:none; width:max-content; display:flex; align-items:center; gap:.3rem; background:#fff0a6; color:#493a00; border:1px solid #bd951c; border-radius:.35rem; padding:.2rem .35rem; margin:0; }
.ff-badge button { padding:.2rem .4rem; color:inherit; background:transparent; }
.ff-detail form { margin-block:1rem; }
.ff-authorization label { display:flex; align-items:center; gap:.5rem; margin-block:.7rem; }
.ff-authorization input[type=checkbox] { width:auto; }
.ff-journal { overflow-wrap:anywhere; }

.accountant-exports-workspace { min-width: 0; }
.accountant-exports-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.accountant-exports-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; color: var(--navy); background: var(--white); font-weight: 800; text-decoration: none; }
.accountant-exports-tabs a.active { border-color: var(--navy); color: var(--white); background: var(--navy); }
.accountant-exports-journal, .accountant-exports-produced { scroll-margin-top: 18px; }
.accountant-exports-periods { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.accountant-exports-periods span { border-radius: 999px; padding: 6px 10px; color: var(--navy); background: var(--wash); font-size: .78rem; font-weight: 750; }
.accountant-exports-journal-table { min-width: 720px; }
.accountant-exports-journal-table th:nth-last-child(-n+2), .accountant-exports-journal-table td:nth-last-child(-n+2) { text-align: right; }
.accountant-exports-capability { display: grid; gap: 3px; border: 1px solid #bcd9e7; border-radius: 10px; margin-top: 14px; padding: 11px 14px; color: #0b668f; background: #eaf5fa; font-size: .8rem; }
.accountant-exports-capability.warning { border-color: #f2c088; color: #7d4a18; background: #fff6e9; }
.accountant-exports-capability span { color: var(--muted); }
.accountant-exports-separator { display: flex; align-items: center; gap: 14px; margin: 24px 0 15px; color: var(--navy); font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.accountant-exports-separator::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.accountant-exports-station { scroll-margin-top: 18px; }
.accountant-exports-targets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.accountant-exports-targets article { display: grid; min-width: 0; gap: 7px; align-content: start; border: 1px solid var(--line); border-radius: 11px; padding: 13px; background: var(--wash); }
.accountant-exports-targets article.available { border-color: #aad6c2; background: #edf8f3; }
.accountant-exports-targets strong, .accountant-exports-targets small { overflow-wrap: anywhere; }
.accountant-exports-targets .status-pill { width: fit-content; }
.accountant-exports-targets .accountant-exports-unavailable { color: #617084; background: #e8edf0; }
.accountant-exports-native-format { border-radius: 8px; padding: 10px 12px; color: #186548; background: #edf8f3; }
.accountant-exports-produced .section-title > a { white-space: nowrap; }

@media (max-width: 700px) {
  .accountant-exports-targets { grid-template-columns: 1fr; }
  .accountant-exports-produced .section-title { align-items: flex-start; flex-direction: column; }
}

@media (max-width:980px) { .ff-navigation { justify-self:end; } }

/* PH Consult overview: the four operational domains from the frozen prototype. */
.ph-admin-overview-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(420px, 1fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0d3d57, #0b6b91);
  color: var(--white);
  box-shadow: var(--shadow);
}
.ph-admin-overview-summary .eyebrow { margin: 0; color: #ffb56d !important; }
.ph-admin-page-title { margin: 0 0 30px; color: var(--navy); font-size: clamp(2rem, 3vw, 2.45rem); }
.ph-admin-overview-summary h2 { margin: 5px 0 6px; font-size: clamp(1.45rem, 2.8vw, 1.75rem); color: var(--white); }
.ph-admin-overview-summary p:not(.eyebrow) { margin: 0; color: #d9eaf1; }
.ph-admin-overview-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ph-admin-overview-counts div { min-width: 0; padding: 13px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.08); text-align: center; }
.ph-admin-overview-counts dt { color: #cfe3ec; font-size: .72rem; }
.ph-admin-overview-counts dd { margin: 5px 0 0; font-size: 1.55rem; font-weight: 700; }
.ph-admin-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.ph-admin-overview-card { display: flex; min-height: 205px; flex-direction: column; padding: 22px; border-top: 4px solid var(--blue); }
.ph-admin-overview-card .eyebrow { margin: 0; color: #b45f18 !important; }
.ph-admin-overview-card h2 { margin: 7px 0 6px; color: var(--navy); font-size: 1.3rem; }
.ph-admin-overview-card > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.5; }
.ph-admin-overview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.ph-admin-overview-actions a, .ph-admin-overview-unavailable { min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; }
.ph-admin-overview-actions a:hover, .ph-admin-overview-actions a:focus-visible { border-color: var(--blue); background: var(--blue-wash); }
.ph-admin-overview-unavailable { color: var(--muted); background: var(--wash); }
.ph-admin-directory .table-wrap { border: 1px solid var(--line); border-radius: 10px; }
.ph-admin-directory table { width: 100%; min-width: 640px; }
.ph-admin-directory-pages { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.ph-admin-overview-pending { margin-top: 16px; }
/* Keep the accessible request header inside its horizontally scrolling table. */
.site-header[data-administration="1"] ~ main .ph-directory-table th { position: relative; }
.ph-accounts-page { max-width: 1200px; margin-inline: auto; }
.ph-accounts-page .grow { min-width: 0; }
.ph-accounts-page table { min-width: 720px; }
.ph-accounts-page tbody td:last-child { min-width: 150px; }
.ph-accounts-page tbody td:last-child form { margin-bottom: 5px; }
.ph-accounts-page tbody td:last-child a, .ph-accounts-page tbody td:last-child button { line-height: 1.25; }
.ph-health-page { display: grid; gap: 18px; max-width: 1200px; margin-inline: auto; }
.ph-health-page > h1 { margin: 0; color: var(--navy); }
.ph-health-page > p { margin: 0; color: var(--muted); }
.ph-health-summary { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; padding: 24px; border-radius: 14px; background: linear-gradient(125deg, #0b3a54, #264b6f); color: #fff; }
.ph-health-summary p { margin: 5px 0 0; color: #d9eaf1; }
.ph-health-summary .eyebrow { margin: 0; color: #ffcb89; }
.ph-health-summary strong { display: block; margin-top: 6px; font-size: 1.45rem; }
.ph-health-component-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.ph-health-component { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.ph-health-component small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.ph-health-dot { flex: none; width: 11px; height: 11px; margin-top: 4px; border-radius: 50%; background: #a6a6a6; }
.ph-health-dot-available { background: #288564; }
.ph-health-dot-unavailable { background: #bd4b4b; }
.ph-health-state-available { color: #276c50; }
.ph-health-state-unavailable { color: #ae3e3e; }
.ph-health-summary .ph-health-state { color: #fff; }
.ph-health-facts { margin: 12px 0 0; color: var(--muted); }
.ph-analyses-page { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 16px; max-width: 1200px; margin-inline: auto; }
.ph-analyses-page > h1 { margin: 0; color: var(--navy); }
.ph-analyses-page > p { margin: 0; color: var(--muted); }
.ph-analyses-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.ph-analyses-tabs a { padding: 10px 14px; text-decoration: none; }
.ph-analyses-tabs a.active { border-bottom: 3px solid var(--orange); font-weight: 700; }
.ph-analyses-observed { color: var(--muted); }
.ph-analyses-page > .section-card { min-width: 0; }
.ph-analyses-page .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
.ph-analyses-page table { min-width: 780px; width: 100%; }
.ph-analyses-page code { overflow-wrap: anywhere; }
.ph-diagnostic-heading { min-width: 0; }
.ph-diagnostic-heading > div { min-width: 0; max-width: 100%; }
.ph-diagnostic-heading h1, .ph-diagnostic-heading h1 code { overflow-wrap: anywhere; }
.ph-diagnostic-heading > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.account-management-page { display: grid; gap: 18px; max-width: 1140px; margin-inline: auto; }
.account-management-page > h1 { margin: 0; color: var(--navy); }
.account-management-page > p { margin: 0; color: var(--muted); }
.account-management-page dl { display: grid; grid-template-columns: minmax(130px, 180px) minmax(0, 1fr); gap: 8px 18px; }
.account-management-page dl dd { margin: 0; overflow-wrap: anywhere; }
.account-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-management-grid section { display: flex; flex-direction: column; align-items: flex-start; }
.account-management-grid section p { flex: 1; }
.account-management-grid section a { display: inline-flex; margin-top: 10px; }
.account-management-danger { border-color: #e2a9a9; }
.account-management-danger h2 { color: #a43838; }
@media (max-width: 700px) { .account-management-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  .ph-admin-overview-summary { grid-template-columns: 1fr; }
  .ph-admin-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ph-admin-overview-summary { padding: 22px 20px; }
  .ph-admin-overview-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* PH Consult: preserve the two-level navigation and account placement of the approved mockup. */
.site-header.private[data-administration="1"] { grid-template-columns: minmax(220px, 1fr) minmax(310px, 1fr) minmax(240px, 1fr); grid-template-rows: auto auto auto; column-gap: 20px; row-gap: 0; min-height: 165px; padding: 14px clamp(20px, 3.4vw, 52px) 0; }
.site-header.private[data-administration="1"] > .brand-link { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.site-header.private[data-administration="1"] .brand-signature { font-size: .7rem; font-weight: 400; letter-spacing: normal; text-transform: none; }
.site-header.private[data-administration="1"] > .ph-header-space { grid-column: 2; grid-row: 1; justify-self: center; display: grid; text-align: left; line-height: 1.25; }
.ph-header-space small { color: #bdd0de; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.ph-header-space strong { color: var(--white); font-size: .88rem; }
.site-header.private[data-administration="1"] > .main-navigation { grid-column: 2; grid-row: 2; display: flex; justify-content: center; gap: 26px; flex-wrap: nowrap; }
.site-header.private[data-administration="1"] > .main-navigation a { padding: 12px 0 16px; }
.site-header.private[data-administration="1"] > .account-zone { grid-column: 3; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr auto; align-content: center; align-items: center; gap: 7px 12px; }
.site-header.private[data-administration="1"] > .account-zone .account-context { grid-column: 1; grid-row: 1; justify-self: end; font-size: .8rem; }
.site-header.private[data-administration="1"] > .account-zone .ui-language-control { grid-column: 2; grid-row: 1; justify-self: end; border-radius: 999px; background: var(--white); color: var(--navy); padding: 3px 10px; }
.site-header.private[data-administration="1"] > .account-zone .ui-language-control::before { content: "🌐"; font-size: .9rem; }
.site-header.private[data-administration="1"] > .account-zone .ui-language-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-header.private[data-administration="1"] > .account-zone .ui-language-control select { border: 0; max-width: 9rem; min-height: 1.65rem; background: transparent; font-size: .75rem; }
.site-header.private[data-administration="1"] > .account-zone .account-actions { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; }
.site-header.private[data-administration="1"] > .account-zone .desktop-logout button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; font-size: .85rem; text-decoration: none; }
.ph-sub-navigation { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: center; align-items: stretch; gap: clamp(12px, 2vw, 28px); min-width: 0; border-top: 1px solid rgba(255,255,255,.15); overflow-x: auto; }
.ph-sub-navigation a { position: relative; padding: 11px 0 14px; color: #e1edf2; font-size: .86rem; font-weight: 650; white-space: nowrap; }
.ph-sub-navigation a.active { color: var(--white); }
.ph-sub-navigation a.active::after { position: absolute; inset: auto 0 0; height: 4px; border-radius: 4px; background: var(--orange); content: ""; }
@media (max-width: 980px) {
  .site-header.private[data-administration="1"] { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; min-height: 0; row-gap: 8px; }
  .site-header.private[data-administration="1"] > .brand-link { grid-column: 1; grid-row: 1; }
  .site-header.private[data-administration="1"] > .ph-header-space { display: none; }
  .site-header.private[data-administration="1"] > .main-navigation { display: none; }
  .site-header.private[data-administration="1"] > .mobile-navigation { grid-column: 2; grid-row: 1; }
  .site-header.private[data-administration="1"] > .account-zone { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .site-header.private[data-administration="1"] > .account-zone .ui-language-control { order: 2; }
  .site-header.private[data-administration="1"] > .account-zone .account-context { order: 1; }
  .site-header.private[data-administration="1"] > .account-zone .account-actions { order: 3; }
  .ph-sub-navigation { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .site-header.private[data-administration="1"] > .account-zone { gap: 8px; }
  .site-header.private[data-administration="1"] > .account-zone .account-context { width: 100%; max-width: none; }
  .site-header.private[data-administration="1"] > .account-zone .ui-language-control { margin-right: auto; }
  .ph-sub-navigation { gap: 20px; }
}

/* Client shell: the approved four-entry primary menu, with a contextual second level. */
.site-header.private[data-client-navigation="1"] { grid-template-columns: minmax(210px, 1fr) minmax(350px, 1fr) minmax(230px, 1fr); grid-template-rows: auto auto auto; column-gap: 20px; row-gap: 0; min-height: 126px; padding: 13px clamp(20px, 3.4vw, 52px) 0; }
.site-header.private[data-client-navigation="1"] > .brand-link { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.site-header.private[data-client-navigation="1"] .brand-signature { font-size: .7rem; font-weight: 400; letter-spacing: normal; text-transform: none; }
.site-header.private[data-client-navigation="1"] > .client-header-space { grid-column: 2; grid-row: 1; justify-self: center; display: grid; text-align: center; line-height: 1.2; }
.client-header-space small { color: #bdd0de; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.client-header-space strong { color: var(--white); font-size: .88rem; }
.site-header.private[data-client-navigation="1"] > .client-main-navigation { grid-column: 2; grid-row: 2; display: flex; gap: clamp(14px, 1.6vw, 26px); flex-wrap: nowrap; }
.site-header.private[data-client-navigation="1"] > .client-main-navigation > a,
.site-header.private[data-client-navigation="1"] > .client-main-navigation > details > summary { display: block; position: relative; padding: 12px 0 16px; color: #e1edf2; font-size: 1rem; white-space: nowrap; }
.site-header.private[data-client-navigation="1"] > .client-main-navigation > details.active > summary { color: var(--white); font-weight: 650; }
.site-header.private[data-client-navigation="1"] > .client-main-navigation > details.active > summary::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 4px; border-radius: 5px; background: var(--orange); content: ""; }
.site-header.private[data-client-navigation="1"] > .account-zone { grid-column: 3; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr auto; align-content: center; align-items: center; gap: 7px 12px; }
.site-header.private[data-client-navigation="1"] > .account-zone .account-context { grid-column: 1; grid-row: 1; justify-self: end; font-size: .8rem; }
.site-header.private[data-client-navigation="1"] > .account-zone .ui-language-control { grid-column: 2; grid-row: 1; justify-self: end; }
.site-header.private[data-client-navigation="1"] > .account-zone .account-actions { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; }
.site-header.private[data-client-navigation="1"] > .account-zone .desktop-logout button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; font-size: .85rem; text-decoration: none; }
.client-sub-navigation { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: center; align-items: stretch; gap: clamp(18px, 2.4vw, 34px); min-width: 0; border-top: 1px solid rgba(255,255,255,.15); }
.client-sub-navigation > a,
.client-sub-navigation > details > summary { display: block; position: relative; padding: 11px 0 14px; color: #e1edf2; font-size: .86rem; font-weight: 650; white-space: nowrap; }
.client-sub-navigation > a.active,
.client-sub-navigation > details.active > summary { color: var(--white); }
.client-sub-navigation > a.active::after,
.client-sub-navigation > details.active > summary::after { position: absolute; inset: auto 0 0; height: 4px; border-radius: 4px; background: var(--orange); content: ""; }
.client-sub-navigation .navigation-dropdown > summary::marker,
.client-main-navigation .navigation-dropdown > summary::marker { content: ""; }
@media (max-width: 980px) {
  .site-header.private[data-client-navigation="1"] { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; min-height: 0; row-gap: 8px; }
  .site-header.private[data-client-navigation="1"] > .brand-link { grid-column: 1; grid-row: 1; }
  .site-header.private[data-client-navigation="1"] > .client-header-space { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
  .site-header.private[data-client-navigation="1"] > .client-main-navigation { display: none; }
  .site-header.private[data-client-navigation="1"] > .mobile-navigation { grid-column: 2; grid-row: 1; }
  .site-header.private[data-client-navigation="1"] > .account-zone { grid-column: 1 / -1; grid-row: 3; display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .client-sub-navigation { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 640px) {
  .site-header.private[data-client-navigation="1"] > .account-zone { gap: 8px; }
  .site-header.private[data-client-navigation="1"] > .account-zone .account-context { width: 100%; max-width: none; }
.client-sub-navigation { gap: 20px; }
}

/* Office shell: primary navigation stays aligned under the active office,
   with the dossier/management navigation in a separate contextual row. */
.site-header.private[data-accountant-navigation="1"] { grid-template-columns: minmax(210px, 1fr) minmax(350px, 1fr) minmax(245px, 1fr); grid-template-rows: auto auto auto; column-gap: 20px; row-gap: 0; min-height: 126px; padding: 13px clamp(20px, 3.4vw, 52px) 0; }
.site-header.private[data-accountant-navigation="1"] > .brand-link { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.site-header.private[data-accountant-navigation="1"] .brand-signature { font-size: .7rem; font-weight: 400; letter-spacing: normal; text-transform: none; }
.site-header.private[data-accountant-navigation="1"] > .accountant-header-space { grid-column: 2; grid-row: 1; justify-self: center; display: grid; text-align: center; line-height: 1.2; }
.accountant-header-space small { color: #bdd0de; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
.accountant-header-space strong { color: var(--white); font-size: .88rem; }
.site-header.private[data-accountant-navigation="1"] > .accountant-main-navigation { grid-column: 2; grid-row: 2; display: flex; gap: clamp(14px, 1.6vw, 26px); flex-wrap: nowrap; }
.site-header.private[data-accountant-navigation="1"] > .accountant-main-navigation > a,
.site-header.private[data-accountant-navigation="1"] > .accountant-main-navigation > details > summary { display: block; position: relative; padding: 12px 0 16px; color: #e1edf2; font-size: 1rem; white-space: nowrap; }
.accountant-main-navigation > .accountant-clients-view-link button { border: 0; padding: 12px 0 16px; background: transparent; color: #e1edf2; font-size: 1rem; font-weight: 400; white-space: nowrap; }
.accountant-main-navigation > .accountant-clients-view-link button:hover,
.accountant-main-navigation > .accountant-clients-view-link button:focus-visible { color: var(--white); }
.site-header.private[data-accountant-navigation="1"] > .accountant-main-navigation > details.active > summary { color: var(--white); font-weight: 650; }
.site-header.private[data-accountant-navigation="1"] > .accountant-main-navigation > details.active > summary::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 4px; border-radius: 5px; background: var(--orange); content: ""; }
.site-header.private[data-accountant-navigation="1"] > .account-zone { grid-column: 3; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr auto; align-content: center; align-items: center; gap: 7px 12px; }
.site-header.private[data-accountant-navigation="1"] > .account-zone .account-context { grid-column: 1; grid-row: 1; justify-self: end; font-size: .8rem; }
.site-header.private[data-accountant-navigation="1"] > .account-zone .ui-language-control { grid-column: 2; grid-row: 1; justify-self: end; }
.site-header.private[data-accountant-navigation="1"] > .account-zone .account-actions { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; }
.site-header.private[data-accountant-navigation="1"] > .account-zone .desktop-logout button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; font-size: .85rem; text-decoration: none; }
.accountant-sub-navigation { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: center; align-items: stretch; gap: clamp(18px, 2.4vw, 34px); min-width: 0; border-top: 1px solid rgba(255,255,255,.15); }
.accountant-sub-navigation > a,
.accountant-sub-navigation > details > summary { display: block; position: relative; padding: 11px 0 14px; color: #e1edf2; font-size: .86rem; font-weight: 650; white-space: nowrap; }
.accountant-sub-navigation > a.active,
.accountant-sub-navigation > details.active > summary { color: var(--white); }
.accountant-sub-navigation > a.active::after,
.accountant-sub-navigation > details.active > summary::after { position: absolute; inset: auto 0 0; height: 4px; border-radius: 4px; background: var(--orange); content: ""; }
.accountant-sub-navigation .navigation-dropdown > summary::marker,
.accountant-main-navigation .navigation-dropdown > summary::marker { content: ""; }
/* Hash navigation must land below the sticky accountant shell. */
.mandate-accounting-page #vat-decisions-history,
.mandate-accounting-page #mandate-profile-top { scroll-margin-top: 150px; }
@media (max-width: 980px) {
  .mandate-accounting-page #vat-decisions-history,
  .mandate-accounting-page #mandate-profile-top { scroll-margin-top: 290px; }
  .site-header.private[data-accountant-navigation="1"] { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; min-height: 0; row-gap: 8px; }
  .site-header.private[data-accountant-navigation="1"] > .brand-link { grid-column: 1; grid-row: 1; }
  .site-header.private[data-accountant-navigation="1"] > .accountant-header-space { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
  .site-header.private[data-accountant-navigation="1"] > .accountant-main-navigation { display: none; }
  .site-header.private[data-accountant-navigation="1"] > .mobile-navigation { grid-column: 2; grid-row: 1; }
  .site-header.private[data-accountant-navigation="1"] > .account-zone { grid-column: 1 / -1; grid-row: 3; display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .accountant-sub-navigation { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 640px) {
  .mandate-accounting-page #vat-decisions-history,
  .mandate-accounting-page #mandate-profile-top { scroll-margin-top: 430px; }
  .site-header.private[data-accountant-navigation="1"] > .account-zone { gap: 8px; }
  .site-header.private[data-accountant-navigation="1"] > .account-zone .account-context { width: 100%; max-width: none; }
  .accountant-sub-navigation { gap: 20px; }
}

/* The frozen mobile shell expands its primary menu inside the header, ahead of
   the contextual row. Keeping it in flow avoids covering the current page. */
@media (max-width: 980px) {
  .site-header.private:is([data-client-navigation="1"], [data-accountant-navigation="1"], [data-administration="1"]) > .mobile-navigation {
    position: static;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .site-header.private:is([data-client-navigation="1"], [data-accountant-navigation="1"]) > .mobile-navigation { grid-row: 4; }
  .site-header.private[data-administration="1"] > .mobile-navigation { grid-row: 3; }
  .site-header.private[data-client-navigation="1"] > .client-sub-navigation,
  .site-header.private[data-accountant-navigation="1"] > .accountant-sub-navigation { grid-row: 5; }
  .site-header.private[data-administration="1"] > .ph-sub-navigation { grid-row: 4; }
  .site-header.private .mobile-navigation > summary {
    border: 0;
    border-radius: 0;
    padding: 10px 0;
    font-size: .9rem;
  }
  .site-header.private .mobile-navigation > summary::before { content: "▸"; margin-right: 8px; }
  .site-header.private .mobile-navigation[open] > summary::before { content: "▾"; }
  .site-header.private .mobile-navigation-links {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    padding: 0 0 12px;
    background: transparent;
    box-shadow: none;
  }
  .site-header.private .mobile-navigation-links > a,
  .site-header.private .mobile-navigation-links > .navigation-dropdown > summary {
    display: block;
    border: 0;
    padding: 10px 4px;
    color: #e1edf2;
    font-size: .9rem;
  }
  .site-header.private .mobile-navigation-links > .accountant-clients-view-link button { width: 100%; border: 0; padding: 10px 4px; background: transparent; color: #e1edf2; font-size: .9rem; text-align: left; }
  .site-header.private .mobile-navigation-links > a.active,
  .site-header.private .mobile-navigation-links > .navigation-dropdown.active > summary { color: var(--white); font-weight: 700; }
  .site-header.private .mobile-navigation-links > .navigation-dropdown > div { position: static; width: 100%; min-width: 0; }
  .site-header.private .ph-sub-navigation,
  .site-header.private .client-sub-navigation,
  .site-header.private .accountant-sub-navigation {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    gap: 0 18px;
  }
  .site-header.private .ph-sub-navigation > a,
  .site-header.private .client-sub-navigation > a,
  .site-header.private .accountant-sub-navigation > a,
  .site-header.private .client-sub-navigation > details > summary,
  .site-header.private .accountant-sub-navigation > details > summary { white-space: normal; text-align: center; }
}
/* Technique: capacity and configuration. */
.technical-page { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }
.technical-page header h1 { margin:.15rem 0; }
.technical-page header p:last-child { color:var(--muted, #5a6b7b); }
.technical-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); gap:12px; margin:0; }
.technical-metrics div,.technical-storage div { border:1px solid var(--line,#cfd8e3); border-radius:12px; background:#fff; padding:14px 16px; }
.technical-metrics dt,.technical-storage dt { color:var(--muted,#5a6b7b); font-size:.82rem; }
.technical-metrics dd { margin:.35rem 0 0; font-size:1.7rem; font-weight:700; }
.technical-settings-form { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.technical-fields,.technical-storage { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr)); gap:12px; }
.technical-fields label,.technical-inline-form label { display:grid; gap:5px; font-weight:600; }
.technical-fields input,.technical-inline-form input { width:100%; box-sizing:border-box; }
.technical-actions,.technical-inline-form { display:flex; flex-wrap:wrap; align-items:end; gap:10px; }
.technical-storage { margin:12px 0; }
.technical-storage dd { margin:.35rem 0 0; font-weight:700; }

/* Support, lot 6 : délai de première réponse dépassé dans la file PH. */
.support-overdue { color: var(--danger); font-weight: 600; }

/* Deux lignes : bandeau discret de la ligne d'acceptance (ligne, rôle, version). */
.line-banner { background: var(--blue-wash); color: var(--navy); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-align: center; padding: 2px 16px; border-bottom: 1px solid var(--line); }
/* Comptes PH (écart G24) : bouton « Afficher » du mot de passe initial. */
.side-form .login-password-control{display:flex;gap:8px;align-items:center}.side-form .login-password-control input{flex:1;min-width:0}.side-form .login-password-control button{padding:0 4px;border:0;background:none;color:var(--blue,#1769aa);font-weight:700;cursor:pointer}
/* Écart A14 : boutons masqués réellement masqués, champs en lecture seule visibles comme tels, états en pastilles. */
.technical-actions [hidden]{display:none!important}
.technical-fields input[readonly]{background:#f3f6f8;border-color:transparent;color:inherit}
.technical-state--normal{background:#e6f4ea;color:#1e6b3a}.technical-state--alert{background:#fdecdc;color:#8a4b00}.technical-state--unmeasured{background:#eef1f4;color:#5a6b7b}
/* V2-B1 : message de vérification de la TVA (jamais bloquant) ; report du registre en couleur neutre. */
.identity-status { margin: 0 0 18px; padding: 12px 14px; color: #8a4f0b; background: #fff0df; border-left: 4px solid var(--orange); border-radius: 8px; line-height: 1.45; }
.identity-status p { margin: 0; }
.identity-status p + p { margin-top: 6px; }
.identity-status--pending { color: #173247; background: #eaf5fa; border-left-color: #167997; }
/* V2-64a : espace privé — sous-niveaux de Fiscalité, année fiscale, pièces à vérifier. */
.private-tax-years { margin: 0 0 12px; }
.private-tax-years a, .private-tax-years strong { margin: 0 2px; }
.private-tax-subrow td { font-size: .92em; }
.private-tax-subname { padding-left: 2.4em !important; color: var(--muted); }
.private-tax-cell { display: block; margin-top: 4px; }
.private-tax-correction { display: grid; gap: 6px; margin-top: 8px; }
/* V2-64b : « Prêt pour ma déclaration ». */
.private-readiness-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 12px 0; }
.private-readiness-block { padding: 12px 14px; border: 1px solid #d8e6ee; border-radius: 10px; }
.private-readiness-block h3 { margin: 0 0 6px; font-size: 1rem; }
.private-readiness-block ul { margin: 4px 0 0; padding-left: 18px; }
.private-readiness-missing { margin: 10px 0 0; color: #8a4f0b; }
/* V2-1B-a : correction du particulier sans cabinet, dans le menu de la ligne. */
.autonomous-correction { display: grid; gap: 6px; margin-top: 8px; }
/* V2-1B-b : validation par la société sans cabinet (maquette v2_validation_societe). */
.autonomous-tabs { display: flex; gap: 20px; border-bottom: 1px solid #d8e6ee; margin: 4px 0 14px; flex-wrap: wrap; }
.autonomous-tabs a { padding: 8px 2px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.autonomous-tabs a.on { color: var(--navy); border-bottom-color: var(--orange); }
.autonomous-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .autonomous-split { grid-template-columns: 1fr; } }
.autonomous-preview { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.autonomous-row3 { grid-template-columns: repeat(3, 1fr); }
.autonomous-review-form fieldset { border: 0; padding: 0; margin: 0; }
