:root, [data-theme="dark"] {
  --bg: #080c18; --bg2: #0d1326; --panel: #121a31; --panel2: #18223f; --line: #243056; --line2: #2f3d6b;
  --text: #eaf0ff; --muted: #8c9ac4; --faint: #5d6a94;
  --accent: #3b7bff; --accent2: #7a5cff; --accent-soft: rgba(59,123,255,.16);
  --good: #2fd08a; --warn: #ffb547; --bad: #ff5d73; --info: #38c6ff;
  --shadow: 0 10px 40px rgba(0,0,0,.45); --glow: 0 0 0 1px rgba(59,123,255,.35), 0 8px 30px rgba(59,123,255,.18);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f1f4fb; --bg2: #e8edf8; --panel: #ffffff; --panel2: #f5f7fd; --line: #dde3f2; --line2: #c8d1e8;
  --text: #121a33; --muted: #5a668a; --faint: #8e99b8;
  --accent: #2459e6; --accent2: #6b4de6; --accent-soft: rgba(36,89,230,.1);
  --good: #12a86b; --warn: #d68a00; --bad: #e0344f; --info: #0a8fc4;
  --shadow: 0 8px 28px rgba(30,45,90,.1); --glow: 0 0 0 1px rgba(36,89,230,.3), 0 8px 24px rgba(36,89,230,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(122,92,255,.16), transparent 60%),
                    radial-gradient(700px 500px at -5% 10%, rgba(59,123,255,.14), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .gap-s { gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hide { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, var(--bg2), var(--bg)); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 18px; }
.logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 6px 18px rgba(59,123,255,.4);
}
.logo svg { width: 20px; height: 20px; stroke: #fff; }
.brand b { display: block; font-size: 16px; letter-spacing: -.01em; }
.brand span { font-size: 12px; color: var(--muted); }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted);
  text-decoration: none; font-weight: 500; transition: .15s; position: relative;
}
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: var(--accent-soft); color: var(--text); }
.nav a.on { background: linear-gradient(90deg, var(--accent-soft), transparent); color: var(--text); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); }
.nav a.on svg { color: var(--accent); }
.badge-n { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.side .foot { margin-top: auto; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
}
.main { padding: 26px 32px 60px; max-width: 1280px; width: 100%; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.topbar .title { flex: 1; min-width: 0; }
.topbar .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.btn.burger { display: none; }

/* ---------- ui ---------- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel)); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow); min-width: 0;
}
.card > .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card .head h2 { display: flex; align-items: center; gap: 9px; }
.card .head h2 svg { width: 18px; height: 18px; color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line2); background: var(--panel2);
  padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(59,123,255,.3); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--accent-soft); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; white-space: nowrap;
}
.pill.good { background: rgba(47,208,138,.14); color: var(--good); } .pill.warn { background: rgba(255,181,71,.15); color: var(--warn); }
.pill.bad { background: rgba(255,93,115,.14); color: var(--bad); } .pill.info { background: rgba(56,198,255,.14); color: var(--info); }
.pill.mute { background: var(--panel2); color: var(--muted); border-color: var(--line); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-dash { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.empty { text-align: center; padding: 26px 10px; color: var(--faint); }
.empty svg { width: 34px; height: 34px; margin-bottom: 8px; opacity: .6; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; transition: .15s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

.progress { height: 9px; background: var(--bg2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .5s; }
.progress.good i { background: linear-gradient(90deg, #17b877, var(--good)); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--accent-soft); }
.stat .lbl { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat .val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; }
.stat .sub { font-size: 13px; color: var(--muted); }

/* list items */
.item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.item + .item { margin-top: 9px; }
.item.unread { border-color: var(--accent); box-shadow: var(--glow); }
.item .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--accent); }
.item .body { white-space: pre-wrap; word-break: break-word; color: var(--text); margin-top: 4px; }
.bar-l { border-left: 4px solid var(--accent); }
.bar-l.sale { border-left-color: var(--good); } .bar-l.delivery { border-left-color: var(--info); }
.bar-l.markdown { border-left-color: var(--warn); } .bar-l.meeting { border-left-color: var(--accent2); } .bar-l.other { border-left-color: var(--faint); }
.bar-l.urgent { border-left-color: var(--bad); } .bar-l.important { border-left-color: var(--warn); }

.tabs { display: inline-flex; padding: 4px; gap: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tabs button.on { background: var(--panel); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); gap: 1px; }
.cal .dow { background: var(--panel2); padding: 9px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cal .day { background: var(--panel); min-height: 112px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: background .12s; }
.cal .day:hover { background: var(--panel2); }
.cal .day.other { background: var(--bg2); } .cal .day.other .num { color: var(--faint); }
.cal .num { font-size: 13px; font-weight: 700; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal .day.today .num { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.chip { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
  background: var(--accent-soft); color: var(--accent); border-left: 3px solid var(--accent); }
.chip.sale { background: rgba(47,208,138,.14); color: var(--good); border-color: var(--good); }
.chip.delivery { background: rgba(56,198,255,.14); color: var(--info); border-color: var(--info); }
.chip.markdown { background: rgba(255,181,71,.16); color: var(--warn); border-color: var(--warn); }
.chip.meeting { background: rgba(122,92,255,.16); color: var(--accent2); border-color: var(--accent2); }
.chip.other { background: var(--panel2); color: var(--muted); border-color: var(--faint); }
.more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* checklist */
.todo { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; }
.todo + .todo { margin-top: 8px; }
.todo:hover { border-color: var(--accent); }
.todo .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line2); display: grid; place-items: center; flex: none; transition: .15s; }
.todo.done .box { background: var(--good); border-color: var(--good); }
.todo.done .box svg { width: 14px; height: 14px; stroke: #fff; }
.todo .box svg { display: none; } .todo.done .box svg { display: block; }
.todo.done .lbl { text-decoration: line-through; color: var(--faint); }

/* sales chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; position: relative; }
.bars .b { width: 100%; max-width: 38px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--accent), var(--accent2)); min-height: 3px; }
.bars .b.hit { background: linear-gradient(180deg, #3fe0a0, #12a86b); }
.bars .tick { position: absolute; left: -2px; right: -2px; border-top: 2px dashed var(--warn); opacity: .8; }
.bars .x { font-size: 11px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }

/* modal & toast */
.overlay { position: fixed; inset: 0; background: rgba(4,7,16,.65); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s; }
.modal { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); animation: pop .18s; }
.modal h2 { font-size: 19px; margin-bottom: 16px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
#toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 99; }
.toast { padding: 11px 16px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 600; animation: pop .2s; }
.toast.err { border-color: var(--bad); color: var(--bad); }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .box { width: 100%; max-width: 410px; }
.auth .hero { text-align: center; margin-bottom: 24px; }
.auth .hero .logo { margin: 0 auto 14px; width: 56px; height: 56px; border-radius: 16px; }
.auth .hero .logo svg { width: 28px; height: 28px; }
.auth h1 { font-size: 28px; }
.err-msg { color: var(--bad); font-size: 14px; min-height: 20px; }
.theme-fab { position: fixed; top: 16px; right: 16px; }

@media (max-width: 1050px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-dash, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; width: 268px; transform: translateX(-105%); transition: transform .22s; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 39; }
  .btn.burger { display: inline-flex; }
  .main { padding: 18px 16px 60px; }
  .g2 { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .cal .day { min-height: 74px; padding: 4px; } .cal .chip { font-size: 10px; padding: 1px 4px; }
  .cal .dow { padding: 6px 2px; font-size: 10px; }
  .stat .val { font-size: 23px; }
}
@media (max-width: 480px) { .stats { gap: 10px; } .stat { padding: 13px; } .cal .chip { display: none; } .cal .dots { display: flex !important; } }
.cal .dots { display: none; gap: 3px; flex-wrap: wrap; } .cal .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media print { .side, .topbar .btn, #toasts { display: none !important; } .shell { display: block; } }

/* ---------- embroidery ticket board ---------- */
.tk-search { position: relative; } .tk-search span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); display: grid; }
.tk-search span svg { width: 16px; height: 16px; } .tk-search input { padding-left: 34px; width: 250px; }
.tk-board { display: grid; grid-template-columns: repeat(5, minmax(235px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.tk-col { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, var(--panel)) 0, var(--panel) 170px); border: 1px solid var(--line); border-top: 3px solid var(--c);
  border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tk-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; }
.tk-body { display: flex; flex-direction: column; gap: 10px; min-height: 90px; border-radius: 10px; transition: background .12s; }
.tk-body.over { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: 2px; }
.tk-card { background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--line2)); border-radius: 11px; padding: 11px 12px; display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.tk-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.tk-card.drag { opacity: .45; }
.tk-num { font-size: 16px; } .tk-desc { font-weight: 600; word-break: break-word; white-space: pre-wrap; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tk-chip { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; cursor: pointer; white-space: nowrap; border: 2px solid transparent; }
.tk-chip.plain { background: var(--bg2); color: var(--muted); border-color: var(--line); cursor: default; } .tk-chip.on { border-color: var(--text); }
.tk-sold.click { cursor: pointer; color: var(--accent); font-weight: 600; } .tk-sold.on { text-decoration: underline; }
.tk-add { background: transparent; border: 1px dashed var(--line2); border-radius: 10px; padding: 9px; color: var(--muted); cursor: pointer; font-weight: 600; }
.tk-add:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.tk-tabs { display: none; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.tk-tabs button { border: 1px solid var(--line); border-bottom: 3px solid var(--c); background: var(--panel); border-radius: 9px; padding: 7px 12px; white-space: nowrap; font-weight: 600; cursor: pointer; }
.tk-tally { display: flex; flex-wrap: wrap; gap: 12px; } .tk-tally .stat { padding: 12px 16px; } .tk-tally .stat .val { font-size: 24px; }
.tk-tally .stat.click { cursor: pointer; } .tk-tally .stat.click:hover, .tk-tally .stat.on { border-color: var(--accent); box-shadow: var(--glow); }
.tk-lbls { display: flex; flex-wrap: wrap; gap: 7px; }
.tk-lbl { border: 2px solid var(--c); background: transparent; color: var(--muted); border-radius: 9px; padding: 6px 11px; font-weight: 700; font-size: 13px; cursor: pointer; transition: .12s; }
.tk-lbl.big { padding: 9px 14px; font-size: 14px; } .tk-lbl small { opacity: .8; font-weight: 600; } .tk-lbl:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.tk-lbl.on:hover { filter: brightness(1.08); }
.tk-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.stat.click { cursor: pointer; }
@media (max-width: 860px) {
  .tk-tabs { display: flex; }
  .tk-board { grid-template-columns: repeat(5, 86%); scroll-snap-type: x mandatory; }
  .tk-col { scroll-snap-align: start; } .tk-search input { width: 100%; } .tk-search { flex: 1 1 100%; }
}

/* ---------- dashboard, weather, weekly sales ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin-bottom: 18px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: radial-gradient(600px 260px at 100% 0, rgba(122,92,255,.22), transparent 70%), radial-gradient(500px 240px at 0 100%, rgba(59,123,255,.2), transparent 70%), var(--panel); }
.hero.solo { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; margin: 4px 0 2px; }
.hero-date { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.hero-banner { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--line2); font-weight: 600; }
.hero-banner svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
.wx { background: rgba(127,140,190,.1); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(6px); }
.wx-now { display: flex; align-items: center; gap: 14px; } .wx-ico { flex: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.wx-temp { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; } .wx-cond { font-size: 16px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.wx-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 10px 0 12px; } .wx-meta svg { width: 14px; height: 14px; vertical-align: -2px; }
.wx-meta b { color: var(--text); }
.wx-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.wx-day { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; } .wx-day > span:first-child { color: var(--muted); font-weight: 600; } .wx-pop { font-size: 11px; color: var(--info); font-weight: 700; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; } .dash-grid .wide { grid-column: 1 / -1; }
.ring { position: relative; flex: none; } .ring svg { width: 100%; height: 100%; display: block; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .ring-in b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; } .ring-in span { font-size: 12px; color: var(--muted); }
.wk { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; } .wk-main { flex: 1 1 280px; min-width: 0; }
.wk-bars { display: flex; align-items: flex-end; gap: 7px; height: 130px; flex: 0 1 230px; } .wk-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.wk-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--bg2); border-radius: 7px; overflow: hidden; } .wk-bar i { display: block; width: 100%; background: linear-gradient(180deg, var(--accent), var(--accent2)); border-radius: 7px 7px 0 0; }
.wk-col span { font-size: 11px; color: var(--muted); font-weight: 600; } .wk-col.today span { color: var(--accent); font-weight: 800; }
.lbl { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sl-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-top: 16px; } .sl-grid b { font-size: 20px; }
.sl-warn { margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: rgba(255,181,71,.14); color: var(--warn); font-weight: 600; font-size: 14px; } .sl-warn svg { width: 16px; height: 16px; flex: none; }
.sl-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; } .sl-nums { flex: 1 1 320px; min-width: 0; }
.sl-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; border-color: var(--accent); box-shadow: var(--glow); }
.pace { width: 100%; height: auto; display: block; } tr.row-on td { background: var(--accent-soft); }
.sl-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sl-day { display: flex; flex-direction: column; gap: 4px; padding: 14px; } .sl-day.today { border-color: var(--accent); box-shadow: var(--glow); } .sl-day.future { opacity: .55; }
.sl-amt { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; } .sl-note { min-height: 20px; margin-bottom: 8px; }
@media (max-width: 1050px) { .hero { grid-template-columns: 1fr; } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hero { padding: 18px; } .hero h1 { font-size: 25px; } .wx-temp { font-size: 38px; } }

/* ---------- small-screen fixes ---------- */
.field { min-width: 0; } .main { min-width: 0; }
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; } .topbar .title { flex: 1 1 0; }
  .topbar > .row, .topbar > .tabs { flex: 1 1 100%; width: 100%; }
  .tk-search input { width: 100%; }
}
@media (max-width: 560px) {
  .stack .row:has(> .field), .modal .row:has(> .field) { flex-wrap: wrap; } .row > .field { flex: 1 1 100% !important; }
}

/* ---------- tasks ---------- */
.ts-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.ts-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.ts-card.high { border-left-color: var(--warn); } .ts-card.done { border-left-color: var(--good); opacity: .88; }
.ts-title { font-size: 17px; font-weight: 700; word-break: break-word; } .ts-card.done .ts-title { text-decoration: line-through; color: var(--muted); }
.ts-notes { margin-top: 10px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.ts-items { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.ts-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); cursor: pointer; }
.ts-item:hover { border-color: var(--accent); } .ts-item.on span.grow { text-decoration: line-through; color: var(--faint); } .ts-item.ro { cursor: default; } .ts-item.ro:hover { border-color: var(--line); }
.ts-signed { margin-top: 12px; display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 11px; background: rgba(47,208,138,.12); } .ts-signed > svg { width: 20px; height: 20px; color: var(--good); flex: none; margin-top: 1px; }
.ts-group + .ts-group { margin-top: 10px; } .ts-group .ts-card + .ts-card { margin-top: 12px; }
.ts-people { display: flex; flex-wrap: wrap; gap: 8px; } .ts-person { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel2); cursor: pointer; }
.ts-person:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- wider ticket board ---------- */
.main.wide { max-width: none; padding-left: 28px; padding-right: 28px; }
.main.wide .tk-board { grid-template-columns: repeat(5, minmax(290px, 1fr)); gap: 18px; }
.main.wide .tk-col { padding: 14px; gap: 12px; }
.main.wide .tk-card { padding: 14px 16px; gap: 10px; font-size: 15.5px; }
.main.wide .tk-desc { font-size: 16.5px; } .main.wide .tk-num { font-size: 18px; } .main.wide .tk-chip { font-size: 12.5px; padding: 3px 9px; }
.main.wide .tk-body { gap: 12px; }
@media (max-width: 860px) { .main.wide { padding-left: 16px; padding-right: 16px; } .main.wide .tk-board { grid-template-columns: repeat(5, 86%); } }

/* ---------- compact ticket cards ---------- */
.tk-card, .main.wide .tk-card { padding: 9px 11px; gap: 6px; font-size: 14px; border-radius: 10px; }
.tk-body, .main.wide .tk-body { gap: 8px; }
.tk-num, .main.wide .tk-num { font-size: 15px; }
.tk-desc, .main.wide .tk-desc { font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tk-chips { gap: 4px; } .tk-chip, .main.wide .tk-chip { font-size: 11px; padding: 1px 7px; }
.tk-card .pill { padding: 1px 8px; font-size: 11px; }
.tk-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.tk-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-foot .btn.icon { padding: 3px 6px; } .tk-foot .btn.icon svg { width: 14px; height: 14px; }
.main.wide .tk-col { padding: 12px; gap: 10px; } .main.wide .tk-board { gap: 14px; }
