/* TaskPilot — design tokens, layout and components */
:root {
  color-scheme: light;
  --bg: #f6f6f4; --surface: #ffffff; --surface-2: #fafaf8; --sunken: #efeeea;
  --border: #e6e5e0; --border-strong: #d4d3cc;
  --text: #16161a; --text-2: #55555c; --text-3: #8a8a92;
  --accent: #2a78d6; --accent-ink: #ffffff; --accent-soft: #e8f1fc; --accent-strong: #1c5cab;
  --good: #1a7f4e; --good-soft: #e3f5ec; --warn: #a96400; --warn-soft: #fdf1da;
  --bad: #c62f2f; --bad-soft: #fde8e8; --serious: #c4501e; --serious-soft: #fdeadf;
  --idle: #6250d6; --idle-soft: #eeebfb; --muted-soft: #efeeea;
  --st-todo: #9a9aa2; --st-progress: #2a78d6; --st-blocked: #eb6834; --st-review: #6250d6; --st-done: #1baf7a;
  --series-1: #2a78d6; --series-2: #1baf7a;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .05); --shadow: 0 4px 16px rgba(20, 20, 30, .08); --shadow-lg: 0 18px 48px rgba(20, 20, 30, .18);
  --radius: 10px; --radius-sm: 7px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121214; --surface: #1a1a1d; --surface-2: #1f1f23; --sunken: #26262b;
  --border: #2d2d33; --border-strong: #3a3a42;
  --text: #f0efec; --text-2: #b4b3ab; --text-3: #85858d;
  --accent: #3987e5; --accent-ink: #ffffff; --accent-soft: #1b2b40; --accent-strong: #6da7ec;
  --good: #3ec58a; --good-soft: #14291f; --warn: #eda100; --warn-soft: #302510;
  --bad: #ef6b6b; --bad-soft: #321a1a; --serious: #f08a5c; --serious-soft: #33201a;
  --idle: #9085e9; --idle-soft: #25213f; --muted-soft: #26262b;
  --st-todo: #7b7b84; --st-progress: #3987e5; --st-blocked: #d95926; --st-review: #9085e9; --st-done: #199e70;
  --series-1: #3987e5; --series-2: #199e70;
  --shadow-sm: none; --shadow: 0 4px 16px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 48px rgba(0, 0, 0, .6);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-strong); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
.ico { flex: none; vertical-align: -3px; }
.muted { color: var(--text-3); } .sub { color: var(--text-2); }
.mono { font-family: var(--mono); font-size: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--surface); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #6250d6); display: grid; place-items: center; color: #fff; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--sunken); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-strong); }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 99px; background: var(--bad); color: #fff; }
.nav-label { padding: 14px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.mode { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; }
.mode .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.mode.demo .dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top h1 { font-size: 14px; font-weight: 550; color: var(--text-2); }
.top .grow { flex: 1; }
.search { position: relative; } .search .ico { position: absolute; left: 10px; top: 9px; color: var(--text-3); }
.search input[type=search] { width: 260px; padding: 7px 10px 7px 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.page { padding: 24px 28px 64px; max-width: 1480px; width: 100%; margin: 0 auto; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 550; white-space: nowrap; }
.btn:hover { background: var(--sunken); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--sunken); }
.btn.danger { color: var(--bad); } .btn.sm { padding: 4px 9px; font-size: 12.5px; } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.magic { background: linear-gradient(135deg, #6250d6, var(--accent)); border-color: transparent; color: #fff; }
.field { display: flex; flex-direction: column; gap: 5px; } .field > label, .lbl { font-size: 12px; font-weight: 600; color: var(--text-2); }
input[type=text], input[type=search], input[type=number], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
textarea { resize: vertical; min-height: 84px; }
select { padding-right: 24px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.switch { position: relative; width: 38px; height: 22px; flex: none; } .switch input { opacity: 0; position: absolute; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--border-strong); border-radius: 99px; transition: .15s; } .switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::after { left: 19px; }
.seg { display: inline-flex; padding: 2px; background: var(--sunken); border-radius: var(--radius-sm); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 5px; cursor: pointer; font-weight: 550; color: var(--text-2); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- cards & tiles ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; } .card-h h3 { font-size: 14px; } .card-b { padding: 14px 16px 16px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { padding: 14px 16px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); cursor: pointer; text-align: left; transition: border-color .12s, transform .12s; }
.tile:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.tile .k { font-size: 12px; color: var(--text-2); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.tile .v { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .d { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.tile.bad .v { color: var(--bad); } .tile.warn .v { color: var(--warn); } .tile.idle .v { color: var(--idle); }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; } .page-h h2 { font-size: 22px; } .page-h p { margin: 2px 0 0; color: var(--text-2); }

/* ---------- pills, avatars, bars ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.serious { background: var(--serious-soft); color: var(--serious); }
.pill.idle { background: var(--idle-soft); color: var(--idle); } .pill.muted { background: var(--muted-soft); color: var(--text-2); } .pill.info { background: var(--accent-soft); color: var(--accent-strong); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--sunken); color: var(--text-2); font-size: 11.5px; font-weight: 550; }
.avatar { width: var(--s, 28px); height: var(--s, 28px); border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; font-size: calc(var(--s, 28px) * .38); font-weight: 650; letter-spacing: .02em; }
.avatar.unassigned { background: transparent; border: 1.5px dashed var(--border-strong); color: var(--text-3); }
.pbar { display: inline-block; width: 100%; height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; vertical-align: middle; }
.pbar b { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .3s; }
.pbar.good b { background: var(--st-done); } .pbar.bad b { background: var(--bad); } .pbar.warn b { background: #eda100; }
.sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.prio { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; } .prio i { width: 3px; background: var(--border-strong); border-radius: 1px; } .prio i:nth-child(1) { height: 5px; } .prio i:nth-child(2) { height: 7px; } .prio i:nth-child(3) { height: 9px; } .prio i:nth-child(4) { height: 12px; }
.prio.p-urgent i.on { background: var(--bad); } .prio.p-high i.on { background: var(--serious); } .prio.p-med i.on { background: var(--accent); } .prio.p-low i.on { background: var(--text-3); }
.tone-bad { color: var(--bad); font-weight: 600; } .tone-warn { color: var(--warn); font-weight: 600; } .tone-muted { color: var(--text-3); }

/* ---------- tables & lists ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; } .table tbody tr { cursor: pointer; } .table tbody tr:hover td { background: var(--surface-2); }
.table .title { font-weight: 550; max-width: 460px; } .table .key { color: var(--text-3); font-size: 12px; font-family: var(--mono); }
.table th.sortable { cursor: pointer; } .table th.sortable:hover { color: var(--text); }
.scroll { overflow: auto; border-radius: var(--radius); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--border); cursor: pointer; } .list-item:first-child { border-top: 0; } .list-item:hover { background: var(--surface-2); }
.list-item .t { font-weight: 550; } .list-item .m { font-size: 12.5px; color: var(--text-3); }
.empty { display: grid; place-items: center; gap: 4px; padding: 36px 16px; color: var(--text-3); text-align: center; } .empty strong { color: var(--text-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; } .filters select { width: auto; min-width: 130px; }

/* ---------- overview ---------- */
.ov { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--sunken); } .stack i { display: block; min-width: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.team-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) 70px 70px minmax(150px, 1.2fr) 70px 24px; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--border); cursor: pointer; }
.team-row:hover { background: var(--surface-2); } .team-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; cursor: default; background: var(--surface-2); border-top: 0; } .team-head:hover { background: var(--surface-2); }
.num { font-variant-numeric: tabular-nums; text-align: right; } .num.bad { color: var(--bad); font-weight: 650; }
.chart { width: 100%; height: auto; overflow: visible; } .chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .bar-hit { fill: transparent; cursor: pointer; } .chart .bar-hit:hover { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.tip { position: fixed; z-index: 90; pointer-events: none; padding: 8px 10px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 12px; box-shadow: var(--shadow); line-height: 1.5; }
.feed { max-height: 420px; overflow: auto; } .feed .f { display: flex; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--border); font-size: 13px; } .feed .f:first-child { border-top: 0; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 12px; }
.col { background: var(--sunken); border-radius: var(--radius); padding: 8px; min-height: 240px; transition: background .12s, outline .12s; }
.col.over { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px; font-weight: 650; } .col-h .n { color: var(--text-3); font-weight: 550; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow-sm); }
.kcard:hover { border-color: var(--border-strong); } .kcard.dragging { opacity: .4; }
.kcard .ttl { font-weight: 550; margin: 4px 0 10px; line-height: 1.35; } .kcard .meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; }
.kcard.overdue { border-left: 3px solid var(--bad); } .kcard.idle { border-left: 3px solid var(--idle); } .kcard.blocked { border-left: 3px solid var(--serious); }

/* ---------- people ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pcard { padding: 16px; cursor: pointer; transition: border-color .12s, transform .12s; } .pcard:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.pcard .nm { font-weight: 650; font-size: 15px; } .pcard .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; text-align: center; }
.pcard .mini b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; } .pcard .mini span { font-size: 11.5px; color: var(--text-3); }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); margin-bottom: 12px; cursor: pointer; background: none; border: 0; padding: 0; } .back:hover { color: var(--text); }
.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }

/* ---------- drawer / modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 10, 16, .38); z-index: 40; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: var(--surface); z-index: 41; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.drawer-b { flex: 1; overflow: auto; padding: 18px 20px 28px; }
.drawer .title-in { font-size: 19px; font-weight: 650; border: 1px solid transparent; background: transparent; padding: 4px 6px; margin: 0 -6px 10px; width: calc(100% + 12px); border-radius: 6px; letter-spacing: -.01em; } .drawer .title-in:hover { border-color: var(--border); } .drawer .title-in:focus { background: var(--surface); }
.props { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; align-items: center; margin: 14px 0 20px; } .props > .lbl { margin: 0; }
.sec { margin-top: 22px; } .sec > h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.quote { border-left: 3px solid var(--border-strong); padding: 6px 12px; background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--text-2); font-size: 13px; white-space: pre-wrap; }
.sub-item { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 6px; } .sub-item:hover { background: var(--surface-2); } .sub-item.done span { text-decoration: line-through; color: var(--text-3); }
.sub-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.tl { position: relative; padding-left: 18px; } .tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl .e { position: relative; padding: 4px 0 10px; font-size: 13px; } .tl .e::before { content: ''; position: absolute; left: -17px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.tl .e.comment::before { border-color: var(--accent); background: var(--accent); }
.tl .e.reminder::before { border-color: var(--warn); }
.cmt { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-top: 4px; white-space: pre-wrap; }
.modal { position: fixed; z-index: 51; top: 6vh; left: 50%; transform: translateX(-50%); width: min(760px, 94vw); max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal-h { padding: 18px 22px 8px; } .modal-b { padding: 8px 22px 20px; } .modal-f { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); border-radius: 0 0 14px 14px; }
.samples { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; } .samples button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 99px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--text-2); } .samples button:hover { background: var(--sunken); }
.result { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 10px; background: var(--surface-2); }
.dm { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 13px; white-space: pre-wrap; } .dm .to { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; margin-bottom: 3px; }
.dm .btns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .dm .btns span { padding: 2px 9px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 12px; background: var(--surface-2); }
.dots::after { content: ''; animation: dots 1.2s steps(4) infinite; } @keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ---------- settings ---------- */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.settings .tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; align-self: start; } .settings .tabs button { text-align: left; border: 0; background: transparent; padding: 8px 12px; border-radius: 7px; cursor: pointer; color: var(--text-2); font-weight: 550; } .settings .tabs button.on { background: var(--accent-soft); color: var(--accent-strong); }
.setting { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); } .setting:first-child { border-top: 0; } .setting .d { flex: 1; } .setting .d b { display: block; } .setting .d span { color: var(--text-3); font-size: 12.5px; } .setting input[type=number] { width: 84px; }
.days { display: flex; gap: 4px; } .days button { width: 34px; height: 30px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 12px; color: var(--text-2); } .days button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.code { position: relative; background: var(--sunken); border-radius: 8px; padding: 12px; font: 12px/1.5 var(--mono); max-height: 260px; overflow: auto; white-space: pre; }

/* ---------- misc ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 14px; border-radius: 9px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); animation: pop .18s; transition: opacity .3s; font-weight: 550; } .toast.err { background: var(--bad); color: #fff; } .toast.out { opacity: 0; }
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 400px at 50% -10%, var(--accent-soft), transparent), var(--bg); }
.login .card { width: min(380px, 92vw); padding: 28px; } .login h2 { margin: 14px 0 4px; font-size: 20px; }
.skel { background: linear-gradient(90deg, var(--sunken), var(--surface-2), var(--sunken)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 90px; }
@keyframes sk { to { background-position: -200% 0; } } @keyframes fade { from { opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translate(-50%, 8px) scale(.98); } }
.toast { animation-name: fade; }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(3, 1fr); } .ov { grid-template-columns: 1fr; } .team-row { grid-template-columns: minmax(150px, 1fr) 60px 60px 110px 24px; } .team-row > :nth-child(5) { display: none; } }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; } .side-foot { display: none; } .top, .page { padding-left: 14px; padding-right: 14px; } .g2, .g3, .g4, .settings { grid-template-columns: 1fr; } .search input { width: 140px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
