/* Fitness Dashboard - dark by default (based on Tim's dark mockup); light available via toggle */
:root {
  /* Colours sampled from Tim's dark mockup */
  color-scheme: dark;
  --page: #07111b;
  --side: #08111c;
  --topbar: #111e2f;
  --card: #0e1a26;
  --card-2: #142131;
  --tint: #10263a;
  --text: #eef2f8;
  --text-2: #a8b3c4;
  --muted: #667382;
  --grid: #18263a;
  --axis: #24354c;
  --border: rgba(120,150,190,0.10);
  --shadow: 0 10px 30px rgba(0,0,0,.30);
  --accent: #04d6f1;
  --accent-soft: rgba(4,214,241,.12);
  --icon: #5fb4f0;
  --kcal: #f7894a;
  --protein: #1bd6a6;
  --carbs: #31a2f7;
  --fat: #fbb16c;
  --burn: #f7894a;
  --bb: #1fd0e0;
  --bbseg: #00d2b4;
  --run: #f7894a;
  --deep: #5a3cea; --light: #1866f0; --rem: #9684f6; --awake: #f66630;
  --good: #00dcae; --warn: #f5c451; --bad: #ff6f61;
  --good-bg: #063c30; --warn-bg: rgba(245,196,81,.14); --bad-bg: rgba(255,111,97,.14);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mtn1: #0f1d2d; --mtn2: #132338; --mtn3: #182b43; --snow: #2c3e57;
}
:root[data-theme="light"] {
  color-scheme: light;
  --topbar: #ffffff; --icon: #1f7fd6; --bbseg: #0f9f8a;
  --page: #f3f6fb; --side: #ffffff; --card: #ffffff; --card-2: #f1f5fb; --tint: #e9f2fd;
  --text: #0e1726; --text-2: #4a5566; --muted: #7a8496; --grid: #e6ebf2; --axis: #cdd5e1;
  --border: rgba(14,23,38,0.08); --shadow: 0 1px 2px rgba(14,23,38,.04), 0 6px 20px rgba(14,23,38,.06);
  --accent: #0f8fb0; --accent-soft: rgba(15,143,176,.12);
  --kcal: #e8672a; --protein: #12966a; --carbs: #1f7fd6; --fat: #b98300; --burn: #e8672a; --bb: #0f9fb8; --run: #e8672a;
  --deep: #4c3fd0; --light: #2f7fe0; --rem: #8a63e0; --awake: #e8603a;
  --good: #0c8a3e; --warn: #9a6400; --bad: #b42323;
  --good-bg: #e3f5ea; --warn-bg: #fff4d6; --bad-bg: #fde8e8;
  --mtn1: #e3eaf4; --mtn2: #d5dfec; --mtn3: #c5d3e5; --snow: #f5f8fc;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- shell: top bar + sidebar ---------- */
.shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--topbar); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 800; letter-spacing: .2em; font-size: 17px; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 600; letter-spacing: .14em; margin-left: 10px; }
.top .spacer { flex: 1; }
.datectl { display: flex; align-items: center; gap: 6px; }
.datectl .d { font-weight: 550; padding: 0 6px; white-space: nowrap; }
.iconbtn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--text-2); padding: 0; position: relative; }
.iconbtn:hover { color: var(--text); background: var(--card-2); }
.iconbtn:disabled { opacity: .3; cursor: default; background: none; }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn input[type=date] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pillbtn { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.pillbtn:hover { color: var(--text); }

.side { background: var(--side); border-right: 1px solid var(--border); padding: 18px 0; position: sticky; top: 63px; height: calc(100vh - 63px); display: flex; flex-direction: column; }
.side nav { display: grid; gap: 2px; }
.side button { display: flex; align-items: center; gap: 14px; border: 0; background: none; color: var(--text-2); padding: 12px 22px; cursor: pointer; text-align: left; font-size: 15px; border-left: 3px solid transparent; }
.side button svg { width: 20px; height: 20px; flex: none; }
.side button:hover { color: var(--text); }
.side button[aria-current="page"] { color: var(--text); background: linear-gradient(90deg, var(--accent-soft), transparent); border-left-color: var(--accent); font-weight: 600; }
.side .motto { margin-top: auto; padding: 0 22px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.side .motto svg { width: 46px; height: 24px; display: block; margin-bottom: 8px; }

.main { padding: 0 24px 40px; min-width: 0; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 63px; height: auto; flex-direction: row; padding: 0; z-index: 4; border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .side nav { display: flex; }
  .side button { padding: 12px 14px; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .side button[aria-current="page"] { background: none; border-bottom-color: var(--accent); }
  .side .motto { display: none; }
  .main { padding: 0 16px 40px; }
  .brand span { display: none; }
  .top { padding: 12px 16px; }
  .hide-sm { display: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; margin: 0 -24px 20px; padding: 28px 24px 26px; }
.hero svg.scene { position: absolute; inset: 0 0 0 auto; width: 100%; height: 100%; pointer-events: none; }
.hero h1 { position: relative; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.05; margin: 0; letter-spacing: -.02em; font-weight: 800; }
.hero p.tag { position: relative; margin: 8px 0 0; font-size: clamp(16px, 2vw, 21px); color: var(--text-2); }
.hero .quote { position: absolute; right: 24px; top: 30px; max-width: 280px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.hero .quote::after { content: ""; display: block; width: 22px; height: 2px; background: var(--accent); margin-top: 12px; }
@media (max-width: 900px) { .hero { margin: 0 -16px 16px; padding: 22px 16px; } .hero .quote { display: none; } }

/* ---------- grid ---------- */
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row2 { grid-template-columns: minmax(0, 5fr) minmax(0, 3.4fr) minmax(0, 4fr); }
.row3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1250px) { .row2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .row2 > :first-child { grid-column: 1 / -1; } .row3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 1050px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .kpis, .row2, .row3, .cols2, .cols3 { grid-template-columns: minmax(0, 1fr); } }
.mt { margin-top: 16px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 28px; }
.card-h h2 { font-size: 18px; margin: 0; font-weight: 650; }
.card-h .hico { color: var(--icon); display: inline-grid; }
.card-h .hico svg { width: 22px; height: 22px; }
.card-h .aside { margin-left: auto; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.card-h .aside .big-inline { font-size: 22px; font-weight: 700; color: var(--text); }
.chipinfo { margin-left: auto; font-size: 12.5px; color: var(--text-2); border: 1px solid var(--border); background: var(--card-2); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.linkbtn { margin-left: auto; border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }

/* KPI */
.kpi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; align-items: end; }
.kpi .card-h { grid-column: 1 / -1; margin-bottom: 6px; }
.kpi .card-h h2 { font-size: 16px; font-weight: 600; }
.big { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.big small { font-size: 18px; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.sub { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.delta { font-size: 14px; font-weight: 600; margin-top: 8px; display: flex; gap: 4px; align-items: center; }
.delta svg { width: 16px; height: 16px; }
.good { color: var(--good); } .bad { color: var(--bad); } .flat { color: var(--text-2); }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.vizcap { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }

/* rings */
.rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; justify-items: center; }
.ring { position: relative; width: 100%; max-width: 170px; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; }
.ring .in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .in svg { width: 18px; height: 18px; margin: 0 auto 2px; }
.ring .in .l { font-size: 13px; color: var(--text-2); }
.ring .in .v { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.1; }
.ring .in .t { font-size: 12.5px; color: var(--text-2); }
.ring-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-top: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; }

/* rows (energy / list) */
.erow { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--grid); }
.erow:last-child { border-bottom: 0; }
.erow svg { width: 22px; height: 22px; }
.erow .l { color: var(--text-2); }
.erow .l .d { font-size: 12.5px; color: var(--muted); }
.erow .v { font-size: 22px; font-weight: 700; white-space: nowrap; }
.erow .v small { font-size: 14px; color: var(--text-2); font-weight: 500; }

.meal { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--grid); }
.meal:last-child { border-bottom: 0; }
.meal .mi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); }
.meal .mi svg { width: 22px; height: 22px; }
.meal .t { font-weight: 650; }
.meal .items { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal .mac { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
.tag svg { width: 14px; height: 14px; }
.tag.ok { background: var(--good-bg); color: var(--good); }
.tag.none { background: var(--card-2); color: var(--muted); }

.act { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--grid); }
.act:last-child { border-bottom: 0; }
.act .ai { width: 52px; height: 52px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; color: var(--text-2); }
.act .ai svg { width: 26px; height: 26px; }
.act .ai.run { color: var(--run); background: color-mix(in srgb, var(--run) 14%, transparent); }
.act .t { font-weight: 650; }
.act .m { font-size: 14px; font-weight: 600; }
.act .d { font-size: 12.5px; color: var(--muted); }
.act .when { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; align-self: start; padding-top: 4px; }

.foot3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.foot3 > div { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; }
.foot3 svg { width: 20px; height: 20px; grid-row: span 2; }
.foot3 b { font-size: 18px; }
.foot3 span { font-size: 12.5px; color: var(--muted); }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin-top: 10px; font-size: 13px; }
.stages i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.stages b { display: block; font-size: 15px; }
.twodelta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.twodelta b { font-size: 18px; display: flex; align-items: center; gap: 6px; }
.twodelta span { font-size: 12.5px; color: var(--muted); }

/* banners + sync */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; border: 1px solid var(--border); }
.banner.warn { background: var(--warn-bg); } .banner.bad { background: var(--bad-bg); }
.banner b { color: var(--warn); } .banner.bad b { color: var(--bad); }
.syncpill { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-top: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

/* tables, tiles, forms */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.grp td { font-weight: 700; background: var(--card-2); }
tr.tot td { font-weight: 750; border-top: 2px solid var(--axis); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tile { background: var(--card-2); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.tile .k { font-size: 12.5px; color: var(--muted); }
.tile .v { font-size: 24px; font-weight: 700; margin-top: 2px; }
.tile .v small { font-size: 14px; color: var(--text-2); font-weight: 500; }
.tile .s { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.chart { position: relative; height: 270px; }
.chart.sm { height: 210px; }
.seg { display: inline-flex; background: var(--card-2); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
select, input[type=text], input[type=number], input[type=date], input[type=email] { padding: 9px 12px; border: 1px solid var(--axis); border-radius: 10px; background: var(--card-2); min-width: 0; }
.form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.form label { display: grid; gap: 5px; font-size: 13px; color: var(--text-2); }
.btn { border: 0; background: var(--accent); color: #04222c; font-weight: 700; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
:root[data-theme="light"] .btn { color: #fff; }
.btn.ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.pagehead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.pagehead h1 { margin: 0; font-size: 32px; letter-spacing: -.02em; }
.pagehead p { margin: 0; color: var(--text-2); }
.h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; font-weight: 650; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
.login { max-width: 440px; margin: 12vh auto; }

/* v2 refinements */
.delta { white-space: nowrap; font-size: 14px; }
.delta .dsuf { color: var(--muted); font-weight: 500; margin-left: 4px; }
.hero .syncpill { display: flex; width: max-content; }
.twodelta svg { width: 18px; height: 18px; }
.progwrap { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.progwrap svg { flex: 1; }
.kpi .card-h .aside { font-size: 12px; }
.act { grid-template-columns: 44px minmax(0,1fr) auto; }
.act .ai { width: 44px; height: 44px; }
.act .ai svg { width: 22px; height: 22px; }
.act .d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid.row3 > .card, .grid.row2 > .card { display: flex; flex-direction: column; }
@media (max-width: 640px) {
  .chipinfo { display: none; }
  .ring .in .v { font-size: 20px; } .ring .in .t, .ring .in svg { display: none; }
  .ring-note { font-size: 11.5px; }
  .big { font-size: 34px; }
}

.chips { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: auto; padding-top: 16px; }
.chip { background: var(--card-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.chip .k { font-size: 12px; color: var(--muted); }
.chip .v { font-size: 19px; font-weight: 700; }
.linkbtn { white-space: nowrap; }
.stages > div { white-space: nowrap; }
.stages b { font-size: 14px; }
.progwrap svg { width: 100%; height: 6px; }
.kpi .viz { min-width: 0; overflow: hidden; }
.card-h h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .chips { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.kpi .delta { flex-wrap: wrap; white-space: normal; }
.kpi .delta .dsuf { flex-basis: 100%; margin-left: 0; font-size: 12.5px; }
.ring { max-width: 190px; }

/* Density closer to the mockup */
body { font-size: 14px; }
.hero { padding: 20px 24px 14px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(28px, 3.4vw, 40px); }
.hero p.tag { font-size: clamp(15px, 1.6vw, 19px); margin-top: 4px; }
.hero .syncpill { margin-top: 8px; }
.card { padding: 16px 18px; }
.card-h { margin-bottom: 10px; }
.card-h h2 { font-size: 16px; }
.kpi .card-h h2 { font-size: 15px; }
.big { font-size: 34px; }
.big small { font-size: 16px; }
.grid { gap: 14px; }
.mt { margin-top: 14px; }
.erow { padding: 12px 0; }
.erow .v { font-size: 20px; }
.meal { padding: 8px 0; }
.act { padding: 8px 0; }
.ring { max-width: 160px; }
.chips { padding-top: 12px; }
.chip .v { font-size: 17px; }

/* Hero photo (Tim's own light and dark versions) */
.hero { background-color: var(--page); background-image: linear-gradient(90deg, var(--page) 0%, rgba(0,0,0,0) 48%), linear-gradient(0deg, var(--page) 0%, rgba(0,0,0,0) 35%), url("hero-dark.jpg");
  background-size: auto, auto, cover; background-position: 0 0, 0 0, right 42%; background-repeat: no-repeat; min-height: 190px; }
:root[data-theme="light"] .hero { background-image: linear-gradient(90deg, var(--page) 0%, rgba(255,255,255,0) 45%), linear-gradient(0deg, var(--page) 0%, rgba(255,255,255,0) 35%), url("hero-light.jpg"); }
.hero .quote { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
:root[data-theme="light"] .hero .quote { text-shadow: none; color: var(--text); }
@media (max-width: 900px) { .hero { background-position: 0 0, 0 0, 70% 40%; min-height: 160px; } }
:root[data-theme="light"] .hero .quote { background: rgba(255,255,255,.72); padding: 8px 12px; border-radius: 10px; }

.freshline { position: relative; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.fresh { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fresh b { color: var(--text); font-weight: 600; }

/* ---- period views (Today / 7 days / 14 days) */
.periodbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -4px 0 16px; }
.periodbar .small { font-size: 12.5px; }
.chart.xs { height: 172px; }
.erow.total { border-top: 1px solid var(--axis); border-bottom: 0; margin-top: 2px; }
.erow.total .l { color: var(--text); font-weight: 600; }
.pillbtn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 650; cursor: default; }
.progwrap { min-width: 0; } .progwrap svg { min-width: 0; } .progwrap span { flex: none; }
@media (max-width: 480px) {
  .top { gap: 4px; padding: 10px 12px; }
  .brand { font-size: 15px; letter-spacing: .14em; }
  .datectl { gap: 0; }
  .iconbtn { width: 30px; height: 30px; }
  .top .pillbtn { padding: 5px 10px; font-size: 12.5px; margin-left: 2px; }
}
tr.click { cursor: pointer; }
tr.click:hover td, tr.click:focus-visible td { background: var(--card-2); }
tr.click:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---- version footer and What's new */
.appfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 28px; padding: 14px 0 6px; border-top: 1px solid var(--grid); color: var(--muted); font-size: 12.5px; }
.appfoot span:first-child { color: var(--text-2); font-weight: 600; letter-spacing: .02em; }
.appfoot .linkbtn { font-size: 12.5px; margin-left: 0; }
.releases { display: grid; gap: 14px; max-width: 820px; }
.release ul { margin: 4px 0 0; padding-left: 20px; color: var(--text-2); line-height: 1.55; }
.release li + li { margin-top: 4px; }
.vchip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--text-2); font-variant-numeric: tabular-nums; }
.vchip.cur { background: var(--accent-soft); color: var(--accent); }
.login .vfoot { margin: 14px 0 0; }
/* version in the sidebar on desktop; footer only where the sidebar collapses */
.side .sidever { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--grid); }
.side .sidever .linkbtn { margin-left: 0; font-size: 13px; padding: 0; border: 0; width: auto; }
.appfoot { display: none; }
.side .sidever .linkbtn { background: none; color: var(--accent); font-weight: 500; }
.side .sidever .linkbtn:hover { text-decoration: underline; }
@media (max-width: 900px) { .appfoot { display: flex; } }
/* OAuth consent (ChatGPT connector sign-in) */
.consent h2 { text-wrap: balance; }
.consentd { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; color: var(--text-2); }
.consentd dt { color: var(--muted); } .consentd dd { margin: 0; word-break: break-word; }
.consentb { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
