/* Salle de marché · accès et espaces de séance */
:root {
    --desk-ink: #253c3b;
    --desk-action: #28645e;
    --desk-buy: #427b70;
    --desk-sell: #88749b;
    --desk-paper: #f3f5f1;
    --desk-surface: #fdfdfa;
    --desk-rule: #d6dfd9;
    --desk-muted: #536760;
    --desk-sage: #e5ede7;
    --desk-focus: #39796f;
    --desk-depth: 0 3px 12px -8px rgb(39 66 54 / 22%);
    --desk-title: Cambria, Georgia, serif;
    --desk-sans: "Segoe UI", system-ui, sans-serif;
}

.desk-mark {
    display: inline-block;
    width: 34px;
    height: 34px;
    flex: none;
    background: currentColor;
    clip-path: polygon(0 72%, 32% 25%, 50% 50%, 79% 8%, 100% 8%, 51% 80%, 32% 55%, 18% 76%, 0 76%);
}

/* The two access forms share the same engraved cover. */
.auth-page {
    color-scheme: light;
    padding: clamp(16px, 5vw, 80px);
    background: var(--night-raised, #e9eeea);
    color: var(--desk-ink);
    font: 15px/1.5 var(--desk-sans);
}
.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(1080px, 100%);
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--night-line, #dbe3dc);
    border-radius: 22px;
    background: var(--desk-surface);
    box-shadow: 0 22px 60px -34px rgb(43 67 56 / 32%);
    animation: none;
}
.access-cover {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: clamp(520px, 68vh, 740px);
    padding: clamp(26px, 3.5vw, 54px);
    border-radius: 14px 4px 4px 14px;
    background: linear-gradient(155deg, rgb(217 231 219 / 48%), rgb(209 226 218 / 16%) 65%), var(--night-raised, #d2dfd8) url("plateau-abidjan.webp") center 15% / cover no-repeat;
    color: var(--desk-ink);
}
.cover-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.025em; }
.cover-title { margin-top: 20px; font: 500 clamp(40px, 4.4vw, 68px)/1.04 var(--desk-title); letter-spacing: -.055em; }
.cover-caption { margin-top: auto; padding: 4px 10px; border-radius: 4px; background: var(--night-raised, #e6eee8); color: var(--desk-ink); font-size: 12px; }
.auth-shell .auth-panel {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4.4vw, 72px);
    border: 0;
    border-radius: 0;
    background: var(--desk-surface);
    box-shadow: none;
    animation: none;
}
.auth-content { padding: 0; }
.auth-content h1 { margin: 0; color: var(--desk-ink); font: 500 clamp(32px, 3vw, 47px)/1.1 var(--desk-title); letter-spacing: -.045em; }
.auth-content .access-lead { margin: 12px 0 0; color: var(--desk-muted); font-size: 15px; line-height: 1.55; }
.auth-form { gap: 20px; margin-top: 28px; }
.auth-form label { color: var(--desk-ink); font-size: 14px; font-weight: 600; }
.auth-form input { height: 48px; margin-top: 7px; padding: 0 13px; border: 1px solid var(--night-line, #a5b6ad); border-radius: 9px; background: var(--night-surface, #f8faf7); color: var(--desk-ink); font: 16px var(--desk-sans); }
.auth-page .auth-form input:focus { border-color: var(--desk-focus); outline: 1px solid var(--desk-focus); outline-offset: 0; box-shadow: 0 0 0 4px #e3eee7; }
.auth-form .primary-button { min-height: 48px; border: 0; border-radius: 9px; background: var(--night-primary, var(--desk-action)); color: white; font-size: 15px; font-weight: 650; }
.auth-form .primary-button:hover { background: #204d48; }
.auth-form .password-rules { margin: -10px 0 0; color: var(--desk-muted); font-size: 12px; }
.auth-content .auth-error { color: var(--night-risk, #882f38); border-color: #a03940; background: var(--night-raised, #fff0ef); font-size: 13px; }
.auth-panel footer { margin-top: 27px; padding: 18px 0 0; border-color: var(--desk-rule); background: transparent; color: var(--desk-muted); text-align: left; font-size: 12px; }

/* Workspace navigation and source provenance */
.desk-page {
    --page: var(--desk-paper);
    --line: var(--desk-rule);
    --line-soft: #e3e9e3;
    --surface: var(--desk-surface);
    --text: #384f49;
    --navy-900: #294e4c;
    --blue: var(--desk-action);
    --blue-soft: #e8f1ec;
    --green: #336948;
    --green-soft: #e8f1e8;
    --red: #983e48;
    --red-soft: #f9eceb;
    --orange: #85551d;
    --orange-soft: #faf1df;
    --ink: var(--desk-ink);
    --muted: var(--desk-muted);
    --sidebar-width: 248px;
    font-family: var(--desk-sans);
    font-variant-numeric: tabular-nums;
}
.desk-skip { position: fixed; top: 8px; left: 12px; z-index: 120; padding: 10px 14px; transform: translateY(-160%); background: var(--night-surface, white); color: var(--desk-action); }
.desk-skip:focus { transform: none; }
.desk-page :focus-visible, .auth-page :focus-visible { outline: 2px solid var(--desk-focus); outline-offset: 2px; }
.sidebar {
    --menu-bg: #293e4a;
    --menu-brand: #263a45;
    --menu-text: #f1f5f3;
    --menu-hint: #bacbd0;
    --menu-rule: #455b65;
    --menu-hover: #344e59;
    --menu-active: #d9ece3;
    --menu-active-ink: #1e453c;
    background: var(--menu-bg);
    border-right: 1px solid var(--menu-rule);
    color: var(--menu-text);
    box-shadow: none;
}
:root[data-theme="dark"] .sidebar {
    --menu-bg: #192932;
    --menu-brand: #16262e;
    --menu-rule: #354a53;
    --menu-hover: #2b414b;
    --menu-active: #2c514e;
    --menu-active-ink: #daefe5;
}
.desk-page .sidebar :focus-visible { outline: 2px solid #acddca; outline-offset: -2px; }
.sidebar-brand { min-height: 78px; padding-inline: 19px; gap: 12px; border-color: var(--menu-rule); background: var(--menu-brand); }
.sidebar-brand .desk-mark { color: #99cbb7; }
.sidebar-brand strong { color: var(--menu-text); font-size: 15px; letter-spacing: .015em; }
.sidebar-brand small, .sidebar-session small { color: var(--menu-hint); font-size: 11px; }
.side-nav { padding: 12px 9px; }
.nav-group { margin-bottom: 4px; border-color: var(--menu-rule); }
.nav-group summary { min-height: 48px; gap: 10px; border-radius: 7px; }
.nav-group summary strong { color: var(--menu-text); font-size: 13px; font-weight: 620; letter-spacing: 0; text-transform: none; }
.nav-group summary small { margin-top: 2px; color: var(--menu-hint); font-size: 11px; line-height: 1.3; white-space: normal; }
.nav-group summary > em, .nav-group.active-group summary > em { border: 0; background: transparent; color: var(--menu-hint); font-size: 11px; font-weight: 500; }
.nav-group.active-group summary { background: transparent; }
.nav-group.active-group summary strong { color: #c2e4d6; }
.nav-group .nav-group-links, .nav-group.active-group .nav-group-links { margin: 0 0 8px 12px; padding: 1px 0 1px 6px; border: 0; border-left: 1px solid var(--menu-rule); border-radius: 0; background: transparent; box-shadow: none; }
.nav-group-links a { min-height: 35px; padding-inline: 10px; border-radius: 6px; color: #e0e9e8; font-size: 12px; }
.nav-group-links a > span { display: none; }
.nav-group summary > b { color: var(--menu-hint); }
.nav-group summary > i { background: #dfb982; box-shadow: none; }
.side-nav a:hover, .nav-group summary:hover { background: var(--menu-hover); }
.side-nav a.active { background: var(--menu-active); color: var(--menu-active-ink); box-shadow: inset 3px 0 #7eb89e; }
.side-nav::-webkit-scrollbar-thumb { background: #637b81; }
.side-nav a b, .side-nav a:nth-child(2) b { background: #e5d4b5; color: #4d3923; font-size: 10px; }
.sidebar-session { margin: 0; padding: 14px 18px; border: 0; border-top: 1px solid var(--menu-rule); border-radius: 0; background: var(--menu-brand); }
.sidebar-session span { color: var(--menu-hint); font-size: 10px; }
.sidebar-session strong { margin-block: 2px; color: var(--menu-text); }
.sidebar-pulse-stack { gap: 5px; }
.sidebar-pulse-stack a { border: 1px solid #49626b; border-radius: 9px; background: #304952; color: var(--menu-text); box-shadow: none; }
.sidebar-pulse-stack a.stale { border-color: #736253; background: #423d38; }
.sidebar-pulse-stack a:hover { border-color: #a6c8ba; transform: none; box-shadow: none; }
.sidebar-pulse-stack a :is(strong, em) { color: var(--menu-text); }
.sidebar-pulse-stack a :is(span, small) { color: #d0dcda; }
.sidebar-entry-pulse small, .sidebar-boc-pulse small, .sidebar-pulse-stack a em { font-size: 10px; }
.sidebar-pulse-stack a span { font-size: 9px; }
.page-header {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "heading session" "sources sources";
    padding-inline: clamp(14px, 2vw, 34px);
    border-color: var(--desk-rule);
    background: var(--desk-surface);
    box-shadow: none;
}
.page-heading { grid-area: heading; padding: 22px 12px 17px 0; }
.page-context { margin-bottom: 3px; color: var(--desk-muted); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.page-context b { display: inline; width: auto; height: auto; border-radius: 0; background: transparent; color: var(--desk-muted); font-size: inherit; }
.page-context b:not(:empty)::after { content: "/"; margin-left: 7px; color: var(--night-muted, #8f9dad); }
.page-heading h1 { font: 500 clamp(29px, 2.65vw, 44px)/1.1 var(--desk-title); letter-spacing: -.045em; }
.page-heading p { max-width: 76ch; color: var(--desk-muted); font-size: 13px; line-height: 1.4; }
.header-meta { grid-area: session; display: flex; align-items: flex-end; padding: 12px 0 12px 16px; text-align: right; }
.header-meta span { font-size: 11px; font-weight: 500; }
.header-meta strong { font-size: 15px; }
.header-meta a, .logout-form button { color: var(--desk-action); font-size: 11px; }
.page-source-strip { grid-area: sources; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); padding-block: 4px; border: 0; border-top: 1px solid var(--desk-rule); }
.source-chip { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; padding: 6px 12px; border-color: var(--line-soft); }
.source-chip:first-child { padding-left: 0; }
.source-chip b { display: grid; place-items: center; min-width: 30px; min-height: 25px; border-radius: 7px; background: var(--night-raised, #e3eee5); color: var(--night-ink, #335e46); font-size: 11px; }
.source-chip.missing b { background: var(--night-warn-bg, #faedce); color: var(--night-warn, #74520e); }
.source-chip.stale { background: transparent; }
.source-chip.stale b { background: var(--night-risk-bg, #fce4df); color: var(--night-risk, #973526); }
.source-chip .source-description { margin: 0; color: var(--desk-ink); font-size: 11px; font-weight: 600; line-height: 1.35; white-space: normal; }
.source-description small { display: block; color: var(--desk-muted); font-size: 10px; font-weight: 400; }
.workspace > main { padding: 22px clamp(12px, 2vw, 34px) 35px; animation: none; }
.desk-page .panel { border-radius: 11px; box-shadow: var(--desk-depth); }
.desk-page .panel-head { border-color: var(--line-soft); }
.desk-page .panel-head a, .desk-page .order-link { color: var(--desk-action); }
.desk-page .order-side.buy { background: var(--night-raised, #e3eee7); color: var(--night-ink, #315f52); border-color: var(--night-line, #bbd1c4); }
.desk-page .order-side.sell { background: var(--night-raised, #eee9f2); color: var(--night-muted, #645176); border-color: var(--night-line, #d6cadd); }
.desk-page .badge.stop { background: var(--red-soft); color: var(--red); }
.desk-page .badge.warn { background: var(--orange-soft); color: var(--orange); }
.desk-page .badge.high { background: var(--night-warn-bg, #f2decb); color: var(--night-warn, #743f22); }
.desk-page .compact-table th { background: var(--night-raised, #f1f4ef); color: var(--night-muted, #4a6157); }
.desk-page .compact-table tbody tr:hover, a.source-chip:hover { background: var(--night-raised, #edf3ed); }
.panel-head { min-height: 46px; padding: 10px 14px; }
.panel-head h2 { font-size: 14px; font-weight: 650; text-transform: none; }
.panel-head a { font-size: 11px; }
.desk-page .compact-table :is(td, th) { padding: 8px 10px; font-size: 11px; line-height: 1.45; }
.desk-page .empty-state { padding-block: 22px; }
.desk-page .notice { margin-bottom: 12px; padding: 10px 14px; font-size: 12px; line-height: 1.5; }
.desk-page .notice.warning { border: 0; border-left: 3px solid #b88334; background: var(--night-warn-bg, #fff5df); color: var(--night-warn, #724a0d); }

/* Daily order register */
.session-register { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--desk-rule); border-radius: 15px; background: var(--desk-surface); box-shadow: var(--desk-depth); }
.session-orders, .session-executions { min-width: 0; padding: clamp(18px, 1.8vw, 30px); }
.session-orders { position: relative; isolation: isolate; overflow: hidden; background: var(--night-raised, #d9e9df); color: var(--desk-ink); }
.session-orders::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 44%;
    background: var(--night-good-bg, #c5d6c9) url("plateau-abidjan.webp") right 62% / cover no-repeat;
    background-blend-mode: luminosity;
    opacity: .29;
    mask-image: linear-gradient(90deg, transparent, #000 85%);
    pointer-events: none;
}
.register-head { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.register-head h2, .session-executions h2 { color: inherit; font-size: 18px; font-weight: 600; }
.register-head a { padding: 6px 11px; border: 1px solid var(--night-line, #b6cbbd); border-radius: 20px; background: var(--night-raised, #edf4ee); color: var(--desk-action); text-decoration: none; font-size: 12px; font-weight: 600; }
.register-head a:hover { background: var(--desk-surface); }
.session-totals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px clamp(20px, 3vw, 52px); margin-block: 17px 23px; }
.session-totals span, .session-totals strong { display: block; }
.session-totals span { margin-top: 4px; color: var(--night-ink, #425c50); font-size: 12px; }
.session-totals strong { overflow-wrap: anywhere; font-size: clamp(20px, 1.75vw, 30px); font-weight: 550; letter-spacing: -.035em; }
.session-totals > div:first-child strong { font-size: clamp(38px, 4vw, 62px); line-height: 1; }
.order-mix { display: flex; height: 8px; overflow: hidden; border-radius: 5px; background: var(--night-good-bg, #bdcfc3); }
.order-mix i:first-child, .mix-legend span:first-child::before { background: var(--desk-buy); }
.order-mix i:last-child, .mix-legend span:last-child::before { background: var(--desk-sell); }
.mix-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; }
.mix-legend span { display: flex; align-items: baseline; gap: 6px; font-size: 12px; }
.mix-legend span::before { content: ""; align-self: center; width: 8px; height: 8px; border-radius: 2px; }
.session-executions { color: var(--desk-ink); }
.session-executions dl { margin: 10px 0 0; }
.session-executions dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--desk-rule); }
.session-executions dl > div:last-child { border: 0; padding-bottom: 0; }
.session-executions dt { color: var(--desk-muted); font-size: 12px; }
.session-executions dd { margin: 0; text-align: right; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
[data-view="dashboard"] .control-command { overflow: hidden; margin-bottom: 18px; border-radius: 11px; background: var(--desk-surface); }
.control-command > div { padding: 12px; min-width: 0; }
.control-command span, .baseline-metrics span { font-size: 11px; }
.control-command strong { overflow-wrap: anywhere; }
.control-command > a { align-self: center; min-height: 32px; margin: 6px 10px; border-radius: 7px; background: var(--night-raised, #e4eee7); color: var(--desk-action); font-size: 11px; }
.control-command > a:hover { background: var(--night-raised, #d8e6dd); }
[data-view="dashboard"] .metric-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
[data-view="dashboard"] .metric-group { border-radius: 11px; background: var(--desk-surface); }
[data-view="dashboard"] .metric-group h2 { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: var(--night-raised, #f4f6f1); color: var(--desk-ink); font-size: 15px; text-transform: none; }
[data-view="dashboard"] .metric { align-items: flex-start; padding: 12px; background: var(--desk-surface); text-align: left; }
[data-view="dashboard"] a.metric:hover { background: var(--night-raised, #edf3ed); }
[data-view="dashboard"] .metric span { font-size: 11px; line-height: 1.35; }
[data-view="dashboard"] .metric strong { color: var(--desk-ink); font-size: 22px; }
[data-view="dashboard"] .baseline-head h2 { font-size: 15px; }
[data-view="dashboard"] .baseline-panel { border-color: var(--desk-rule); border-left: 3px solid var(--night-line, #8ca597); border-radius: 9px; background: var(--desk-surface); }
[data-view="dashboard"] .baseline-head span { font-size: 11px; text-transform: none; }
[data-view="dashboard"] .dashboard-split { gap: 14px; margin-bottom: 14px; }
[data-view="dashboard"] :is(.alerts-panel, .actions-preview-panel) { border-color: var(--desk-rule); }
[data-view="dashboard"] :is(.alerts-panel, .actions-preview-panel) .panel-head h2 { color: var(--desk-ink); }

/* Market reading and supervision */
.qd-hero, .market-watch-hero { margin-bottom: 16px; border: 1px solid var(--desk-rule); border-radius: 14px; background: var(--desk-surface); box-shadow: var(--desk-depth); }
.qd-regime, .watch-regime { background: var(--night-raised, #dce9e6); color: var(--desk-ink); }
.qd-regime-score strong, .qd-regime h2, .watch-regime h2 { color: var(--desk-ink); }
.qd-regime-score span, .watch-regime > div small, .qd-regime p, .watch-regime p { color: var(--night-muted, #425e56); }
.qd-eyebrow { color: var(--desk-action); }
.qd-regime::after { content: none; }
.regime-empty { grid-column: 1 / -1; }
.watch-regime:only-child { grid-column: 1 / -1; }
.qd-chart-caption { grid-column: 1 / -1; color: var(--night-muted, #445e57); font-size: 11px; }
.qd-regime:not(:has(canvas)) { padding-bottom: 22px; }
.qd-regime > div:nth-child(2) > span, .watch-regime > span { color: var(--night-muted, #445e57); font-size: 11px; letter-spacing: 0; }
.qd-regime h2, .watch-regime h2 { font: 500 clamp(23px, 2vw, 33px)/1.15 var(--desk-title); }
.qd-regime p, .watch-regime p { font-size: 12px; line-height: 1.5; }
.qd-status-head > span { color: var(--desk-ink); font-size: 16px; letter-spacing: 0; }
.qd-session-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qd-session-kpis > div { padding: 8px 12px; }
.qd-session-kpis > div:nth-child(odd) { padding-left: 0; border: 0; }
.qd-session-kpis strong { white-space: normal; overflow-wrap: anywhere; }
.qd-session-kpis span, .qd-session-kpis small, .watch-kpis small, .watch-kpis span { font-size: 11px; }
.qd-mandate strong, .qd-workflow span, .qd-workflow small { white-space: normal; }
.qd-mandate small, .qd-workflow small { font-size: 11px; line-height: 1.45; }
.qd-workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qd-workflow b, .qd-factor-table .qd-rank { color: var(--desk-muted); }
.watch-tools { gap: 0; overflow: hidden; border: 1px solid var(--desk-rule); border-radius: 11px; background: var(--desk-surface); }
.watch-tools a { background: var(--desk-surface); min-height: auto; border: 0; border-radius: 0; border-inline-end: 1px solid var(--desk-rule); box-shadow: none; text-decoration: none; }
.watch-tools a:hover { transform: none; background: var(--night-raised, #edf3ed); box-shadow: none; }
.watch-tools a:focus-visible { outline-offset: -3px; }
.watch-boundary { border-color: var(--desk-rule); background: var(--night-raised, #eaf0ec); color: var(--desk-muted); }
.watch-tools strong { margin: 0 0 6px; color: var(--desk-action); font-size: 15px; }
.watch-tools p, .watch-boundary { font-size: 12px; line-height: 1.5; }
.watch-boundary strong { color: var(--desk-ink); white-space: normal; text-transform: none; letter-spacing: 0; }
.watch-kpis > div { min-width: 0; }
.watch-kpis strong { overflow-wrap: anywhere; }

/* Access administration has its own account and security controls. */
body.access-admin-page {
    color-scheme: light;
    --ink: var(--desk-ink);
    --line: var(--desk-rule);
    --muted: var(--desk-muted);
    --teal: var(--desk-action);
    --amber: #815923;
    --danger: #963f49;
    --shadow: var(--desk-depth);
    background: var(--desk-paper);
    font-family: var(--desk-sans);
}
.access-topbar { background: var(--desk-surface); border-color: var(--line); }
.access-topbar .access-brand strong { font-size: 16px; letter-spacing: 0; }
.access-topbar nav span { color: var(--desk-ink); }
.access-hero h1 { font: 500 clamp(34px, 4vw, 56px)/1.05 var(--desk-title); letter-spacing: -.045em; }
.access-metrics { border-color: var(--night-line, #d0ded4); background: var(--night-raised, #cbdacf); }
.access-metrics article { background: var(--desk-sage); }
.access-metrics span { color: var(--desk-muted); text-transform: none; font-size: 12px; letter-spacing: 0; }
.access-card { border-radius: 14px; background: var(--desk-surface); }
.access-card-heading { background: var(--night-raised, #f3f6f1); }
.access-card-heading h2 { margin: 0; }
.access-form label, .access-user-form label { color: var(--desk-ink); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.access-form input, .access-form select, .access-user-form input, .access-user-form select { background: var(--night-surface, #f8faf7); border-color: var(--night-line, #aabcb1); font-family: inherit; }
.access-user-form :disabled { color: var(--desk-muted); background: var(--night-raised, #edf1ec); }
.access-notice { background: var(--night-warn-bg, #faf4e6); border-color: var(--night-line, #e5d9be); }
.access-primary, .access-user-actions button, .access-credential button { color: white; }
.access-user-actions .is-secondary { border-color: var(--night-line, #bbcbbf); color: var(--desk-action); }
.access-user, .access-audit-list article { border-color: var(--desk-rule); }
.access-avatar, .access-status.is-active { background: var(--night-raised, #e3eee5); color: var(--night-ink, #345f48); border-color: var(--night-line, #c6d9cb); }
.access-status { background: var(--night-raised, #efedeb); color: var(--night-muted, #665b5b); border-color: var(--night-line, #d5ceca); }
.access-flash--success { background: var(--night-raised, #e6f1e9); border-color: var(--night-line, #bed4c4); }
.access-flash--error { background: var(--night-raised, #f8ebeb); border-color: var(--night-line, #dcb9bc); color: var(--danger); }
.access-flash p, .access-audit-list span { color: var(--desk-ink); }
.access-credential code { background: var(--desk-surface); color: var(--desk-ink); }
.access-admin-page :focus-visible { outline: 2px solid var(--desk-focus); outline-offset: 2px; }
.access-user-meta, .access-audit-list time, .access-audit-list small { color: var(--desk-muted); }
.desk-close { display: none; }

@media (min-width: 1850px) {
    .qd-workflow { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (min-width: 981px) and (max-height: 760px) {
    .sidebar { overflow-y: auto; }
    .side-nav { flex: 1 0 auto; }
}
@media (max-width: 1150px) {
    .control-command { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .control-command > div { border-bottom: 1px solid var(--line-soft); }
    [data-view="dashboard"] .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .sidebar { visibility: hidden; overflow-y: auto; }
    .sidebar.open { visibility: visible; }
    .sidebar .side-nav { flex: 1 0 auto; }
    .sidebar .sidebar-brand { padding-right: 44px; }
    .desk-close { position: absolute; top: 6px; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: var(--menu-text); font-size: 25px; }
    .sidebar-open .desk-skip { display: none; }
    .sidebar-toggle { width: 42px; height: 42px; flex: none; }
    .page-source-strip { order: initial; }
}
@media (max-width: 720px) {
    .auth-page { display: block; padding: 0; background: var(--desk-surface); }
    .auth-shell { display: block; width: 100%; min-height: 100svh; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
    .access-cover { min-height: 175px; padding: 19px 24px; border-radius: 0; background-size: cover; background-position: center 44%; background-image: linear-gradient(90deg, #d2dfd8 22%, rgb(214 229 220 / 20%) 85%), url("plateau-abidjan.webp"); }
    .cover-brand, .cover-title { padding-right: 2px; background: transparent; }
    .cover-brand { gap: 5px; font-size: 14px; }
    .cover-brand .desk-mark { width: 25px; height: 25px; }
    .cover-title { max-width: 40%; margin-block: 8px; font-size: 34px; }
    .cover-caption { margin-top: 4px; padding: 0; background: transparent; font-size: 10px; }
    .auth-shell .auth-panel { max-width: 490px; margin-inline: auto; padding: 32px 24px; }
    .session-register, [data-view="dashboard"] .metric-groups { grid-template-columns: 1fr; }
    .page-header { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "session" "sources"; }
    .page-heading { padding: 14px 0 8px; }
    .page-heading p { font-size: 12px; }
    .header-meta { flex-flow: row wrap; align-items: baseline; justify-content: flex-start; gap: 4px 8px; padding: 6px 0 10px; text-align: left; }
    .header-meta strong { margin: 0; font-size: 12px; }
    .header-session-actions { margin-left: auto; }
    .page-source-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .source-chip { min-height: 41px; padding: 5px 8px; gap: 6px; }
    .source-chip:nth-child(odd) { padding-left: 0; }
    .source-chip:nth-child(even) { border-right: 0; }
    .source-chip:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .control-command { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .session-totals { margin-block: 14px 17px; }
    [data-view="dashboard"] .dashboard-split { grid-template-columns: minmax(0, 1fr); }
    .rank-list > div { grid-template-columns: 16px minmax(0, 1fr) minmax(26px, .5fr) auto; }
    .qd-hero, .market-watch-hero { grid-template-columns: minmax(0, 1fr); }
    .qd-mandate, .watch-kpis, .watch-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qd-regime { grid-template-columns: auto minmax(0, 1fr); }
    .qd-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .watch-kpis > div { min-height: 88px; padding: 12px; }
    .watch-tools a { padding: 12px; }
    .access-topbar { position: relative; flex-wrap: wrap; gap: 10px; }
    .access-topbar nav { flex-wrap: wrap; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .desk-page *, .auth-page * { scroll-behavior: auto; transition-duration: 0s; }
}
