/* UpGo Foglaló · admin design system */
@font-face { font-family: "InterVar"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "InterVar"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --font: "InterVar", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --bg: #f5f5f7;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(124,58,237,.07), transparent 60%);
  --surface: #ffffff;
  --surface-2: #fafafb;
  --surface-3: #f2f2f5;
  --hover: rgba(15,15,25,.04);
  --border: rgba(15,15,25,.08);
  --border-strong: rgba(15,15,25,.14);
  --text: #0e0e13;
  --text-2: #3f3f48;
  --muted: #71717d;
  --brand: #7c3aed;
  --brand-strong: #6d28d9;
  --brand-soft: rgba(124,58,237,.1);
  --brand-text: #6d28d9;
  --ring: rgba(124,58,237,.28);
  --ok: #0f9960; --ok-soft: rgba(16,185,129,.12);
  --warn: #b45309; --warn-soft: rgba(245,158,11,.14);
  --err: #dc2626; --err-soft: rgba(239,68,68,.11);
  --info: #2563eb; --info-soft: rgba(59,130,246,.11);
  --shadow-sm: 0 1px 2px rgba(15,15,25,.04), 0 1px 1px rgba(15,15,25,.03);
  --shadow: 0 1px 2px rgba(15,15,25,.04), 0 4px 16px -4px rgba(15,15,25,.08);
  --shadow-lg: 0 2px 6px rgba(15,15,25,.05), 0 24px 48px -12px rgba(15,15,25,.18);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --sb-w: 264px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090c; --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(139,92,246,.12), transparent 60%);
    --surface: #111116; --surface-2: #15151b; --surface-3: #1c1c24; --hover: rgba(255,255,255,.04);
    --border: rgba(255,255,255,.07); --border-strong: rgba(255,255,255,.13);
    --text: #f4f4f6; --text-2: #d0d0d8; --muted: #8e8e9c;
    --brand: #8b5cf6; --brand-strong: #7c3aed; --brand-soft: rgba(139,92,246,.16); --brand-text: #b69cff; --ring: rgba(139,92,246,.4);
    --ok: #34d399; --ok-soft: rgba(52,211,153,.13); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.13);
    --err: #f87171; --err-soft: rgba(248,113,113,.13); --info: #60a5fa; --info-soft: rgba(96,165,250,.13);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090c; --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(139,92,246,.12), transparent 60%);
  --surface: #111116; --surface-2: #15151b; --surface-3: #1c1c24; --hover: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.07); --border-strong: rgba(255,255,255,.13);
  --text: #f4f4f6; --text-2: #d0d0d8; --muted: #8e8e9c;
  --brand: #8b5cf6; --brand-strong: #7c3aed; --brand-soft: rgba(139,92,246,.16); --brand-text: #b69cff; --ring: rgba(139,92,246,.4);
  --ok: #34d399; --ok-soft: rgba(52,211,153,.13); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.13);
  --err: #f87171; --err-soft: rgba(248,113,113,.13); --info: #60a5fa; --info-soft: rgba(96,165,250,.13);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text);
  background: var(--bg-grad), var(--bg); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01", "ss03";
}
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; font-weight: 650; }
.ic { flex: none; display: block; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }
::selection { background: var(--brand-soft); }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; } :root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-dark { display: block; } :root:not([data-theme="light"]) .only-light { display: none; } }

/* ---------- Shell ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sb-w); z-index: 40;
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-right: 1px solid var(--border);
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.sb-brand b { display: block; font-size: 15px; letter-spacing: -.02em; line-height: 1.1; }
.sb-brand span { font-size: 12px; color: var(--muted); }
.mark { display: grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(124,58,237,.35)); }
.sb-section { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.sb-tenant { display: flex; align-items: center; gap: 10px; margin: 10px 2px 8px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.sb-tenant-name, .sb-user-name { min-width: 0; flex: 1; }
.sb-tenant-name b, .sb-user-name b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-tenant-name span, .sb-user-name span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-link {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--text-2);
  font: inherit; font-weight: 500; font-size: 13.5px; background: none; border: 0; width: 100%; cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
.sb-link .ic { color: var(--muted); transition: color .15s; }
.sb-link:hover { background: var(--hover); text-decoration: none; color: var(--text); }
.sb-link.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); font-weight: 600; }
.sb-link.on .ic { color: var(--brand); }
.sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--border); margin-top: 4px; }

.shell { margin-left: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; min-width: 0; }
.crumbs a { color: var(--muted); } .crumbs b { color: var(--text); font-weight: 600; white-space: nowrap; }
.crumbs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar .menu-btn { display: none; }
.content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 28px 80px; }
.sb-backdrop { display: none; }

@media (max-width: 960px) {
  .sidebar { transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); background: var(--surface); }
  body.sb-open .sidebar { transform: none; }
  body.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.35); backdrop-filter: blur(2px); }
  .shell { margin-left: 0; }
  .topbar .menu-btn { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 80px; }
}

/* ---------- Page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 640px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--brand-text); letter-spacing: .02em; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 15px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.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); }
@media (max-width: 1100px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g-2, .g-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .g-4 { grid-template-columns: 1fr 1fr; gap: 10px; } }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 26px 0 10px; letter-spacing: .01em; }

/* KPI */
.kpi { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.kpi-ic.ok { background: var(--ok-soft); color: var(--ok); } .kpi-ic.info { background: var(--info-soft); color: var(--info); } .kpi-ic.warn { background: var(--warn-soft); color: var(--warn); }
.kpi-val { font-size: 28px; font-weight: 650; letter-spacing: -.035em; margin-top: 10px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.delta { font-weight: 600; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.delta.up { color: var(--ok); background: var(--ok-soft); } .delta.down { color: var(--err); background: var(--err-soft); } .delta.flat { color: var(--muted); background: var(--surface-3); }
@media (max-width: 480px) { .kpi { padding: 14px; } .kpi-val { font-size: 22px; } }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  box-shadow: var(--shadow-sm); transition: transform .08s, background .15s, border-color .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { background: color-mix(in srgb, var(--b-bg) 92%, var(--text)); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn.primary {
  --b-bg: var(--brand); --b-fg: #fff; --b-bd: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand));
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 1px 2px rgba(0,0,0,.1), 0 4px 12px -2px color-mix(in srgb, var(--brand) 45%, transparent);
}
.btn.primary:hover { background: linear-gradient(180deg, var(--brand), var(--brand-strong)); }
.btn.danger { --b-bg: var(--err); --b-fg: #fff; --b-bd: transparent; }
.btn.ghost { --b-bg: transparent; --b-bd: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--hover); }
.btn.soft-danger { color: var(--err); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.primary):not(.danger).loading::after { border-color: var(--border-strong); border-top-color: var(--text); }
.btn.copied { color: var(--ok); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 550; color: var(--text-2); }
.hint { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
@media (max-width: 720px) { .span-8, .span-6, .span-4, .span-3 { grid-column: span 12; } }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  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='%2371717d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--muted)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input[type=color] { width: 44px; height: 38px; padding: 3px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.input-icon { position: relative; } .input-icon .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 36px; }
.input-suffix { position: relative; } .input-suffix input { padding-right: 44px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }

.switch-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 4px 0; }
.switch-row b { display: block; font-weight: 550; font-size: 13.5px; }
.switch-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.switch { display: inline-block; vertical-align: middle; position: relative; flex: none; width: 38px; height: 22px; margin-top: 1px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.3,1.4,.5,1); }
.switch input:checked + i { background: var(--brand); box-shadow: none; }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--ring); }

.check-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 99px; cursor: pointer; font-weight: 500; font-size: 13px; background: var(--surface); transition: all .15s; user-select: none; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip .dot { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; transition: all .15s; }
.check-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.check-chip:has(input:checked) .dot { background: var(--brand); border-color: var(--brand); }
.check-chip:has(input:checked) .dot::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 10px; gap: 2px; box-shadow: inset 0 0 0 1px var(--border); }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 550; font-size: 13px; border: 0; background: none; cursor: pointer; text-decoration: none !important; font-family: inherit; }
.seg a.on, .seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); } .badge.brand { background: var(--brand-soft); color: var(--brand-text); } .badge.info { background: var(--info-soft); color: var(--info); }

/* ---------- Avatar ---------- */
.avatar { --h: 265; flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-weight: 650; font-size: 13px; letter-spacing: -.01em; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 75% 62%), hsl(calc(var(--h) + 35) 70% 48%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11.5px; }
.avatar.lg { width: 44px; height: 44px; border-radius: 13px; font-size: 15px; }

/* ---------- Table / list ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 12px; font-weight: 550; color: var(--muted); padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; } .tbl tbody tr:hover { background: var(--hover); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-main b { display: block; font-weight: 600; } .cell-main small { display: block; color: var(--muted); font-size: 12.5px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }

.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .12s; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--hover); }

/* ---------- Bookings ---------- */
.day-group { margin-bottom: 22px; }
.day-label { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 10px; }
.day-label b { font-size: 14px; } .day-label span { color: var(--muted); font-size: 12.5px; }
.day-label.today b { color: var(--brand-text); }
.bk {
  display: grid; grid-template-columns: 92px 4px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 8px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bk:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.bk-time { font-weight: 650; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bk-time small { display: block; font-weight: 450; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.bk-bar { align-self: stretch; border-radius: 4px; background: hsl(var(--h, 265) 70% 58%); }
.bk-main { min-width: 0; }
.bk-main .name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-main .svc { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.bk-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.bk-meta a { color: var(--muted); display: inline-flex; gap: 5px; align-items: center; } .bk-meta a:hover { color: var(--text); }
.bk-note { margin-top: 8px; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 8px; padding: 6px 10px; }
.bk.cancelled { opacity: .6; } .bk.cancelled .bk-bar { background: var(--border-strong); } .bk.cancelled .name { text-decoration: line-through; text-decoration-color: var(--muted); }
@media (max-width: 640px) {
  .bk { grid-template-columns: 4px minmax(0, 1fr); gap: 12px; }
  .bk-time { grid-column: 2; order: -1; display: flex; gap: 6px; align-items: baseline; font-size: 15px; }
  .bk-time small { display: inline; }
  .bk-bar { grid-row: 1 / span 3; grid-column: 1; }
  .bk-actions { grid-column: 2; }
}

/* Week calendar */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cal-toolbar .title { font-weight: 650; font-size: 15px; letter-spacing: -.02em; margin-right: auto; }
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 860px; position: relative; }
.week-head { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: center; }
.week-head small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; text-transform: capitalize; }
.week-head b { font-size: 18px; font-weight: 650; letter-spacing: -.02em; display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 10px; }
.week-head.today b { background: var(--brand); color: #fff; }
.week-gutter { border-right: 1px solid var(--border); }
.week-hours { position: relative; }
.week-hours span { position: absolute; right: 8px; font-size: 11px; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.week-col { position: relative; border-right: 1px solid var(--border); background-image: linear-gradient(var(--border) 1px, transparent 1px); background-size: 100% var(--hour-h); }
.week-col:last-child { border-right: 0; }
.week-col.off { background-color: var(--surface-2); }
.week-col.today { background-color: color-mix(in srgb, var(--brand-soft) 35%, transparent); }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 5px 8px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; text-align: left; border: 0; font-family: inherit;
  background: hsl(var(--h) 80% 96%); color: hsl(var(--h) 55% 28%); box-shadow: inset 3px 0 0 hsl(var(--h) 70% 55%), 0 1px 2px rgba(0,0,0,.05);
  transition: transform .12s, box-shadow .12s; }
.ev:hover { transform: translateY(-1px); box-shadow: inset 3px 0 0 hsl(var(--h) 70% 55%), var(--shadow); z-index: 3; }
.ev.short { padding: 2px 8px; display: flex; gap: 6px; align-items: center; }
.ev.short b, .ev.short span { display: inline; }
.ev b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { display: block; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] .ev { background: hsl(var(--h) 45% 18%); color: hsl(var(--h) 80% 86%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ev { background: hsl(var(--h) 45% 18%); color: hsl(var(--h) 80% 86%); } }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--err); z-index: 2; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--err); }

/* Timeline (today) */
.tl { position: relative; padding: 6px 20px 16px; }
.tl-item { display: grid; grid-template-columns: 52px 18px 1fr; gap: 10px; align-items: start; padding: 8px 0; }
.tl-time { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 13.5px; padding-top: 1px; }
.tl-dot { position: relative; height: 100%; display: flex; justify-content: center; }
.tl-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: hsl(var(--h) 70% 58%); box-shadow: 0 0 0 4px color-mix(in srgb, hsl(var(--h) 70% 58%) 18%, transparent); position: relative; z-index: 1; }
.tl-dot::after { content: ""; position: absolute; top: 18px; bottom: -14px; width: 2px; background: var(--border); }
.tl-item:last-child .tl-dot::after { display: none; }
.tl-item.past { opacity: .55; }
.tl-body b { font-weight: 600; font-size: 13.5px; } .tl-body small { display: block; color: var(--muted); font-size: 12.5px; }

/* Bar chart */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 20px 20px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 44px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand)); min-height: 4px; position: relative; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.bar i.zero { background: var(--surface-3); }
.bar i.today { box-shadow: 0 0 0 3px var(--ring); }
.bar i em { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--text-2); }
.bar small { font-size: 11.5px; color: var(--muted); text-transform: capitalize; padding-bottom: 14px; }

/* Progress */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #ec4899)); }

/* Hours editor */
.hours-list { display: flex; flex-direction: column; }
.hour-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.hour-row:last-child { border-bottom: 0; }
.hour-ranges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.range { display: inline-flex; align-items: center; gap: 6px; }
.range input { width: 128px; }
.range span { color: var(--muted); }
.hour-row.closed .hour-ranges { opacity: .35; pointer-events: none; }
.closed-label { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .hour-row { grid-template-columns: 1fr; gap: 10px; padding: 12px 16px; } .range input { width: 100%; } .range { flex: 1; } }

/* Code */
.code-box { position: relative; background: #0d0d12; color: #e5e5ee; border-radius: var(--r); padding: 50px 18px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; border: 1px solid rgba(255,255,255,.06); }
.code-box .t { color: #c4b5fd; } .code-box .a { color: #7dd3fc; } .code-box .s { color: #86efac; }
.code-box .btn { position: absolute; top: 10px; right: 10px; --b-bg: rgba(255,255,255,.08); --b-fg: #fff; --b-bd: rgba(255,255,255,.12); box-shadow: none; }

/* Empty */
.empty { text-align: center; padding: 48px 20px; }
.empty-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; color: var(--brand-text); background: var(--brand-soft); }
.empty h3 { font-size: 16px; } .empty p { color: var(--muted); margin: 6px auto 18px; max-width: 380px; }

/* Callout */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid; margin-bottom: 18px; font-size: 13.5px; }
.callout b { display: block; margin-bottom: 2px; }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--text); } .callout.warn .ic { color: var(--warn); }
.callout.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); } .callout.info .ic { color: var(--info); }
.callout.brand { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); } .callout.brand .ic { color: var(--brand-text); }

/* Toast */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 40px));
  padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  font-weight: 500; animation: toast-in .35s cubic-bezier(.2,.9,.3,1.2); }
.toast.ok .ic:first-child { color: var(--ok); } .toast.err .ic:first-child { color: var(--err); }
.toast-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; }
.toast-x:hover { background: var(--hover); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* Dialog */
dialog { border: 0; padding: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog::backdrop { background: rgba(10,10,15,.45); backdrop-filter: blur(4px); }
dialog[open] { animation: dlg .25s cubic-bezier(.2,.9,.3,1.1); }
@keyframes dlg { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; }
.dlg-head h2 { font-size: 17px; }
.dlg-body { padding: 16px 20px 20px; }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 550; }

/* Auth */
body.bare { background: var(--bg); }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(900px 500px at 10% 10%, #a78bfa 0%, transparent 55%), radial-gradient(700px 600px at 90% 90%, #ec4899 0%, transparent 55%), radial-gradient(800px 600px at 80% 10%, #6366f1 0%, transparent 60%), #1e1033; }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.auth-art .brandline { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; position: relative; z-index: 1; }
.auth-art h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.035em; max-width: 460px; position: relative; z-index: 1; font-weight: 650; }
.auth-art p { opacity: .82; max-width: 420px; font-size: 15px; position: relative; z-index: 1; }
.auth-float { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.auth-float div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); font-size: 13px; }
.auth-float b { display: block; font-size: 13.5px; }
.auth-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-size: 26px; letter-spacing: -.03em; } .auth-box > p { color: var(--muted); margin: 6px 0 26px; }
.auth-box .field { margin-bottom: 16px; }
.auth-box .mobile-brand { display: none; margin-bottom: 28px; }
@media (max-width: 880px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-box .mobile-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; } }
.bare-content { max-width: none; padding: 0; }

.muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.pw-box { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 15px; padding: 10px 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 10px; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; background: var(--surface-3); font-size: 12px; font-weight: 550; color: var(--text-2); }
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.preview-frame { border-radius: var(--r-lg); padding: 28px 16px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--border); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Editor (megjelenés, emailek) ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
.editor-side { position: relative; min-width: 0; }
.preview-sticky { position: sticky; top: 78px; }
.preview-sticky .preview-frame { max-height: calc(100vh - 140px); overflow: auto; padding: 20px 14px; }
@media (max-width: 1180px) { .editor { grid-template-columns: 1fr; } .preview-sticky { position: static; } .editor-side { order: -1; } .preview-sticky .preview-frame { max-height: 560px; } }
.save-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.logo-drop { width: 72px; height: 72px; flex: none; border-radius: 18px; border: 1.5px dashed var(--border-strong); display: grid; place-items: center; color: var(--muted); overflow: hidden; background: var(--surface-2); }
.logo-drop img { width: 100%; height: 100%; object-fit: cover; }
.range-in { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--surface-3); box-shadow: none; padding: 0; border: 0; margin: 12px 0 6px; }
.range-in::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px var(--brand), 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.range-in::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); cursor: pointer; }
.range-in:focus { box-shadow: none; }
.seg-radio label { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 550; font-size: 13px; cursor: pointer; }
.seg-radio label.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.font-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 720px) { .font-grid { grid-template-columns: repeat(3, 1fr); } }
.font-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--border-strong); cursor: pointer; background: var(--surface); transition: all .15s; }
.font-opt input { position: absolute; opacity: 0; pointer-events: none; }
.font-opt b { font-size: 24px; font-weight: 600; line-height: 1.1; }
.font-opt span { font-size: 12px; color: var(--muted); text-align: center; }
.font-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
@media (max-width: 720px) { .toggle-grid { grid-template-columns: 1fr; } }
.cf-row { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 10px; }
.cf-head { display: flex; gap: 8px; align-items: center; }
.cf-head .cf-label { flex: 1; min-width: 0; }
.cf-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex: none; }
.cf-body { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0 38px; }
@media (max-width: 640px) { .cf-head { flex-wrap: wrap; } .cf-head .cf-type { width: 100% !important; order: 3; } .cf-body { margin-left: 0; } }
.rot90 { transform: rotate(90deg); }
.var-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; background: var(--surface-3); border: 1px solid var(--border); font-family: var(--mono); font-size: 12px; cursor: pointer; color: var(--text-2); }
.var-chip:hover { border-color: var(--brand); color: var(--brand-text); }
.mail-frame { width: 100%; height: 640px; border: 0; border-radius: var(--r-lg); background: #f3f3f6; display: block; }
.tabs-line { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 12px; overflow-x: auto; }
.tabs-line a, .tabs-line button { display: inline-flex; align-items: center; gap: 7px; padding: 12px 10px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tabs-line .on { color: var(--text); border-color: var(--brand); }
.editor.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .editor.two { grid-template-columns: 1fr; } }
.sidebar { overflow-y: auto; scrollbar-width: thin; }
.staff-over { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.staff-over.off .input-suffix { opacity: .35; pointer-events: none; }
.ic.inline-ic { display: inline-block; vertical-align: -2px; }
.chart-wrap { padding: 8px 20px 4px; overflow-x: auto; }
.bars-rev { padding: 20px 0 0; min-width: 480px; }
.bars-rev .bar i { max-width: 36px; }
.bars-rev .bar i.future { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand) 55%, transparent) 0 4px, color-mix(in srgb, var(--brand) 30%, transparent) 4px 8px); }
.bar[data-tip]:hover i { filter: brightness(1.12); }
.heat { display: grid; gap: 3px; min-width: 420px; align-items: center; }
.heat .hh { font-size: 10.5px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.heat .hd { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.heat i { display: block; aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--brand) calc(var(--a) * 100%), var(--surface-3)); }
.heat i:hover { outline: 2px solid var(--text); outline-offset: 1px; }
.heat-legend { width: 90px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--surface-3), var(--brand)); }
.tip { position: absolute; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .12s; padding: 7px 10px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 550; white-space: nowrap; box-shadow: var(--shadow); }

/* ---------- Testreszabható dashboard ---------- */
.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dash-card { min-width: 0; position: relative; }
.dash-card.s-sm { grid-column: span 1; } .dash-card.s-lg { grid-column: span 2; } .dash-card.s-full { grid-column: 1 / -1; }
@media (max-width: 1100px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-card.s-lg { grid-column: 1 / -1; } }
@media (max-width: 720px) { .dash { grid-template-columns: 1fr; } .dash-card.s-sm, .dash-card.s-lg { grid-column: 1 / -1; } }
.dash-tools { display: none; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; margin-bottom: 8px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--border-strong); font-size: 13px; }
.dash-tools b { font-weight: 600; }
.dash-grip { color: var(--muted); cursor: grab; display: grid; }
body.dash-editing .dash-tools { display: flex; }
body.dash-editing .dash-card { cursor: grab; }
body.dash-editing .dash-card > :not(.dash-tools) { pointer-events: none; opacity: .92; }
.dash-card.dragging { opacity: .4; }
.dash-edit-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 16px; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.dash-edit-bar > .ic { color: var(--brand-text); }
.dash-edit-bar[hidden], .dash-tray[hidden], .dash-card[hidden] { display: none !important; }
.dash-tray { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px dashed var(--border-strong); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-grid a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); font-weight: 550; font-size: 13.5px; text-decoration: none; transition: all .15s; }
.quick-grid a:hover { border-color: var(--border-strong); background: var(--hover); transform: translateY(-1px); }
.quick-grid .kpi-ic { flex: none; }
.ev { touch-action: none; user-select: none; }
.ev.nos { opacity: .55; text-decoration: line-through; }
.ev.dragging-src { opacity: .35; }
.ev-ghost { z-index: 5; box-shadow: inset 3px 0 0 hsl(var(--h) 70% 55%), var(--shadow-lg) !important; outline: 2px dashed hsl(var(--h) 70% 55%); pointer-events: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.check-chip.on-chip { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 20; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 4px; }
.ac-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text); }
.ac-list button:hover { background: var(--hover); }
.ac-list b { display: block; font-weight: 600; font-size: 13.5px; } .ac-list small { color: var(--muted); font-size: 12px; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button, .seg label { white-space: nowrap; flex: none; }
.cf-tr summary { cursor: pointer; font-size: 12.5px; font-weight: 550; color: var(--brand-text); display: inline-flex; gap: 6px; align-items: center; list-style: none; }
.cf-tr summary::-webkit-details-marker { display: none; }
.span-5 { grid-column: span 5; }
@media (max-width: 720px) { .span-5 { grid-column: span 12; } }
