/* Trainr — "Chalk & Iron". Tokens mirror docs/design.md. */
:root {
    color-scheme: dark;
    --bg: #0D0E10;
    --surface: #16181B;
    --surface-2: #1F2226;
    --line: #2B2F35;
    --text: #F2F0EB;
    --text-muted: #9A9EA5;
    --accent: #FF5A1F;
    --accent-ink: #0D0E10;
    --accent-soft: #FF5A1F24;
    --success: #3DDC97;
    --warning: #FFB020;
    --danger: #FF4D4F;
    --info: #5AA9FF;
    --grid: #22262B;
    --shadow: none;

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --r-s: 8px;
    --r-m: 14px;
    --r-l: 22px;
    --nav-w: 232px;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --bg: #F4F2ED;
        --surface: #FFFFFF;
        --surface-2: #ECE9E2;
        --line: #DAD6CD;
        --text: #141518;
        --text-muted: #63666C;
        --accent: #E5470E;
        --accent-ink: #FFFFFF;
        --accent-soft: #E5470E1A;
        --success: #16A56B;
        --warning: #C98200;
        --danger: #D92D2F;
        --info: #1F74D6;
        --grid: #E6E2DA;
        --shadow: 0 1px 2px rgba(20, 21, 24, .06);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.display {
    font-weight: 800;
    font-stretch: 125%;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
h1.display { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.accent { color: var(--accent); }
.ok { color: var(--success); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.shell { min-height: 100dvh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0;
    width: var(--nav-w);
    padding: 24px 16px;
    border-right: 1px solid var(--line);
    background: var(--bg);
    display: flex; flex-direction: column; gap: 4px;
    z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 24px; }
.brand svg { width: 34px; height: auto; color: var(--text); }
.brand span { font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }
.nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--r-s);
    color: var(--text-muted); font-weight: 600; font-size: 15px;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav-link svg { width: 20px; height: 20px; flex: none; }
.sidebar .spacer { flex: 1; }
.main { margin-left: var(--nav-w); padding: 32px clamp(16px, 4vw, 48px) 64px; max-width: calc(1180px + var(--nav-w)); }
.tabbar { display: none; }

@media (max-width: 860px) {
    .sidebar { display: none; }
    .main { margin-left: 0; padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
    .tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; inset: auto 0 0 0; z-index: 30;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--bg) 88%, transparent);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
    }
    .tabbar .nav-link { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 2px; justify-content: center; }
    .tabbar .nav-link.active { background: none; box-shadow: none; color: var(--accent); }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }

/* ---------- Surfaces ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 20px;
    box-shadow: var(--shadow);
}
.card.tight { padding: 14px 16px; }
.card.stripe { position: relative; overflow: hidden; }
.card.stripe::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line); margin: 8px 0; border: 0; }
.section { margin-top: 32px; }
.section > .eyebrow { display: block; margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px;
    border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface-2); color: var(--text);
    font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
    transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 17px; }
.btn.block { width: 100%; }
.icon-btn {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; border-radius: 999px;
    border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: .3; cursor: default; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.input, select.input, textarea.input {
    height: 42px; padding: 0 12px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s);
    outline: none; width: 100%;
}
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.num { text-align: center; }
.input.compact { height: 36px; padding: 0 8px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); }
.search .input { padding-left: 38px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    height: 32px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line); background: transparent; color: var(--text-muted);
    font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.accent-on.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--line); }
.segmented button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line); }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    height: 22px; padding: 0 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: var(--surface-2); color: var(--text-muted);
}
.badge svg { width: 12px; height: 12px; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.badge.warn { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.badge.info { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
a.list-item:hover, button.list-item:hover { background: var(--surface-2); border-radius: var(--r-s); }
button.list-item { border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; cursor: pointer; }
.list-item .chev { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.glyph {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    display: grid; place-items: center; background: var(--surface-2); color: var(--text);
}
.glyph svg { width: 20px; height: 20px; }
.glyph.accent { background: var(--accent-soft); color: var(--accent); }

.empty {
    border: 1px dashed var(--line); border-radius: var(--r-m);
    padding: 32px 20px; text-align: center; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty svg { width: 32px; height: 32px; color: var(--text-muted); }

/* ---------- Stat tiles ---------- */
.tile { padding: 16px 18px; }
.tile .value { font-family: var(--mono); font-weight: 700; font-size: 32px; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tile .value small { font-size: 14px; color: var(--text-muted); margin-left: 4px; font-weight: 600; }
.tile .label { display: flex; align-items: center; gap: 6px; }
.tile .label svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hero-card {
    padding: 24px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.hero-card h2 { font-size: 26px; font-weight: 800; font-stretch: 125%; text-transform: uppercase; margin-top: 6px; }
.hero-card .meta { display: flex; gap: 14px; margin-top: 8px; color: var(--text-muted); font-size: 14px; flex-wrap: wrap; }
.ex-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- Charts ---------- */
.chart { width: 100%; display: block; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axis-label { fill: var(--text-muted); font-size: 11px; font-family: var(--mono); }
.chart .bar { fill: var(--accent); }
.chart .bar.dim { fill: color-mix(in srgb, var(--accent) 45%, var(--surface-2)); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart g:hover .bar { filter: brightness(1.15); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#areaGrad); }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .value-label { fill: var(--text); font-size: 11px; font-family: var(--mono); font-weight: 600; }
.chart-tip {
    position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px));
    background: var(--text); color: var(--bg); padding: 6px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 600; white-space: nowrap; font-family: var(--mono);
}
.chart-wrap { position: relative; }
.hbar { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; }
.hbar .track { height: 10px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--text-muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }

/* ---------- Workout logging ---------- */
.set-grid {
    display: grid;
    grid-template-columns: 40px minmax(64px, 1.1fr) minmax(64px, 1fr) minmax(52px, .7fr) 44px;
    gap: 8px; align-items: center;
}
.set-grid.head { font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 0 0 6px; }
.set-grid.head > * { text-align: center; }
.set-row { padding: 6px 0; border-radius: 10px; transition: background .2s ease; }
.set-row.done { background: color-mix(in srgb, var(--success) 7%, transparent); }
.set-row.active { background: var(--accent-soft); }
.set-idx {
    width: 32px; height: 32px; border-radius: 999px; margin: 0 auto;
    display: grid; place-items: center;
    border: 1.5px solid var(--line); font-family: var(--mono); font-weight: 700; font-size: 13px;
    background: transparent; cursor: pointer; color: var(--text);
}
.set-idx.warmup { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 50%, var(--line)); }
.set-idx.drop { color: var(--info); border-color: color-mix(in srgb, var(--info) 50%, var(--line)); }
.set-idx.failure { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.set-row.active .set-idx { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.set-row.done .set-idx { background: var(--success); color: #07130D; border-color: var(--success); }
.check {
    width: 40px; height: 40px; border-radius: 12px; margin: 0 auto;
    display: grid; place-items: center; cursor: pointer;
    border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text-muted);
}
.check svg { width: 20px; height: 20px; }
.check:hover { border-color: var(--success); color: var(--success); }
.check.on { background: var(--success); border-color: var(--success); color: #07130D; }
.hint { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.hint svg { width: 14px; height: 14px; }
.ex-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ex-card-head h3 { font-size: 17px; }

.workout-bar {
    position: sticky; top: 0; z-index: 15;
    margin: -32px calc(-1 * clamp(16px, 4vw, 48px)) 20px; padding: 14px clamp(16px, 4vw, 48px);
    background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
@media (max-width: 860px) { .workout-bar { margin: -20px -16px 16px; padding: 12px 16px; } }
.clock { font-family: var(--mono); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }

.rest {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 24px; z-index: 40; width: min(520px, calc(100% - 32px));
    background: var(--text); color: var(--bg);
    border-radius: var(--r-l); padding: 16px 20px 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
@media (max-width: 860px) { .rest { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.rest .time { font-family: var(--mono); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.rest .bar { height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 18%, transparent); margin-top: 14px; overflow: hidden; }
.rest .bar > div { height: 100%; background: var(--accent); transition: width 1s linear; }
.rest .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 25%, transparent); }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: center; padding-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }
.cal-day {
    min-width: 0;
    min-height: 96px; padding: 8px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left;
}
.cal-day:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.cal-day.out { opacity: .4; }
.cal-day.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cal-day .d { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.cal-day.today .d { color: var(--accent-ink); background: var(--accent); border-radius: 999px; width: 26px; height: 26px; display: grid; place-items: center; }
.pill {
    font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 6px;
    background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-left: 3px solid var(--text-muted);
}
.pill.planned { border-left-color: var(--accent); }
.pill.completed { border-left-color: var(--success); color: var(--text-muted); }
.pill.done { border-left-color: var(--success); }
.pill.skipped { text-decoration: line-through; color: var(--text-muted); }
@media (max-width: 860px) {
    .cal-day { min-height: 58px; padding: 6px; }
    .cal-day .pill { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--accent); }
    .cal-day .pill.completed { background: var(--success); }
    .cal-day .pill.skipped { background: var(--text-muted); }
}
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .layout-side { grid-template-columns: 1fr; } }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 8, .6); backdrop-filter: blur(4px);
    display: grid; place-items: center; padding: 16px;
}
.modal {
    width: min(620px, 100%); max-height: min(86dvh, 820px);
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.modal-body { padding: 0 20px 16px; overflow: auto; flex: 1; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 640px) {
    .modal-backdrop { place-items: end stretch; padding: 0; }
    .modal { width: 100%; border-radius: var(--r-l) var(--r-l) 0 0; max-height: 92dvh; }
}

.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 60;
    background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; gap: 8px;
}
.toast svg { width: 16px; height: 16px; color: var(--success); }

/* ---------- Welcome ---------- */
.welcome { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: 24px clamp(16px, 5vw, 64px); }
.welcome .top { display: flex; justify-content: space-between; align-items: center; }
.welcome .hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 48px 0; }
.welcome h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 800; font-stretch: 125%; line-height: .92; text-transform: uppercase; letter-spacing: -0.02em; }
.welcome h1 em { font-style: normal; color: var(--accent); }
.welcome .lead { font-size: 18px; color: var(--text-muted); max-width: 520px; margin: 24px 0 32px; }
.welcome .features { display: grid; gap: 12px; }
.welcome .features .card { display: flex; gap: 14px; align-items: flex-start; }
.welcome .mark { width: 100%; max-width: 360px; color: var(--text); justify-self: center; }
@media (max-width: 860px) { .welcome .hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; } .welcome .mark { max-width: 200px; order: -1; justify-self: start; } }

/* ---------- Misc ---------- */
.pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--info); box-shadow: 0 0 0 0 var(--info); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--info) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.loading { color: var(--text-muted); padding: 40px 0; text-align: center; }
.error-box { border: 1px solid var(--danger); color: var(--danger); border-radius: var(--r-s); padding: 10px 14px; font-size: 14px; }

#blazor-error-ui {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: var(--danger); color: #fff; padding: 12px 20px;
}
#blazor-error-ui .reload { color: #fff; text-decoration: underline; margin-left: 8px; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }
.i14 { width: 14px; height: 14px; }
.i16 { width: 16px; height: 16px; }
.chip .i14 { width: 12px; height: 12px; }
.r { text-align: right; }
.meta-row > * { white-space: nowrap; }
.meta-row svg { flex: none; }
@media (max-width: 480px) {
    .list-item { gap: 10px; }
    .glyph { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
    .workout-bar { gap: 10px; }
    .workout-bar .btn.primary { height: 38px; padding: 0 14px; font-size: 14px; }
    .set-grid { grid-template-columns: 34px minmax(56px, 1.1fr) minmax(52px, 1fr) minmax(44px, .7fr) 42px; gap: 6px; }
}
