:root {
  --bg: #110e11;
  --bg-2: #171216;
  --surface: #1d171b;
  --surface-raised: #251c22;
  --surface-soft: #211a1f;
  --line: #3b3037;
  --line-strong: #584650;
  --ink: #f8f3f1;
  --muted: #c3b8bd;
  --subtle: #988990;
  --wine: #641a2d;
  --wine-bright: #a83f5a;
  --wine-deep: #3d1320;
  --cream: #faf8f3;
  --ok: #70d5b2;
  --warn: #f2c675;
  --danger: #ff9199;
  --glow: rgba(250, 248, 243, .14);
  --radius: 16px;
  --font: "DM Sans", "Segoe UI", Arial, sans-serif;
  --heading: Manrope, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(ellipse at 70% -15%, rgba(100, 26, 45, .32), transparent 44%),
    radial-gradient(ellipse at 0% 90%, rgba(61, 19, 32, .25), transparent 48%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #f6d6df;
  outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: none; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 12px; background: var(--cream); color: #1a1115; }
.skip-link:focus { left: 8px; }
.app-frame { min-height: 100vh; }
.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  background: rgba(17, 14, 17, .9);
  border-bottom: 1px solid rgba(250,248,243,.14);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 240px; min-height: 44px; text-decoration: none; }
.brand:hover, .brand:focus-visible { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--wine-bright), var(--wine-deep));
  border: 1px solid rgba(255,255,255,.34);
  color: #fff; font-family: Georgia, serif; font-size: 17px; font-weight: 700;
  box-shadow: 0 0 22px rgba(168,63,90,.28), inset 0 1px rgba(255,255,255,.2);
}
.brand-copy { line-height: 1.1; }
.brand-copy strong { display: block; letter-spacing: .17em; font-size: 12px; font-weight: 700; }
.brand-copy span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; margin-top: 5px; }
.topbar-spacer { flex: 1; }
.prototype-badge, .top-link, .role-label, .language-toggle button, .icon-button {
  min-height: 44px;
}
.prototype-badge {
  border: 1px solid rgba(242,198,117,.45); color: #f3d89e;
  background: rgba(242,198,117,.08); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; padding: 0 13px;
  font-size: 11px; letter-spacing: .04em; white-space: nowrap;
}
.prototype-badge i { width: 7px; height: 7px; display: block; border-radius: 50%; background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.top-link, .icon-button, .role-select, .language-toggle button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; background: transparent;
  color: var(--muted); padding: 0 12px; cursor: pointer; transition: .18s ease;
}
.top-link:hover, .icon-button:hover, .role-select:hover, .language-toggle button:hover {
  background: rgba(250,248,243,.08); border-color: var(--line-strong); color: var(--ink);
}
.top-link[aria-current="page"] { color: var(--ink); background: rgba(250,248,243,.07); }
.top-link span { font-size: 12px; }
.top-link svg, .icon-button svg { width: 17px; height: 17px; }
.role-select {
  border-color: var(--line); background: var(--surface);
  color: var(--ink); color-scheme: dark; min-width: 148px; justify-content: space-between;
  font-size: 12px;
}
.role-select option { color: var(--ink); background-color: var(--surface); }
.role-select option:checked { color: #fff; background-color: var(--wine); }
.role-select small { color: var(--subtle); font-size: 10px; }
.language-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.language-toggle button { min-width: 44px; min-height: 44px; padding: 0 10px; font-size: 11px; border-radius: 9px; }
.language-toggle button.active { color: #fff; background: var(--wine); border-color: rgba(255,255,255,.17); }
.menu-button { display: none; }

.layout { display: grid; grid-template-columns: 244px minmax(0,1fr); min-height: calc(100vh - 76px); }
.sidebar {
  display: flex; flex-direction: column; min-height: calc(100vh - 76px);
  padding: 20px 14px 16px; border-right: 1px solid rgba(250,248,243,.11);
  background: rgba(18, 14, 17, .72);
}
.workspace-label { padding: 6px 13px 15px; color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-item {
  width: 100%; min-height: 46px; display: flex; align-items: center; gap: 12px;
  border: 1px solid transparent; border-radius: 12px; color: #c7bbc1;
  padding: 0 13px; text-align: left; background: transparent; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.nav-item:hover { color: #fff; background: rgba(250,248,243,.075); border-color: var(--line); transform: translateX(2px); }
.nav-item[aria-current="page"] {
  color: #fff; border-color: rgba(255,255,255,.17);
  background: linear-gradient(100deg, rgba(100,26,45,.72), rgba(100,26,45,.21));
  box-shadow: inset 3px 0 var(--wine-bright), 0 0 24px rgba(100,26,45,.15);
}
.nav-item svg { width: 18px; height: 18px; color: #d6b6c0; flex: none; }
.nav-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(250,248,243,.11); }
.sidebar-note { margin: 13px 8px 0; color: var(--subtle); font-size: 10px; line-height: 1.55; }

.main { min-width: 0; padding: 30px clamp(18px, 3vw, 48px) 58px; }
.content { max-width: 1390px; margin: 0 auto; }
.eyebrow { color: #df9aad; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 0 24px; }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,h3 { font-family: var(--heading); letter-spacing: -.035em; }
h1 { font-size: clamp(27px,3vw,40px); font-weight: 600; margin: 7px 0 8px; }
h2 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.page-subtitle { margin: 0; color: var(--muted); max-width: 720px; font-size: 13px; line-height: 1.55; }
.heading-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

.btn {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 15px;
  background: var(--surface-raised); color: var(--ink); cursor: pointer;
  font-weight: 650; font-size: 12px; transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); background: #30242b; border-color: #82606d; box-shadow: 0 8px 25px rgba(0,0,0,.2), 0 0 18px rgba(250,248,243,.07); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary { background: linear-gradient(120deg, #8a2d46, #641a2d); border-color: rgba(255,255,255,.32); box-shadow: 0 0 24px rgba(100,26,45,.24), inset 0 1px rgba(255,255,255,.18); }
.btn-primary:hover { background: linear-gradient(120deg, #a83f5a, #76243a); }
.btn-quiet { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-small { min-height: 44px; padding: 0 11px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.grid { display: grid; gap: 16px; }
.stats-grid { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 20px 0; }
.card {
  background: linear-gradient(145deg, rgba(37,28,34,.94), rgba(27,22,26,.94));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 13px 35px rgba(0,0,0,.15), inset 0 1px rgba(255,255,255,.03);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.card:hover { border-color: #715462; box-shadow: 0 16px 38px rgba(0,0,0,.23), 0 0 20px rgba(250,248,243,.055); }
.stat-card { min-height: 132px; padding: 19px; position: relative; overflow: hidden; }
.stat-card:after { content:""; position:absolute; width:110px;height:110px;right:-48px;top:-50px;border-radius:50%;background:rgba(168,63,90,.13);filter:blur(2px); }
.stat-top { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:11px; }
.stat-icon { width:31px;height:31px;border:1px solid rgba(255,255,255,.12);background:rgba(100,26,45,.3);display:grid;place-items:center;border-radius:10px;color:#f0c8d2; }
.stat-icon svg { width:15px;height:15px; }
.stat-value { margin-top:16px; font-family:var(--heading);font-size:27px;font-weight:650;letter-spacing:-.04em; }
.stat-foot { margin-top:4px;color:var(--subtle);font-size:10px; }
.two-col { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(280px,.85fr); gap:16px; }
.panel { padding:20px; }
.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:15px; }
.panel-head p { color:var(--muted);font-size:11px;line-height:1.45;margin:5px 0 0; }
.text-link { display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;background:none;color:#f0b8c7;cursor:pointer;text-decoration:none;padding:8px 6px;font-size:11px;text-align:center; }
.text-link:hover { color:#fff;text-decoration:none; }
.request-list,.plain-list { display:grid; gap:9px; }
.request-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:14px; align-items:center; padding:13px 14px; border:1px solid rgba(250,248,243,.09); background:rgba(10,9,10,.2); border-radius:12px; }
.request-actions { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.request-title { font-weight:650;font-size:12px; }
.request-meta { color:var(--muted);font-size:10px;margin-top:5px; }
.status { display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px;font-size:10px;white-space:nowrap;color:var(--muted);background:rgba(255,255,255,.035); }
.status:before { content:"";width:6px;height:6px;border-radius:50%;background:currentColor; }
.status-warn { color:var(--warn);border-color:rgba(242,198,117,.25);background:rgba(242,198,117,.07); }
.status-ok { color:var(--ok);border-color:rgba(112,213,178,.25);background:rgba(112,213,178,.07); }
.status-muted { color:#b9aeb4; }
.status-rose { color:#e9a9bb;border-color:rgba(233,169,187,.27);background:rgba(100,26,45,.16); }
.demo-disclaimer { padding:13px 15px;border:1px solid rgba(242,198,117,.27);border-radius:13px;background:rgba(242,198,117,.06);color:#e8d5b1;font-size:11px;line-height:1.55; }
.demo-disclaimer strong { color:#fff0cd; }
.appointment { display:flex;align-items:flex-start;gap:13px;padding:12px 0;border-bottom:1px solid rgba(250,248,243,.09); }
.appointment:last-child { border:0;padding-bottom:0; }
.time-chip { width:53px;flex:none;padding:8px 4px;border-radius:9px;text-align:center;background:rgba(100,26,45,.26);border:1px solid rgba(255,255,255,.12);font-size:10px;color:#f4c7d2; }
.appointment strong { display:block;font-size:11px;margin:1px 0 4px; }
.appointment span { display:block;font-size:10px;color:var(--muted);line-height:1.4; }
.section-gap { margin-top:18px; }

.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:14px; }
table { width:100%;border-collapse:collapse;min-width:690px; }
th,td { text-align:left;padding:13px 15px;border-bottom:1px solid rgba(250,248,243,.08);font-size:11px;vertical-align:middle; }
th { color:var(--subtle);background:rgba(255,255,255,.035);font-size:9px;text-transform:uppercase;letter-spacing:.12em; }
tbody tr:last-child td { border:0; }
tbody tr:hover { background:rgba(250,248,243,.035); }
.table-primary { display:block;font-weight:650;color:var(--ink); }
.table-secondary { display:block;margin-top:4px;color:var(--muted);font-size:10px; }
.empty-state { padding:26px;border:1px dashed var(--line-strong);border-radius:13px;color:var(--muted);text-align:center;font-size:12px;line-height:1.55; }
.empty-icon { width:43px;height:43px;margin:0 auto 10px;display:grid;place-items:center;border-radius:14px;background:rgba(100,26,45,.24);border:1px solid var(--line-strong);color:#f0b8c7; }
.empty-icon svg { width:21px;height:21px; }
.inline-info { display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid rgba(112,213,178,.21);background:rgba(112,213,178,.045);border-radius:13px;color:#c8e8dc;font-size:11px;line-height:1.55; }
.inline-info svg { flex:none;width:17px;height:17px; }
.feature-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px; }
.feature-card { padding:17px;min-height:158px; }
.feature-card .stat-icon { margin-bottom:13px; }
.feature-card p { margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.55; }
.contract-card { padding:20px; }
.contract-top { display:flex;justify-content:space-between;gap:15px;align-items:flex-start; }
.contract-title { font-family:var(--heading);font-size:18px;font-weight:650;line-height:1.35; }
.contract-sub { color:var(--muted);font-size:11px;line-height:1.5;margin-top:6px; }
.contract-meta { display:flex;flex-wrap:wrap;gap:8px;margin:17px 0; }
.chip { border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035);padding:7px 10px;color:var(--muted);font-size:10px; }
.contract-actions { display:flex;gap:9px;flex-wrap:wrap; }
.step-list { display:grid;gap:9px; }
.step { display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:11px;line-height:1.5; }
.step-index { width:22px;height:22px;flex:none;display:grid;place-items:center;border-radius:7px;background:rgba(100,26,45,.28);color:#f1c6d0;border:1px solid rgba(255,255,255,.12);font-size:10px; }
.step b { color:var(--ink); }
.field-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px; }
.field { display:grid;gap:7px; }
.field.full { grid-column:1/-1; }
.field label { color:#e5dce0;font-size:11px;font-weight:650; }
.field input,.field select,.field textarea {
  min-height:46px;width:100%;border:1px solid var(--line-strong);border-radius:11px;
  background:#141014;color:var(--ink);padding:10px 12px;
}
.field textarea { min-height:92px;resize:vertical; }
.field input::placeholder,.field textarea::placeholder { color:#7f747a; }
.field-help { color:var(--subtle);font-size:10px;line-height:1.45; }
.field-error { min-height:0;color:#ffb1b8;font-size:12px;font-weight:650;line-height:1.45; }
.field-error:not(:empty) { display:block;margin-top:7px;padding:9px 11px;border:1px solid rgba(255,145,153,.45);border-radius:9px;background:rgba(255,145,153,.08); }
.checkbox-row { display:flex;gap:10px;align-items:center;min-height:44px;color:var(--muted);font-size:11px;line-height:1.5; }
.checkbox-row input { accent-color:var(--wine-bright);margin:0;width:22px;height:22px;flex:none; }
.callout { padding:15px;border-left:3px solid var(--wine-bright);background:rgba(100,26,45,.14);border-radius:0 11px 11px 0;color:#ead9df;font-size:11px;line-height:1.58; }
.callout p:last-child { margin-bottom:0; }
.detail-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px; }
.detail-grid > div { min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;background:rgba(10,9,10,.22); }
.detail-grid b,.detail-grid span { display:block; }
.detail-grid b { margin-bottom:6px;color:var(--subtle);font-size:10px;font-weight:600; }
.detail-grid span { color:var(--ink);font-size:12px;line-height:1.5;overflow-wrap:anywhere; }
.review-checklist { display:grid;gap:7px;margin:10px 0 0;padding-left:18px;color:var(--muted);font-size:11px;line-height:1.5; }
.setting-cards { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px; }
.setting-card { width:100%;text-align:left;padding:17px;cursor:pointer;color:var(--ink); }
.setting-card h3 { display:flex;align-items:center;gap:9px; }
.setting-card p { color:var(--muted);font-size:11px;line-height:1.55;margin:0; }
.breadcrumb { color:var(--subtle);font-size:11px;margin-bottom:14px; }
.breadcrumb button { border:0;background:none;color:#e5b1c0;padding:0;cursor:pointer; }
.audit-row { display:flex;gap:13px;padding:13px 0;border-bottom:1px solid rgba(250,248,243,.08);font-size:11px; }
.audit-mark { width:8px;height:8px;margin:4px 0 0 3px;flex:none;border-radius:50%;background:#d989a0;box-shadow:0 0 11px rgba(217,137,160,.5); }
.audit-row span { color:var(--muted);display:block;margin-top:4px;line-height:1.4; }
.toast { position:fixed;z-index:40;right:24px;bottom:24px;max-width:min(440px,calc(100vw - 32px));padding:13px 16px;border:1px solid rgba(112,213,178,.38);border-radius:13px;background:#18221e;color:#dff5eb;box-shadow:0 16px 46px rgba(0,0,0,.38);font-size:12px; }
.toast[hidden] { display:none; }
.modal-backdrop { position:fixed;inset:0;z-index:30;background:rgba(4,3,4,.72);backdrop-filter:blur(8px);display:grid;place-items:center;padding:18px; }
.modal { width:min(700px,100%);max-height:min(90vh,900px);overflow:auto;padding:22px;border:1px solid #654b57;border-radius:20px;background:linear-gradient(155deg,#251c22,#171216);box-shadow:0 30px 90px rgba(0,0,0,.65),0 0 36px rgba(100,26,45,.2); }
.modal-head { display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px; }
.modal-head h2 { margin:0 0 5px;font-size:21px; }
.modal-head p { color:var(--muted);font-size:11px;line-height:1.5;margin:0; }
.close-button { width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.035);color:var(--muted);cursor:pointer; }
.close-button:hover { color:#fff;background:rgba(255,255,255,.1); }
.modal-actions { display:flex;justify-content:flex-end;gap:9px;margin-top:19px; }
.mobile-overlay { display:none; }
.prototype-footer { margin-top:24px;color:#887c82;font-size:10px;text-align:center;line-height:1.5; }

/* Verified ULP mark and private-preview affordances. */
.prototype-ribbon { min-height:30px;display:flex;align-items:center;justify-content:center;gap:10px;padding:5px 12px;background:#3d1320;border-bottom:1px solid rgba(250,248,243,.18);color:#faf8f3;text-align:center;font-size:10px;line-height:1.4; }
.prototype-ribbon strong { color:#f4c7d2;letter-spacing:.12em;white-space:nowrap; }
.brand-mark { display:block;object-fit:contain;padding:3px;background:#faf8f3;border-radius:12px; }
.topbar { top:30px; }
.layout { min-height:calc(100vh - 106px); }
.sidebar { min-height:calc(100vh - 106px); }
.modal { margin:auto;color:var(--ink); }
.modal::backdrop { background:rgba(4,3,4,.78);backdrop-filter:blur(7px); }
.modal-panel { position:relative; }
.modal-close { position:absolute;right:-8px;top:-8px;width:44px;height:44px;font-size:24px; }
.modal h2 { padding-right:45px; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.request-row > button { min-height:44px; }
.top-actions { display:flex;align-items:center;gap:2px; }
.nav-item:active,.setting-card:active { transform:scale(.99); }
.page-subtitle { font-size:14px; }
.nav-item { font-size:13px; }
.workspace-label { font-size:11px; }
.stat-top { font-size:12px; }
.stat-foot { font-size:11px; }
.panel-head p { font-size:12px; }
.request-title { font-size:13px; }
.request-meta,.field-help { font-size:11px; }
.status,.chip { font-size:11px; }
.feature-card p,.setting-card p { font-size:12px; }
.field label { font-size:12px; }
.setting-card-title { display:flex;align-items:center;gap:9px;color:var(--ink);font-family:var(--heading);font-size:15px;font-weight:650; }
.setting-card-copy { display:block;margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.55; }

@media (max-width: 1060px) {
  .topbar { gap:11px;padding:0 16px; }
  .brand { min-width:190px;min-height:44px; }
  .prototype-badge { padding:0 10px; }
  .top-link { padding:0 8px; }
  .language-toggle button { min-width:44px;min-height:44px; }
  .layout { grid-template-columns:220px minmax(0,1fr); }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .two-col { grid-template-columns:1fr; }
}
@media (max-width: 900px) {
  .request-row { grid-template-columns:minmax(0,1fr) auto;gap:8px; }
  .request-row .status { grid-column:1/-1;justify-self:start;white-space:normal; }
  .request-row > button { grid-column:1/-1;justify-self:start; }
  .request-actions { grid-column:1/-1; }
}
@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  .layout, .main, .content, #pageRoot, .page-heading, .grid, .card { min-width: 0; }
  .prototype-ribbon { justify-content:flex-start;overflow:hidden; }
  .topbar { top:30px; }
  .topbar { height:66px;gap:8px;padding:0 12px; }
  .brand { min-width:0;gap:9px; }
  .brand { min-height:44px; }
  .brand-mark { width:38px;height:38px; }
  .brand-copy strong { font-size:10px;letter-spacing:.12em; }
  .brand-copy span { font-size:8px; }
  .topbar-spacer { min-width:0; }
  .prototype-badge { display:none; }
  .top-link { min-width:44px;padding:0 9px; }
  .top-link span { display:inline; }
  .top-link span + span { display:none; }
  .top-link#signOutButton { width:44px;min-width:44px;padding:0;font-size:0;white-space:nowrap; }
  .top-link#signOutButton::before { content:"↪";font-size:16px; }
  .role-select { min-width:44px;width:44px;min-height:44px;justify-content:center;padding:0;font-size:0; }
  .role-select small { display:none; }
  .language-toggle button { min-width:44px;min-height:44px;padding:0 8px; }
  .menu-button { display:inline-flex;min-width:44px;width:44px;min-height:44px;padding:0; }
  .btn-small { min-height:44px; }
  .layout { display:block;min-height:calc(100vh - 66px); }
  .sidebar { position:fixed;z-index:22;left:0;top:96px;bottom:0;width:min(300px,86vw);min-height:0;overflow:auto;transform:translateX(-105%);transition:transform .22s ease;box-shadow:20px 0 50px rgba(0,0,0,.42);background:#120e11; }
  .sidebar.open { transform:translateX(0); }
  .mobile-overlay.show { display:block;position:fixed;z-index:21;inset:96px 0 0;background:rgba(0,0,0,.52); }
  .main { padding:22px 15px 42px; }
  .page-heading { align-items:flex-start;flex-direction:column;margin-bottom:18px; }
  .heading-actions { width:100%; }
  .heading-actions .btn { flex:1; }
  .stats-grid { gap:10px;margin:15px 0; }
  .stat-card { min-height:119px;padding:14px; }
  .stat-value { font-size:24px;margin-top:12px; }
  .stat-top { font-size:10px;gap:5px; }
  .panel { padding:15px; }
  .status { max-width:100%;white-space:normal;line-height:1.35; }
  .feature-grid { grid-template-columns:1fr; }
  .feature-card { min-height:unset; }
  .setting-cards { grid-template-columns:1fr; }
  .request-row { grid-template-columns:minmax(0,1fr) auto;gap:8px; }
  .request-row .row-date { grid-column:1/-1;grid-row:2;color:var(--subtle); }
  .request-row .status { grid-column:1/-1;grid-row:auto;justify-self:start; }
  .request-row > button { grid-column:1/-1;justify-self:start; }
  .field-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .detail-grid { grid-template-columns:1fr; }
  .modal { padding:17px; }
}
@media (max-width: 410px) {
  .brand-copy strong { font-size:9px; }
  .brand-copy span { font-size:7px;letter-spacing:.08em; }
  .topbar { gap:5px; }
  .language-toggle { padding:2px; }
  .language-toggle button { min-width:44px;min-height:44px;padding:0 6px; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stat-top { min-height:30px;align-items:flex-start; }
}
@media (max-width: 390px) {
  .brand-copy span { display:none; }
  .topbar { padding:0 8px; }
  .role-select { min-width:44px;width:44px; }
  .menu-button { min-width:44px;width:44px; }
}
@media (max-width: 360px) {
  .topbar { gap:0;padding:0 3px; }
  .topbar-spacer { display:none; }
  .brand { flex:0 0 44px;min-width:44px;gap:0; }
  .brand-mark { width:36px;height:36px; }
  .brand-copy { display:none; }
  .role-select { display:none; }
  .top-actions { flex:0 0 auto;gap:0; }
  .top-actions .top-link { width:44px;min-width:44px;padding:0; }
  .language-toggle { padding:0; }
  .language-toggle button { width:44px;min-width:44px;padding:0; }
}
@media (max-width: 330px) {
  .topbar { height:110px;min-height:110px;flex-wrap:wrap;align-content:center;row-gap:4px; }
  .language-toggle { margin-left:auto; }
  .layout { min-height:calc(100vh - 110px); }
  .sidebar { top:140px; }
  .mobile-overlay.show { inset:140px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto !important;transition-duration:.01ms !important;animation-duration:.01ms !important;animation-iteration-count:1 !important; }
}

.auth-page { min-height: 100vh; }
.auth-layout { min-height: calc(100vh - 42px); display: grid; place-items: center; padding: 32px 18px; }
.auth-card { width: min(100%, 470px); position: relative; padding: 34px; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(145deg, rgba(37,28,34,.98), rgba(20,16,19,.98)); box-shadow: 0 24px 80px rgba(0,0,0,.42), 0 0 38px var(--glow); }
.auth-brand { min-width: 0; margin-bottom: 34px; }
.auth-eyebrow { margin: 0 0 8px; color: #e19aac; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.auth-card h1 { margin: 0; font-family: var(--heading); font-size: clamp(26px, 5vw, 34px); line-height: 1.15; letter-spacing: -.04em; }
.auth-intro { margin: 12px 0 22px; color: var(--muted); line-height: 1.55; }
.auth-notice { margin-bottom: 22px; }
.offer-price-list { display:grid;gap:10px; }
.offer-price-list > div { display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px;border:1px solid var(--line);border-radius:12px;background:rgba(10,9,10,.24); }
.offer-price-list span { color:var(--muted);font-size:12px;line-height:1.45; }
.offer-price-list strong { flex:none;color:var(--ink);font-family:var(--heading);font-size:19px; }
.auth-form { display: grid; gap: 17px; }
.auth-form input { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); background: #120f12; border: 1px solid var(--line-strong); border-radius: 12px; }
.auth-submit { width: 100%; min-height: 48px; }
.demo-role-choices { display:grid;gap:11px; }
.demo-entry-card .auth-disclaimer { min-height:20px; }
.auth-page button:disabled { opacity:.65;cursor:wait; }
.auth-footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.auth-footer a { color: #f4c4d0; font-weight: 700; }
.auth-footer a:hover, .auth-footer a:focus-visible { color: #fff; text-decoration: none; }
.auth-disclaimer { margin: 24px 0 0; color: var(--subtle); font-size: 11px; line-height: 1.5; text-align: center; }
.auth-language { width: max-content; margin: 19px auto 0; }
.auth-page button, .auth-page a, .auth-page input { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease; }
.auth-page button:active { transform: translateY(1px); }
@media (max-width: 520px) { .auth-layout { padding: 20px 12px; } .auth-card { padding: 25px 20px; border-radius: 18px; } .auth-brand { margin-bottom: 27px; } }
@media (prefers-reduced-motion: reduce) { .auth-page *, .auth-page *::before, .auth-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
