/* ============================================================ Άδειες & Standby — design system */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f9fafb; --hover: #f2f3f6; --hover-strong: #eceef3;
  --text: #0f1222; --text-2: #3b4152; --muted: #6b7183; --border: #e6e8ee; --border-strong: #d7dae3;
  --accent: #5b5bd6; --accent-2: #7c6cf2; --accent-ink: #ffffff; --accent-soft: #eef0ff; --accent-text: #4a4ac4;
  --ok: #12a150; --ok-soft: #e7f7ee; --bad: #e5484d; --bad-soft: #fdecec; --warn: #e38b00; --warn-soft: #fff4e0;
  --info: #0b8ad9; --info-soft: #e6f4fd;
  --weekend: #f7f8fa; --hol: #fff1f1;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 40px -12px rgba(16, 24, 40, .18), 0 4px 10px -4px rgba(16, 24, 40, .06);
  --ring: 0 0 0 3px rgba(91, 91, 214, .22);
  --r-lg: 14px; --r: 10px; --r-sm: 8px;
  --sb: 264px;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --av-l: 93%; --av-c: 70%; --av-tl: 34%;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10; --surface: #121319; --surface-2: #16171e; --hover: #1a1b23; --hover-strong: #20212b;
    --text: #eceef4; --text-2: #c3c7d4; --muted: #8a90a2; --border: #23242e; --border-strong: #2e303c;
    --accent: #7070f0; --accent-2: #8b7cf8; --accent-soft: rgba(112, 112, 240, .14); --accent-text: #a5a6ff;
    --ok: #3dd68c; --ok-soft: rgba(61, 214, 140, .12); --bad: #ff6369; --bad-soft: rgba(255, 99, 105, .12);
    --warn: #ffb224; --warn-soft: rgba(255, 178, 36, .12); --info: #52a9ff; --info-soft: rgba(82, 169, 255, .12);
    --weekend: #101117; --hol: rgba(255, 99, 105, .08);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
    --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
    --ring: 0 0 0 3px rgba(112, 112, 240, .35);
    --av-l: 22%; --av-c: 40%; --av-tl: 80%;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 14.5px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03"; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(91, 91, 214, .2); }
a { color: var(--accent-text); }
svg { flex: none; }
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
      background:
        radial-gradient(900px 420px at 85% -120px, rgba(91, 91, 214, .10), transparent 70%),
        radial-gradient(700px 360px at 10% -160px, rgba(11, 138, 217, .07), transparent 70%); }
.bg::after { content: ""; position: absolute; inset: 0;
             background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 22px 22px;
             -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 380px);
             mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 380px); opacity: .6; }

/* ------------------------------------------------------------ sidebar */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sb); z-index: 30;
  display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-right: 1px solid var(--border);
  animation: sbIn .6s var(--ease) both;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; text-decoration: none; color: var(--text); }
.brand b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.brand small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
        background: linear-gradient(140deg, var(--accent-2), var(--accent) 55%, #3e3eb8);
        box-shadow: 0 6px 14px -6px rgba(91, 91, 214, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.logo::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%);
               animation: sheen 6s var(--ease-in-out) infinite; }
.logo svg { width: 19px; height: 19px; position: relative; z-index: 1; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px; }
.navwrap { position: relative; flex: 1; overflow-y: auto; }
nav { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
nav a {
  display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: var(--r-sm);
  color: var(--text-2); text-decoration: none; font-weight: 500; transition: color .2s, background-color .2s;
  animation: fadeSlide .5s var(--ease) both;
}
nav a svg { width: 18px; height: 18px; color: var(--muted); transition: color .2s, transform .3s var(--ease); }
nav a:hover { background: var(--hover); color: var(--text); }
nav a:hover svg { transform: translateX(1px); }
nav a.active { color: var(--text); font-weight: 600; background: transparent; }
nav a.active svg { color: var(--accent); }
nav a .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center;
               background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 0 rgba(229, 72, 77, .5);
               animation: ping 2.4s ease-out infinite; }
.nav-ind { position: absolute; left: 0; right: 0; top: 0; height: 38px; border-radius: var(--r-sm); z-index: 0;
           background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
           transition: transform .5s var(--ease), opacity .3s; opacity: 0; }
.nav-ind::before { content: ""; position: absolute; left: -15px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r);
      background: var(--surface-2); }
.me-txt { min-width: 0; flex: 1; line-height: 1.3; }
.me-txt b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt small { color: var(--muted); font-size: 12px; }
.icon-btn { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: var(--r-sm);
            border: 1px solid transparent; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--hover-strong); color: var(--text); box-shadow: none; transform: none; }
.icon-btn svg { width: 18px; height: 18px; }

.mobilebar { display: none; }
.scrim { display: none; }

/* ------------------------------------------------------------ layout */
body.authed { padding-left: var(--sb); }
main { max-width: 1200px; margin: 0 auto; padding: 36px 40px 64px; }
body:not(.authed) main { max-width: none; padding: 0; }
#view > * { animation: rise .5s var(--ease) both; }
#view > *:nth-child(2) { animation-delay: .04s; } #view > *:nth-child(3) { animation-delay: .08s; }
#view > *:nth-child(4) { animation-delay: .12s; } #view > *:nth-child(5) { animation-delay: .16s; }
#view > *:nth-child(6) { animation-delay: .2s; }  #view > *:nth-child(n+7) { animation-delay: .24s; }

.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.ph h1 { margin: 0; }
.ph p { margin: 5px 0 0; color: var(--muted); }
.ph .eyebrow { font-size: 12.5px; font-weight: 600; color: var(--accent-text); margin: 0 0 6px; letter-spacing: .01em; }
h1 { font-size: 27px; font-weight: 700; letter-spacing: -.028em; line-height: 1.2; margin: 0 0 22px; }
h2 { font-size: 15.5px; font-weight: 650; letter-spacing: -.012em; margin: 32px 0 12px; display: flex; align-items: center; gap: 12px; }
.card h2:first-child, .dlg h2 { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.section-head h2 { margin: 0; }

.card, .tablewrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.card { padding: 20px 22px; margin-bottom: 18px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.card { align-items: flex-end; }

/* ------------------------------------------------------------ home */
.hero { display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 16px; }
.ring-card { display: flex; align-items: center; gap: 22px; padding: 22px 24px; margin: 0; position: relative; overflow: hidden; }
.ring-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; bottom: -150px; border-radius: 50%;
                    background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
.ring-wrap { position: relative; width: 132px; height: 132px; flex: none; }
.ring { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-bg { stroke: var(--hover-strong); }
.ring .ring-fg { stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 4px 8px rgba(91, 91, 214, .35)); }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-center b { display: block; font-size: 30px; font-weight: 750; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-center small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.ring-info h3 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.ring-info p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.meter-legend { display: grid; gap: 6px; font-size: 13px; }
.meter-legend span { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.meter-legend i { width: 8px; height: 8px; border-radius: 50%; }
.meter-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { position: relative; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
        box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 10px; overflow: hidden;
        transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
        animation: rise .55s var(--ease) both; }
.tile:nth-child(2) { animation-delay: .06s; } .tile:nth-child(3) { animation-delay: .12s; } .tile:nth-child(4) { animation-delay: .18s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500;
            overflow-wrap: anywhere; }
.tile-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--tint-soft); color: var(--tint); }
.tile-ic svg { width: 18px; height: 18px; }
.tile .n { font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile small { color: var(--muted); font-size: 12.5px; }
.t-accent { --tint: var(--accent); --tint-soft: var(--accent-soft); }
.t-ok { --tint: var(--ok); --tint-soft: var(--ok-soft); }
.t-warn { --tint: var(--warn); --tint-soft: var(--warn-soft); }
.t-info { --tint: var(--info); --tint-soft: var(--info-soft); }

.today-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.today-card > div { padding: 18px 22px; }
.today-card > div + div { border-left: 1px solid var(--border); }
.today-card h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
            display: flex; align-items: center; gap: 8px; }
.today-card h4 .live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); --ping: rgba(18, 161, 80, .55); animation: ping 2s ease-out infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface-2);
        border: 1px solid var(--border); font-size: 13px; animation: pop .45s var(--ease) both; }
.chip small { color: var(--muted); }
.empty { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.empty svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ avatars */
.av { --h: 240; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
      font-size: 11px; font-weight: 650; letter-spacing: .01em;
      background: hsl(var(--h) var(--av-c) var(--av-l)); color: hsl(var(--h) 55% var(--av-tl));
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.av.lg { width: 34px; height: 34px; font-size: 12.5px; }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .muted { font-size: 12.5px; }

/* ------------------------------------------------------------ tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
thead th { background: var(--surface-2); font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
thead th:first-child { border-top-left-radius: var(--r-lg); } thead th:last-child { border-top-right-radius: var(--r-lg); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: var(--surface-2); }
.tablewrap tbody tr { animation: fadeIn .45s var(--ease) both; }
.tablewrap tbody tr:nth-child(2) { animation-delay: .03s; } .tablewrap tbody tr:nth-child(3) { animation-delay: .06s; }
.tablewrap tbody tr:nth-child(4) { animation-delay: .09s; } .tablewrap tbody tr:nth-child(n+5) { animation-delay: .12s; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.row { flex-wrap: nowrap; justify-content: flex-end; }
.card table td, .card table th { padding: 9px 10px; }

/* ------------------------------------------------------------ buttons */
button, .btn {
  font: inherit; font-size: 13.5px; font-weight: 550; height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: var(--shadow-xs); transition: background-color .15s, border-color .15s, box-shadow .2s, transform .15s var(--ease), color .15s;
}
button svg, .btn svg { width: 16px; height: 16px; }
button:hover, .btn:hover { background: var(--hover); border-color: var(--border-strong); }
button:active, .btn:active { transform: scale(.98); }
button:focus-visible, .btn:focus-visible, a:focus-visible, nav a:focus-visible { outline: none; box-shadow: var(--ring); }
button.primary, .btn.primary {
  position: relative; overflow: hidden; color: var(--accent-ink); border-color: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 12px -4px rgba(91, 91, 214, .55);
}
button.primary:hover, .btn.primary:hover { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 85%, #000)); }
button.primary::after, .btn.primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); }
button.primary:hover::after, .btn.primary:hover::after { animation: shine .85s var(--ease); }
button.ok { background: var(--ok); border-color: transparent; color: #fff; }
button.ok:hover { background: color-mix(in srgb, var(--ok) 88%, #000); }
button.bad { background: var(--surface); border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad); }
button.bad:hover { background: var(--bad-soft); }
button.link { border: 0; background: none; box-shadow: none; color: var(--accent-text); padding: 0; height: auto; }
button.link:hover { text-decoration: underline; background: none; }
button:disabled { opacity: .5; cursor: default; }
td.row button, td.row .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }

/* ------------------------------------------------------------ forms */
label { display: block; font-size: 13px; font-weight: 550; color: var(--text-2); margin-bottom: 6px; }
input, select, textarea {
  font: inherit; height: 38px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); width: 100%; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .2s;
}
textarea { height: auto; padding: 9px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border-strong)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type=checkbox] { width: 17px; height: 17px; padding: 0; accent-color: var(--accent); box-shadow: none; cursor: pointer; }
input[type=color] { padding: 3px; cursor: pointer; }
.form { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label.row { font-weight: 500; color: var(--text); margin: 0; cursor: pointer; }
#preview { min-height: 22px; margin: 16px 0; }
#preview:not(:empty) { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); color: var(--accent-text);
                       background: var(--accent-soft); font-weight: 500; animation: pop .35s var(--ease); }
#preview:not(:empty)::before { content: "i"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700;
                               background: var(--accent); color: #fff; flex: none; }

/* ------------------------------------------------------------ pills & dots */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
        font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-pending { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 80%, var(--text)); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.s-pending::before { animation: blink 1.6s ease-in-out infinite; }
.s-approved { background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 80%, var(--text)); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.s-rejected { background: var(--bad-soft); color: color-mix(in srgb, var(--bad) 85%, var(--text)); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.s-cancelled { background: var(--hover); color: var(--muted); border-color: var(--border); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 9px; vertical-align: middle;
       box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

/* ------------------------------------------------------------ toast */
#toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; width: min(380px, calc(100vw - 32px)); overflow: hidden;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-weight: 500; animation: toastIn .5s var(--ease) both;
}
#toast .ti { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok-soft); color: var(--ok); }
#toast .ti svg { width: 15px; height: 15px; }
#toast.err .ti { background: var(--bad-soft); color: var(--bad); }
#toast .tp { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--ok); transform-origin: left; animation: timer 3.5s linear both; }
#toast.err .tp { background: var(--bad); }

/* ------------------------------------------------------------ dialog */
.dlg { position: fixed; inset: 0; z-index: 50; padding: 16px; display: flex; align-items: center; justify-content: center;
       background: rgba(10, 12, 20, .42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .2s ease both; }
.dlg .card { width: min(640px, 100%); max-height: 90vh; overflow: auto; margin: 0; padding: 24px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease) both; }
code.tok { display: block; padding: 12px 14px; background: var(--surface-2); border: 1px dashed var(--accent); border-radius: var(--r-sm);
           word-break: break-all; margin: 10px 0 16px; font: 12.5px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; }

/* ------------------------------------------------------------ login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
            background: #14123a; isolation: isolate; }
.auth-art .orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; animation: orbit 18s var(--ease-in-out) infinite alternate; }
.auth-art .o1 { width: 520px; height: 520px; background: #5b5bd6; top: -160px; left: -140px; opacity: .9; }
.auth-art .o2 { width: 440px; height: 440px; background: #0b8ad9; bottom: -180px; right: -120px; opacity: .55; animation-duration: 22s; animation-delay: -6s; }
.auth-art .o3 { width: 300px; height: 300px; background: #a855f7; top: 40%; left: 45%; opacity: .45; animation-duration: 26s; animation-delay: -12s; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1;
                   background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
                   background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
                   mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); }
.auth-art .brand { color: #fff; padding: 0; }
.auth-art .brand small { color: rgba(255, 255, 255, .65); }
.auth-art .logo { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.auth-copy { max-width: 460px; }
.auth-copy h2 { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.035em; margin: 0 0 14px; display: block; animation: rise .8s var(--ease) .1s both; }
.auth-copy p { color: rgba(255, 255, 255, .72); font-size: 15.5px; margin: 0 0 28px; animation: rise .8s var(--ease) .2s both; }
.feats { display: grid; gap: 14px; }
.feat { display: flex; gap: 12px; align-items: flex-start; animation: rise .8s var(--ease) both; }
.feat:nth-child(1) { animation-delay: .3s; } .feat:nth-child(2) { animation-delay: .4s; } .feat:nth-child(3) { animation-delay: .5s; }
.feat span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
             background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.feat svg { width: 16px; height: 16px; }
.feat b { display: block; font-weight: 600; font-size: 14px; }
.feat small { color: rgba(255, 255, 255, .62); font-size: 13px; }
.auth-foot { color: rgba(255, 255, 255, .5); font-size: 12.5px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-box { width: min(380px, 100%); animation: rise .7s var(--ease) .15s both; }
.auth-box h1 { margin: 0 0 6px; font-size: 26px; }
.auth-box .sub { color: var(--muted); margin: 0 0 28px; }
.auth-box .form { gap: 18px; }
.auth-box button.primary { height: 42px; font-size: 14.5px; margin-top: 4px; width: 100%; }
.auth-box .mobile-logo { display: none; margin-bottom: 20px; }
.pw { position: relative; }
.pw input { padding-right: 42px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 30px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--muted); }
.pw button:hover { color: var(--text); background: var(--hover); }
.pw button:active { transform: translateY(-50%) scale(.95); }

/* ------------------------------------------------------------ skeleton */
.skel { display: grid; gap: 16px; }
.sk { border-radius: var(--r-lg); background: linear-gradient(90deg, var(--hover) 0%, var(--hover-strong) 40%, var(--hover) 80%);
      background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk.t { height: 30px; width: 280px; border-radius: var(--r-sm); }
.sk.s { height: 16px; width: 200px; border-radius: 6px; margin-top: -8px; }
.sk.b { height: 140px; } .sk.c { height: 260px; }

/* ------------------------------------------------------------ Gantt calendar */
.cal { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.cal th, .cal td { padding: 0; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; }
.cal thead th { text-transform: none; letter-spacing: 0; font-size: 11px; border-radius: 0 !important; }
.cal th.name, .cal td.name { position: sticky; left: 0; background: var(--surface); text-align: left; padding: 8px 14px;
                              min-width: 200px; white-space: nowrap; z-index: 2; font-size: 13px; }
.cal thead th.name { background: var(--surface-2); }
.cal td.name .who-cell { gap: 9px; }
.cal td.name small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.2; }
.cal th.d { min-width: 32px; padding: 7px 0; line-height: 1.3; color: var(--muted); }
.cal th.d b { display: block; color: var(--text); font-size: 12.5px; font-weight: 600; }
.cal td.d { height: 44px; }
.cal .we { background: var(--weekend); }
.cal .hol { background: var(--hol); }
.cal th.today { background: var(--accent-soft); }
.cal th.today b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; }
.cal td.today { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.cal .ev { display: block; height: 24px; margin: 0 -1px; border-radius: 0; transform-origin: left; position: relative;
           animation: barIn .6s var(--ease) both; transition: filter .2s, transform .2s var(--ease); }
.cal .ev.s { margin-left: 3px; border-top-left-radius: 7px; border-bottom-left-radius: 7px; }
.cal .ev.e { margin-right: 3px; border-top-right-radius: 7px; border-bottom-right-radius: 7px; }
.cal .ev:hover { filter: brightness(1.08) saturate(1.1); transform: scaleY(1.12); z-index: 1; }
.cal .ev.pending { opacity: .6; background-image: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(255, 255, 255, .45) 5px 9px);
                   background-size: 26px 26px; animation: barIn .6s var(--ease) both, stripes 1.4s linear infinite; }
.cal .ev.half { height: 12px; }
.cal tbody tr:hover td.name { color: var(--accent-text); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; margin: 6px 0 16px; align-items: center; color: var(--text-2); }
.legend > span { display: inline-flex; align-items: center; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 4px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-xs); }
.seg button { border: 0; border-radius: 0; box-shadow: none; height: 34px; }
.seg button + button { border-left: 1px solid var(--border-strong); }

/* ------------------------------------------------------------ keyframes */
@keyframes rise     { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes sbIn     { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes pop      { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes barIn    { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes toastIn  { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes timer    { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes shine    { to { transform: translateX(120%); } }
@keyframes sheen    { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes ping     { 0% { box-shadow: 0 0 0 0 var(--ping, rgba(229, 72, 77, .5)); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes blink    { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes shimmer  { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes stripes  { to { background-position: 26px 0; } }
@keyframes orbit    { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.1); } 100% { transform: translate(-30px, 80px) scale(.95); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body.authed { padding-left: 0; padding-top: 60px; }
  .sidebar { transform: translateX(-102%); transition: transform .4s var(--ease); animation: none; box-shadow: var(--shadow-lg); background: var(--surface); }
  body.nav-open .sidebar { transform: none; }
  body.authed .mobilebar { display: flex; align-items: center; gap: 10px; position: fixed; inset: 0 0 auto 0; height: 60px; z-index: 20; padding: 0 12px;
                           background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
                           border-bottom: 1px solid var(--border); }
  .mobilebar .logo { width: 30px; height: 30px; border-radius: 8px; }
  .mobilebar .logo svg { width: 16px; height: 16px; }
  .mobilebar b { font-size: 15px; letter-spacing: -.02em; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(10, 12, 20, .4); animation: fadeIn .25s ease both; }
  main { padding: 22px 16px 48px; }
  h1 { font-size: 23px; }
  .ph { margin-bottom: 20px; }
  .tiles { gap: 12px; }
  .tile { padding: 14px 16px; }
  .tile .n { font-size: 24px; }
  .today-card { grid-template-columns: 1fr; }
  .today-card > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-box .mobile-logo { display: grid; }
  #toast { right: 16px; bottom: 16px; }
}
@media (max-width: 520px) {
  .ring-card { flex-direction: column; text-align: center; }
  .meter-legend { text-align: left; width: 100%; }
}
