/* ===== Habimove — estilos de la app =====
   Solo usa variables de theme.css. No añadas colores sueltos aquí. */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; position: relative; }

/* ---------- Tipografía de marca ---------- */
.display, h1, h2, h3, .section-title, .stat b, .datebox b, .datebox span, .set-head, .chip, .seg button, .tabbar button span {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  font-weight: 400;
}
.kw { color: var(--accent); } /* palabra clave destacada */

/* ---------- Logo tipográfico ---------- */
.wordmark { font-family: var(--font-display); letter-spacing: var(--display-tracking); line-height: 1; color: var(--text); font-size: 34px; }
.wordmark .move { color: var(--accent); }
.wordmark.sm { font-size: 22px; }
.wordmark.lg { font-size: 56px; }

/* ---------- Cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--space-4) + env(safe-area-inset-top, 0px)) var(--gutter) var(--space-3);
  background: var(--bg);
  display: flex; align-items: center; gap: var(--space-3);
}
.topbar h1 { font-size: var(--fs-title); margin: 0; line-height: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; margin-bottom: 4px; }
.icon-btn {
  width: var(--tap-sm); height: var(--tap-sm); border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; flex: none; color: var(--text);
}
.icon-btn svg { width: 20px; height: 20px; }

main.view { padding: var(--space-1) var(--gutter) calc(104px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Barra inferior ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: var(--space-2) var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
}
.tabbar button {
  background: none; border: 0; padding: var(--space-2) 2px; border-radius: var(--radius-sm); min-height: var(--tap);
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted);
}
.tabbar button span { font-size: 14px; }
.tabbar button svg { width: 23px; height: 23px; }
.tabbar button.on { color: var(--text); }
.tabbar button.on svg { color: var(--accent); }

/* ---------- Tarjetas: gris con barra naranja ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border-left: var(--accent-bar) solid var(--accent);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5) var(--space-4);
  margin-bottom: var(--space-4);
}
.card h3 { margin: 0 0 var(--space-3); font-size: 22px; line-height: 1.1; }
.section-title { margin: var(--space-7) 2px var(--space-3); font-size: 24px; line-height: 1; display: flex; justify-content: space-between; align-items: baseline; }
.section-title small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; font-size: var(--fs-sm); }
/* Frase motivadora: tamaño grande para que la palabra naranja cumpla AA (texto grande, 3:1) */
.motto { color: var(--muted); margin: var(--space-1) 0 0; font-size: var(--fs-btn); line-height: 1.35; }
.motto .kw { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.row { display: flex; align-items: center; gap: var(--space-3); }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: var(--space-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stat { background: var(--surface-sunken); border-radius: var(--radius-sm); padding: var(--space-3); }
.card .stat { background: var(--surface-sunken); }
main > .grid3 .stat, main > .grid2 .stat { background: var(--surface); }
.stat b { display: block; font-size: var(--fs-number); line-height: 1; }
.stat b.kw { color: var(--accent); }
.stat span { color: var(--muted); font-size: var(--fs-xs); font-weight: 500; display: block; margin-top: 4px; }

/* ---------- Botones ---------- */
.btn {
  border: 2px solid transparent; border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-weight: 700;
  background: transparent; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); text-decoration: none; transition: transform .08s ease, opacity .15s;
}
.btn:active { transform: scale(.98); }
/* Principal: naranja con texto blanco cálido (texto grande y negrita para AA) */
.btn.primary { background: var(--accent); color: var(--on-accent); font-size: var(--fs-btn); box-shadow: var(--shadow-soft); }
/* Secundario: borde naranja, fondo transparente */
.btn.secondary, .btn.blue { background: transparent; border-color: var(--accent); color: var(--text); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.danger { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.block { width: 100%; }
.btn.sm { padding: var(--space-2) var(--space-3); min-height: var(--tap-sm); font-size: var(--fs-sm); }
.btn.primary.sm { font-size: var(--fs-btn); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
h3 > svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; color: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 2px;
  border-radius: var(--radius-pill); font-size: 15px; line-height: 1.3;
  background: var(--neutral-soft); color: var(--muted); white-space: nowrap;
}
.chip.live { background: var(--accent-soft); color: var(--text); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
.chip.warn { background: var(--accent-soft); color: var(--text); }
.chip.ok, .chip.blue { background: var(--neutral-soft); color: var(--text); }
@keyframes pulse { 50% { opacity: .3; } }

/* Selector segmentado */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-1);
  background: var(--surface); border-radius: var(--radius-sm); padding: var(--space-1); margin-bottom: var(--space-5);
}
.seg button { background: none; border: 0; border-radius: 9px; padding: var(--space-2) 4px; color: var(--muted); font-size: 17px; min-height: var(--tap-sm); }
.seg button.on { background: var(--surface-sunken); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

.hscroll { display: flex; gap: var(--space-2); overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) var(--space-4); padding: 0 var(--gutter) var(--space-1); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .chip { flex: none; cursor: pointer; border: 1px solid var(--line); background: transparent; padding: 7px 14px 6px; color: var(--text); }
.hscroll .chip.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Listas ---------- */
.list-item {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-2); width: 100%; text-align: left; min-height: 64px; color: var(--text);
}
button.list-item:active { background: var(--surface-sunken); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-display); letter-spacing: var(--display-tracking);
  font-size: 19px; background: var(--surface-sunken); color: var(--text); border: 1px solid var(--line);
}
.avatar.icon { color: var(--accent); }
.avatar.lg { width: 66px; height: 66px; font-size: 28px; }
.chev { color: var(--muted); width: 18px; height: 18px; flex: none; }

/* ---------- Clases ---------- */
.class-card { display: grid; grid-template-columns: 58px 1fr; gap: var(--space-3); }
.datebox {
  background: var(--surface-sunken); border-radius: var(--radius-sm); text-align: center; padding: var(--space-2) 4px;
  display: flex; flex-direction: column; justify-content: center; align-self: start;
}
.datebox b { font-size: 30px; line-height: 1; }
.datebox span { font-size: 14px; color: var(--muted); }
.class-title { font-size: var(--fs-lg); font-weight: 700; }
.capbar { height: 6px; background: var(--surface-sunken); border-radius: var(--radius-pill); overflow: hidden; margin: var(--space-3) 0 4px; }
.capbar i { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-pill); }

.video-card { padding: 0; overflow: hidden; }
.thumb { aspect-ratio: 16 / 9; background-size: cover; background-position: center; position: relative; background-color: var(--surface-sunken); display: grid; place-items: center; }
.thumb .ph { font-family: var(--font-display); letter-spacing: var(--display-tracking); font-size: 26px; color: var(--muted); }
.thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.thumb .play svg { width: 22px; height: 22px; margin-left: 3px; }
.thumb .dur { position: absolute; right: 10px; bottom: 8px; font-family: var(--font-display); letter-spacing: var(--display-tracking); font-size: 16px; background: var(--veil); color: var(--text); padding: 2px 8px 1px; border-radius: 8px; }
.video-card .body { padding: var(--space-4); }
.video-embed { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius-sm); background: var(--bg); }

/* ---------- Entreno ---------- */
.exercise { padding: var(--space-4); }
.exercise h4 { margin: 0; font-size: var(--fs-lg); }
.set-row { display: grid; grid-template-columns: 34px 1fr 1fr var(--tap); gap: var(--space-2); align-items: center; margin-top: var(--space-2); }
.set-row .n { color: var(--muted); font-family: var(--font-display); font-size: 20px; text-align: center; }
.set-head { font-size: 15px; color: var(--muted); }
.set-row input { text-align: center; }
.tick {
  width: var(--tap); height: var(--tap); border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface-sunken);
  display: grid; place-items: center; color: var(--muted);
}
.tick.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tick svg { width: 20px; height: 20px; }
.prev { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Formularios ---------- */
label.field { display: block; margin-bottom: var(--space-4); }
label.field > span { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--space-3); min-height: var(--tap); outline: none; font-size: 16px; color: var(--text);
}
.input::placeholder { color: var(--muted); opacity: .7; }
.input:focus { border-color: var(--accent); }
textarea.input { min-height: 96px; resize: vertical; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button { border: 1px solid var(--line); background: var(--surface-sunken); border-radius: var(--radius-sm); min-height: var(--tap); font-family: var(--font-display); font-size: 22px; }
.scale button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Hoja inferior (modal) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: var(--veil); z-index: 50; animation: fade .2s ease; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 51;
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto;
  background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: var(--shadow);
  padding: var(--space-2) var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); animation: up .25s cubic-bezier(.2,.8,.2,1);
}
.sheet .card { background: var(--surface-sunken); box-shadow: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto var(--space-4); }
.sheet h2 { margin: 0 0 var(--space-4); font-size: 28px; line-height: 1.05; }
@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Aviso (toast) ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--text-inverse); padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Progreso ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 10px; font-family: var(--font-body); }
.chart path.line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart path.area { fill: var(--accent-soft); }
.chart circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.big-number { font-family: var(--font-display); letter-spacing: var(--display-tracking); font-size: var(--fs-hero); line-height: 1; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos figure { margin: 0; position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos figcaption, .compare figcaption { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; background: var(--veil); color: var(--text); padding: 1px 6px; border-radius: 6px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.compare figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/4; position: relative; background: var(--surface-sunken); }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare figcaption { top: 8px; bottom: auto; left: 8px; }

.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.heat .d { aspect-ratio: 1; border-radius: 7px; background: var(--surface-sunken); display: grid; place-items: center; font-size: 11px; color: var(--muted); font-weight: 500; }
.heat .d.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.heat .d.cls { background: var(--text); color: var(--text-inverse); font-weight: 700; }
.heat .d.today { outline: 2px solid var(--text); outline-offset: -2px; }
.heat .d.future { opacity: .35; }
.heat .h { font-family: var(--font-display); font-size: 14px; text-align: center; color: var(--muted); }
.legend { display: flex; gap: var(--space-4); margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend i.gym { background: var(--accent); }
.legend i.cls { background: var(--text); }
.dots { color: var(--accent); letter-spacing: 1px; }
.dots .off { color: var(--line); }

.ring { --p: 0; width: 68px; height: 68px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-sunken) 0);
  display: grid; place-items: center; }
.ring::before { content: attr(data-label); width: 54px; height: 54px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font-display); letter-spacing: var(--display-tracking); font-size: 20px; }

/* ---------- Acceso y carga ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-6) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.login h1 { font-size: var(--fs-hero); line-height: .98; margin: var(--space-6) 0 var(--space-3); }
.login p.lead { color: var(--muted); margin: 0 0 var(--space-6); font-size: var(--fs-lg); }
.login .card { box-shadow: var(--shadow); }
.splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); background: var(--bg); }

.empty { text-align: center; padding: var(--space-6) var(--space-4); color: var(--muted); }
.empty svg { width: 36px; height: 36px; margin: 0 auto var(--space-2); display: block; opacity: .7; }
.divider { height: 1px; background: var(--line); margin: var(--space-4) 0; }
.note { background: var(--surface-sunken); border-radius: var(--radius-sm); padding: var(--space-3); font-size: 14px; }
.note.coach { border-left: 3px solid var(--accent); }
.hr-row { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Botón de perfil en la cabecera ---------- */
.avatar-btn { background: none; border: 0; padding: 0; border-radius: 50%; flex: none; }
.topbar .avatar-btn .avatar { width: var(--tap-sm); height: var(--tap-sm); font-size: 17px; }

/* ---------- Avisos (insignia de no leídos) ---------- */
.tabbar button { position: relative; }
.badge {
  position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent);
  font: 700 11px/18px var(--font-body); font-style: normal; text-align: center; letter-spacing: 0;
}
.badge.inline { position: static; flex: none; }

/* ---------- Lista de tareas de «Hoy» ---------- */
.tasks { margin-top: var(--space-4); }
.task { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); min-height: 60px; }
.task-title { font-weight: 700; }
.task.done .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.task-check {
  width: var(--tap-sm); height: var(--tap-sm); border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 2px solid var(--line); background: transparent; color: transparent; padding: 0;
}
button.task-check { width: var(--tap); height: var(--tap); }
.task-check svg { width: 18px; height: 18px; }
.task-check.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Hábitos (tabla semanal) ---------- */
.hgrid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(7, 26px); gap: 6px; align-items: center; }
.hgrid .h { font-family: var(--font-display); font-size: 14px; text-align: center; color: var(--muted); }
.hgrid .hname { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hgrid .hd { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-sunken); }
.hgrid .hd.on { background: var(--accent); }

/* ---------- Chat ---------- */
.chat-view { padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)); }
.msgs { display: flex; flex-direction: column; gap: var(--space-2); }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.bubble { background: var(--surface); padding: var(--space-3) var(--space-4); border-radius: var(--radius) var(--radius) var(--radius) 4px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--text); color: var(--text-inverse); border-radius: var(--radius) var(--radius) 4px var(--radius); }
.msg-meta { font-size: 11px; color: var(--muted); margin: 3px 6px 0; }
.msg-day { align-self: center; font-family: var(--font-display); letter-spacing: var(--display-tracking); color: var(--muted); font-size: 14px; margin: var(--space-3) 0 var(--space-1); }
.composer {
  position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 29;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: var(--space-2); align-items: flex-end; padding: var(--space-3) var(--gutter);
  background: var(--bg); border-top: 1px solid var(--line);
}
.composer textarea.input { min-height: var(--tap); max-height: 140px; resize: none; padding-top: 12px; }
.composer .btn { flex: none; }

/* ---------- Tarifas ---------- */
.plan { position: relative; }
.plan-top { box-shadow: 0 0 0 2px var(--accent), var(--shadow-soft); }
.plan-tag { position: absolute; top: 14px; right: 14px; }
.plan-price { font-family: var(--font-display, inherit); font-size: 34px; line-height: 1.1; margin: 6px 0 6px; color: var(--accent); }
.plan-price small { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--muted); margin-left: 4px; }
.plan-feats { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 8px; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); }
.plan-feats svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }

/* ---------- Consentimiento de privacidad ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.consent a { color: var(--text); }

/* ---------- Programar clases: días de la semana ---------- */
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daypick label { position: relative; cursor: pointer; }
.daypick input { position: absolute; opacity: 0; inset: 0; }
.daypick span { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: var(--radius-sm, 10px); border: 1px solid var(--line); font-family: var(--font-display); font-size: 20px; letter-spacing: var(--display-tracking); color: var(--muted); }
.daypick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.daypick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
