/* =========================================================================
   ITEL Co-working Desk · design system
   Neutral warm canvas, near-black ink, ITEL orange for action, green for
   availability. Light and dark themes share one token set.
   ========================================================================= */
:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #f9f9f7;
  --surface-3: #f0f0ec;
  --line: #e9e9e4;
  --line-2: #dcdcd5;
  --ink: #121316;
  --ink-2: #2a2c31;
  --muted: #696d76;
  --faint: #9a9da5;
  --on-ink: #ffffff;

  --accent: #ff5b14;
  --accent-2: #ff8a3d;
  --accent-soft: #fff0e7;
  --accent-ink: #b33a05;
  --green: #17a457;
  --green-soft: #e5f6ec;
  --green-ink: #0b6a35;
  --blue: #3c62f2;
  --blue-soft: #ecf0ff;
  --blue-ink: #2442b5;
  --amber: #e2950b;
  --amber-soft: #fff4dc;
  --amber-ink: #875700;
  --red: #e5484d;
  --red-soft: #fdecec;
  --red-ink: #b2232a;
  --violet: #7a5af8;
  --violet-soft: #f1edff;
  --violet-ink: #5333d4;
  --teal: #0ea5a0;
  --teal-soft: #e2f6f5;
  --teal-ink: #0b6e6b;

  --seat-free: #ffffff;
  --seat-taken: #e4e4de;
  --desk: #ecece6;
  --map: #f7f7f4;
  --map-dot: #e2e2dc;

  --shadow-sm: 0 1px 2px rgba(18, 19, 22, 0.05);
  --shadow: 0 1px 2px rgba(18, 19, 22, 0.04), 0 10px 30px -12px rgba(18, 19, 22, 0.12);
  --shadow-lg: 0 30px 80px -20px rgba(18, 19, 22, 0.35), 0 2px 6px rgba(18, 19, 22, 0.06);
  --ring: 0 0 0 3px rgba(255, 91, 20, 0.22);
  --r-xs: 6px;
  --r-sm: 9px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --sidebar: 268px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d10; --surface: #141519; --surface-2: #181a1f; --surface-3: #1f2127; --line: #24262d; --line-2: #30333b;
    --ink: #f3f3f1; --ink-2: #d9dade; --muted: #a2a6af; --faint: #6f737c; --on-ink: #121316;
    --accent: #ff6a2b; --accent-2: #ff9255; --accent-soft: #2e1a10; --accent-ink: #ffb088;
    --green: #2fc271; --green-soft: #0f2a1b; --green-ink: #7fe0a8;
    --blue: #6585ff; --blue-soft: #151c36; --blue-ink: #a9bbff;
    --amber: #f4b13a; --amber-soft: #2b2110; --amber-ink: #ffd27e;
    --red: #ff6b6f; --red-soft: #321416; --red-ink: #ffa9ab;
    --violet: #9b82ff; --violet-soft: #1f1934; --violet-ink: #c7b8ff;
    --teal: #2cc9c3; --teal-soft: #0e2726; --teal-ink: #8ee6e2;
    --seat-free: #1c1f25; --seat-taken: #2a2d34; --desk: #23262d; --map: #111216; --map-dot: #23252b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d10; --surface: #141519; --surface-2: #181a1f; --surface-3: #1f2127; --line: #24262d; --line-2: #30333b;
  --ink: #f3f3f1; --ink-2: #d9dade; --muted: #a2a6af; --faint: #6f737c; --on-ink: #121316;
  --accent: #ff6a2b; --accent-2: #ff9255; --accent-soft: #2e1a10; --accent-ink: #ffb088;
  --green: #2fc271; --green-soft: #0f2a1b; --green-ink: #7fe0a8;
  --blue: #6585ff; --blue-soft: #151c36; --blue-ink: #a9bbff;
  --amber: #f4b13a; --amber-soft: #2b2110; --amber-ink: #ffd27e;
  --red: #ff6b6f; --red-soft: #321416; --red-ink: #ffa9ab;
  --violet: #9b82ff; --violet-soft: #1f1934; --violet-ink: #c7b8ff;
  --teal: #2cc9c3; --teal-soft: #0e2726; --teal-ink: #8ee6e2;
  --seat-free: #1c1f25; --seat-taken: #2a2d34; --desk: #23262d; --map: #111216; --map-dot: #23252b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

/* boot splash */
.boot { min-height: 100vh; display: grid; place-content: center; gap: 22px; justify-items: center; }
.boot img { border-radius: 14px; background: #fff; padding: 8px; }
.boot-bar { width: 120px; height: 3px; border-radius: 9px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; background: var(--accent); border-radius: 9px; animation: boot 1s var(--ease) infinite; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* =========================================================================
   App shell
   ========================================================================= */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px 14px; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); flex: none; overflow: hidden; }
.brand-logo img { width: 40px; height: auto; display: block; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; line-height: 1.15; }
.brand-sub { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--r);
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; transition: background 0.15s, color 0.15s;
}
.nav a svg { color: var(--muted); flex: none; transition: color 0.15s; }
.nav a:hover { background: var(--surface-3); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.nav a[aria-current="page"] svg { color: var(--accent); }
.nav .nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.side-help { border-radius: var(--r-lg); padding: 14px; background: var(--surface-3); font-size: 12.5px; color: var(--muted); }
.side-help b { color: var(--ink); display: block; font-size: 13px; margin-bottom: 2px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r); }
.me-text { min-width: 0; flex: 1; }
.me-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-role { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 10px;
  padding: 0 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; min-width: 0; }
.crumbs .hide-sm { display: inline-flex; align-items: center; gap: 8px; }
.crumbs b { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.today-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.today-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.btn.menu-btn { display: none; }
.view { padding: 8px 28px 64px; max-width: 1360px; width: 100%; margin: 0 auto; animation: viewIn 0.35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.scrim { position: fixed; inset: 0; background: rgba(10, 10, 12, 0.45); z-index: 25; animation: fade 0.2s; }

/* ---------- page header ---------- */
.page-hd { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 14px 0 22px; }
.page-hd h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.page-hd p { color: var(--muted); margin-top: 4px; max-width: 640px; }
.page-hd .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================================
   Components
   ========================================================================= */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font-weight: 650; font-size: 13.5px; white-space: nowrap; text-decoration: none; letter-spacing: -0.005em;
  transition: transform 0.12s var(--ease), background 0.15s, box-shadow 0.15s, border-color 0.15s, opacity 0.15s; user-select: none;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.primary { --b-bg: var(--ink); --b-fg: var(--on-ink); --b-bd: var(--ink); }
.btn.primary:hover { box-shadow: 0 6px 16px -6px rgba(18, 19, 22, 0.45); }
.btn.accent { --b-bg: var(--accent); --b-fg: #fff; --b-bd: var(--accent); box-shadow: 0 6px 18px -8px var(--accent); }
.btn.accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.ghost { --b-bg: transparent; --b-bd: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.danger { --b-bg: var(--red-soft); --b-fg: var(--red-ink); --b-bd: transparent; }
.btn.danger:hover { background: color-mix(in srgb, var(--red-soft) 70%, var(--red) 15%); }
.btn.success { --b-bg: var(--green); --b-fg: #fff; --b-bd: var(--green); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: var(--r-sm); gap: 6px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn.block { width: 100%; }
.icon-btn { width: 40px; padding: 0; }
.icon-btn.sm { width: 32px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.icon-btn { position: relative; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-hd { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.card-hd h2, .card-hd h3 { font-size: 15.5px; font-weight: 750; }
.card-hd .sub { color: var(--muted); font-size: 12.5px; }
.card-hd .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-bd { padding: 16px 20px 20px; }
.card-ft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.link { color: var(--ink); font-weight: 650; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; }
.link:hover { color: var(--accent-ink); }
.link svg { transition: transform 0.15s; }
.link:hover svg { transform: translateX(2px); }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* KPI tiles */
.kpi { padding: 18px 20px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--tint-soft, var(--surface-3)); color: var(--tint, var(--ink)); flex: none; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-val { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-val small { font-size: 15px; font-weight: 600; color: var(--faint); letter-spacing: 0; margin-left: 2px; }
.kpi-foot { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; background: var(--tint, var(--accent)); border-radius: 99px; transition: width 0.6s var(--ease); }
.t-orange { --tint: var(--accent); --tint-soft: var(--accent-soft); --tint-ink: var(--accent-ink); }
.t-green { --tint: var(--green); --tint-soft: var(--green-soft); --tint-ink: var(--green-ink); }
.t-blue { --tint: var(--blue); --tint-soft: var(--blue-soft); --tint-ink: var(--blue-ink); }
.t-amber { --tint: var(--amber); --tint-soft: var(--amber-soft); --tint-ink: var(--amber-ink); }
.t-red { --tint: var(--red); --tint-soft: var(--red-soft); --tint-ink: var(--red-ink); }
.t-violet { --tint: var(--violet); --tint-soft: var(--violet-soft); --tint-ink: var(--violet-ink); }
.t-teal { --tint: var(--teal); --tint-soft: var(--teal-soft); --tint-ink: var(--teal-ink); }
.t-gray { --tint: var(--muted); --tint-soft: var(--surface-3); --tint-ink: var(--ink-2); }

/* hero */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 91, 20, 0.55) 0%, rgba(255, 91, 20, 0) 45%),
    radial-gradient(90% 120% at 0% 100%, rgba(23, 164, 87, 0.35) 0%, rgba(23, 164, 87, 0) 50%), #121316;
  border: 1px solid #23252b; isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px); background-size: 16px 16px;
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.hero h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; margin-top: 8px; color: #fff; }
.hero p { color: rgba(255, 255, 255, 0.72); margin-top: 6px; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn { --b-bg: rgba(255, 255, 255, 0.1); --b-fg: #fff; --b-bd: rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); }
.hero .btn:hover { --b-bg: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.3); }
.hero .btn.accent { --b-bg: var(--accent); --b-bd: var(--accent); }
.hero-seats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.hero-seat { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); display: grid; place-items: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--tint-soft, var(--surface-3)); color: var(--tint-ink, var(--ink-2)); line-height: 1;
}
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tint, var(--muted)); }
.badge.solid { background: var(--tint); color: #fff; }
.badge.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.badge.lg { height: 28px; padding: 0 12px; font-size: 12.5px; }

/* forms */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; gap: 6px; align-items: baseline; }
.field .opt { font-weight: 500; color: var(--faint); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-width: 0; height: 42px; padding: 0 13px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover { border-color: var(--faint); }
.input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.input::placeholder { color: var(--faint); }
.input-ic { position: relative; }
.input-ic > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-ic .input { padding-left: 38px; }
.input-ic .trail { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.form-grid { display: grid; gap: 16px; }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-error { color: var(--red-ink); background: var(--red-soft); border-radius: var(--r); padding: 10px 12px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.form-error:empty { display: none; }

/* segmented control */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 13px; background: var(--surface-3); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 650; font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: background 0.15s, color 0.15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.seg .count { font-size: 11px; font-weight: 750; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--line); color: var(--ink-2); }
.seg button[aria-pressed="true"] .count { background: var(--accent); color: #fff; }
.seg.block { display: flex; width: 100%; }
.seg.block button { flex: 1; justify-content: center; }

/* option cards (radio tiles) */
.opts { display: grid; gap: 10px; }
.opt-card {
  text-align: left; border: 1px solid var(--line-2); background: var(--surface); border-radius: 14px; padding: 13px 14px;
  display: flex; gap: 12px; align-items: flex-start; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.opt-card:hover { border-color: var(--faint); }
.opt-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: var(--ring); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.opt-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
.opt-card[aria-pressed="true"] .ic { background: var(--accent); color: #fff; }
.opt-card b { display: block; font-size: 13.5px; font-weight: 700; }
.opt-card span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

/* chips */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); height: 42px; overflow: hidden; }
.stepper button { width: 40px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover { background: var(--surface-3); }
.stepper input { width: 56px; height: 100%; border: 0; text-align: center; font-weight: 750; font-size: 15px; background: none; outline: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* lists */
.list { display: grid; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); min-width: 0; }
.li:first-child { border-top: 0; }
.li.click { cursor: pointer; transition: background 0.12s; }
.li.click:hover { background: var(--surface-2); }
.li-main { min-width: 0; flex: 1; }
.li-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 2px; }
.li-meta span { display: inline-flex; align-items: center; gap: 5px; }
.li-end { display: flex; align-items: center; gap: 8px; flex: none; }
.ic-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-soft, var(--surface-3)); color: var(--tint, var(--ink-2)); flex: none; }
.ic-tile.sm { width: 32px; height: 32px; border-radius: 9px; }

/* table */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .strong { font-weight: 700; }

/* avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 13px; color: #fff; flex: none; letter-spacing: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.sq { border-radius: 12px; }

/* empty state */
.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 8px; }
.empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); margin-bottom: 6px; }
.empty h3 { font-size: 15.5px; font-weight: 750; }
.empty p { color: var(--muted); max-width: 380px; font-size: 13.5px; }
.empty .btn { margin-top: 10px; }

/* skeleton */
.sk { border-radius: 10px; background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* callout */
.callout { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-lg); padding: 14px 16px; background: var(--tint-soft, var(--surface-3)); color: var(--tint-ink, var(--ink-2)); font-size: 13.5px; }
.callout svg { flex: none; margin-top: 1px; }
.callout b { font-weight: 750; }

/* key-value */
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line-2); font-size: 13.5px; }
.kv > div:first-child { border-top: 0; }
.kv dt, .kv .k { color: var(--muted); }
.kv dd, .kv .v { margin: 0; font-weight: 650; text-align: right; }

/* =========================================================================
   Overlays: modal, drawer, toast, menu
   ========================================================================= */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(10, 10, 12, 0.5); backdrop-filter: blur(3px); animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: pop 0.28s var(--ease); overflow: hidden;
}
.modal.lg { max-width: 760px; }
.modal.xl { max-width: 1180px; }
.modal.sm { max-width: 440px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal-hd { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px 6px; }
.modal-hd h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; }
.modal-hd p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.modal-hd .close { margin-left: auto; margin-top: -4px; margin-right: -8px; }
.modal-bd { padding: 16px 24px 22px; overflow-y: auto; }
.modal-ft { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: flex-end; background: var(--surface-2); flex-wrap: wrap; }
.modal-ft .left { margin-right: auto; font-size: 13px; color: var(--muted); min-width: 0; }

.drawer-ov { place-items: stretch end; padding: 0; }
.drawer { width: min(620px, 100vw); height: 100vh; height: 100dvh;background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn 0.32s var(--ease); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer .modal-hd { padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.drawer .modal-bd { flex: 1; padding: 20px 24px; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 12px 16px 12px 12px;
  background: var(--ink); color: var(--on-ink); border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 13.5px; animation: toastIn 0.3s var(--ease);
}
.toast .t-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--green); color: #fff; flex: none; }
.toast.error .t-ic { background: var(--red); }
.toast.info .t-ic { background: var(--blue); }
.toast.out { animation: toastOut 0.25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

.popover { position: absolute; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop 0.2s var(--ease); }
.notif-pop { right: 0; top: calc(100% + 8px); width: min(400px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; }
.notif-hd { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-hd b { font-size: 15px; font-weight: 800; }
.notif-list { overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.notif .n-title { font-weight: 700; font-size: 13.5px; }
.notif .n-body { color: var(--muted); font-size: 12.5px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif .n-time { color: var(--faint); font-size: 11.5px; margin-top: 3px; }
.menu-pop { right: 0; top: calc(100% + 8px); min-width: 240px; padding: 6px; }
.menu-pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: 0; background: none; border-radius: 9px; font-weight: 600; font-size: 13.5px; text-align: left; text-decoration: none; color: var(--ink); }
.menu-pop .mi:hover { background: var(--surface-3); }
.menu-pop .mi svg { color: var(--muted); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* =========================================================================
   Login
   ========================================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; isolation: isolate;
  background: radial-gradient(70% 60% at 85% 10%, rgba(255, 91, 20, 0.5), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(23, 164, 87, 0.35), transparent 60%), #0f1013;
}
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-logo { box-shadow: none; }
.auth-brand b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.auth-brand span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.auth-copy { margin-top: auto; max-width: 560px; }
.auth-copy h1 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.auth-copy h1 em { font-style: normal; background: linear-gradient(90deg, #ff8a3d, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-copy p { color: rgba(255, 255, 255, 0.68); font-size: 15px; margin-top: 14px; max-width: 460px; }
.auth-mini { margin: 34px 0 30px; border-radius: 20px; padding: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); }
.auth-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.auth-feat { border-radius: 16px; padding: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.auth-feat svg { color: #ff8a3d; }
.auth-feat b { display: block; font-size: 13.5px; margin-top: 10px; }
.auth-feat span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-form { width: 100%; max-width: 400px; display: grid; gap: 18px; }
.auth-form h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.auth-form .sub { color: var(--muted); margin-top: 4px; }
.demo-box { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 10px; }
.demo-box .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.demo-accts { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-map { width: 100%; height: auto; display: block; }

/* =========================================================================
   Floor plan
   ========================================================================= */
.fp-tools { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.lg-free { background: var(--seat-free); box-shadow: inset 0 0 0 1.5px var(--green); }
.lg-taken { background: var(--seat-taken); }
.lg-mine { background: var(--green); }
.lg-sel { background: var(--accent); }
.fp-scroll { overflow-x: auto; border-radius: var(--r-lg); -webkit-overflow-scrolling: touch; }
.fp {
  position: relative; aspect-ratio: 16 / 9; min-width: 980px; border-radius: var(--r-lg);
  background-color: var(--map); background-image: radial-gradient(var(--map-dot) 1.2px, transparent 1.2px); background-size: 20px 20px;
  border: 1px solid var(--line);
}
.fp-area { position: absolute; border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: flex-start; gap: 1px; font-size: 12px; font-weight: 750; line-height: 1.2; overflow: hidden; border: 1px solid transparent; }
.fp-area small { font-weight: 550; font-size: 11px; opacity: 0.8; }
.fp-area .fp-ic { margin-bottom: 4px; opacity: 0.85; }
.fp-area.restroom { background: var(--surface-3); color: var(--muted); }
.fp-area.dining { background: var(--green-soft); color: var(--green-ink); }
.fp-area.pantry { background: var(--amber-soft); color: var(--amber-ink); }
.fp-area.lab { background: var(--blue-soft); color: var(--blue-ink); }
.fp-area.landing { background: repeating-linear-gradient(-45deg, transparent 0 9px, var(--line) 9px 10px); color: var(--faint); border: 1px dashed var(--line-2); }
.fp-area.room { background: var(--violet-soft); color: var(--violet-ink); border-color: color-mix(in srgb, var(--violet) 30%, transparent); cursor: pointer; text-align: left; font: inherit; font-size: 12.5px; font-weight: 750; transition: transform 0.15s var(--ease), box-shadow 0.15s; }
.fp-area.room:hover { box-shadow: 0 6px 18px -8px var(--violet); transform: translateY(-1px); }
.fp-entry { position: absolute; display: grid; place-items: center; color: #fff; background: var(--accent); font-weight: 800; font-size: 11.5px; letter-spacing: 0.14em; clip-path: polygon(0 28%, 66% 28%, 66% 0, 100% 50%, 66% 100%, 66% 72%, 0 72%); padding-right: 10%; }
.fp-table { position: absolute; display: grid; gap: 4px; padding: 4px; border-radius: 11px; background: var(--desk); box-shadow: inset 0 0 0 1px var(--line-2); }
.fp-tlabel { position: absolute; font-size: 11px; font-weight: 650; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; display: flex; gap: 6px; align-items: center; }
.fp-tlabel b { color: var(--ink-2); }
.seat {
  border: 0; border-radius: 7px; padding: 0; background: var(--seat-free); color: var(--green-ink); font-weight: 750; font-size: 12.5px;
  box-shadow: inset 0 0 0 1.5px var(--green); font-variant-numeric: tabular-nums; display: grid; place-items: center; min-width: 0; min-height: 0;
  transition: transform 0.12s var(--ease), background 0.12s, box-shadow 0.12s; position: relative;
}
.seat.can:hover { background: var(--green-soft); transform: translateY(-1px); }
.seat.taken { background: var(--seat-taken); color: var(--faint); box-shadow: none; }
.seat.taken.can:hover { background: color-mix(in srgb, var(--seat-taken) 80%, var(--ink) 10%); }
.seat.mine { background: var(--green); color: #fff; box-shadow: none; }
.seat.sel { background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); z-index: 1; }
.seat.dim { opacity: 0.35; }
.seat:disabled { cursor: default; }
.seat.focus { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); z-index: 1; }
.fp-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--ink); color: var(--on-ink); border-radius: 11px; padding: 9px 12px; font-size: 12.5px; box-shadow: var(--shadow-lg); max-width: 260px; line-height: 1.4; }
.fp-tip b { font-weight: 800; }
.fp-tip .tm { opacity: 0.7; }

/* seat summary */
.seat-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.seat-pill { min-width: 36px; height: 32px; padding: 0 9px; border-radius: 9px; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--tint-soft, var(--green-soft)); color: var(--tint-ink, var(--green-ink)); font-variant-numeric: tabular-nums; }
.seat-pill.lg { min-width: 46px; height: 46px; font-size: 17px; border-radius: 13px; }

/* timeline (request status) */
.steps { display: flex; gap: 0; align-items: center; margin-top: 10px; }
.step { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: var(--faint); white-space: nowrap; }
.step i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; background: var(--surface); flex: none; }
.step.done { color: var(--ink-2); }
.step.done i { background: var(--green); border-color: var(--green); color: #fff; }
.step.cur i { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step.cur { color: var(--accent-ink); }
.step.bad i { background: var(--red); border-color: var(--red); color: #fff; }
.step.bad { color: var(--red-ink); }
.step-line { flex: 1; min-width: 18px; height: 2px; background: var(--line-2); margin: 0 8px; border-radius: 2px; }
.step-line.done { background: var(--green); }

/* request card */
.req { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.req:first-child { border-top: 0; }
.req-hd { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.req-title { font-weight: 750; font-size: 15px; }
.req-ref { font-size: 12px; color: var(--faint); font-weight: 650; font-variant-numeric: tabular-nums; }
.req-facts { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.req-facts span { display: inline-flex; gap: 6px; align-items: center; }
.req-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }
.req-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================================
   Rooms timeline
   ========================================================================= */
.room-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.room-card { padding: 18px 20px; display: grid; gap: 12px; }
.room-card .rc-top { display: flex; gap: 12px; align-items: flex-start; }
.room-card h3 { font-size: 16px; font-weight: 800; }
.room-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.room-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.room-status.busy i { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.amen { display: flex; gap: 6px; flex-wrap: wrap; }
.amen span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; font-weight: 650; }
.datebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.days { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; flex: 1; min-width: 0; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 58px; height: 62px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; place-content: center; gap: 1px; text-align: center; transition: border-color 0.15s, background 0.15s; }
.day small { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.day b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.day:hover { border-color: var(--faint); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.day[aria-pressed="true"] small { color: inherit; opacity: 0.7; }
.day.today:not([aria-pressed="true"]) b { color: var(--accent); }
.tl-scroll { overflow-x: auto; }
.tl { min-width: 860px; display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.tl-hours { position: relative; height: 32px; border-bottom: 1px solid var(--line); }
.tl-hours span { position: absolute; top: 8px; transform: translateX(-50%); font-size: 11.5px; font-weight: 650; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-hours span:first-child { transform: none; }
.tl-room { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); min-height: 84px; }
.tl-room b { font-size: 13.5px; font-weight: 750; }
.tl-room span { font-size: 12px; color: var(--muted); }
.tl-track { position: relative; border-bottom: 1px solid var(--line); min-height: 84px; display: grid; }
.tl-slot { border: 0; border-left: 1px solid var(--line); background: transparent; padding: 0; transition: background 0.12s; position: relative; }
.tl-slot.hour { border-left-color: var(--line-2); }
.tl-slot:not(:disabled):hover { background: var(--green-soft); }
.tl-slot:not(:disabled):hover::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: var(--green); }
.tl-slot:disabled { cursor: default; background: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--line) 70%, transparent) 6px 7px); }
.tl-bk {
  position: absolute; top: 9px; bottom: 9px; border-radius: 11px; padding: 7px 10px; overflow: hidden; text-align: left; border: 0;
  background: var(--surface-3); color: var(--ink-2); box-shadow: inset 3px 0 0 var(--faint); display: flex; flex-direction: column; gap: 1px; font-size: 12px; line-height: 1.25; transition: transform 0.12s, box-shadow 0.12s;
}
.tl-bk:hover { transform: translateY(-1px); box-shadow: inset 3px 0 0 var(--faint), var(--shadow); }
.tl-bk b { font-weight: 750; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bk span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.tl-bk.mine { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 3px 0 0 var(--accent); }
.tl-bk.mine span { color: var(--accent-ink); opacity: 0.8; }
.tl-now { position: absolute; top: -4px; bottom: 0; width: 2px; background: var(--red); z-index: 3; pointer-events: none; }
.tl-now::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* =========================================================================
   Tickets
   ========================================================================= */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input-ic { flex: 1; min-width: 220px; max-width: 360px; }
.toolbar select.input { width: auto; min-width: 150px; }
.tk-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px 14px 0; border-top: 1px solid var(--line); cursor: pointer; transition: background 0.12s; }
.tk-row:first-child { border-top: 0; }
.tk-row:hover { background: var(--surface-2); }
.tk-bar { align-self: stretch; border-radius: 0 4px 4px 0; background: var(--tint, var(--line-2)); }
.tk-row .tk-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.tk-sub { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-end { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sla { font-size: 12px; font-weight: 650; display: inline-flex; gap: 5px; align-items: center; color: var(--muted); white-space: nowrap; }
.sla.late { color: var(--red-ink); }
.sla.soon { color: var(--amber-ink); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cat-grid .opt-card { flex-direction: column; gap: 8px; padding: 12px; }
.prio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.prio-grid .opt-card { flex-direction: column; gap: 2px; padding: 11px 12px; }
.prio-grid .opt-card b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tint); margin-right: 7px; vertical-align: 1px; }
.prio-grid .opt-card[aria-pressed="true"] { border-color: var(--tint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 22%, transparent); background: color-mix(in srgb, var(--tint-soft) 60%, var(--surface)); }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 16px; display: flex; align-items: center; gap: 14px; background: var(--surface-2); transition: border-color 0.15s, background 0.15s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; display: grid; place-items: center; padding: 0; }
.tk-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tk-progress div { display: grid; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.tk-progress div::before { content: ""; height: 4px; border-radius: 4px; background: var(--line-2); }
.tk-progress .done { color: var(--ink-2); }
.tk-progress .done::before { background: var(--green); }
.tk-progress .cur { color: var(--accent-ink); }
.tk-progress .cur::before { background: var(--accent); }
.feed { display: grid; gap: 0; position: relative; }
.ev { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 10px 0; position: relative; }
.ev::before { content: ""; position: absolute; left: 15.5px; top: 44px; bottom: -10px; width: 1px; background: var(--line-2); }
.ev:last-child::before { display: none; }
.ev-sys { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-height: 32px; flex-wrap: wrap; }
.ev-sys b { color: var(--ink-2); font-weight: 700; }
.ev-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 11px 14px; margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.bubble.team { background: var(--blue-soft); border-color: transparent; }
.bubble.internal { background: var(--amber-soft); border: 1px dashed color-mix(in srgb, var(--amber) 50%, transparent); }
.ev-hd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ev-hd b { font-weight: 750; }
.ev-hd time { color: var(--faint); font-size: 12px; }
.composer { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.composer:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.composer textarea { border: 0; outline: none; width: 100%; resize: vertical; min-height: 80px; padding: 12px 14px; background: none; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.composer-ft { display: flex; align-items: center; gap: 8px; padding: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 99px; background: var(--line-2); position: relative; transition: background 0.15s; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.18s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--amber); }
.switch input:checked::after { transform: translateX(14px); }
.stars { display: inline-flex; gap: 4px; }
.stars button { border: 0; background: none; padding: 2px; color: var(--line-2); }
.stars button.on { color: var(--amber); }
.stars button svg { fill: currentColor; }

/* credentials card */
.cred { border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); padding: 16px 18px; display: grid; gap: 8px; font-size: 13.5px; }
.cred code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; font-weight: 700; background: rgba(127, 127, 127, 0.18); padding: 3px 8px; border-radius: 7px; }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 18px; }
.bars .bar b { font-size: 10.5px; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars .bar small.now { color: var(--accent-ink); font-weight: 800; }
.tbl-occ.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 1180px) { .tbl-occ.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tbl-occ.cols { grid-template-columns: minmax(0, 1fr); } }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bars .bar .trk { flex: 1; width: 100%; max-width: 30px; border-radius: 8px; background: var(--surface-3); display: flex; align-items: flex-end; overflow: hidden; }
.bars .bar i { display: block; width: 100%; border-radius: 6px 6px 0 0; transition: height 0.6s var(--ease); }
.bars .bar i.today { background: var(--accent); }
.bars .bar i.wk { background: color-mix(in srgb, var(--ink) 78%, transparent); }
.bars .bar i.we { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.bars .bar small { font-size: 10.5px; color: var(--faint); font-weight: 650; font-variant-numeric: tabular-nums; }
.tbl-occ { display: grid; gap: 10px; }
.tbl-occ .r { display: grid; grid-template-columns: 96px minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 12.5px; }
.tbl-occ .r span:first-child { font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.tbl-occ .r span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 650; }

/* agenda */
.agenda { display: grid; }
.ag { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); align-items: center; }
.ag:first-child { border-top: 0; }
.ag time { font-weight: 750; font-size: 13px; font-variant-numeric: tabular-nums; }
.ag time small { display: block; color: var(--faint); font-weight: 600; font-size: 11.5px; }
.ag-body { border-left: 3px solid var(--tint, var(--violet)); padding-left: 12px; min-width: 0; }
.ag-body b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-body span { color: var(--muted); font-size: 12.5px; }

/* settings */
.settings-nav { display: grid; gap: 2px; position: sticky; top: 80px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r); text-decoration: none; font-weight: 650; color: var(--ink-2); }
.settings-nav a:hover { background: var(--surface-3); }
.settings-nav a[aria-current="true"] { background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.amen-picks { display: flex; gap: 6px; flex-wrap: wrap; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform 0.3s var(--ease); box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .view { padding: 4px 16px 56px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 28px 24px; min-height: 0; }
  .auth-copy { margin-top: 36px; }
  .auth-mini, .auth-feats { display: none; }
  .g-3 { grid-template-columns: minmax(0, 1fr); }
  .today-chip { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .g-2, .g-4, .form-2, .form-3 { grid-template-columns: minmax(0, 1fr); }
  .kpis.g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; gap: 10px; }
  .kpi-val { font-size: 24px; }
  .page-hd h1 { font-size: 23px; }
  .page-hd .actions { margin-left: 0; width: 100%; }
  .page-hd .actions .btn { flex: 1; }
  .hero { padding: 22px; border-radius: 20px; }
  .hero h2 { font-size: 24px; }
  .overlay { padding: 0; place-items: end stretch; }
  .modal, .modal.lg, .modal.xl, .modal.sm { max-width: none; max-height: 94vh; border-radius: 22px 22px 0 0; animation: sheet 0.32s var(--ease); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .drawer-ov { place-items: stretch; }
  .drawer { width: 100vw; }
  .modal-hd, .modal-bd, .modal-ft { padding-left: 18px; padding-right: 18px; }
  .prio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-row { grid-template-columns: 4px minmax(0, 1fr); padding-right: 16px; }
  .tk-end { grid-column: 2; justify-content: flex-start; }
  .li { padding: 12px 16px; }
  .li-end .btn:not(.icon-btn) { display: none; }
  .card-hd { padding: 16px 16px 0; }
  .card-bd { padding: 14px 16px 16px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; justify-items: stretch; }
  .toast { max-width: none; }
  .table-cards thead { display: none; }
  .table-cards tr { display: grid; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 4px; }
  .table-cards td { padding: 0; border: 0; }
  .crumbs .hide-sm { display: none; }
  .datebar input.input { width: 100% !important; }
  .kpi-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .kpi-ic { width: 32px; height: 32px; border-radius: 9px; }
  .tl { grid-template-columns: 130px minmax(0, 1fr); }
  .tl-room { padding: 0 10px 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- request contact block ---------- */
.contact-box { border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 16px 16px; margin: 0; min-width: 0; background: var(--surface-2); }
.contact-box legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 750; font-size: 13.5px; color: var(--ink-2); }
.contact-box .hint { font-size: 12px; color: var(--muted); }
.req-contact { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.req-contact span { display: inline-flex; align-items: center; gap: 5px; }
.req-reason b { color: var(--ink-2); }
.req-star { color: var(--red); margin-left: 2px; font-weight: 800; }

/* ---------- audit log ---------- */
.audit-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.audit-table th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 750; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); position: sticky; top: 0; }
.audit-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.audit-table tr.click { cursor: pointer; }
.audit-table tr.click:hover td { background: var(--surface-2); }
.audit-table .when { white-space: nowrap; color: var(--muted); }
.audit-table code, .audit-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: var(--surface-3); padding: 2px 6px; border-radius: var(--r-xs); white-space: nowrap; }
.audit-json { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: var(--surface-3); padding: 12px; border-radius: var(--r-sm); white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow: auto; margin: 0; }
.pager { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 960px) {
  .audit-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .audit-table .hide-narrow { display: none; }
}

/* ---------- email log ---------- */
.mail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mail-stats > div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.mail-stats b { display: block; font-size: 20px; font-weight: 800; }
.mail-stats span { font-size: 12px; color: var(--muted); }
.auth-link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 650; font-size: 13px; cursor: pointer; font-family: inherit; }
.auth-link:hover { text-decoration: underline; }
