/* Issue 27. Shared UI tokens; no storage, catalogue or payment behaviour. */
:root {
  --bg: #101113;
  --surface: #1a1c20;
  --surface2: #23262b;
  --line: #32353b;
  --text: #f5f3ef;
  --muted: #a7a9af;
  --blue: #3884ff;
  --cyan: #9dc6ff;
  --accent: #3884ff;
  --accent-rgb: 56, 132, 255;
  --accent-ink: #ffffff;
  --radius: 16px;
  --focus-ring: #b8d7ff;
  --panel-bg: #1a1c20;
  --panel-shadow: none;
}
:root[data-theme="green"] {
  --bg: #101312;
  --surface: #1a201d;
  --surface2: #242c27;
  --line: #343d37;
  --text: #f4f5ef;
  --muted: #a7b1a9;
  --blue: #50d69a;
  --cyan: #9cecc5;
  --accent: #50d69a;
  --accent-rgb: 80, 214, 154;
  --accent-ink: #071a11;
  --focus-ring: #bcf8dc;
  --panel-bg: #1a201d;
}
html { background: #0b0c0e; color-scheme: dark; }
body { font-size: 15px; line-height: 1.55; }
main {
  background: var(--bg);
  border-color: var(--line);
}
.topbar { height: 72px; padding-inline: 20px; }
.brand { letter-spacing: .8px; font-size: 20px; }
.brand .brand-accent, .brand .icon { color: var(--accent); }
.brand, .demo-pill { min-height: 44px; }
.demo-pill { color:var(--cyan); border-color:var(--line); background:var(--surface); padding-inline:10px; }
.avatar { min-width:44px; min-height:44px; color:var(--cyan); background:linear-gradient(145deg,var(--surface2),var(--surface)); border-color:var(--line); }
.content { padding: 10px 20px calc(114px + var(--safe)); }
.content.no-nav { padding-bottom: calc(32px + var(--safe)); }
h1 { font-size: clamp(27px, 7.5vw, 34px); letter-spacing: -.9px; line-height: 1.13; }
.sub { font-size: 13px; color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--cyan); letter-spacing: 1.7px; }
.card, .settings-disclosure { background: var(--panel-bg); box-shadow: var(--panel-shadow); border-color: var(--line); }
.btn {
  min-height: 50px; border-radius: 15px;
  background: var(--accent);
  border-color: transparent; color: var(--accent-ink);
  box-shadow: none; font-size: 14px;
}
.btn.secondary, .btn.ghost { color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.secondary { background: var(--surface2); }
.btn.ghost { background: transparent; }
.btn.small, .text-button, .back-button, .icon-btn, .builder-actions .icon-btn, .builder-block>.row>.icon-btn { min-height: 44px; }
.icon-btn, .builder-actions .icon-btn, .builder-block>.row>.icon-btn { min-width: 44px; }
.text-button, .back-button { color: var(--cyan); }
.btn.danger, .text-button.danger { color: #ffb9c6; }
.btn.danger { background: #341c26; border-color: #6e3546; box-shadow: none; }
.field { background: var(--surface); border-color: var(--line); color: var(--text); border-radius: 12px; min-height: 46px; }
.field::placeholder { color: var(--muted); opacity: .8; }
.field:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.exercise-detail { margin-top: -6px; }
.exercise-detail>.back-button { margin: 0 0 12px; }
.exercise-heading h1 { font-size: clamp(29px, 8vw, 36px); margin: 12px 0 8px; }
.exercise-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.exercise-chips .badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  color: var(--cyan); background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .25);
  font-size: 11px; line-height: 1.45; font-weight: 600; letter-spacing: .2px;
}
.exercise-chips .icon { width: 15px; height: 15px; }
.exercise-summary { color: var(--muted); font-size: 13px; }
.exercise-cover { position: relative; margin: 18px -5px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #101216; }
.exercise-cover .media-stage { width: 100%; height: auto; aspect-ratio: 1; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.exercise-cover .exercise-visual { height: 100%; }
.exercise-cover .exercise-photo { object-fit: contain; }
.exercise-cover figcaption { position:absolute; bottom:10px; left:12px; padding:3px 8px; border-radius:20px; background:#080d16dc; color:#b3bfd0; font-size:9px; letter-spacing:.25px; pointer-events:none; }
.exercise-primary { margin: 0 0 19px; }
.exercise-primary .btn { min-height: 52px; }
.detail-panel { padding: 17px 16px; margin: 13px 0; border-radius: 21px; }
.panel-heading { display:flex; align-items:center; gap:10px; margin:0 0 15px; }
.panel-heading h2 { font-size: 17px; letter-spacing: -.3px; line-height: 1.3; }
.panel-icon { display:flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:10px; color:var(--cyan); background:rgba(var(--accent-rgb),.09); border:1px solid rgba(var(--accent-rgb),.17); flex:none; }
.panel-icon .icon { width:17px; height:17px; }
.muscle-panels { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.muscle-panel { padding:12px 11px; border-radius:14px; border:1px solid rgba(var(--accent-rgb),.17); background:rgba(var(--accent-rgb),.055); min-width:0; }
.muscle-panel.secondary-muscles { background:#ffffff03; border-color:var(--line); }
.panel-kicker { display:block; font-size:10px; font-weight:650; color:var(--cyan); margin-bottom:9px; }
.secondary-muscles .panel-kicker { color:var(--muted); }
.muscle-panel ul { list-style:none; margin:0; padding:0; display:grid; gap:7px; }
.muscle-panel li { font-size:12px; line-height:1.5; color:var(--text); }
.technique-steps { list-style:none; margin:0; padding:0; counter-reset:none; }
.technique-steps li { position:relative; display:flex; align-items:flex-start; gap:12px; padding:0 0 18px; font-size:13px; line-height:1.65; color:var(--muted); }
.technique-steps li:last-child { padding-bottom:0; }
.technique-steps li:not(:last-child)::after { content:''; position:absolute; left:15px; top:37px; bottom:7px; width:1px; background:linear-gradient(rgba(var(--accent-rgb),.35),rgba(var(--accent-rgb),.06)); }
.step-number { width:32px; height:32px; flex:none; display:flex; align-items:center; justify-content:center; border:1.5px solid var(--accent); border-radius:50%; color:var(--cyan); background:rgba(var(--accent-rgb),.07); box-shadow:none; font-size:14px; font-weight:650; }
.technique-steps li>span:last-child { padding-top:3px; }
.technique-more { border-top:1px solid var(--line); margin-top:15px; }
.technique-more summary { min-height:44px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; color:var(--cyan); font-size:12px; font-weight:600; list-style:none; }
.technique-more summary::-webkit-details-marker { display:none; }
.technique-more summary span { color:var(--muted); border:1px solid var(--line); border-radius:8px; padding:1px 7px; }
.technique-more[open] summary { margin-bottom:7px; }
.exercise-notes { margin:0; padding:0; list-style:none; display:grid; gap:14px; }
.exercise-notes li { display:flex; align-items:flex-start; gap:10px; font-size:12px; line-height:1.65; color:var(--muted); }
.note-icon { width:27px; height:27px; display:flex; align-items:center; justify-content:center; flex:none; color:var(--cyan); background:rgba(var(--accent-rgb),.1); border:1px solid rgba(var(--accent-rgb),.2); border-radius:50%; }
.note-icon .icon { width:15px; height:15px; }
.exercise-detail>.review-label { display:flex; align-items:flex-start; gap:7px; padding:4px 3px; margin:14px 0; color:var(--muted); font-size:10px; }
.exercise-detail>.review-label .icon { width:14px; height:14px; flex:none; margin-top:2px; }
.exercise-settings { margin:16px 0 0; border-radius:17px; }
.exercise-settings>summary { min-height:54px; padding:13px 16px; font-size:13px; }
.exercise-settings .row { gap:9px; }
.exercise-settings .row>.icon { width:18px; height:18px; color:var(--cyan); }
.planned-load .metric-grid { margin-bottom:15px; }
/* The same family covers every existing trainer/client screen. */
.bottom-nav {
  background:color-mix(in srgb,var(--bg),transparent 5%); border-color:var(--line);
  box-shadow:0 -8px 24px #00000020; backdrop-filter:blur(18px); padding-top:9px;
}
.bottom-nav button { color:var(--muted); border-radius:12px; min-height:52px; font-size:10px; letter-spacing:.1px; }
.bottom-nav button.active { color:var(--cyan); background:rgba(var(--accent-rgb),.065); }
.bottom-nav button.active .icon { color:var(--accent); }
.bottom-nav .icon { width:22px; height:22px; margin-bottom:4px; }
.section { margin-top:25px; margin-bottom:12px; }
.section h2 { font-size:17px; }
.card { padding:18px; }
.card.soft { background:var(--surface); }
.card.blue-card, .card.next-workout { background:var(--panel-bg); border-color:var(--line); }
.client-row, .exercise-row, .role-card, .plan-choice {
  background:var(--panel-bg); border-color:var(--line); border-radius:18px; box-shadow:var(--panel-shadow);
  color:var(--text); transition:border-color .15s,background .15s; min-height:74px;
}
.client-row { gap:11px; padding:14px 12px; margin:10px 0; }
.client-row .grow { min-width:0; }
.client-row h3 { font-size:14px; line-height:1.35; }
.client-row p { font-size:10px; color:var(--muted); margin-top:5px; }
.client-row .badge { flex:none; font-size:9px; padding:4px 7px; }
.client-row>.icon { width:14px; height:14px; color:var(--muted); }
.badge { color:var(--cyan); background:rgba(var(--accent-rgb),.08); border:1px solid rgba(var(--accent-rgb),.18); border-radius:20px; }
.badge.green { color:#9cecc5; background:#50d69a12; border-color:#50d69a30; }
.badge.red { color:#ffadbd; background:#f36c8c0e; border-color:#f36c8c2e; }
.badge.amber { color:#f5d298; background:#eebd6d0d; border-color:#eebd6d2e; }
.role-card { padding:17px 15px; gap:13px; }
.role-card>span:first-child { background:rgba(var(--accent-rgb),.08); border-color:rgba(var(--accent-rgb),.22); color:var(--cyan); }
.welcome-cover { height:auto; aspect-ratio:1; max-width:440px; margin:24px auto; border:0; border-radius:18px; background:#101216; }
.welcome-cover::before { display:none; }
.welcome-cover::after { content:""; position:absolute; inset:65% 0 0; background:linear-gradient(transparent,#080a0dd9); pointer-events:none; }
.cover-label { z-index:1; letter-spacing:.3px; font-size:11px; }
.welcome-cover .exercise-photo { object-fit:contain; }
.welcome-cover .big-symbol { display:none; }
.cover-label { color:#d1dbea; }
.stat { padding:15px 10px; background:var(--panel-bg); border:1px solid var(--line); border-radius:17px; min-width:0; box-shadow:var(--panel-shadow); }
.stat b { color:var(--text); font-size:23px; line-height:1.25; }
.stat span { display:block; font-size:10px; line-height:1.5; color:var(--muted); margin-top:6px; }
.dashboard-metrics { margin:20px 0; gap:9px; }
.search-wrap { margin-top:20px; }
.search-wrap>.icon { color:var(--muted); }
.tabs { flex-wrap:wrap; gap:6px; border:0; background:transparent; padding:0; overflow:visible; }
.tabs button { min-height:44px; padding:8px 11px; border:1px solid var(--line); border-radius:11px; color:var(--muted); background:var(--surface); font-size:11px; flex:1; }
.tabs button.active { border-color:rgba(var(--accent-rgb),.45); color:var(--cyan); background:rgba(var(--accent-rgb),.09); box-shadow:none; }
.catalog-filters { gap:9px; margin:14px 0 4px; }
.catalog-filters label { font-size:10px; }
.catalog-filters select { min-height:44px; background:var(--surface); padding-right:22px; }
.compact-library .exercise-row { padding:10px; gap:11px; margin:8px 0; border-radius:16px; min-height:75px; }
.compact-library .thumb { width:52px; height:54px; flex-basis:52px; border:1px solid var(--line); border-radius:11px; }
.compact-library h3 { font-size:13px; font-weight:650; }
.compact-library p { font-size:10px; color:var(--muted); line-height:1.5; }
.compact-library>.tiny, .compact-library>.review-label, .compact-library>.empty { grid-column:1/-1; }
/* Program cards show their actual contents; square assets never become banners. */
.program-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; margin:26px 0 28px; }
.program-toolbar .btn { margin:0; padding-inline:14px; font-size:13px; }
.program-toolbar .secondary { background:transparent; }
.program-list { display:grid; gap:18px; }
.program-card { position:relative; padding:22px; margin:18px 0; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.program-list .program-card { margin:0; }
.program-card-heading { display:flex; align-items:flex-start; gap:12px; }
.program-card-heading h2 { margin:6px 0 0; font-size:25px; line-height:1.2; letter-spacing:-.6px; overflow-wrap:anywhere; }
.program-subtitle { color:var(--muted); font-size:12px; line-height:1.5; }
.program-meta { color:var(--muted); font-size:12px; margin:10px 0 18px; }
.program-meta span { margin:0 5px; }
.program-preview { display:flex; align-items:flex-start; gap:10px; margin:19px 0; }
.program-preview-item { flex:1; min-width:0; max-width:132px; }
.program-preview-item .exercise-visual { width:100%; height:auto; aspect-ratio:1; border-radius:10px; background:#101216; }
.program-preview-item .exercise-photo { object-fit:contain; }
.program-preview-item>span:last-child { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:7px; font-size:11px; color:var(--muted); line-height:1.4; }
.program-preview-more { display:flex; flex-direction:column; align-items:center; justify-content:center; align-self:center; flex:none; min-width:30px; font-size:17px; color:var(--text); padding-bottom:24px; }
.program-preview-more>span { color:var(--muted); font-size:10px; margin-top:2px; }
.program-card-footer { border-top:1px solid var(--line); margin-top:18px; padding-top:5px; }
.program-open.btn { flex-direction:row-reverse; justify-content:space-between; width:100%; min-height:48px; background:none; color:var(--text); border:0; padding:9px 0 0; border-radius:8px; font-size:13px; font-weight:600; }
.program-open .icon { color:var(--cyan); }
.program-menu { position:relative; margin:-6px -8px 0 0; flex:none; z-index:3; }
.program-menu summary { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; color:var(--muted); font-size:26px; line-height:1; list-style:none; border-radius:10px; cursor:pointer; }
.program-menu summary::-webkit-details-marker { display:none; }
.program-menu summary:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.program-menu[open] summary { background:var(--surface2); color:var(--text); }
.program-menu-items { position:absolute; right:0; top:48px; min-width:190px; background:var(--surface2); border:1px solid var(--line); border-radius:12px; padding:5px; box-shadow:0 12px 24px #0005; }
.program-menu-items .text-button { display:flex; width:100%; gap:10px; padding:10px 12px; color:var(--text); border-radius:8px; font-size:12px; }
.program-menu-items .text-button:hover { background:var(--surface); }
.exercise-index { color:var(--cyan); font-size:13px; }
.builder-grid { gap:12px; }
.builder-fieldset { border:0; padding:0; margin:0; min-width:0; }
.builder-fieldset>legend { font-size:12px; font-weight:650; color:var(--text); padding:0; margin-bottom:10px; }
.builder-summary-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.builder-summary-row>.tiny { min-width:0; }
.builder-block-tools { display:flex; align-items:center; gap:2px; flex:none; }
.builder-block-tools .icon-btn { width:44px; height:44px; padding:11px; color:var(--cyan); background:transparent; }
.builder-field { color:var(--muted); font-size:11px; }
.builder-block { border-radius:19px; padding:15px; }
.builder-block>.row { align-items:flex-start; }
.builder-block .builder-photo { width:48px; height:48px; border:1px solid var(--line); }
.builder-actions { flex-wrap:wrap; justify-content:flex-end; max-width:132px; gap:0; }
.builder-actions .icon-btn, .builder-block>.row>.icon-btn { width:44px; height:44px; padding:11px; color:var(--cyan); background:transparent; }
.builder-details { border-top:1px solid var(--line); margin-top:14px; }
.builder-details>summary { display:flex; align-items:center; min-height:44px; padding:10px 0; color:var(--cyan); font-size:12px; }
.builder-add .btn { font-size:13px; }
.complex-exercise { border-color:var(--line); padding-block:15px; }
.complex-context { color:var(--cyan); font-size:12px; border-left:2px solid var(--accent); padding-left:10px; }
.menu-row { min-height:54px; border-color:var(--line); font-size:13px; }
.menu-row .row { gap:10px; }
.menu-row .row>.icon { color:var(--cyan); width:19px; height:19px; }
.settings-disclosure { border-radius:18px; }
.settings-disclosure>summary { min-height:54px; font-size:13px; }
.divider, .summary-row, .history-row { border-color:var(--line); }
.summary-row { gap:12px; font-size:12px; }
.summary-row>span:first-child { color:var(--muted); }
.summary-row b { text-align:right; overflow-wrap:anywhere; }
.empty { border:1px dashed var(--line); border-radius:21px; background:rgba(var(--accent-rgb),.025); padding:30px 20px; color:var(--muted); }
.empty>.icon { color:var(--cyan); }
.empty h2 { color:var(--text); font-size:18px; }
.banner { border-color:#eebd6d35; background:#eebd6d0a; color:#f4d59f; border-radius:15px; font-size:12px; line-height:1.6; }
.demo-note, .demo-footer { color:var(--muted); font-size:10px; line-height:1.6; }
.plan-choice { padding:18px; }
.plan-choice.selected { border-color:var(--accent); background:rgba(var(--accent-rgb),.075); box-shadow:0 0 0 1px rgba(var(--accent-rgb),.12); }
.plan-choice .radio { border-color:var(--muted); }
.plan-choice.selected .radio { border-color:var(--accent); background:var(--accent); box-shadow:inset 0 0 0 4px var(--bg); }
.switch { position:relative; flex:none; width:54px; height:44px; min-width:54px; min-height:44px; padding:0; border:0; border-radius:0; background:transparent; }
.switch::before { content:''; position:absolute; width:48px; height:26px; top:9px; left:3px; border-radius:20px; background:var(--surface2); border:1px solid var(--line); }
.switch::after { position:absolute; width:20px; height:20px; top:12px; left:6px; border-radius:50%; background:var(--muted); transform:none; }
.switch.on { background:transparent; }
.switch.on::before { background:var(--accent); border-color:var(--accent); }
.switch.on::after { left:6px; background:var(--accent-ink); transform:translateX(22px); }
.checkbox-row { min-height:44px; font-size:12px; align-items:flex-start; }
.checkbox-row input { min-width:20px; min-height:20px; accent-color:var(--accent); }
.timer-panel { border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.timer-panel.rest { border-color:#eebd6d40; background:radial-gradient(ellipse at 50% 0%,#eebd6d0b,transparent 85%),var(--panel-bg); }
.timer-label { color:var(--cyan); font-size:10px; letter-spacing:1.2px; }
.clock { font-variant-numeric:tabular-nums; color:var(--text); letter-spacing:-1.5px; }
.dots span.current { background:var(--accent); border-color:var(--accent); box-shadow:0 0 9px rgba(var(--accent-rgb),.2); }
.dots span.done { background:var(--cyan); border-color:var(--cyan); }
.workout-action-bar { border-color:var(--line); background:color-mix(in srgb,var(--bg),transparent 4%); backdrop-filter:blur(18px); }
.run-layout { padding-bottom:110px; }
.run-layout h1 { font-size:27px; }
.run-layout .media-stage { width:min(100%,310px); border-color:var(--line); border-radius:21px; overflow:hidden; }
.actual-count { align-items:center; }
.actual-count .field { font-size:22px; font-weight:700; min-height:50px; }
.progress { background:var(--surface2); }
.progress>div { background:var(--accent); }
.modal-backdrop { background:#02050bd9; backdrop-filter:blur(7px); }
.modal { background:var(--bg); border:1px solid var(--line); border-radius:26px 26px 0 0; box-shadow:0 -15px 60px #0008; padding:16px 20px calc(24px + var(--safe)); }
.modal .icon-btn { background:var(--surface); border:1px solid var(--line); border-radius:13px; }
.modal h2 { font-size:20px; }
.form-error { color:#ffadbd; font-size:12px; line-height:1.55; }
.toast { background:var(--surface2); color:var(--text); border-color:var(--line); border-radius:14px; }
.toast.error { background:#311c27; border-color:#71374d; }
@media (hover:hover) { .client-row:hover,.exercise-row:hover,.role-card:hover,.plan-choice:hover { border-color:rgba(var(--accent-rgb),.5); } }
@media (min-width:700px) {
  main { max-width:900px; box-shadow:0 0 80px #0005; }
  .topbar { max-width:800px; margin:auto; padding-inline:28px; }
  .content { max-width:800px; margin:auto; padding:22px 28px 130px; }
  .bottom-nav { width:calc(100% - 48px); max-width:744px; border-radius:21px; bottom:16px; padding-bottom:10px; }
  .exercise-detail { max-width:620px; margin:auto; }
  .exercise-heading h1 { font-size:38px; }
  .exercise-cover .media-stage { aspect-ratio:1; }
  .exercise-cover { margin-inline:0; }
  .detail-panel { padding:21px; }
  .panel-heading h2 { font-size:19px; }
  .technique-steps li { font-size:14px; }
  .muscle-panel li { font-size:13px; }
  .compact-library { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
  .run-layout { max-width:560px; margin:auto; }
  .workout-action-bar { max-width:560px; }
  .modal { border-radius:26px; }
}
@media (max-width:375px) { .content { padding-inline:16px; } .topbar { padding-inline:16px; } .detail-panel { padding:16px 13px; } .muscle-panel { padding:11px 9px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

/* Issue 31: the app is a training companion, with quiet supporting controls. */
.content { animation:none; }
.brand { font-size:18px; letter-spacing:.6px; }
.demo-pill { background:transparent; border:0; color:var(--muted); font-size:9px; letter-spacing:.5px; }
.avatar { background:var(--surface2); color:var(--text); border:0; border-radius:50%; }
.sub { max-width:52ch; }
.search-wrap .field { background:var(--surface); }
.bottom-nav { background:var(--bg); backdrop-filter:none; box-shadow:none; }
.bottom-nav button { font-size:11px; }
.bottom-nav button.active { background:var(--surface2); color:var(--text); }
.bottom-nav button.active .icon { color:var(--cyan); }
.card,.role-card,.client-row,.exercise-row,.plan-choice { box-shadow:none; }
.card.next-workout { padding:22px; }
.next-workout h2 { padding-right:0; font-size:28px; }
.next-workout>.btn { margin-top:20px; }
.dashboard-metrics { padding:0 0 19px; border-bottom:1px solid var(--line); }
.dashboard-metrics .stat { background:none; border:0; border-radius:0; padding:0 10px; }
.dashboard-metrics .stat:first-child { padding-left:0; }
.dashboard-metrics .stat+.stat { border-left:1px solid var(--line); }
.dashboard-metrics .stat b { font-size:25px; font-weight:650; }
.dashboard-metrics .stat span { font-size:11px; }
.tabs { gap:2px; margin-block:12px; border-bottom:1px solid var(--line); border-radius:0; }
.tabs button { background:none; border:0; border-bottom:2px solid transparent; border-radius:0; padding:10px 7px; font-size:12px; }
.tabs button.active { background:none; border-color:var(--accent); color:var(--text); }
.compact-library .exercise-row { border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; padding:14px 0; margin:0; }
.compact-library .thumb { width:68px; height:68px; flex-basis:68px; border:0; border-radius:10px; }
.compact-library h3 { font-size:14px; line-height:1.4; }
.compact-library p { font-size:11px; margin-top:5px; }
.exercise-cover { margin:20px 0; border:0; border-radius:16px; }
.exercise-cover figcaption { background:#101216cc; font-size:10px; }
.detail-panel { background:none; border:0; border-top:1px solid var(--line); padding:22px 0 8px; border-radius:0; margin-block:24px; }
.panel-icon { background:none; border:0; width:22px; height:22px; border-radius:0; color:var(--muted); }
.panel-icon .icon { width:20px; height:20px; }
.panel-heading h2 { font-size:19px; }
.muscle-panel,.muscle-panel.secondary-muscles { background:none; border:0; padding:0; border-radius:0; }
.muscle-panel+.muscle-panel { border-left:1px solid var(--line); padding-left:16px; }
.panel-kicker { font-size:11px; color:var(--muted); }
.muscle-panel li,.exercise-notes li,.technique-steps li { font-size:13px; }
.step-number { width:30px; height:30px; border:0; border-radius:8px; background:var(--surface2); color:var(--text); }
.technique-steps li:not(:last-child)::after { display:none; }
.note-icon { background:none; border:0; color:var(--cyan); }
::selection { background:var(--accent); color:var(--accent-ink); }
input,textarea { caret-color:var(--accent); }
.clock,.stat b { font-variant-numeric:tabular-nums; }
@media (hover:hover) { .program-open:hover { color:var(--cyan); } .program-menu summary:hover { background:var(--surface2); } }
@media (min-width:700px) {
  .program-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .program-toolbar { grid-template-columns:auto auto; justify-content:start; }
  .program-toolbar .btn { min-width:150px; }
  .program-card { padding:22px; }
  .program-card-heading h2 { font-size:26px; }
  .program-preview-item { max-width:120px; }
  .exercise-detail { max-width:520px; }
  .detail-panel { padding:24px 0 8px; }
  .bottom-nav { box-shadow:none; }
}
@media (max-width:375px) { .program-card { padding:18px; } .program-toolbar { gap:8px; } .program-toolbar .btn { padding-inline:11px; font-size:12px; } .detail-panel { padding:22px 0 8px; } }

/* Owner's exercise-card reference, 22 October. Scoped to the shared detail screen. */
#app[data-screen="exercise"] {
  --bg:#070e18;
  --surface:#101c2c;
  --surface2:#142339;
  --line:#24364c;
  --text:#f5f7fd;
  --muted:#b2c2d9;
  --accent:#1478ff;
  --accent-rgb:20,120,255;
  --cyan:#83b6ff;
  --accent-ink:#fff;
  --action-bg:linear-gradient(110deg,#0868f0,#0061eb);
  --panel-bg:linear-gradient(135deg,#101d2e 0%,#090f18 70%);
  background:radial-gradient(ellipse at 90% 0,rgba(var(--accent-rgb),.09),transparent 42%),var(--bg);
}
html[data-theme="green"] #app[data-screen="exercise"] {
  --bg:#08120f;
  --surface:#10221b;
  --surface2:#173127;
  --line:#284337;
  --muted:#b3ccbf;
  --accent:#50d69a;
  --accent-rgb:80,214,154;
  --cyan:#98edc5;
  --accent-ink:#062015;
  --action-bg:linear-gradient(110deg,#43c98d,#50d69a);
  --panel-bg:linear-gradient(135deg,#10271d 0%,#09140f 70%);
}
#app[data-screen="exercise"] .topbar {
  display:grid;grid-template-columns:44px 1fr 44px;
  height:66px;gap:8px;padding:8px 16px;
  max-width:640px;margin-inline:auto;
}
#app[data-screen="exercise"] .brand { justify-self:center;font-size:20px;gap:7px;letter-spacing:.4px; }
#app[data-screen="exercise"] .brand .brand-accent { color:var(--accent); }
#app[data-screen="exercise"] .top-right { justify-content:flex-end; }
#app[data-screen="exercise"] .demo-pill { display:none; }
#app[data-screen="exercise"] .exercise-back,
#app[data-screen="exercise"] .avatar {
  width:44px;height:44px;min-width:44px;min-height:44px;
  display:grid;place-items:center;padding:0;border-radius:15px;
  border:1px solid var(--line);color:var(--muted);
  background:linear-gradient(145deg,var(--surface2),var(--bg));
  box-shadow:inset 0 1px 0 #ffffff05;
}
#app[data-screen="exercise"]>.content {
  max-width:640px;margin-inline:auto;padding:4px 10px calc(100px + var(--safe));
}
#app[data-screen="exercise"] .exercise-detail { max-width:none;margin:0; }
#app[data-screen="exercise"] .exercise-heading { padding:0 6px; }
#app[data-screen="exercise"] .exercise-heading h1 {
  font-size:clamp(29px,7.7vw,40px);line-height:1.12;letter-spacing:-.8px;
  margin:0 0 12px;overflow-wrap:anywhere;
}
#app[data-screen="exercise"] .exercise-chips { gap:8px;margin-bottom:14px; }
#app[data-screen="exercise"] .exercise-chips .badge {
  color:var(--muted);border-color:var(--line);border-radius:30px;
  background:linear-gradient(145deg,var(--surface),var(--bg));
  font-size:12px;font-weight:500;line-height:1.4;padding:6px 11px;
  white-space:normal;max-width:100%;
}
#app[data-screen="exercise"] .exercise-chips .icon { color:var(--accent);width:18px;height:18px; }
#app[data-screen="exercise"] .exercise-cover {
  margin:0 0 10px;border:1px solid var(--line);border-radius:22px;
  box-shadow:0 0 22px rgba(var(--accent-rgb),.08);
}
#app[data-screen="exercise"] .exercise-cover::after {
  content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 1px 0 #ffffff12,inset 2px 0 12px rgba(var(--accent-rgb),.12),inset -2px 0 12px rgba(var(--accent-rgb),.12);
}
#app[data-screen="exercise"] .exercise-cover .media-stage { aspect-ratio:1; }
/* Keep the complete photograph visible, including the bird-dog poster. */
#app[data-screen="exercise"] .exercise-cover .exercise-photo { object-fit:contain; }
#app[data-screen="exercise"] .exercise-cover figcaption.sr-only {
  width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;
}
#app[data-screen="exercise"] .exercise-primary { margin:0 0 14px; }
#app[data-screen="exercise"] .exercise-primary .btn {
  min-height:50px;border-radius:18px;font-size:15px;padding:12px 15px;
  background:var(--action-bg);
  color:var(--accent-ink);border:1px solid rgba(var(--accent-rgb),.8);
  box-shadow:0 5px 20px rgba(var(--accent-rgb),.16);
}
#app[data-screen="exercise"] .exercise-primary .icon { width:22px;height:22px; }
#app[data-screen="exercise"] .detail-panel,
#app[data-screen="exercise"] .planned-load {
  border:1px solid var(--line);border-radius:22px;
  margin:10px 0;padding:16px;background:var(--panel-bg);
  box-shadow:inset 0 1px 0 #ffffff05;
}
#app[data-screen="exercise"] .panel-heading { margin-bottom:12px; }
#app[data-screen="exercise"] .panel-heading h2 { font-size:21px;line-height:1.2;letter-spacing:-.3px; }
#app[data-screen="exercise"] .muscle-panels { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
#app[data-screen="exercise"] .muscle-panel,
#app[data-screen="exercise"] .muscle-panel.secondary-muscles { border:0;padding:0;background:none; }
#app[data-screen="exercise"] .panel-kicker { margin-bottom:6px;font-size:11px;line-height:1.4;color:var(--muted); }
#app[data-screen="exercise"] .muscle-panel ul { display:flex;flex-wrap:wrap;gap:6px; }
#app[data-screen="exercise"] .muscle-panel li {
  font-size:12px;line-height:1.4;border:1px solid #3d526d;border-radius:18px;
  padding:5px 10px;background:linear-gradient(140deg,#182638,#0a131f);
  color:var(--text);max-width:100%;overflow-wrap:anywhere;
}
#app[data-screen="exercise"] .secondary-muscles li { color:var(--muted);border-color:var(--line);background:transparent; }
html[data-theme="green"] #app[data-screen="exercise"] .muscle-panel:not(.secondary-muscles) li { background:#152b21;border-color:#395f4b; }
#app[data-screen="exercise"] .technique-steps li { gap:12px;padding-bottom:15px;font-size:13px;line-height:1.6;color:var(--muted); }
#app[data-screen="exercise"] .technique-steps li:last-child { padding-bottom:0; }
#app[data-screen="exercise"] .step-number {
  width:32px;height:32px;border-radius:50%;border:1px solid var(--accent);
  color:var(--text);font-size:16px;font-weight:650;
  background:radial-gradient(circle at 50% 100%,rgba(var(--accent-rgb),.4),var(--bg) 80%);
  box-shadow:0 0 10px rgba(var(--accent-rgb),.22),inset 0 0 6px rgba(var(--accent-rgb),.18);
}
#app[data-screen="exercise"] .technique-more { margin-top:12px; }
#app[data-screen="exercise"] .technique-more summary { font-size:12px; }
#app[data-screen="exercise"] .exercise-notes { gap:9px; }
#app[data-screen="exercise"] .exercise-notes li { gap:10px;font-size:13px;line-height:1.6; }
#app[data-screen="exercise"] .note-icon {
  width:22px;height:22px;line-height:1;margin-top:1px;border-radius:50%;
  color:var(--accent-ink);font-size:16px;font-weight:700;
  background:linear-gradient(135deg,var(--accent),rgba(var(--accent-rgb),.55));
  box-shadow:0 0 8px rgba(var(--accent-rgb),.18);
}
#app[data-screen="exercise"] .exercise-settings { background:var(--panel-bg);border-color:var(--line); }
#app[data-screen="exercise"] .bottom-nav {
  background:linear-gradient(180deg,var(--surface),var(--bg));border-color:var(--line);
  box-shadow:0 -6px 24px #0002;
}
#app[data-screen="exercise"] .bottom-nav button { color:#93abc9;font-size:11px; }
#app[data-screen="exercise"] .bottom-nav button.active { background:transparent;color:var(--accent); }
#app[data-screen="exercise"] .bottom-nav button.active .icon { color:var(--accent);filter:drop-shadow(0 0 6px rgba(var(--accent-rgb),.35)); }
@media (min-width:700px) {
  #app[data-screen="exercise"] .topbar { height:76px;padding-inline:10px; }
  #app[data-screen="exercise"]>.content { padding-top:8px; }
  #app[data-screen="exercise"] .exercise-heading { padding:0 8px; }
  #app[data-screen="exercise"] .detail-panel { padding:20px 24px; }
  #app[data-screen="exercise"] .muscle-panels { grid-template-columns:1fr 1fr;gap:18px; }
  #app[data-screen="exercise"] .technique-steps li,
  #app[data-screen="exercise"] .exercise-notes li { font-size:14px; }
}

/* Illustrated technique: number, concise instruction, matching movement phase. */
#app[data-screen="exercise"] .illustrated-technique { display:grid;gap:12px; }
#app[data-screen="exercise"] .illustrated-technique li {
  display:grid;grid-template-columns:30px minmax(0,1fr) 98.4px;
  align-items:center;gap:10px;padding:0;min-height:62px;
  font-size:12px;line-height:1.5;
}
#app[data-screen="exercise"] .illustrated-technique .step-number {
  width:30px;height:30px;align-self:center;color:#eef5ff;
  border-color:rgba(var(--accent-rgb),.85);
  background:radial-gradient(ellipse at 50% 100%,rgba(var(--accent-rgb),.5),#091426 80%);
  box-shadow:0 0 12px rgba(var(--accent-rgb),.3),inset 0 0 7px rgba(var(--accent-rgb),.3);
}
#app[data-screen="exercise"] .illustrated-technique .step-copy { min-width:0;padding:0;color:#bac6d9;overflow-wrap:anywhere; }
#app[data-screen="exercise"] .technique-thumb {
  /* Scale the former border's space too, so the artwork grows exactly 20%. */
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;isolation:isolate;
  width:98.4px;aspect-ratio:3/2;flex:none;padding:1.2px;
  background:transparent;border:0;border-radius:0;box-shadow:none;
}
#app[data-screen="exercise"] .technique-atlas {
  position:absolute;display:block;width:300%;max-width:none;height:var(--sheet-height);
  left:calc(var(--atlas-phase) * -100%);top:var(--sheet-top);
  object-fit:fill;border-radius:0;pointer-events:none;filter:url(#gravix-technique-cutout);
}
#app[data-screen="exercise"] .technique-window {
  display:block;position:relative;overflow:hidden;width:var(--window-width);aspect-ratio:var(--crop-ratio);
}
#app[data-screen="exercise"] .illustrated-technique li.technique-without-art { grid-template-columns:30px minmax(0,1fr); }
@media (min-width:390px) {
  #app[data-screen="exercise"] .illustrated-technique li { grid-template-columns:32px minmax(0,1fr) 108px;font-size:12.5px;gap:11px; }
  #app[data-screen="exercise"] .technique-thumb { width:108px; }
  #app[data-screen="exercise"] .illustrated-technique .step-number { width:32px;height:32px; }
}
@media (min-width:700px) {
  #app[data-screen="exercise"] .illustrated-technique { gap:12px; }
  #app[data-screen="exercise"] .illustrated-technique li { grid-template-columns:36px minmax(0,1fr) 139.2px;gap:16px;font-size:14px;min-height:78px; }
  #app[data-screen="exercise"] .illustrated-technique .step-number { width:36px;height:36px;font-size:18px; }
  #app[data-screen="exercise"] .technique-thumb { width:139.2px; }
}

/* Issue47: body parts first in both draft exercise pickers. */
.exercise-picker { min-width:0; }
.exercise-picker .search-wrap { margin:8px 0 16px; }
.picker-help { color:var(--muted);font-size:13px;line-height:1.6;margin:12px 0; }
.picker-categories { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 4px; }
.picker-category { position:relative;display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;min-height:88px;text-align:left;padding:15px 34px 15px 14px;background:var(--surface);border:1px solid var(--line);border-radius:15px;color:var(--text); }
.picker-category-name { font-size:16px;font-weight:700;line-height:1.25; }
.picker-category-count { color:var(--muted);font-size:11px;line-height:1.45; }
.picker-category>.icon { position:absolute;right:10px;top:calc(50% - 9px);width:18px;height:18px;color:var(--cyan); }
.picker-category-empty { background:var(--surface2); }
.picker-category-heading { display:flex;align-items:center;gap:12px;margin:0 0 14px;min-width:0; }
.picker-category-heading .btn { width:auto;min-height:44px;padding:8px 10px;font-size:13px; }
.picker-category-heading h3 { font-size:19px;margin-left:auto;overflow-wrap:anywhere; }
.picker-equipment { display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted); }
.picker-equipment .field { min-width:0;width:100%;font-size:14px; }
.picker-result-count { color:var(--muted);font-size:12px;margin:14px 0 10px; }
.picker-exercises .exercise-row { margin:9px 0; }
.picker-empty { padding:22px 16px;text-align:center;border:1px dashed var(--line);border-radius:15px;margin:14px 0; }
.picker-empty p { color:var(--muted);font-size:13px;line-height:1.6;margin:10px 0 16px; }
.picker-empty .btn { font-size:13px;white-space:normal; }
.program-menu-items [data-action="delete-program"] { color:var(--danger);border-top:1px solid var(--line);margin-top:5px;padding-top:12px; }
#overlay .modal button[data-action="do-delete-program"] { background:#b92c42;border-color:#d75464;color:#fff; }
@media (hover:hover) { .picker-category:hover { border-color:var(--accent);background:rgba(var(--accent-rgb),.08); } }
@media (min-width:700px) { .picker-category { min-height:96px; }.picker-category-name { font-size:17px; }.picker-category-count { font-size:12px; } }

/* Issue 44: approved equipment welcome. Brand blue is local to this screen. */
html:has(#app[data-screen="welcome"]) { scrollbar-gutter:auto; }
body:has(#app[data-screen="welcome"]) { padding:0; }
#app[data-screen="welcome"] {
  --welcome-height:max(100dvh,min(216.18vw,1200px));
  --welcome-blue:#0877ff;
  --welcome-text:#f8faff;
  --welcome-muted:#acbdd9;
  display:flex;flex-direction:column;width:100%;max-width:none;margin:0;border-radius:0;
  min-height:var(--welcome-height);border:0;box-shadow:none;
  background:#040b14 url('/welcome/equipment-mobile.webp') center center / cover no-repeat;
  color:var(--welcome-text);isolation:isolate;
}
#app[data-screen="welcome"]>.topbar {
  width:100%;max-width:720px;height:76px;flex:none;margin:0 auto;
  padding:12px 24px;position:relative;z-index:1;
}
#app[data-screen="welcome"] .brand {
  gap:9px;font-size:22px;letter-spacing:.2px;font-weight:850;line-height:1;
  color:var(--welcome-text);min-height:44px;
}
#app[data-screen="welcome"] .brand>.icon { color:var(--welcome-blue);width:25px;height:25px;stroke-width:2.5; }
#app[data-screen="welcome"] .brand .brand-accent { color:var(--welcome-blue); }
#app[data-screen="welcome"] .demo-pill {
  min-height:44px;padding:8px 12px;border:1px solid #26354b;border-radius:24px;
  background:linear-gradient(145deg,#131c28cc,#0b121dcc);
  color:#b5c8e8;font-size:11px;font-weight:750;letter-spacing:.35px;
}
#app[data-screen="welcome"] .demo-pill i { width:6px;height:6px;background:var(--welcome-blue);box-shadow:none; }
#app[data-screen="welcome"] .avatar { display:none; }
#app[data-screen="welcome"]>.content {
  width:100%;max-width:720px;flex:1;margin:0 auto;padding:0 24px;
}
#app[data-screen="welcome"] .welcome-screen {
  display:flex;flex-direction:column;min-height:calc(var(--welcome-height) - 76px);
  padding:2px 0 max(24px,env(safe-area-inset-bottom,0px));
}
#app[data-screen="welcome"] .welcome-intro { position:relative;z-index:1; }
#app[data-screen="welcome"] h1 {
  margin:0;font-size:clamp(26px,7.5vw,52px);font-weight:800;
  line-height:1.08;letter-spacing:-1.3px;color:var(--welcome-text);
}
#app[data-screen="welcome"] h1>span { display:block; }
#app[data-screen="welcome"] .welcome-description {
  margin:12px 0 0;max-width:30ch;color:var(--welcome-muted);
  font-size:clamp(15px,3.9vw,21px);line-height:1.35;font-weight:400;
}
#app[data-screen="welcome"] .welcome-art-space { flex:1;min-height:220px; }
#app[data-screen="welcome"] .welcome-entry { position:relative;z-index:1; }
#app[data-screen="welcome"] .welcome-catalog {
  display:flex;align-items:baseline;justify-content:center;gap:5px;
  margin:0 0 12px;color:var(--welcome-text);font-size:16px;line-height:1.4;
}
#app[data-screen="welcome"] .welcome-catalog strong { color:#2a92ff;font-size:19px;font-weight:800; }
#app[data-screen="welcome"] .welcome-actions { display:grid;gap:10px; }
#app[data-screen="welcome"] .welcome-action {
  display:flex;align-items:center;justify-content:center;gap:14px;
  width:100%;min-height:54px;padding:13px 18px;border-radius:17px;
  border:1px solid #1c8eff;background:linear-gradient(115deg,#087bff,#0062fb);
  color:var(--welcome-text);font-size:19px;font-weight:750;line-height:1.25;
  box-shadow:inset 0 1px 0 #8bc8ff55,0 3px 20px #0056eb24;
  transition:background .15s,border-color .15s;
}
#app[data-screen="welcome"] .welcome-action>.icon { width:22px;height:22px;stroke-width:1.65; }
#app[data-screen="welcome"] .welcome-action-secondary {
  min-height:48px;background:linear-gradient(120deg,#101c2b99,#0a121eaa);
  border-color:#52749e;color:var(--welcome-text);font-size:17px;
  box-shadow:inset 0 1px 0 #adc9ed12;
}
#app[data-screen="welcome"] .welcome-action-secondary>.icon { color:#a9c5ec; }
#app[data-screen="welcome"] .welcome-demo-note {
  margin:18px 0 0;text-align:center;color:#a2b4d0;font-size:12px;line-height:1.5;
}
#app[data-screen="welcome"] button:focus-visible { outline:3px solid #d0e5ff;outline-offset:4px; }
@media (hover:hover) {
  #app[data-screen="welcome"] .welcome-action-primary:hover { background:linear-gradient(115deg,#288cff,#1675ff); }
  #app[data-screen="welcome"] .welcome-action-secondary:hover { border-color:#9bbff0;background:#15243bd9; }
  #app[data-screen="welcome"] .demo-pill:hover { border-color:#6282ac; }
}
@media (min-width:600px) and (max-width:959px) {
  #app[data-screen="welcome"] { background-size:auto 100%; }
  #app[data-screen="welcome"]>.topbar { height:96px;padding-inline:40px; }
  #app[data-screen="welcome"]>.content { padding-inline:40px; }
  #app[data-screen="welcome"] .welcome-screen { min-height:calc(var(--welcome-height) - 96px);padding-bottom:38px; }
  #app[data-screen="welcome"] .welcome-actions { max-width:520px;width:100%;margin:auto; }
  #app[data-screen="welcome"] .welcome-action { min-height:62px;font-size:22px; }
  #app[data-screen="welcome"] .welcome-action-secondary { min-height:56px;font-size:20px; }
}
@media (min-width:960px) {
  #app[data-screen="welcome"] {
    --welcome-height:max(100dvh,760px);
    background-image:url('/welcome/equipment-desktop.webp');
    background-position:center center;background-size:cover;
  }
  #app[data-screen="welcome"]>.topbar { max-width:1440px;height:112px;padding:24px 64px; }
  #app[data-screen="welcome"] .brand { font-size:31px;gap:14px; }
  #app[data-screen="welcome"] .brand>.icon { width:36px;height:36px; }

  #app[data-screen="welcome"] .demo-pill { min-height:44px;padding-inline:18px;font-size:13px; }
  #app[data-screen="welcome"]>.content { max-width:1440px;padding:0 64px; }
  #app[data-screen="welcome"] .welcome-screen {
    min-height:calc(var(--welcome-height) - 112px);width:53%;max-width:620px;
    justify-content:center;padding:34px 0 50px;
  }
  #app[data-screen="welcome"] h1 { font-size:clamp(54px,5.6vw,86px);font-weight:850;line-height:1.06;letter-spacing:-2.3px; }
  #app[data-screen="welcome"] .welcome-description { margin-top:24px;font-size:clamp(19px,1.7vw,25px);line-height:1.4; }
  #app[data-screen="welcome"] .welcome-mobile-break { display:none; }
  #app[data-screen="welcome"] .welcome-art-space { display:none; }
  #app[data-screen="welcome"] .welcome-entry { margin-top:34px; }
  #app[data-screen="welcome"] .welcome-catalog { justify-content:flex-start;margin-bottom:22px;font-size:19px; }
  #app[data-screen="welcome"] .welcome-catalog strong { font-size:23px; }
  #app[data-screen="welcome"] .welcome-actions { grid-template-columns:1.1fr 1fr;gap:12px; }
  #app[data-screen="welcome"] .welcome-action,
  #app[data-screen="welcome"] .welcome-action-secondary { min-height:62px;padding:16px 12px;border-radius:18px;font-size:19px;gap:12px; }
  #app[data-screen="welcome"] .welcome-demo-note { margin-top:28px;text-align:left;font-size:13px; }
}


.picker-category-heading .picker-back{width:44px;height:44px;min-width:44px;flex:none}

/* The wordmark is a single word; only the icon has a gap. */
.brand .brand-wordmark { display:inline-flex;gap:0;color:inherit;white-space:nowrap; }
.catalog-filters .catalog-load { grid-column:1/-1; }

/* Proposed shared styles; root integrates into the app stylesheet. */
.picker-section-title { margin:20px 0 8px;font-size:14px;font-weight:700;line-height:1.35;color:var(--muted); }
.picker-collections { grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:22px; }
.picker-collection { min-height:104px;padding:13px 9px 32px;text-align:center;align-items:center;border-color:rgba(var(--accent-rgb),.24); }
.picker-collection .picker-category-name { font-size:14px; }
.picker-collection .picker-category-count { font-size:11px;overflow-wrap:anywhere; }
.picker-collection>.icon { right:calc(50% - 9px);top:auto;bottom:9px; }
.picker-collection-context { margin:-5px 0 14px;color:var(--cyan);font-size:12px;line-height:1.4; }
@media (min-width:700px) { .picker-collection { min-height:108px; }.picker-collection .picker-category-name { font-size:16px; } }

.library-collections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0}.library-collection{min-width:0;margin:0;padding:14px 6px;min-height:92px;text-align:center;color:var(--text)}.library-collection b{display:block;font-size:14px}.library-collection span{display:block;margin-top:5px;color:var(--muted);font-size:10px}.library-collection.active{border-color:var(--cyan);box-shadow:inset 0 0 0 1px var(--cyan)}
.catalog-filters label:has(#catalog-equipment){grid-column:1/-1}
