/* Charte E55C, reprise des tokens d’Énergie Cité. */
:root {
  color-scheme: light;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  --canvas: #f4f7fb;
  --paper: #fff;
  --surface: #f7faff;
  --control: #fff;
  --ink: #172a3b;
  --muted: #5c7084;
  --subtle: #5c7084;
  --line: #dce7f2;
  --line-strong: #c8d8e8;
  --brand: #0054a5;
  --brand-strong: #003e7c;
  --accent: #0054a5;
  --brand-soft: #eaf3fc;
  --sky: #5c98d0;
  --success: #25733d;
  --success-bg: #effaf3;
  --warning: #735f2d;
  --warning-bg: #fff8e8;
  --danger: #a9403b;
  --danger-bg: #fff1f0;
  --shadow: 0 12px 38px rgb(0 64 128 / 5%);
  --sidebar-width: 256px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0b1925;
  --paper: #13283a;
  --surface: #193146;
  --control: #193146;
  --ink: #e8f1f8;
  --muted: #afc1d0;
  --subtle: #91a9bc;
  --line: #28445a;
  --line-strong: #42627a;
  --accent: #86c2f4;
  --brand-soft: #173e60;
  --success: #8dd4a4;
  --success-bg: #183b2a;
  --warning: #f3d28d;
  --warning-bg: #3a321f;
  --danger: #ffaaa5;
  --danger-bg: #3b2529;
  --shadow: 0 12px 38px rgb(0 0 0 / 15%);
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, .button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; border: 1px solid var(--brand); border-radius: 9px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 650; line-height: 1.25; cursor: pointer; text-decoration: none; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
button:hover, .button:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }
.icon { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.quiet { background: var(--paper); color: var(--muted); border-color: var(--line-strong); }
.quiet:hover { color: var(--accent); background: var(--brand-soft); border-color: var(--line-strong); }
.icon-button { width: 36px; min-height: 36px; flex: 0 0 36px; padding: 0; border-color: transparent; color: var(--muted); background: transparent; }
.icon-button:hover { color: var(--accent); border-color: transparent; background: var(--brand-soft); }
.theme-toggle { min-height: 36px; gap: 8px; padding: 8px 11px; color: var(--muted); background: transparent; border-color: var(--line); font-size: 12px; white-space: nowrap; }
.theme-toggle:hover { color: var(--accent); background: var(--brand-soft); border-color: var(--line-strong); }
.theme-toggle .icon { width: 16px; height: 16px; flex-basis: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.brand-plate { display: inline-flex; align-items: center; justify-content: center; padding: 9px 11px; border-radius: 10px; background: #fff; }
.brand-plate img { display: block; width: 156px; height: 52px; object-fit: contain; }
.eyebrow { display: block; color: var(--accent); font-size: 10px; line-height: 1.4; font-weight: 750; letter-spacing: 1.65px; }
.product-label { color: var(--subtle); font-size: 10px; font-weight: 750; letter-spacing: 2px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: "Segoe UI Variable Display", Aptos, "Segoe UI", Helvetica, Arial, sans-serif; }
h1 { margin: 9px 0 10px; font-size: clamp(28px, 2.5vw, 37px); line-height: 1.15; font-weight: 750; letter-spacing: -1.3px; }
h2 { margin: 7px 0 0; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.5px; }
h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; letter-spacing: -.25px; }
p { line-height: 1.65; }
.boot-screen { min-height: 100svh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px; }
.boot-screen img { padding: 8px; border-radius: 10px; background: #fff; }
.boot-screen p { margin: 0; color: var(--muted); font-size: 14px; }
.loading-ring { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Connexion */
.login-shell { min-height: calc(100svh - 48px); max-width: 1600px; margin: 24px auto; display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.login-story { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 38px 42px 24px; overflow: hidden; color: #fff; background: #052b54; }
.story-brand { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.story-brand .brand-plate { padding: 5px 11px; border-radius: 8px; }
.story-brand .brand-plate img { width: 145px; height: 48px; }
.story-label { color: #b0d5f5; font-size: 9px; line-height: 1.7; font-weight: 650; letter-spacing: 1.5px; text-align: right; }
.story-copy { position: relative; z-index: 1; padding: clamp(58px, 8vh, 100px) 0 16px; }
.story-copy .eyebrow { color: #8ec7f7; }
.story-copy h1 { max-width: 580px; margin: 18px 0 24px; color: #fff; font-size: clamp(35px, 3.4vw, 58px); letter-spacing: -2px; line-height: 1.07; font-weight: 750; }
.story-copy p { max-width: 425px; margin: 0; color: #c1d6e9; font-size: 15px; line-height: 1.8; }
.story-visual { position: relative; min-height: 230px; flex: 1 0 230px; margin: 0 -42px; background: url('/assets/e55c-mobility.png') 63% center / cover no-repeat; }
.story-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #052b54 0%, rgb(5 43 84 / 15%) 34%, rgb(5 43 84 / 5%) 65%, #052b54 100%); }
.story-caption { position: absolute; bottom: 36px; left: 42px; display: flex; align-items: center; gap: 13px; font-size: 12px; line-height: 1.7; color: #e0effa; }
.caption-line { display: block; width: 27px; height: 1px; background: #92c4ef; }
.story-footer { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-top: 15px; color: #a7c6e1; font-size: 10px; }
.login-access { display: flex; min-width: 0; flex-direction: column; padding: 38px 46px 24px; }
.login-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.login-form { width: 100%; max-width: 390px; margin: auto; padding: 70px 0; }
.access-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 14px; color: var(--accent); background: var(--brand-soft); }
.access-icon .icon { width: 24px; height: 24px; }
.login-form h2 { margin: 15px 0 18px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.14; letter-spacing: -1.1px; }
.login-form > p { max-width: 360px; margin-bottom: 34px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.google-button { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 13px 17px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: var(--control); text-decoration: none; font-size: 14px; font-weight: 650; transition: box-shadow .16s ease, border-color .16s ease; }
.google-button:hover { border-color: var(--sky); box-shadow: 0 4px 18px rgb(0 84 165 / 9%); }
.google-mark { width: 22px; height: 22px; flex: 0 0 22px; }
.google-button > .icon { width: 17px; height: 17px; margin-left: auto; color: var(--muted); }
.google-button > span { margin-right: auto; }
.access-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 27px; padding-top: 25px; border-top: 1px solid var(--line); color: var(--subtle); }
.access-note > .icon { width: 17px; height: 17px; flex-basis: 17px; color: var(--accent); margin-top: 1px; }
.access-note strong { color: var(--muted); font-size: 12px; font-weight: 650; }
.access-note p { margin: 5px 0 0; font-size: 11px; line-height: 1.7; }
.login-footer { display: flex; justify-content: space-between; gap: 10px; color: var(--subtle); font-size: 10px; }
.login-error { margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--danger); background: var(--danger-bg); font-size: 13px; line-height: 1.65; }

/* Navigation et structure */
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 27px 18px 17px; border-right: 1px solid var(--line); background: var(--paper); overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; flex-direction: column; align-self: flex-start; margin: 0 0 38px 10px; gap: 13px; text-decoration: none; }
.sidebar-brand .brand-plate { padding: 5px 8px; }
.sidebar-brand .brand-plate img { width: 163px; height: 54px; }
.sidebar-brand .product-label { align-self: flex-start; margin-left: 10px; font-size: 9px; letter-spacing: 2.6px; }
.nav-caption { margin: 0 14px 13px; color: var(--subtle); font-size: 9px; letter-spacing: 1.4px; font-weight: 650; }
nav { display: grid; gap: 6px; }
nav a { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 11px 13px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
nav a > .icon { width: 18px; height: 18px; flex-basis: 18px; }
nav a:hover { color: var(--accent); background: var(--surface); }
nav a[aria-current="page"] { color: var(--accent); background: var(--brand-soft); border-color: var(--line); }
.nav-arrow { margin-left: auto; width: 13px !important; height: 13px !important; }
nav a:not([aria-current="page"]) .nav-arrow { display: none; }
.sidebar-hint { margin: 35px 10px 22px; padding: 18px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sidebar-hint > .icon { color: var(--accent); margin-bottom: 10px; }
.sidebar-hint strong { display: block; font-size: 12px; font-weight: 650; }
.sidebar-hint p { margin: 7px 0 0; font-size: 11px; color: var(--muted); }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.sidebar-bottom > .theme-toggle { margin: 0 10px 20px; }
.account { display: flex; align-items: center; gap: 10px; padding: 19px 4px 0; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); background: var(--brand-soft); font-size: 12px; font-weight: 750; }
.account-details { display: grid; gap: 4px; min-width: 0; }
.account-details strong { overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.account-details > span { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 9px; white-space: nowrap; }
.account-details .account-role { color: var(--accent); font-size: 9px; }
.account > .icon-button { margin-left: auto; width: 28px; min-height: 30px; flex-basis: 28px; }
.account .icon { width: 16px; height: 16px; }
main { min-height: 100svh; max-width: 1840px; margin-left: var(--sidebar-width); padding: 0 38px; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 11px; font-size: 11px; color: var(--subtle); }
.breadcrumb strong { color: var(--ink); font-weight: 550; }
.breadcrumb-divider { opacity: .45; }
.today-date { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px 0 28px; }
.page-heading p { margin: 0; max-width: 600px; font-size: 13px; color: var(--muted); }
.page-heading > .button { flex-shrink: 0; }
.panel { min-width: 0; padding: 25px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.section-heading h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-heading > button { flex-shrink: 0; }
.count-badge { display: inline-flex; justify-content: center; min-width: 25px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 650; letter-spacing: 0; }
.notice, #message { display: flex; align-items: center; gap: 16px; margin-bottom: 23px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--brand-soft); font-size: 13px; line-height: 1.7; }
.notice-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--accent); }
.notice strong { font-size: 12px; }
.notice p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.notice .text-link { margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 650; text-decoration: none; }
#message.error { color: var(--danger); background: var(--danger-bg); }
#message:not(.error) { color: var(--success); background: var(--success-bg); }
.activity-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 24px; }
.activity-stat { display: flex; align-items: flex-start; gap: 16px; padding: 23px 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.stat-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 11px; color: var(--accent); background: var(--brand-soft); }
.stat-working { color: var(--success); background: var(--success-bg); }
.stat-attention { color: var(--warning); background: var(--warning-bg); }
.activity-stat > div { min-width: 0; display: grid; }
.activity-stat > div > span { color: var(--muted); font-size: 11px; }
.activity-stat strong { margin: 8px 0 3px; font-size: 29px; line-height: 1; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.activity-stat small { color: var(--subtle); font-size: 10px; }
.appointments-panel { padding-bottom: 0; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 -25px; padding: 17px 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-filters { display: flex; align-items: center; gap: 4px; }
.status-filters button { min-height: 32px; padding: 7px 11px; color: var(--muted); background: transparent; border-color: transparent; font-size: 11px; border-radius: 7px; }
.status-filters button:hover { color: var(--accent); background: var(--surface); }
.status-filters button[aria-pressed="true"] { color: var(--accent); background: var(--brand-soft); border-color: var(--line); }
.table-search { position: relative; width: min(270px, 45%); }
.table-search > .icon { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--subtle); }
.table-search input { padding: 10px 12px 10px 34px; font-size: 11px; }
.table-scroll { overflow-x: auto; margin: 0 -25px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 15px 19px; border-bottom: 1px solid var(--line); color: var(--subtle); background: var(--surface); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 19px; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.65; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface); }
td:first-child { font-weight: 650; }
td small { display: block; margin-top: 4px; max-width: 215px; color: var(--muted); font-size: 11px; font-weight: 400; overflow-wrap: anywhere; }
td .quiet { min-height: 29px; margin: 0 4px 5px 0; padding: 6px 9px; font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.done { color: var(--success); background: var(--success-bg); }
.badge.failed { color: var(--danger); background: var(--danger-bg); }
.badge.pending, .badge.processing { color: var(--warning); background: var(--warning-bg); }
.empty-state { padding: 54px 20px; text-align: center; font-weight: 400 !important; }
.empty-state strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: 15px; font-weight: 650; }
.empty-state p { max-width: 390px; margin: 0 auto 18px; color: var(--muted); font-size: 12px; }
.empty-state .empty-symbol { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; color: var(--accent); background: var(--brand-soft); border: 1px solid var(--line); border-radius: 14px; }
.empty-state .button { min-height: 36px; font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 74px; border-top: 1px solid var(--line); }
.pagination > div { display: flex; align-items: center; gap: 12px; }
.pagination-note { color: var(--subtle); font-size: 10px; }
.pagination .quiet { min-height: 31px; padding: 7px 10px; font-size: 10px; }
#page-number { color: var(--muted); font-size: 10px; white-space: nowrap; }

/* Formulaires */
.booking-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) 245px; gap: 23px; }
.booking-panel { padding: 28px; }
.small-label { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 10px; white-space: nowrap; }
.small-label .icon { width: 14px; height: 14px; flex-basis: 14px; }
.form-section { min-width: 0; margin: 0; padding: 25px 0 7px; border: 0; border-top: 1px solid var(--line); }
.form-section + .form-section { margin-top: 19px; }
.form-section legend { display: flex; align-items: center; gap: 11px; padding: 0 14px 0 0; color: var(--ink); font-size: 14px; font-weight: 650; }
.step-number { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--accent); background: var(--brand-soft); font-size: 10px; font-weight: 750; }
label { min-width: 0; display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
input, select, textarea { min-width: 0; width: 100%; min-height: 43px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--control); font-size: 13px; font-weight: 400; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--subtle); opacity: 1; }
input:hover, select:hover { border-color: var(--sky); }
input:focus, select:focus { border-color: var(--sky); }
input[type="checkbox"] { min-height: auto; width: 17px; height: 17px; accent-color: var(--brand); }
input[type="date"], input[type="time"] { -webkit-appearance: auto; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; margin: 20px 0; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search { margin-bottom: 20px; }
.search > div { display: flex; align-items: stretch; gap: 10px; margin-top: 8px; }
.search > div > input, .search > div > select { flex: 1; }
.search > div > button { flex-shrink: 0; font-size: 12px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
#municipality-detail:empty, #availability-result:empty { display: none; }
#municipality-detail { padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-footer > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 11px; }
.form-footer > button { flex-shrink: 0; font-size: 12px; }
.booking-guide { padding: 26px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); }
.guide-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--accent); }
.booking-guide h3 { font-size: 17px; line-height: 1.35; }
.booking-guide > p, .booking-guide li { color: var(--muted); font-size: 11px; line-height: 1.85; }
.booking-guide ul { margin: 20px 0; padding-left: 16px; }
.booking-guide li { margin: 10px 0; padding-left: 3px; }
.booking-guide li::marker { color: var(--accent); }
.guide-footer { display: flex; align-items: flex-start; gap: 10px; padding-top: 17px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 10px; line-height: 1.7; }
.guide-footer .icon { width: 15px; height: 15px; flex-basis: 15px; color: var(--accent); }
.admin-subsection { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.selection-hint { padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 12px; }
.staff-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(170px, 1.5fr) minmax(110px, 1fr) auto; gap: 20px; align-items: end; padding: 19px 0; border-top: 1px solid var(--line); }
.staff-row > strong { align-self: center; font-size: 12px; }
.staff-row label { font-size: 11px; }
.staff-row .checkbox-field { min-height: 44px; display: flex; align-items: center; gap: 9px; padding-bottom: 4px; }
.admin-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.admin-overview h2 { margin-bottom: 22px; }
#reference-runs > p, #job-runs > p { padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
#job-runs button { display: flex; margin-top: 10px; font-size: 10px; }
details { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
summary { color: var(--ink); cursor: pointer; font-weight: 600; line-height: 1.65; }
pre { max-width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 10px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-footer { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0 25px; color: var(--subtle); font-size: 10px; }
.mobile-menu, .sidebar-close, .nav-backdrop { display: none; }
[hidden] { display: none !important; }
.noscript-message { max-width: 600px; margin: 20px auto; padding: 20px; color: var(--danger); background: var(--paper); }

@media (min-width: 1650px) { .login-shell { margin: 24px auto; } }
@media (max-width: 1649px) { .login-shell { margin: 24px; } }
@media (max-width: 1250px) {
  :root { --sidebar-width: 232px; }
  main { padding: 0 27px; }
  .login-story { padding-inline: 32px; }
  .story-visual { margin-inline: -32px; }
  .story-caption { left: 32px; }
  .login-access { padding-inline: 32px; }
  .story-label { max-width: 90px; }
  .booking-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; }
  .booking-guide { padding: 23px 18px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .activity-stat { gap: 11px; padding: 21px 17px; }
  .activity-stat > div > span { font-size: 10px; }
}
@media (max-width: 1050px) {
  .login-shell { grid-template-columns: 1fr 1fr; }
  .story-copy h1 { font-size: 41px; }
  .story-label { display: none; }
  .login-form h2 { font-size: 31px; }
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .booking-guide { display: none; }
  .activity-overview { gap: 12px; }
  .activity-stat { padding: 19px 14px; gap: 10px; }
  .stat-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
  .stat-icon .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .section-heading h2 { font-size: 18px; }
  .admin-overview { grid-template-columns: 1fr; gap: 0; }
  .staff-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  input, select, textarea, .table-search input { font-size: 16px; }
  .login-shell { min-height: calc(100svh - 24px); margin: 12px; grid-template-columns: 1fr; border-radius: 18px; }
  .login-story { padding: 23px 27px; }
  .story-brand .brand-plate img { width: 120px; height: 40px; }
  .story-label { display: block; max-width: none; }
  .story-copy { padding: 34px 0 0; }
  .story-copy h1 { margin: 12px 0 14px; max-width: 530px; font-size: clamp(30px, 5.3vw, 42px); letter-spacing: -1.3px; }
  .story-copy p, .story-visual, .story-footer { display: none; }
  .login-access { padding: 24px 27px; }
  .login-tools { justify-content: flex-end; }
  .login-tools > .product-label { display: none; }
  .login-form { max-width: 440px; padding: 26px 0 39px; }
  .access-icon { display: none; }
  .login-form h2 { font-size: 30px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 256px; }
  .sidebar-close { display: inline-flex; position: absolute; top: 10px; right: 9px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .nav-backdrop { display: block; position: fixed; z-index: 35; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgb(0 15 30 / 48%); }
  main { margin-left: 0; padding: 0 24px; }
  .topbar { min-height: 65px; }
  .mobile-menu { display: inline-flex; margin-left: -6px; }
  .page-heading { padding: 28px 0 25px; }
  .page-heading > .button { font-size: 11px; padding: 10px 13px; }
  h1 { font-size: 30px; }
  .notice { flex-wrap: wrap; gap: 12px; }
  .notice .text-link { margin-left: 48px; }
}
@media (max-width: 520px) {
  main { padding: 0 16px; }
  .breadcrumb { gap: 8px; font-size: 10px; }
  .today-date { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  h1 { font-size: 29px; }
  .page-heading p { font-size: 12px; }
  .activity-overview { gap: 8px; }
  .activity-stat { display: block; padding: 15px 11px; }
  .stat-icon { margin-bottom: 13px; }
  .activity-stat > div > span { min-height: 30px; font-size: 10px; line-height: 1.5; }
  .activity-stat strong { font-size: 26px; }
  .activity-stat small { font-size: 9px; }
  .panel { padding: 20px 16px; border-radius: 11px; }
  .section-heading { gap: 14px; flex-wrap: wrap; }
  .section-heading h2 { font-size: 18px; }
  .table-tools { margin-inline: -16px; padding: 14px 16px; align-items: stretch; flex-direction: column; gap: 14px; }
  .table-search { width: 100%; }
  .table-scroll { margin-inline: -16px; }
  .pagination { align-items: flex-start; flex-direction: column; padding: 17px 0; gap: 15px; }
  .pagination > div { width: 100%; justify-content: space-between; }
  .grid, .grid.three { grid-template-columns: 1fr; gap: 16px; }
  .search > div { flex-wrap: wrap; }
  .search > div > input, .search > div > select { min-width: 170px; }
  .search > div > button { flex: 1; }
  .form-footer > button { width: 100%; }
  .small-label { display: none; }
  .staff-row { grid-template-columns: 1fr; gap: 14px; }
  .login-story { padding: 21px 23px; }
  .login-access { padding: 19px 23px 22px; }
  .login-form { padding-top: 29px; }
  .story-label { max-width: 85px; font-size: 8px; }
  .login-footer { flex-direction: column; gap: 5px; }
  .notice { padding: 16px; }
  .notice > div { flex: 1; min-width: 190px; }
  .notice .text-link { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
