/* Finplan — interface styles */
:root {
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E5E7EF;
  --line-2: #F0F2F7;
  --side: #0B1220;
  --side-2: #131C2E;
  --side-ink: #A7B0C2;
  --accent: #4338CA;
  --accent-2: #EEF0FF;
  --good: #0F9D6E;
  --good-bg: #E7F7F0;
  --bad: #D93F3F;
  --bad-bg: #FDECEC;
  --warn: #C27803;
  --warn-bg: #FEF5E1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "tnum";
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.hint { color: var(--muted); font-weight: 400; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -4px; }

/* Wordmark (text-only brand) */
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -.03em; color: var(--ink); display: inline-block; }
.wordmark.light { color: #fff; }
.wordmark.lg { font-size: 28px; }
.wordmark:hover { text-decoration: none; }

/* Sidebar */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; z-index: 30; transition: transform .2s;
}
.sidebar-top { padding: 22px 22px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar .company { font-size: 12px; color: #6B7590; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.sidebar nav a, .sidebar-bottom a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 7px;
  color: var(--side-ink); font-weight: 500; margin-bottom: 2px;
}
.sidebar nav a:hover, .sidebar-bottom a:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.sidebar nav a.active, .sidebar-bottom a.active { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 #818CF8; }
.sidebar-bottom { padding: 10px; border-top: 1px solid rgba(255,255,255,.06); }

/* Main */
.main { margin-left: 236px; min-height: 100vh; }
.topbar {
  height: 64px; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 18px; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn.menu-btn { display: none; }
.content { padding: 24px 28px 48px; max-width: 1480px; }

.running-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px;
  background: var(--good-bg); color: var(--good); font-weight: 600; font-variant-numeric: tabular-nums;
}
.running-pill:hover { text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; }
.running-pill .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.user-menu { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 4px; border-radius: 8px; font: inherit; color: inherit; text-align: left; }
.avatar-btn:hover { background: var(--line-2); }
.who { display: flex; flex-direction: column; line-height: 1.2; }
.who b { font-weight: 600; font-size: 13px; }
.who small { color: var(--muted); font-size: 12px; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; box-shadow: 0 10px 30px rgba(15,23,42,.12); padding: 6px; display: none;
}
.dropdown.open { display: block; }
.dropdown a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; color: var(--ink-2); border-radius: 6px; }
.dropdown a:hover { background: var(--line-2); text-decoration: none; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-2); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12.5px; flex: none; position: relative;
}
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; margin-right: 8px; }
.avatar.live::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--good); border: 2px solid #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 8px; font: inherit; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--line-2); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #3730A3; }
.btn-danger { background: #fff; border-color: #F3C4C4; color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; display: inline-flex; list-style: none; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.link { font-size: 13px; font-weight: 500; }

/* Alerts */
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; font-size: 13.5px; }
.alert-success { background: var(--good-bg); border-color: #BDE8D6; color: #0B6E4D; }
.alert-error { background: var(--bad-bg); border-color: #F5C7C7; color: #A42A2A; }
.alert-info { background: var(--accent-2); border-color: #D5D9FF; color: #3730A3; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.range-label { color: var(--muted); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.segmented { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.segmented a { padding: 5px 12px; border-radius: 6px; color: var(--ink-2); font-weight: 500; font-size: 13px; white-space: nowrap; }
.segmented a:hover { background: var(--line-2); text-decoration: none; }
.segmented a.on { background: var(--ink); color: #fff; }
.segmented.sm a { padding: 4px 10px; }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form input, .inline-form select { height: 34px; }

/* Forms */
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 11px; height: 38px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
.inline-form input, .inline-form select { width: auto; }
input:focus, select:focus { border-color: #A5B4FC; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
input:disabled { background: var(--line-2); color: var(--muted); }
input[type=color] { padding: 3px; width: 60px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { flex-direction: row !important; align-items: center; gap: 10px !important; cursor: pointer; }
.switch input { display: none; }
.switch span { width: 36px; height: 20px; border-radius: 99px; background: #CBD5E1; position: relative; flex: none; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }

/* Cards & grid */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-3-1 { grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); }
.span-2 { grid-column: span 2; }
.badge { background: var(--line-2); color: var(--ink-2); padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.empty { color: var(--muted); padding: 22px 0; text-align: center; font-size: 13.5px; }
.empty.lg { padding: 50px 20px; }
.empty.lg .ico { width: 36px; height: 36px; color: #CBD5E1; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); color: inherit; }
.kpi-link:hover { text-decoration: none; border-color: #C7D2FE; }
.kpi-link.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: 24px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-value .of { font-size: 15px; color: var(--muted); font-weight: 500; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dot-productive { background: var(--good); } .dot-unproductive { background: var(--bad); }
.dot-neutral { background: #94A3B8; } .dot-unrated { background: #CBD5E1; }

/* Charts */
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 180px; }
.legend { list-style: none; padding: 0; margin: 16px 0 0; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.legend li b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; flex: none; }
.legend .sw { margin-right: 0; }

/* Rankings */
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.rank li:last-child { border: 0; }
.rank-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; font-weight: 500; }
.rank-body a { color: var(--ink); }
.rank b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar.warn i, .bar-unproductive i { background: var(--bad); }
.bar-productive i { background: var(--good); }
.bar-neutral i { background: #94A3B8; }
.bar-unrated i { background: #CBD5E1; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; background: var(--line-2); padding: 4px 12px 4px 4px; border-radius: 99px; font-size: 13px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.table.compact td { padding: 8px 6px; }
.table tr.dim td { opacity: .55; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.actions form { margin: 0; }
.table-scroll { overflow-x: auto; }
.w-user { white-space: nowrap; font-weight: 500; }
.w-bar { width: 30%; }
.person { display: flex; align-items: center; gap: 10px; }
.person small { display: block; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--ink-2); }
.tag-productive { background: var(--good-bg); color: var(--good); }
.tag-unproductive { background: var(--bad-bg); color: var(--bad); }
.tag-neutral { background: #EEF2F7; color: #475569; }
.tag-unrated { background: var(--warn-bg); color: var(--warn); }
.day-head { display: flex; justify-content: space-between; padding: 10px 10px; background: var(--line-2); border-radius: 6px; margin-top: 14px; font-weight: 600; font-size: 13px; }

/* Popover */
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-body {
  position: absolute; right: 0; top: calc(100% + 6px); width: 270px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.14); z-index: 10; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.pop-body form + form { border-top: 1px solid var(--line-2); padding-top: 12px; }

/* Rating buttons */
.rate { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.rate-btn { border: 0; background: #fff; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--muted); border-right: 1px solid var(--line); }
.rate-btn:last-child { border-right: 0; }
.rate-btn:hover { background: var(--line-2); }
.rate-productive.on { background: var(--good-bg); color: var(--good); font-weight: 600; }
.rate-neutral.on { background: #EEF2F7; color: #334155; font-weight: 600; }
.rate-unproductive.on { background: var(--bad-bg); color: var(--bad); font-weight: 600; }

/* Timer */
.timer-start { display: grid; grid-template-columns: 1fr 240px auto; gap: 12px; }
.timer-start input, .timer-start select { height: 44px; font-size: 15px; }
.timer-live { display: flex; align-items: center; gap: 24px; }
.timer-live > div:first-child { flex: 1; }
.timer-project { font-size: 18px; font-weight: 600; }
.timer-clock { font-size: 38px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.capture-card { margin-bottom: 20px; border-color: #C7D2FE; background: linear-gradient(0deg, #fff, #F8F9FF); }
.capture-row { display: flex; align-items: center; gap: 16px; }
.capture-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-2); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.capture-icon .ico { width: 22px; height: 22px; }
.capture-text { flex: 1; }
.capture-text h2 { font-size: 15px; margin-bottom: 2px; }
.capture-text p { margin: 0; }
.capture-card.active { border-color: #A7E3CB; background: linear-gradient(0deg, #fff, #F3FCF8); }
.capture-card.active .capture-icon { background: var(--good-bg); color: var(--good); }
.capture-stats { margin-top: 12px; font-size: 13px; color: var(--muted); padding-left: 60px; }

/* Screenshots */
.group-title { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 20px 0 4px; }
.group-title:first-child { margin-top: 0; }
.hour-head { color: var(--muted); font-size: 12.5px; font-weight: 500; margin: 14px 0 10px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.shots.mini { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; position: relative; display: block; color: inherit; transition: box-shadow .15s, transform .15s; }
.shot:hover { box-shadow: 0 6px 18px rgba(15,23,42,.1); transform: translateY(-1px); text-decoration: none; }
.shot img, .shot video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #E2E8F0; }
.shot > span { display: block; padding: 6px 9px; font-size: 12px; color: var(--muted); }
.shot figcaption { padding: 8px 10px; font-size: 12.5px; display: flex; flex-direction: column; }
.shot figcaption small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot figcaption b { color: var(--good); }
.shot figcaption b.low { color: var(--bad); }
.video-thumb { position: relative; }
.video-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.video-thumb .play .ico { width: 38px; height: 38px; padding: 10px; background: rgba(15,23,42,.65); border-radius: 50%; fill: #fff; }
.video-thumb .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(15,23,42,.75); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.pick { position: absolute; top: 6px; left: 6px; background: rgba(255,255,255,.9); border-radius: 5px; padding: 3px; display: flex; }
.pick input { width: 16px; height: 16px; margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.pager a { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lightbox { position: fixed; inset: 0; background: rgba(11,18,32,.88); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lb-inner { position: relative; max-width: 1400px; width: 100%; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; border-radius: 6px; }
.lb-cap { color: #CBD5E1; text-align: center; margin-top: 12px; font-size: 13px; }
.lb-close { position: absolute; top: -18px; right: -6px; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; }

/* Download page */
.download-hero { display: flex; gap: 24px; align-items: flex-start; }
.download-hero h2 { font-size: 20px; margin-bottom: 6px; }
.download-hero p { max-width: 560px; }
.dl-icon { width: 64px; height: 64px; border-radius: 14px; background: var(--accent-2); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.dl-icon .ico { width: 32px; height: 32px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.feature .ico { width: 24px; height: 24px; color: var(--accent); }
.feature h3 { font-size: 15px; margin: 10px 0 4px; }
.feature p { margin: 0; }

/* Settings */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1100px; }
.settings-actions { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 4px; }
form.settings-actions { margin-top: 16px; }

/* Auth */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; width: 100%; max-width: 420px; box-shadow: 0 10px 40px rgba(15,23,42,.06); }
.auth-card h1 { font-size: 22px; margin: 18px 0 4px; }
.auth-card > .wordmark + h1 { margin-top: 18px; }
.auth-card .form { margin-top: 22px; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; width: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(15,23,42,.10); border: 1px solid var(--line); }
.auth-split .auth-card { border: 0; box-shadow: none; max-width: none; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-split .auth-card h1 { margin-top: 0; }
.auth-brand { background: var(--side); color: #fff; padding: 48px; display: flex; flex-direction: column; background-image: radial-gradient(circle at 100% 0, rgba(99,102,241,.35), transparent 55%); }
.auth-brand h2 { font-size: 26px; line-height: 1.25; margin: 48px 0 24px; font-weight: 600; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; color: #C3CAD9; }
.auth-points li::before { content: "✓"; color: #818CF8; font-weight: 700; margin-right: 10px; }
.auth-foot { margin-top: auto; padding-top: 40px; font-size: 12px; color: #6B7590; }

/* Responsive */
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3-1 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .main { margin-left: 0; }
  .icon-btn.menu-btn { display: inline-flex; }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 0 16px; }
  .who { display: none; }
  .grid-2, .grid-3, .settings, .kpis-4 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: auto; }
  .timer-start { grid-template-columns: 1fr; }
  .timer-live { flex-wrap: wrap; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .table-wrap, .card { overflow-x: auto; }
  .toolbar-right { margin-left: 0; }
}

/* Help button */
.help-btn .ico { width: 20px; height: 20px; }

/* Setup link in sidebar */
.sidebar-bottom .setup-link em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; background: #312E81; color: #C7D2FE; padding: 1px 7px; border-radius: 99px; }

/* Setup card (dashboard) */
.setup-card { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; border-color: #C7D2FE; background: linear-gradient(90deg, #fff, #F7F8FF); flex-wrap: wrap; }
.setup-card-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 260px; }
.setup-card h2 { font-size: 16px; margin-bottom: 2px; }
.setup-card p { margin: 0; }
.setup-card-actions { display: flex; gap: 8px; }
.ring { --p: 0; width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), #E5E7EF 0); }
.ring span { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.setup-dots { list-style: none; display: flex; gap: 5px; margin: 0; padding: 0; }
.setup-dots li { width: 22px; height: 6px; border-radius: 99px; background: #E5E7EF; }
.setup-dots li.done { background: var(--accent); }

/* Setup page */
.setup-hero { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.setup-hero-text { flex: 1; min-width: 280px; }
.setup-hero h2 { font-size: 18px; margin-bottom: 4px; }
.setup-hero p { margin: 0 0 12px; }
.setup-hero-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.progress { height: 8px; background: #E5E7EF; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line-2); }
.checklist li:last-child { border: 0; }
.check-num { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); flex: none; }
.checklist li.done .check-num { background: var(--good); border-color: var(--good); color: #fff; }
.check-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.checklist li.done .check-body b { color: var(--muted); text-decoration: line-through; text-decoration-color: #CBD5E1; }
.check-actions { display: flex; gap: 8px; align-items: center; }
.check-actions form { margin: 0; }
.feature .btn { margin-top: 12px; }

/* Guided tour */
.tour-shade { position: fixed; inset: 0; z-index: 200; }
.tour-hole { position: fixed; z-index: 201; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(11, 18, 32, .58), 0 0 0 2px #818CF8; transition: all .25s ease; }
.tour-pop { position: fixed; z-index: 202; width: 340px; max-width: calc(100vw - 24px); background: #fff; border-radius: 12px;
  padding: 18px 18px 14px; box-shadow: 0 20px 50px rgba(11, 18, 32, .3); transition: top .25s ease, left .25s ease; }
.tour-pop h3 { font-size: 16px; margin: 4px 0 6px; }
.tour-pop p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.55; }
.tour-count { font-size: 11.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; }
.tour-actions span { display: flex; gap: 8px; }
.tour-skip { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.tour-skip:hover { color: var(--ink); }

/* Get the Apps */
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.app-card { display: flex; flex-direction: column; gap: 14px; }
.app-card .dl-icon { width: 56px; height: 56px; }
.app-card h2 { font-size: 18px; }
.app-card p { margin: 0; }
.app-card .btn-lg { align-self: flex-start; }
.url-box { display: flex; gap: 8px; align-items: center; background: var(--line-2); border-radius: 8px; padding: 8px 12px; font-family: ui-monospace, monospace; font-size: 13px; }
@media (max-width: 860px) {
  .apps-grid { grid-template-columns: 1fr; }
  .checklist li { flex-wrap: wrap; }
  .check-actions { width: 100%; padding-left: 46px; }
  .setup-hero-actions { align-items: stretch; width: 100%; }
}
.setup-hero + .card { margin-bottom: 20px; }
