/* OK Plan · tokens y componentes del sistema de diseño (Figma "OK Plan — Design System + App") */

@font-face { font-family: Geist; src: url(../fonts/Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/GeistMono-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --text-primary: #111; --text-secondary: #80807c; --text-tertiary: #a6a6a2; --text-inverse: #fff; --text-danger: #b42328;
  --bg-app: #fff; --bg-surface: #fff; --bg-surface-2: #f7f7f6; --bg-sunken: #f1f1f0; --bg-inverse: #111; --bg-accent-strong: #232322;
  --border-subtle: #eaeae8; --border-default: #e2e2e0; --border-strong: #cdcdca;
  --neutral-200: #e2e2e0;
  --cancel-bg: #fdeded; --cancel-solid: #e5484d;
  --r-xs: 2px; --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px;
  --shadow-mid: 0 1px 2px #1111110a;
  --shadow-high: 0 12px 32px #11111112, 0 1px 2px #11111108;
  --sans: Geist, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-app); color: var(--text-primary); font: 400 14px/20px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* Tipografía: Geist para títulos y texto, Geist Mono para etiquetas, cifras y metadatos */
.t-display { font: 500 32px/36px var(--sans); letter-spacing: -.03em; }
.t-title1 { font: 500 22px/28px var(--sans); letter-spacing: -.02em; }
.t-title2 { font: 500 18px/24px var(--sans); letter-spacing: -.015em; }
.t-headline { font: 500 15px/20px var(--sans); letter-spacing: -.005em; }
.t-body { font: 400 14px/20px var(--sans); }
.t-bodym { font: 400 13px/18px var(--mono); }
.t-callout { font: 400 12px/16px var(--sans); }
.t-calloutm { font: 400 12px/16px var(--mono); }
.t-caption { font: 400 11px/14px var(--mono); }
.t-lcd { font: 400 10px/14px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.t-numeral { font: 400 20px/24px var(--mono); letter-spacing: -.02em; }
.muted { color: var(--text-secondary); }
.faint { color: var(--text-tertiary); }
.danger { color: var(--text-danger); }

/* Iconos: los SVG del Figma usados como máscara, así el color sale de currentColor */
.i { display: inline-block; flex: none; width: var(--s, 20px); height: var(--s, 20px); background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: var(--r-sm); font: 400 13px/18px var(--mono); white-space: nowrap; --s: 18px;
  background: var(--bg-inverse); color: var(--text-inverse); border: 1px solid transparent; }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-default); }
.btn-ghost { background: none; color: var(--text-primary); }
.btn-danger { background: var(--cancel-bg); color: var(--text-danger); }
.btn-s { height: 32px; padding: 0 12px; gap: 6px; font-size: 12px; line-height: 16px; --s: 16px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }

/* IconButton */
.ibtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-sm); color: var(--text-primary); position: relative; }
.ibtn-outline { background: var(--bg-surface); border: 1px solid var(--border-default); }
.ibtn-filled { background: var(--bg-inverse); color: var(--text-inverse); }

/* Avatar y AvatarStack */
.av { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 999px;
  width: 28px; height: 28px; background: var(--bg-sunken); color: var(--text-primary); font: 400 11px/14px var(--mono); }
.av-xs { width: 20px; height: 20px; }
.av-m { width: 36px; height: 36px; font: 400 12px/16px var(--mono); }
.av-l { width: 56px; height: 56px; font: 500 15px/20px var(--sans); letter-spacing: -.005em; }
.av-xl { width: 88px; height: 88px; font: 500 22px/28px var(--sans); letter-spacing: -.02em; }
.av-c1 { background: #f1f1f0; }
.av-c2 { background: #e2e2e0; }
.av-c3 { background: #cdcdca; }
.av-c4 { background: #80807c; color: #fff; }
.av-c5 { background: #3b3b39; color: #fff; }
.av-c6 { background: #111; color: #fff; }
.stack { display: inline-flex; align-items: center; }
.stack .av { border: 1.5px solid var(--bg-surface); margin-right: -6px; }
.stack .av:last-child { margin-right: 0; }
.stack .av-more { background: var(--bg-sunken); color: var(--text-secondary); }

/* StatusBadge: marca de 8 px + texto LCD */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 16px; font: 400 10px/14px var(--mono);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; flex: none; box-sizing: border-box; }
.badge-idea { color: #5c5c59; }
.badge-idea::before { border: 1px solid var(--text-tertiary); }
.badge-voting { color: #3b3b39; }
.badge-voting::before { border: 1px solid var(--text-secondary); background: linear-gradient(90deg, var(--text-secondary) 3px, transparent 3px); }
.badge-confirmed { color: #111; }
.badge-confirmed::before { background: #111; }
.badge-done { color: #5c5c59; }
.badge-done::before { border: 1px solid #111; background: radial-gradient(#111 0 0) center / 4px 4px no-repeat; }
.badge-cancelled { color: var(--text-danger); }
.badge-cancelled::before { background: var(--cancel-solid); }

/* FilterChip */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: var(--r-xs);
  font: 400 12px/16px var(--mono); white-space: nowrap; color: var(--text-primary); --s: 16px; }
.chip .i-chev { --s: 14px; }
.chip.on, .chip[aria-pressed="true"], input:checked + .chip { background: var(--bg-inverse); color: var(--text-inverse); }
.chip-l { height: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* SegmentedControl */
.seg { display: flex; gap: 2px; padding: 2px; background: var(--bg-surface-2); border-radius: var(--r-sm); }
.seg > * { flex: 1 0 0; display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px;
  border-radius: var(--r-xs); font: 400 12px/16px var(--mono); color: var(--text-secondary); border: 1px solid transparent; white-space: nowrap; }
.seg > .on, .seg > [aria-current="page"], .seg input:checked + span { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-default); }
.seg label { display: contents; }
.seg label > span { flex: 1 0 0; display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px;
  border-radius: var(--r-xs); font: 400 12px/16px var(--mono); color: var(--text-secondary); border: 1px solid transparent; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:focus-visible + span { outline: 2px solid var(--text-primary); }

/* TextField */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > .label { font: 400 12px/16px var(--mono); }
.field > .help { font: 400 11px/14px var(--mono); color: var(--text-secondary); }
.field.error > .help { color: var(--text-danger); }
.input { width: 100%; height: 48px; padding: 0 16px; background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--r-md); font: 400 14px/20px var(--sans); color: var(--text-primary); outline: none; }
textarea.input { height: auto; min-height: 68px; padding: 13px 16px; resize: vertical; }
.input::placeholder { color: var(--text-tertiary); }
.input:focus { border: 1.5px solid var(--text-primary); padding-left: 15.5px; }
.field.error .input { border: 1.5px solid var(--cancel-solid); }

/* Search */
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--bg-sunken);
  border-radius: 999px; color: var(--text-tertiary); --s: 18px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 14px/20px var(--sans); color: var(--text-primary); }
.search input::placeholder { color: var(--text-tertiary); }

/* MenuRow: la fila activa se invierte (Surface/Highlight) */
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm);
  font: 400 13px/18px var(--mono); color: var(--text-primary); width: 100%; text-align: left; }
.row > .lbl { flex: 1; min-width: 0; }
.row > .val { font: 400 12px/16px var(--sans); color: var(--text-secondary); white-space: nowrap; }
.row > .i-chev { --s: 16px; color: var(--text-tertiary); }
.row.on, .row[aria-current="page"] { background: var(--bg-inverse); color: var(--text-inverse); }
.row.on > .val, .row[aria-current="page"] > .val, .row.on > .i-chev, .row[aria-current="page"] > .i-chev { color: var(--text-inverse); }
.menu { display: flex; flex-direction: column; gap: 2px; padding: 7px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-md); }
.menu-flat { padding: 0; border: 0; }

/* TitleBar (móvil) */
.titlebar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: 56px; padding: 0 8px;
  background: var(--bg-surface); border-bottom: 1px solid var(--border-default); }
.titlebar .tg { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; }
.titlebar .tg .t-lcd { color: var(--text-secondary); }
.titlebar .tg .t-headline { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.titlebar .ibtn-ph { width: 40px; flex: none; }
.dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 9px; background: var(--cancel-solid); border: 1.5px solid var(--bg-surface); }

/* BottomNav con la rueda "Nuevo plan" en el centro */
.bottomnav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-start; justify-content: space-between;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--border-default); }
.bottomnav .tab { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 400 11px/14px var(--mono); color: var(--text-tertiary); --s: 24px; }
.bottomnav .tab[aria-current="page"] { color: var(--text-primary); }
.bottomnav .slot { width: 64px; height: 40px; }
.fab { position: absolute; left: 50%; top: -25px; margin-left: -32px; width: 64px; height: 64px; border-radius: 999px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center;
  background-image: linear-gradient(var(--text-tertiary), var(--text-tertiary)), linear-gradient(var(--text-tertiary), var(--text-tertiary)),
    linear-gradient(var(--text-tertiary), var(--text-tertiary)), linear-gradient(var(--text-tertiary), var(--text-tertiary));
  background-size: 2px 5px, 2px 5px, 5px 2px, 5px 2px; background-repeat: no-repeat;
  background-position: 50% 4px, 50% calc(100% - 4px), 4px 50%, calc(100% - 4px) 50%; }
.fab .c { width: 30px; height: 30px; border-radius: 999px; background: var(--bg-inverse); color: var(--text-inverse); display: flex; align-items: center; justify-content: center; --s: 16px; }
.fab-desk { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 8px 20px 8px 8px; border-radius: 999px;
  background: var(--bg-inverse); color: var(--text-inverse); font: 400 13px/18px var(--mono); box-shadow: var(--shadow-mid); }
.fab-desk .w { width: 32px; height: 32px; border-radius: 999px; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; }
.fab-desk .w > span { width: 16px; height: 16px; border-radius: 999px; background: var(--bg-inverse); color: var(--text-inverse); display: flex; align-items: center; justify-content: center; --s: 12px; }

/* Sidebar de escritorio: menú tipo iPod */
.sidebar { display: none; }
.logo { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; font: 500 15px/20px var(--sans); letter-spacing: -.005em; }
.logo b { display: inline-flex; align-items: center; height: 24px; padding: 0 6px; border-radius: var(--r-xs); background: var(--bg-inverse); color: var(--text-inverse); font: 600 13px/18px var(--mono); }
.side-label { padding: 8px 12px 4px; font: 400 10px/14px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.me { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r-md); }
.me .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; font: 400 12px/16px var(--mono); white-space: nowrap; }
.me .tx small { font-size: 11px; line-height: 14px; color: var(--text-secondary); }

/* CrewEmblem y GroupSwitcher */
.emblem { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--bg-inverse); color: var(--text-inverse); font: 400 12px/16px var(--mono); text-transform: uppercase; }
.switcher { display: flex; align-items: center; gap: 12px; padding: 8px; width: 100%; background: var(--bg-surface);
  border: 1px solid var(--border-subtle); border-radius: var(--r-md); text-align: left; --s: 16px; }
.switcher .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; font: 400 13px/18px var(--mono); white-space: nowrap; }
.switcher .tx small { font-size: 11px; line-height: 14px; color: var(--text-secondary); }

/* PlanCover: carátula por categoría (o la imagen del enlace) */
.cover { position: relative; display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
  width: var(--c, 64px); height: var(--c, 64px); border-radius: var(--r-md); background: #eaeae8; color: #80807c; --s: calc(var(--c, 64px) * .375); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-comida { background: #eaeae8; color: #80807c; }
.cover-cultura { background: #111; color: #fff; }
.cover-fiesta { background: #e2e2e0; color: #80807c; }
.cover-aire { background: #f1f1f0; color: #80807c; }
.cover-viaje { background: #3b3b39; color: #fff; }
.cover-deporte { background: #cdcdca; color: #111; }

/* PlanCard: fila del feed, variante por estado */
.card { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); color: inherit; }
.card .ct { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.card .ttl { font: 500 15px/20px var(--sans); letter-spacing: -.005em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .meta { font: 400 12px/16px var(--sans); color: var(--text-secondary); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .ft { display: flex; align-items: center; gap: 6px; font: 400 11px/14px var(--mono); color: var(--text-secondary); --s: 14px; }
.card .ft .stack { margin-right: 2px; }
.card > .i-chev { --s: 16px; color: var(--text-tertiary); }
.card.is-cancelled .cover { opacity: .45; }
.card.is-cancelled .ttl { color: var(--text-secondary); text-decoration: line-through; }
.card.is-cancelled .ft { color: var(--text-tertiary); }
.quorum-mini { display: flex; align-items: center; gap: 8px; font: 400 11px/14px var(--mono); color: var(--text-secondary); }
.track { position: relative; height: 6px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.track > span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--text-secondary); }
.quorum-mini .track { width: 72px; }

/* PlanCard / Tile: tarjeta vertical del Kanban */
.tile { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-md); }
.tile .cover { width: 100%; height: 112px; border-radius: 0; --s: 24px; }
.tile .bd { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
.tile .ttl { font: 500 15px/20px var(--sans); letter-spacing: -.005em; }
.tile .meta { font: 400 12px/16px var(--sans); color: var(--text-secondary); }
.tile .ft { display: flex; align-items: center; gap: 8px; font: 400 11px/14px var(--mono); color: var(--text-secondary); --s: 14px; }
.tile.is-cancelled .cover { opacity: .45; }
.tile.is-cancelled .ttl { color: var(--text-secondary); text-decoration: line-through; }

/* UpcomingStrip: cada carátula crece según se acerca la fecha */
.upcoming { display: flex; flex-direction: column; gap: 12px; }
.upcoming .hd, .upcoming .fo { display: flex; justify-content: space-between; align-items: flex-start; white-space: nowrap; gap: 12px; }
.upcoming .hd { font: 400 11px/14px var(--mono); color: var(--text-tertiary); white-space: pre; }
.upcoming .strip { display: flex; align-items: flex-end; gap: 4px; }
.upcoming .strip .cover { border-radius: 3px; }
.upcoming .strip .cover.sm { border-radius: 1px; }
.upcoming .fo .next { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.upcoming .fo .next .t-headline { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* RsvpBar: me apunto / quizá / paso con recuento */
.rsvp { display: flex; gap: 8px; }
.rsvp button { flex: 1 0 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 12px;
  border-radius: var(--r-md); background: var(--bg-surface); border: 1px solid var(--border-default); font: 400 12px/16px var(--mono); white-space: nowrap; --s: 18px; }
.rsvp button small { font-size: 11px; line-height: 14px; color: var(--text-tertiary); }
.rsvp .yes.on, .rsvp .no.on { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--text-inverse); }
.rsvp .yes.on small, .rsvp .no.on small { color: var(--text-inverse); }
.rsvp .maybe.on { background: var(--bg-sunken); border-color: var(--text-secondary); color: #3b3b39; }
.rsvp .maybe.on small { color: #3b3b39; }

/* QuorumProgress: barra-batería hacia el mínimo de gente */
.box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 16px; }
.quorum { display: flex; flex-direction: column; gap: 8px; }
.quorum .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.quorum .top .t-lcd { color: var(--text-secondary); }
.cells { display: flex; flex-wrap: wrap; gap: 6px; }
.cells i { width: 14px; height: 14px; border: 1px solid var(--text-primary); }
.cells i.f { background: var(--text-primary); }
.note { display: flex; align-items: center; gap: 6px; font: 400 11px/14px var(--mono); color: var(--text-secondary); --s: 14px; }
.note.ok { color: var(--text-primary); }

/* DatePollGrid: columnas = propuestas, filas = miembros; la mejor fecha va invertida */
.poll { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; }
.poll .pr { display: flex; align-items: center; gap: 4px; padding: 0 8px; border-top: 1px solid var(--border-subtle); }
.poll .pr.hd { align-items: flex-end; padding: 12px 8px 8px; border-top: 0; }
.poll .pr.tot { padding: 8px; background: var(--bg-surface-2); border-top: 0; }
.poll .who { width: 118px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px; font: 400 12px/16px var(--sans); white-space: nowrap; overflow: hidden; }
.poll .who .t-lcd { color: var(--text-tertiary); }
.poll .col { flex: 1 0 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
.poll .dh { flex-direction: column; padding: 8px 0; border-radius: var(--r-sm); font: 400 11px/14px var(--mono); color: var(--text-secondary); white-space: nowrap; }
.poll .dh .t-lcd { color: inherit; }
.poll .dh .t-numeral { color: var(--text-primary); }
.poll .dh.best { background: var(--bg-inverse); color: var(--text-inverse); }
.poll .dh.best .t-numeral { color: var(--text-inverse); }
.poll .cell { height: 40px; }
.poll .cell.best { background: var(--bg-sunken); }
.poll .cell button { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.poll .cell button:hover .mark, .poll .cell button:focus-visible .mark { box-shadow: 0 0 0 1.5px var(--text-primary); }
.mark { width: 24px; height: 24px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--bg-sunken);
  font: 400 11px/14px var(--mono); color: #3b3b39; --s: 14px; }
.mark.no { width: 10px; height: 2px; border-radius: 1px; background: var(--border-strong); }
.mark.none { background: none; box-shadow: inset 0 0 0 1px var(--border-default); }
.poll .tot .col { font: 500 15px/20px var(--sans); letter-spacing: -.005em; color: var(--text-secondary); }
.poll .tot .col.best { color: var(--text-primary); }
.poll .tot .t-lcd { color: var(--text-tertiary); }

/* CommentThread */
.thread { display: flex; flex-direction: column; gap: 12px; }
.sec-h { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sec-h .t-lcd { color: var(--text-tertiary); }
.cmt { display: flex; gap: 12px; align-items: flex-start; }
.cmt .bubble { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; background: var(--bg-surface-2); border-radius: var(--r-md); }
.cmt .bubble .hd { display: flex; align-items: center; gap: 8px; font: 400 12px/16px var(--mono); white-space: nowrap; }
.cmt .bubble .hd small { font-size: 11px; line-height: 14px; color: var(--text-tertiary); }
.cmt .bubble p { font: 400 12px/16px var(--sans); white-space: pre-line; overflow-wrap: anywhere; }
.cmt-ev { display: flex; align-items: center; gap: 8px; padding: 0 8px; font: 400 11px/14px var(--mono); color: var(--text-secondary); --s: 14px; }
.composer { display: flex; gap: 8px; align-items: center; }
.composer input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bg-sunken); font: 400 14px/20px var(--sans); outline: none; }
.composer input::placeholder { color: var(--text-tertiary); }
.composer input:focus { box-shadow: inset 0 0 0 1.5px var(--text-primary); }

/* Checklist "¿Quién lleva qué?" */
.checklist { display: flex; flex-direction: column; gap: 4px; }
.checklist .hd { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.checklist .hd .t-headline { flex: 1; }
.checklist .hd .t-lcd { color: var(--text-tertiary); }
.chk { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; }
.chk .box-btn { width: 22px; height: 22px; flex: none; border-radius: var(--r-xs); border: 1.5px solid var(--border-strong); background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center; color: var(--text-inverse); --s: 14px; }
.chk.done .box-btn { background: var(--bg-inverse); border-color: var(--bg-inverse); }
.chk .task { flex: 1; min-width: 0; font: 400 14px/20px var(--sans); overflow-wrap: anywhere; }
.chk.done .task { color: var(--text-secondary); }
.chk .who { display: flex; align-items: center; gap: 6px; font: 400 11px/14px var(--mono); color: var(--text-secondary); white-space: nowrap; }
.chk .who select { border: 0; background: none; font: inherit; color: inherit; padding: 0; max-width: 96px; cursor: pointer; }
.chk .del { color: var(--text-tertiary); --s: 14px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.add-task { display: flex; gap: 8px; align-items: center; padding-top: 4px; }
.add-task input { flex: 1; min-width: 0; height: 32px; border: 0; border-bottom: 1px solid var(--border-default); background: none; font: 400 14px/20px var(--sans); outline: none; padding: 0 4px; }
.add-task input:focus { border-color: var(--text-primary); }

/* EmptyState con "pantallita" iPod */
.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 24px; text-align: center; }
.empty .screen { width: 88px; height: 72px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-surface); }
.empty .screen > span { width: 64px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-subtle); border-radius: var(--r-sm); color: var(--text-tertiary); --s: 24px; }
.empty p { max-width: 280px; font: 400 12px/16px var(--sans); color: var(--text-secondary); }

/* Toast oscuro tipo píldora con acción */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(108px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; max-width: calc(100vw - 32px); border-radius: 999px; background: var(--bg-inverse); color: var(--text-inverse);
  font: 400 12px/16px var(--mono); box-shadow: var(--shadow-high); transition: opacity .2s, transform .2s; --s: 18px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #f1f1f0; text-decoration: underline; text-underline-offset: 2px; }

/* Kanban por estado */
.board { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 16px; scroll-snap-type: x mandatory; }
.kcol { flex: 0 0 272px; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: var(--bg-surface-2); border-radius: var(--r-lg); scroll-snap-align: start; align-self: flex-start; }
.kcol-h { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 0 0 4px; font: 400 10px/14px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.kcol-h small { font-size: inherit; color: var(--text-tertiary); flex: 1; }
.sdot { width: 8px; height: 8px; border-radius: 9px; flex: none; background: var(--sd, #cdcdca); }
.s-idea { --sd: #cdcdca; } .s-voting { --sd: #80807c; } .s-confirmed { --sd: #111; } .s-done { --sd: #5c5c59; } .s-cancelled { --sd: #e5484d; }

/* Calendario */
.month { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 12px; }
.month-h { display: flex; align-items: center; height: 40px; padding-left: 4px; margin-bottom: 4px; }
.month-h .t-title2 { flex: 1; text-transform: capitalize; }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wk .wd { height: 22px; display: flex; align-items: center; justify-content: center; font: 400 10px/14px var(--mono); letter-spacing: .06em; color: var(--text-tertiary); }
.cday { height: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; }
.cday .n { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font: 400 12px/16px var(--mono); }
.cday.out .n { color: var(--text-tertiary); }
.cday.today .n { box-shadow: inset 0 0 0 1.5px var(--text-primary); }
.cday.sel .n { background: var(--bg-inverse); color: var(--text-inverse); }
.cday .dots { display: flex; gap: 2px; height: 5px; }
.cday .dots i { width: 5px; height: 5px; border-radius: 9px; background: var(--sd); }
.cal-ev { display: flex; align-items: center; gap: 6px; font: 400 11px/14px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .sdot { width: 6px; height: 6px; }

/* Hojas inferiores y modales (dialog nativo) */
dialog { border: 0; padding: 0; color: inherit; background: none; max-width: 100vw; max-height: 100dvh; }
dialog::backdrop { background: rgba(17, 17, 17, .4); }
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; margin: 0; }
.sheet > .in { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 8px 20px calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-high); max-height: 92dvh; overflow-y: auto; }
.sheet > .in > * { width: 100%; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--border-strong); flex: none; }
.sheet .hd { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.sheet .hd p { font: 400 12px/16px var(--sans); color: var(--text-secondary); }
.qr-card { width: auto !important; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border-default); border-radius: var(--r-lg); }
.qr-card svg { width: 160px; height: 160px; display: block; }
.qr-card .t-caption { color: var(--text-secondary); }
.copyrow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-surface-2); border-radius: var(--r-md); }
.copyrow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; overflow: hidden; }
.copyrow .tx .t-lcd { color: var(--text-tertiary); }
.copyrow .tx .t-bodym { overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) {
  .sheet { inset: 0; margin: auto; width: 420px; height: fit-content; }
  .sheet > .in { border-radius: var(--r-xl); padding-bottom: 32px; }
  .sheet .grab { display: none; }
}

/* GroupHeader */
.ghead { background: var(--bg-surface); overflow: hidden; }
.ghead .gcov { height: 112px; background: var(--bg-sunken); }
.ghead .gbd { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px 20px 20px; }
.ghead .gact { display: flex; justify-content: flex-end; min-height: 32px; }
.ghead .emblem-l { position: absolute; left: 20px; top: -36px; width: 72px; height: 72px; border-radius: 20px; border: 4px solid var(--bg-surface);
  background: var(--bg-inverse); color: var(--text-inverse); display: flex; align-items: center; justify-content: center; font: 500 22px/28px var(--sans); letter-spacing: -.02em; text-transform: uppercase; }
.ghead .mem { display: flex; align-items: center; gap: 8px; font: 400 12px/16px var(--sans); color: var(--text-secondary); }
.stats { display: flex; justify-content: space-between; padding: 12px; background: var(--bg-surface-2); border-radius: var(--r-md); }
.stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stats .t-lcd { color: var(--text-secondary); }

/* GroupSwitcher abierto */
.gs-menu { display: flex; flex-direction: column; gap: 2px; padding: 6px; margin-top: 8px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--shadow-high); }
.gs-menu hr { border: 0; height: 1px; background: var(--border-subtle); margin: 0; }
.gs { position: relative; }
.gs .gs-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; }

/* Auth: logo "pantallita" iPod, enlace mágico y onboarding */
.auth { min-height: 100dvh; display: flex; flex-direction: column; }
.auth .nav { height: 52px; display: flex; align-items: center; padding: 0 8px; }
.auth main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 390px; margin: 0 auto; padding: 8px 16px 24px; }
.auth main.top { justify-content: flex-start; }
.auth .legal { padding: 0 33px calc(40px + env(safe-area-inset-bottom, 0px)); text-align: center; font: 400 11px/14px var(--mono); color: var(--text-tertiary); }
.authbox { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.authbox > form, .authbox > .field, .authbox > .btn, .authbox > .w { width: 100%; }
.authbox form { display: flex; flex-direction: column; gap: 24px; }
.authbox .hd { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 300px; }
.authbox .hd p { font: 400 12px/16px var(--sans); color: var(--text-secondary); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.brand .dev { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-surface); box-shadow: var(--shadow-mid); }
.brand .dev span { width: 52px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--bg-inverse); color: var(--text-inverse); font: 600 16px/22px var(--mono); letter-spacing: -.005em; }
.mailbadge { width: 88px; height: 88px; border-radius: 999px; background: var(--bg-sunken); display: flex; align-items: center; justify-content: center; --s: 36px; }
.err { font: 400 11px/14px var(--mono); color: var(--text-danger); }

.steps { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.steps .t-lcd { color: var(--text-tertiary); }
.dots3 { display: flex; gap: 6px; align-items: center; }
.dots3 i { width: 8px; height: 8px; border: 1px solid var(--text-primary); }
.dots3 i.f { background: var(--text-primary); }
.dots3 i.cur { width: 24px; background: var(--text-primary); }
.onb { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.onb .hd { display: flex; flex-direction: column; gap: 6px; }
.onb .hd p { color: var(--text-secondary); }
.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 4px; }
.palette input { position: absolute; opacity: 0; pointer-events: none; }
.palette label { cursor: pointer; }
.palette input:checked + .av { box-shadow: 0 0 0 2.5px var(--text-primary) inset, 0 0 0 0 transparent; outline: 2.5px solid var(--text-primary); outline-offset: -2.5px; }
.palette input:focus-visible + .av { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 16px; width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border-default); background: var(--bg-surface); text-align: left; --s: 16px; }
.opt .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: 400 13px/18px var(--mono); }
.opt .tx small { font-size: 11px; line-height: 14px; color: var(--text-secondary); }
.opt .ic { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--bg-sunken); display: flex; align-items: center; justify-content: center; flex: none; --s: 18px; }
.opt.on { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--text-inverse); }
.opt.on .tx small { color: var(--text-inverse); }
.opt.on .ic { background: var(--bg-surface); color: var(--text-primary); font: 400 12px/16px var(--mono); }
.opt > .i-chev { color: var(--text-tertiary); }
.opt.on > .i-chev { color: var(--text-inverse); }

/* Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px #11111126; transition: transform .15s; }
.switch input:checked + span { background: var(--bg-inverse); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--text-primary); outline-offset: 2px; }

/* NotificationCenter */
.notif { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; }
.notif .hd { display: flex; align-items: center; padding: 16px 16px 8px; }
.notif .hd .t-title2 { flex: 1; }
.notif .glabel { padding: 12px 16px 4px; font: 400 10px/14px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.nitem { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; }
.nitem .bdg { width: 36px; height: 36px; flex: none; border-radius: 999px; background: var(--bg-sunken); display: flex; align-items: center; justify-content: center; --s: 18px; }
.nitem .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: 400 12px/16px var(--mono); }
.nitem .tx small { font-size: 11px; line-height: 14px; color: var(--text-secondary); overflow-wrap: anywhere; }
.nitem .unread { width: 8px; height: 8px; border-radius: 9px; background: var(--text-primary); flex: none; margin-top: 4px; }
.notif .ft { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-surface-2); border-top: 1px solid var(--border-subtle); font: 400 12px/16px var(--sans); color: var(--text-secondary); --s: 18px; }
.notif .ft > span:nth-child(2) { flex: 1; }

/* UrlPreview y Skeletons */
.urlp { display: flex; flex-direction: column; gap: 12px; }
.urlin { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--r-md); color: var(--text-secondary); --s: 18px; }
.urlin:focus-within { border: 1.5px solid var(--text-primary); padding: 0 11.5px; }
.urlin input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 400 14px/20px var(--sans); color: var(--text-primary); }
.urlin input::placeholder { color: var(--text-tertiary); }
.prev { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); }
.prev .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.prev .site { display: flex; align-items: center; gap: 4px; font: 400 11px/14px var(--mono); color: var(--text-tertiary); --s: 12px; }
.prev .t-headline { overflow-wrap: anywhere; }
.prev .desc { font: 400 12px/16px var(--sans); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk { background: var(--bg-sunken); border-radius: 5px; animation: sk 1.2s ease-in-out infinite alternate; }
@keyframes sk { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk-card { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }

/* Ruleta "¿Qué hacemos hoy?": gráfico radial, relleno = interés del crew */
.roul .grp { display: flex; flex-direction: column; gap: 8px; }
.roul .grp .t-lcd { color: var(--text-tertiary); }
.wheel { position: relative; width: 280px; height: 288px; margin: 0 auto; flex: none; }
.wheel::before { content: ""; position: absolute; left: 134px; top: -2px; border: 6px solid transparent; border-top: 8px solid var(--text-primary); border-bottom: 0; z-index: 1; }
.wheel svg { width: 280px; height: 280px; margin-top: 8px; display: block; overflow: visible; }
.wheel .rot { transform-origin: 140px 140px; transition: transform 2.4s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .wheel .rot { transition: none; } }
.wheel .trk { fill: #f1f1f0; }
.wheel .val { fill: #e2e2e0; }
.wheel .seg.win .trk, .wheel .seg.win .val { fill: #111; }
.wheel text { font-family: var(--mono); text-anchor: middle; fill: var(--text-primary); }
.wheel .seg .lb { fill: var(--text-secondary); }
.wheel .seg.win text { fill: #fff; }
.roul .acts { display: flex; gap: 8px; }
.roul .acts .btn:last-child { flex: 1; }

/* Shell: móvil con TitleBar + BottomNav; escritorio con Sidebar */
.app { min-height: 100dvh; }
.main { min-width: 0; }
.content { padding: 12px 16px calc(120px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
.content.nopad { padding-left: 0; padding-right: 0; }
.topbar { display: none; }
.glabel { display: flex; align-items: baseline; gap: 8px; padding-top: 12px; font: 400 10px/14px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
.glabel small { font-size: inherit; color: var(--text-tertiary); }
.list > .card:last-child { border-bottom: 0; }
.bar-row { border-top: 1px solid var(--text-primary); border-bottom: 1px solid var(--text-primary); padding: 5px 0; }
.bar-row .row { padding: 0 4px; }
.tagidx { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tag { display: inline-flex; align-items: baseline; gap: 4px; height: 20px; font: 400 12px/16px var(--mono); color: var(--text-primary); }
.tag sup { font-size: 10px; line-height: 14px; color: var(--text-tertiary); vertical-align: baseline; position: relative; top: -4px; }
.tag.on { background: var(--bg-inverse); color: var(--text-inverse); padding: 0 4px; border-radius: var(--r-xs); }
.tag.on sup { color: var(--text-inverse); }
.filters { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.filters select { appearance: none; -webkit-appearance: none; border: 0; background: none; height: 36px; padding: 0 22px 0 8px; border-radius: var(--r-xs);
  font: 400 12px/16px var(--mono); color: var(--text-primary); cursor: pointer;
  background-image: url(../icons/chevron-down.svg); background-size: 14px; background-repeat: no-repeat; background-position: right 4px center; }
.filters select.on { background-color: var(--bg-inverse); color: var(--text-inverse); background-image: none; padding-right: 8px; }

/* Detalle del plan: "Now playing" con carátula y reflejo */
.now { display: flex; flex-direction: column; align-items: center; padding: 24px 24px 16px; text-align: center; }
.now .art { position: relative; margin-bottom: 52px; }
.now .art .cover { --c: 208px; --s: 24px; border-radius: 20px; }
.now .art::after { content: ""; position: absolute; left: 0; right: 0; top: 210px; height: 40px; border-radius: 20px 20px 0 0;
  background: var(--refl, #e2e2e0); opacity: .25; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.now .t-title1 { margin-top: 12px; overflow-wrap: anywhere; }
.now .sub { margin-top: 12px; font: 400 12px/16px var(--sans); color: var(--text-secondary); }
.now .lcdline { font: 400 10px/14px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.desc { font: 400 14px/20px var(--sans); white-space: pre-line; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions > .btn { flex: 1 0 auto; }

/* Formulario de plan */
.form { display: flex; flex-direction: column; gap: 20px; }
.form .lbl { font: 400 12px/16px var(--mono); margin-bottom: 8px; display: block; }
.form .lbl-lcd { font: 400 10px/14px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.dateopt { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--r-md); --s: 18px; }
.dateopt input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 400 14px/20px var(--sans); }
.dateopt .ibtn { width: 28px; height: 28px; color: var(--text-tertiary); --s: 16px; }
.dates { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pair { display: flex; gap: 12px; align-items: flex-start; }
.pair > :first-child { flex: 1; min-width: 0; }
.cardrow { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); --s: 20px; }
.cardrow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: 400 13px/18px var(--mono); }
.cardrow .tx small { font-size: 11px; line-height: 14px; color: var(--text-secondary); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-default); display: flex; align-items: center; justify-content: center; font: 400 16px/20px var(--mono); }
.stepper button:last-child { width: 40px; height: 40px; border-radius: var(--r-sm); --s: 20px; }
.stepper output { font: 400 20px/24px var(--mono); letter-spacing: -.02em; min-width: 24px; text-align: center; }
.cta-note { text-align: center; font: 400 11px/14px var(--mono); color: var(--text-tertiary); margin-top: 8px; }
.people .row { min-height: 48px; padding: 0 8px; }
.people .row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.people .row .tx b { font: 500 15px/18px var(--sans); letter-spacing: -.005em; }
.people .row .tx small { font: 400 11px/14px var(--mono); color: var(--text-secondary); }
.people .row.on .tx small { color: var(--text-inverse); }
.flash { padding: 12px 16px; border-radius: var(--r-md); background: var(--bg-sunken); font: 400 12px/16px var(--mono); }
.flash.bad { background: var(--cancel-bg); color: var(--text-danger); }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 264px 1fr; }
  .sidebar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 20px 12px 16px; border-right: 1px solid var(--border-default); background: var(--bg-surface); }
  .sidebar .grow { flex: 1; }
  .titlebar, .bottomnav, .mobile-only { display: none !important; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 24px 32px 0; }
  .topbar .tg { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .topbar .tg .t-lcd { color: var(--text-secondary); }
  .topbar .tg .t-title1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .search { width: 280px; }
  .content { padding: 16px 32px 48px; max-width: 760px; }
  .content.wide { max-width: none; }
  .board { margin: 0; padding: 0 0 16px; }
  .kcol { flex-basis: 266px; }
  .toast { bottom: 32px; }
  .plan-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .plan-cols > div { display: flex; flex-direction: column; gap: 16px; }
  .now { flex-direction: row; align-items: center; gap: 24px; text-align: left; padding: 8px 0; }
  .now .art { margin-bottom: 0; }
  .now .art .cover { --c: 168px; }
  .now .art::after { display: none; }
  .now .txt { align-items: flex-start; }
  .now .txt .t-title1 { font-size: 32px; line-height: 36px; letter-spacing: -.03em; }
  .desk-only { display: flex !important; }
  .month-big .cday { height: 112px; align-items: stretch; padding: 8px; border-top: 1px solid var(--border-subtle); gap: 4px; }
  .month-big .cday .n { width: 28px; height: 28px; }
  .month-big .cday .dots { display: none; }
  .month-big .cday .evs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
}
.month .cday .evs { display: none; }
@media (min-width: 1024px) { .month-big .cday .evs { display: flex; } }
.gs > summary { list-style: none; cursor: pointer; }
.gs > summary::-webkit-details-marker { display: none; }
.gs .gs-menu form { display: contents; }
.sheet .gs .gs-menu { position: static; box-shadow: none; }

.now .txt { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 1023px) { .now .txt { align-items: center; } .desk-only { display: none !important; } }
.now .actions { margin-top: 12px; align-items: center; }
.row.danger { color: var(--text-danger); }
.chk form { display: flex; align-items: center; }
.menu form { display: contents; }
input:focus-visible + .chip { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.chips label { display: inline-flex; cursor: pointer; }
.dm-fixed, .dm-poll { display: none; }
.form:has(input[name=date_mode][value=fixed]:checked) .dm-fixed,
.form:has(input[name=date_mode][value=poll]:checked) .dm-poll { display: flex; }
.stepnum { width: 40px; border: 0; background: none; text-align: center; font: 400 20px/24px var(--mono); letter-spacing: -.02em; -moz-appearance: textfield; appearance: textfield; }
.stepnum::-webkit-inner-spin-button, .stepnum::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button:last-child { border-radius: var(--r-sm); }
.cardrow label { cursor: pointer; }
legend { padding: 0; }
.wheel .lab { transform: rotate(calc(var(--rot) * -1)); transition: transform 2.4s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .wheel .lab { transition: none; } }
.chk .who select { -webkit-appearance: none; appearance: none; }
@media (max-width: 1023px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters select { flex: none; }
}
@media (min-width: 1024px) { .month-big .cday { min-width: 0; overflow: hidden; } }
