/* Social Saints · the Saints CrossFit look (social media posters): cool black, Saints cyan #06B1CF, white;
   heavy condensed headlines (Anton), wide-tracked capitals (Montserrat), thin cyan frames, sharp corners. */
:root {
  --bg: #05080A; --bg2: #0A0E11; --card: #0D1215; --card2: #131A1E; --card3: #1B2428;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.15);
  --text: #F5F7F8; --text2: #C9D1D5; --muted: #85919A; --dim: #3E4A51;
  --teal: #06B1CF; --teal2: #3FCDE6; --teal-ink: #00151B; --teal-rgb: 6,177,207; --teal-soft: rgba(var(--teal-rgb),.10); --teal-line: rgba(var(--teal-rgb),.55);
  --red: #C41230; --lilac: #C9B3FF; --ok: #8fd19e; --warn: #e0a15f; --bad: #e06c6c;
  --r: 6px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Anton', 'Bebas Neue', Impact, system-ui, sans-serif;
  --track: .26em;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
/* a soft studio light from the top, like the posters */
body { background: radial-gradient(120% 60% at 70% -10%, rgba(120,150,165,.10), transparent 60%), radial-gradient(80% 50% at 0% 100%, rgba(var(--teal-rgb),.05), transparent 70%), var(--bg);
  background-attachment: fixed; min-height: 100vh; }
a { color: var(--teal); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font-family: var(--display); font-size: 38px; letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
h2 { font-family: var(--display); font-size: 27px; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; }
h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
::selection { background: var(--teal); color: var(--teal-ink); }
.ic { flex: none; }
.muted { color: var(--muted); } .sm { font-size: 13.5px; } .xs { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* boot / spinner */
.boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 24px; }
.boot-logo { width: 150px; height: auto; opacity: .95; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: none; } }
.brand b { color: var(--teal); font-weight: 400; }
.spin { display: grid; place-items: center; padding: 40px; }
.spin i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line2); border-top-color: var(--teal); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* layout */
.shell { min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(5,8,10,.86); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-size: 21px; letter-spacing: .06em; line-height: 1; }
.brand img { height: 26px; width: auto; }
.page { max-width: 760px; margin: 0 auto; padding: 22px 16px 32px; }
.page.wide { max-width: 1100px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 22px; flex-wrap: wrap; }
/* the short white rule under every page title, as on the posters */
.ph h1::after { content: ''; display: block; width: 44px; height: 3px; margin-top: 12px; background: var(--text); }
.eyebrow { color: var(--teal); font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; margin-bottom: 8px; }
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: rgba(5,8,10,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.nav a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; color: var(--text2);
  font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
/* every option is readable (light grey); the chosen one is white, its icon cyan, with the cyan line */
.nav a svg { color: #AEBBC2; }
.nav a.on { color: #fff; font-weight: 800; }
.nav a.on svg { color: var(--teal); }
.nav a.on::before { content: ''; position: absolute; top: -4px; left: 30%; right: 30%; height: 2px; background: var(--teal); }
/* Nov 10: at most 5 places on the phone; the rest go to "Más" (a sheet). The computer's side menu shows them all. */
.nav .nav-more { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; color: var(--text2);
  font: inherit; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; cursor: pointer; }
.nav .nav-more svg { color: #AEBBC2; }
.nav .nav-more.on { color: #fff; font-weight: 800; } .nav .nav-more.on svg { color: var(--teal); }
.nav .nav-more.on::before { content: ''; position: absolute; top: -4px; left: 30%; right: 30%; height: 2px; background: var(--teal); }
.nav a > span:last-child, .nav .nav-more > span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .nav-mode { display: none; }
@media (max-width: 899px) { .nav a.nav-x { display: none; } }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-it { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 14px 6px;
  border: 1px solid var(--line); border-radius: 3px; color: var(--text); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.more-it svg { color: #AEBBC2; }
.more-it.on { border-color: var(--teal); background: var(--teal-soft); } .more-it.on svg { color: var(--teal); }
.more-mode { width: 100%; margin-top: 16px; justify-content: center; }
/* Recepción: Socios · Ventas · Recaudo · Reportes always on one line */
.desk-tabs .seg { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.desk-tabs .seg button { min-width: 0; padding-left: 4px; padding-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .desk-tabs .seg button { font-size: 10px; letter-spacing: .06em; } }
/* the photo at the top: a dot when a coach wrote (seguimientos) */
.top-me { position: relative; display: inline-flex; } .top-me .nav-badge { top: -4px; right: -6px; }
/* notifications (Perfil) */
.nt-prefs { display: grid; gap: 10px; }
.nt-prefs label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.nt-prefs input { width: auto; min-height: 0; margin-top: 3px; }
/* the box's notices in the feed */
.post.is-notice { border-color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.notice-tag { display: inline-block; margin-top: 10px; padding: 3px 8px; border-radius: 3px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
/* Seguimientos */
.fu-row.unread b { color: #fff; }
.fu-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; }
.fu-last { display: block; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fu-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.fu-topic { font-size: 11px; }
.fu-ctl { display: grid; gap: 10px; }
.fu-ctl .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.fu-ctl .seg button { min-width: 0; padding-left: 4px; padding-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; letter-spacing: .06em; }
.fu-coach { display: grid; gap: 4px; }
.fu-chat { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; padding: 4px 2px 8px; margin-bottom: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.fu-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.fu-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.fu-bubble { padding: 8px 11px; border-radius: 10px 10px 10px 2px; background: var(--card2, #141B20); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; }
.fu-msg.mine .fu-bubble { border-radius: 10px 10px 2px 10px; background: var(--teal-soft); border-color: rgba(var(--teal-rgb),.35); }
.fu-who { color: var(--text2); margin-bottom: 2px; }
.fu-send { display: flex; gap: 8px; align-items: flex-end; } .fu-send textarea { flex: 1; }
.fu-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fu-tp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 3px; background: none; color: var(--text2);
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.fu-tp span { font-size: 22px; } .fu-tp.on { border-color: var(--teal); color: #fff; background: var(--teal-soft); }
.fu-card { display: block; color: inherit; } .fu-card:hover { border-color: var(--teal); }
/* tabs with 3 options on one line (Social, Eventos) */
.social-tabs .seg, .ev-when .seg, .pd-tabs .seg, .rc-tabs .seg { grid-template-columns: repeat(3, 1fr); }
/* notifications invite (Hoy) */
.nt-invite { border-color: var(--teal); } .nt-bell { color: var(--teal); flex: none; margin-top: 2px; }
/* Eventos y competencias */
.ev-kinds { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .ev-kinds::-webkit-scrollbar { display: none; }
.ev-grid { display: grid; gap: 14px; } @media (min-width: 700px) { .ev-grid { grid-template-columns: 1fr 1fr; } }
.card.ev-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.social-tabs .seg button { font-size: 10px; letter-spacing: .05em; }
.ev-open { display: block; width: 100%; padding: 0; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.ev-photo { aspect-ratio: 16 / 9; background: #0B1114; overflow: hidden; } .ev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-photo.none { display: grid; place-items: center; background: linear-gradient(135deg, rgba(var(--teal-rgb),.18), rgba(5,8,10,.9)); } .ev-photo.none span { font-size: 44px; }
.ev-body { padding: 12px 14px 4px; display: grid; gap: 4px; } .ev-body h3 { margin: 4px 0 2px; font-size: 18px; line-height: 1.2; }
.ev-body .chip { justify-self: start; }
.ev-body .muted { display: flex; gap: 6px; align-items: center; } .ev-price { color: var(--teal); font-weight: 700; }
.ev-rsvp { display: flex; gap: 8px; padding: 10px 14px 14px; } .ev-rsvp .btn { flex: 1; } .ev-rsvp.big { padding: 0; margin-bottom: 10px; }
.ev-photos { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; } .ev-photos img { height: 170px; border-radius: 3px; display: block; }
.ev-facts { display: grid; gap: 8px; margin-bottom: 12px; } .ev-facts > div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .ev-facts svg { color: var(--teal); flex: none; margin-top: 2px; }
.ev-partner { gap: 8px; align-items: flex-start; margin: 4px 0 8px; } .ev-partner input { width: auto; min-height: 0; margin-top: 3px; }
.ev-people { display: flex; flex-wrap: wrap; gap: 10px; } .ev-p { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 46px; text-align: center; overflow: hidden; }
.ev-kpick { grid-template-columns: repeat(5, 1fr); } @media (max-width: 420px) { .ev-kpick { grid-template-columns: repeat(3, 1fr); } }
.ev-thumbs { display: flex; gap: 8px; flex-wrap: wrap; } .ev-thumb { position: relative; width: 86px; height: 86px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; display: grid; place-items: center; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; } .ev-thumb .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(5,8,10,.8); }
.ev-thumb.add { cursor: pointer; color: var(--text2); border-style: dashed; }
/* Movimientos del equipo */
.au-row { align-items: flex-start; } .au-by { color: var(--teal); display: block; margin-top: 2px; }
.au-amt { flex: none; } .au-amt.neg { color: var(--bad); text-decoration: line-through; }
.au-undo { box-shadow: inset 3px 0 0 var(--bad); padding-left: 10px; }
.au-n { display: flex; flex-direction: column; align-items: flex-end; flex: none; } .lrow.on { background: var(--teal-soft); }
/* Recaudo por período */
.sl-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } @media (max-width: 640px) { .sl-filters { grid-template-columns: 1fr 1fr; } }
.sl-f { display: grid; gap: 4px; min-width: 0; }
.sl-cols { display: grid; gap: 0 14px; } @media (min-width: 700px) { .sl-cols { grid-template-columns: 1fr 1fr; } }
.cc { border-color: var(--teal); }
.cc-exp { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .cc-exp b { font-size: 20px; white-space: nowrap; }
.cc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; } .cc-form label { display: grid; gap: 4px; min-width: 0; }
.cc-form .btn { grid-column: 1 / -1; } @media (min-width: 700px) { .cc-form { grid-template-columns: 1fr 2fr auto; } .cc-form .btn { grid-column: auto; } }
/* "Se pagó con varias cajas" */
.box-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .box-split label { display: grid; gap: 4px; min-width: 0; }
@media (min-width: 700px) { .box-split { grid-template-columns: repeat(4, 1fr); } }
.box-toggle { margin-top: 8px; }
/* Comparar planes (domingos) */
.cmp-row { align-items: flex-start; gap: 10px; cursor: pointer; } .cmp-row input { width: auto; min-height: 0; margin-top: 4px; }
/* Finanzas */
.fi-goal.ok { border-color: var(--teal); } .fi-goal.pace { border-color: var(--warn); } .fi-goal.low { border-color: var(--bad); }
.fi-goal.ok .bar i { background: var(--teal); } .fi-goal.pace .bar i { background: var(--warn); } .fi-goal.low .bar i { background: var(--bad); }
.fi-kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; } .fi-kv span { color: var(--text2); } .fi-kv b { text-align: right; }
.fi-tbl td, .fi-tbl th { white-space: nowrap; text-align: right; font-size: 13px; } .fi-tbl td:first-child, .fi-tbl th:first-child { text-align: left; position: sticky; left: 0; background: var(--card, #0B1114); }
.fi-tbl tr.tot td, .fi-tbl tr.tot th { font-weight: 800; border-top: 1px solid var(--line2, var(--line)); } .fi-tbl tr.sec th { color: var(--teal); font-size: 11px; letter-spacing: .12em; padding-top: 14px; }
.fi-sum .tbl-wrap { max-height: 70vh; }
.fi-row .fi-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.fi-out .fi-side b { color: var(--bad); } .fi-move .fi-side b { color: var(--text2); }
.fi-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; } @media (min-width: 700px) { .fi-boxes { grid-template-columns: repeat(4, 1fr); } }
.fi-box { display: grid; gap: 4px; margin: 0; } .fi-box b { font-size: 20px; } .fi-box.neg b { color: var(--bad); }
.fi-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .fi-form label { display: grid; gap: 4px; min-width: 0; } @media (max-width: 420px) { .fi-form { grid-template-columns: 1fr; } }
/* "Modo atleta": a thin bar under the top so nobody forgets it is on */
.mode-bar { position: sticky; top: 55px; z-index: 19; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--teal-soft); border-bottom: 1px solid var(--teal); color: var(--text); font-size: 12.5px; }
.mode-bar > span { display: inline-flex; align-items: center; gap: 8px; } .mode-bar svg { color: var(--teal); }
@media (min-width: 900px) {
  .nav .nav-more { display: none; }
  .nav .nav-mode { display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 12px 14px; background: none; border: 1px dashed var(--line);
    border-radius: 3px; color: var(--text2); font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
  .nav .nav-mode:hover { color: #fff; border-color: var(--teal); }
}
@media (min-width: 900px) {
  .shell { padding-bottom: 0; padding-left: 232px; }
  .nav { top: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 84px 14px 14px;
    border-top: 0; border-right: 1px solid var(--line); }
  .nav a { flex: none; flex-direction: row; gap: 14px; padding: 12px 14px; font-size: 11.5px; }
  .nav a.on { background: linear-gradient(90deg, var(--teal-soft), transparent); }
  .nav a.on::before { top: 8px; bottom: 8px; left: 0; right: auto; width: 2px; height: auto; }
  .top { padding-left: 24px; }
}

/* cards & controls */
.card { position: relative; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card { margin-top: 12px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h .ic { color: var(--teal); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 3px;
  border: 1px solid var(--teal); background: var(--teal); color: var(--teal-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: transform .12s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { background: var(--teal2); box-shadow: 0 6px 24px rgba(var(--teal-rgb),.25); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--teal-line); background: var(--teal-soft); box-shadow: none; }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(224,108,108,.4); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 11px; letter-spacing: .16em; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 3px; border: 1px solid var(--line2);
  background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--teal-line); color: var(--teal); }
.icon-btn.sm { width: 32px; height: 32px; }
.linkish { background: none; border: 0; padding: 0; color: var(--teal); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 10.5px; color: var(--text2); margin-bottom: 8px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.field .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 3px; border: 1px solid var(--line2);
  background: rgba(0,0,0,.35); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 0; background: transparent; border: 1px solid var(--line2); border-radius: 3px; overflow: hidden; }
.seg button { min-height: 38px; padding: 0 16px; border-radius: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: var(--teal); color: var(--teal-ink); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--card3); color: var(--text2); white-space: nowrap; }
.chip.teal { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal-line); }
.chip.red { background: rgba(196,18,48,.18); color: #ff8fa1; }
.chip.lilac { background: rgba(212,170,255,.14); color: var(--lilac); }
.chip.warn { background: rgba(224,161,95,.16); color: var(--warn); }
.err { background: rgba(224,108,108,.08); color: #f09a9a; padding: 11px 14px; border-left: 2px solid var(--bad); border-radius: 2px; margin-bottom: 14px; font-size: 13.5px; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--text); margin: 10px 0 4px; }
.demo-bar { background: var(--teal-soft); color: var(--teal); font-size: 12.5px; text-align: center; padding: 6px 12px; }

/* avatars */
.av { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--card3); color: var(--text2); font-weight: 600; border: 2px solid var(--teal-line); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.av-grid button { padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; aspect-ratio: 1; }
.av-grid button.on { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.av-grid img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* modal */
/* the overlay follows the visible part of the screen (--vvh/--vvt, app.js): when the phone keyboard opens,
   the window shrinks above it instead of hiding the field being typed in */
.overlay { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100%); z-index: 60; display: grid; place-items: end center; background: rgba(0,0,0,.6); }
@media (min-width: 700px) { .overlay { place-items: center; } }
.overlay { backdrop-filter: blur(6px); }
.modal { width: min(560px, 100%); max-height: calc(var(--vvh, 100vh) * .94); overflow: auto; overscroll-behavior: contain; background: var(--card); border: 1px solid var(--line2); border-top: 2px solid var(--teal);
  border-radius: 8px 8px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal { border-radius: 6px; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* toasts */
.toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 3px; background: rgba(13,18,21,.96); border: 1px solid var(--line2); border-left: 2px solid var(--teal); font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.err { border-color: rgba(224,108,108,.5); }

/* login */
/* sign-in: a poster — logo, SOCIAL in white, SAINTS in cyan, the short rule, a tracked line, the form */
.login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; overflow: hidden; }
.login::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url('../assets/brand/saints-alas.png') no-repeat 115% 8% / min(620px, 120vw) auto; opacity: .06; filter: blur(1px); }
.login-box { width: min(400px, 100%); }
.login-mark { display: block; width: 132px; height: auto; margin: 0 0 30px -6px; }
.login-logo { font-family: var(--display); font-size: 64px; line-height: .92; text-transform: uppercase; margin-bottom: 0; }
.login-logo b { color: var(--teal); font-weight: 400; display: block; font-size: 1.16em; letter-spacing: -.005em; }
.login-rule { width: 56px; height: 3px; background: var(--text); margin: 20px 0 16px; }
.tagline { font-size: 10.5px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--text2); margin-bottom: 30px; }
.login-foot { display: block; width: 160px; height: auto; margin: 34px auto 0; opacity: .9; }
.login-box h2 { margin-bottom: 8px; }
.login .card { background: rgba(13,18,21,.7); backdrop-filter: blur(8px); }
.frame { border: 1px solid var(--teal-line); border-radius: 2px; padding: 16px; }

/* today: whiteboard */
.day-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.day-nav .grow { text-align: center; font-weight: 600; }
.block:not(.btn) { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.block.linked:not(.btn) { margin-top: -6px; border-top-left-radius: 6px; border-top-right-radius: 6px; }
.block-h { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.block-letter { font-family: var(--display); font-size: 26px; color: var(--teal); line-height: 1; }
.block-title { font-family: var(--display); font-size: 24px; letter-spacing: .5px; line-height: 1.05; }
.target { color: var(--text2); font-size: 14px; margin-top: 2px; }
.moves { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.moves li { display: flex; gap: 10px; align-items: baseline; }
.moves .reps { min-width: 52px; font-weight: 700; color: var(--teal); }
.moves .load { color: var(--text2); font-size: 14px; }
.moves .tag { font-size: 11px; color: var(--lilac); text-transform: uppercase; letter-spacing: 1px; }
.lv-tabs { margin: 4px 0 2px; }
.score-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.my-score { font-family: var(--display); font-size: 26px; letter-spacing: .5px; }
.team-note { display: flex; gap: 8px; align-items: center; color: var(--lilac); font-size: 14px; margin-top: 8px; }

/* today: controls, whiteboard (same look as gutiandres.com) and the companion standing next to it */
.day-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wb { position: relative; margin: 4px 0 22px; }
.wb-surface { position: relative; padding: 18px 22px 20px; border-radius: 6px; color: #1d1d1d; min-height: 220px;
  background: radial-gradient(120% 90% at 18% 10%, #ffffff 0%, #f4f5f3 55%, #e9ebe8 100%);
  border: 9px solid #b9bec4; border-color: #d4d8dc #a9aeb4 #9aa0a6 #c4c8cd;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 2px 10px rgba(0,0,0,.06), 0 10px 26px rgba(0,0,0,.45); }
.wb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid rgba(30,79,191,.55); }
.wb-track { display: inline-block; padding: 1px 10px 2px; border-radius: 4px; background: var(--teal); color: #00151B; font-family: 'Permanent Marker', cursive; font-size: 15px; transform: rotate(-2deg); }
.wb-lv { font-family: 'Permanent Marker', cursive; font-size: 15px; color: #fff; background: #c62828; padding: 0 8px; border-radius: 4px; transform: rotate(1.5deg); }
.wb-date { font-family: 'Permanent Marker', 'Kalam', cursive; font-size: 15px; color: #1e4fbf; text-transform: uppercase; }
.wb-title { flex-basis: 100%; font-family: 'Permanent Marker', cursive; font-size: 22px; color: #c62828; line-height: 1.1; }
.wb-l { font-family: 'Kalam', 'Comic Sans MS', cursive; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.wb-block { font-family: 'Permanent Marker', cursive; color: #c62828; font-size: 18px; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.wb-letter { color: #1d1d1d; } .wb-q { color: #1e4fbf; } .wb-fmt { color: #1e4fbf; font-size: 16px; }
.wb-move { padding-left: 22px; color: #1d1d1d; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.wb-qty { color: #1e4fbf; } .wb-load { color: #1f7a3a; } .wb-tag { color: #8a2be2; font-size: 14px; font-weight: 400; }
.wb-then { padding-left: 22px; margin-top: 4px; color: #1e4fbf; font-family: 'Permanent Marker', cursive; font-size: 15px; text-transform: lowercase; }
.wb-then::before { content: '↓ '; }
.wb-note { padding-left: 22px; color: #6b6b6b; font-size: 16px; }
.wb-team { padding-left: 22px; color: #8a2be2; font-size: 16px; }
.wb-tray { position: relative; height: 12px; margin: -2px 8px 0; border-radius: 0 0 6px 6px; background: linear-gradient(#b4b9bf, #8d9399); box-shadow: 0 4px 8px rgba(0,0,0,.35);
  display: flex; align-items: flex-start; gap: 6px; padding: 0 14px; }
.wb-tray .mk { width: 34px; height: 7px; margin-top: -4px; border-radius: 3px 5px 5px 3px; background: var(--mk); box-shadow: inset -7px 0 0 rgba(255,255,255,.75); }
.wb-tray .mk.red { --mk: #c62828; } .wb-tray .mk.blue { --mk: #1e4fbf; } .wb-tray .mk.black { --mk: #222; } .wb-tray .mk.green { --mk: #1f7a3a; }
.wb-tray .eraser { width: 40px; height: 9px; margin: -6px 0 0 auto; border-radius: 3px; background: linear-gradient(#3b3b3b 0 45%, #e8e2d0 45%); }
/* Nov 9 (Andrés): the companion stands BELOW the board, its message beside it, so it never covers the workout
   (it used to sit in the board's corner and its bubble went up over the last lines) */
.wb-buddy { position: relative; z-index: 2; display: flex; justify-content: flex-end; margin: -14px 4px 0 0; }
.wb-buddy .buddy { flex-direction: row; align-items: center; gap: 10px; }
.wb-buddy .buddy-say { margin: 14px 0 0; max-width: min(280px, calc(100vw - 170px)); border-radius: 14px 14px 4px 14px; }
@media (max-width: 560px) { .wb-buddy .buddy { --s: 84px !important; } }
@media (max-width: 560px) { .wb-surface { padding: 14px 14px 16px; border-width: 7px; } .wb-l { font-size: 17px; } .wb-block { font-size: 16px; } .wb-move, .wb-then, .wb-note, .wb-team { padding-left: 12px; } }

/* the companion */
.buddy { position: relative; display: inline-flex; flex-direction: column; align-items: flex-end; }
.buddy-av { width: var(--s); height: var(--s); padding: 0; border-radius: 50%; border: 3px solid var(--teal); background: #141414; overflow: hidden; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 0 4px rgba(var(--teal-rgb),.15); animation: float 3.6s ease-in-out infinite; }
.buddy-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buddy-av.hop { animation: hop .55s var(--ease), float 3.6s ease-in-out .55s infinite; }
.buddy-say { position: relative; max-width: 220px; margin-bottom: 8px; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--teal); color: var(--teal-ink);
  font-size: 13.5px; font-weight: 600; line-height: 1.3; box-shadow: 0 4px 14px rgba(0,0,0,.35); animation: pop .35s var(--ease); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-16px) scale(1.06) rotate(-4deg); } 70% { transform: translateY(0) scale(.97); } 100% { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.95); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .buddy-av, .buddy-av.hop, .buddy-say { animation: none; } }

/* today: the blocks that go to the leaderboard */
.score-card { display: flex; align-items: center; gap: 12px; }
.score-card .my-score { margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.mini-board { background: #f4f5f3; color: #1d1d1d; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-family: 'Kalam', cursive; font-size: 17px; }
.mini-board b { color: #1e4fbf; } .mini-board .ld { color: #1f7a3a; }
.lrow.pick { background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; width: 100%; text-align: left; }

/* rewards */
.rank-card { display: flex; align-items: center; gap: 14px; }
.rank-ic { font-size: 44px; line-height: 1; }
.rank-name { font-family: var(--display); font-size: 30px; letter-spacing: .5px; line-height: 1; }
.rank-pts { text-align: center; } .rank-pts b { display: block; font-family: var(--display); font-size: 34px; color: var(--teal); line-height: 1; } .rank-pts span { font-size: 11px; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--card3); margin: 8px 0 4px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--teal2)); }
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.medal-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 4px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-align: center; }
.medal-cell b { font-size: 13.5px; }
.medal { --ring: #4a4a4a; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--card3) 0); }
.medal::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2a2a, #121212); }
.medal-ic { position: relative; font-size: calc(var(--s) * .44); line-height: 1; }
.medal.locked .medal-ic { filter: grayscale(1); opacity: .45; }
.medal.locked { --ring: var(--teal); }
.medal.tier-bronze { --ring: #cd7f32; } .medal.tier-silver { --ring: #c9d1d9; } .medal.tier-gold { --ring: #f2c14e; }
.medal.tier-diamond { --ring: #06B1CF; box-shadow: 0 0 16px rgba(6,177,207,.45); } .medal.tier-legend { --ring: #D4AAFF; box-shadow: 0 0 18px rgba(212,170,255,.5); }
/* the movement picker (new 1RM) */
.move-hits { margin-top: 6px; max-height: 280px; overflow: auto; border: 1px solid var(--line2); border-radius: 3px; }
.move-hits .lrow { width: 100%; text-align: left; padding: 11px 12px; }
/* Social · feed */
.nav-ic { position: relative; display: inline-grid; }
.nav-badge { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--teal); color: var(--teal-ink);
  font: 800 10.5px/18px var(--font); font-style: normal; text-align: center; letter-spacing: 0; }
.composer textarea { min-height: 64px; resize: vertical; }
.post { padding-bottom: 10px; }
.post header b { font-size: 14.5px; }
.post.is-moment { border-color: var(--teal-line); background: linear-gradient(160deg, rgba(var(--teal-rgb),.09), transparent 55%), var(--card); }
.post.is-hidden { opacity: .6; }
.post-body { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-photo { position: relative; margin-top: 12px; }
.post-photo img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.post-photo .icon-btn { position: absolute; top: 8px; right: 8px; background: rgba(5,8,10,.75); }
.post-menu { position: relative; }
.post-pop { position: absolute; right: 0; top: 44px; z-index: 5; min-width: 170px; background: var(--card2); border: 1px solid var(--line2); border-radius: 4px; padding: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.post-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left; font-size: 14px; }
.post-pop button:hover { background: var(--card3); }
.post-actions { gap: 6px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.react { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; background: none; border: 1px solid transparent; border-radius: 3px; color: var(--muted); cursor: pointer; }
.react:hover { border-color: var(--line2); }
.react.on { color: var(--text); border-color: var(--teal-line); background: var(--teal-soft); }
.post-comments { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.pc { display: flex; gap: 10px; align-items: flex-start; }
.moment { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 12px; padding: 16px 18px; border-left: 3px solid var(--teal); background: rgba(5,8,10,.45); }
.moment.medal, .moment.rank { flex-direction: row; align-items: center; gap: 16px; }
.moment-tag { font-size: 11px; font-weight: 800; letter-spacing: .22em; color: var(--teal); }
.moment-big { font-family: var(--display); font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.moment-score { font-family: var(--display); font-size: 24px; color: var(--teal2); }
.moment-score span { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--ok); }
.moment-ic { font-size: 46px; line-height: 1; }
.post.is-thread { border-color: var(--teal); }
.moment.thread { gap: 6px; }
.mh-h { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin: 14px 0 8px; }
.mh-prs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.mh-pr { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--teal-line); background: rgba(var(--teal-rgb),.06); }
.mh-pr b { font-family: var(--display); font-size: 22px; line-height: 1; }
.mh-pr small { font-family: var(--font); font-size: 11px; }
.mh-chart { width: 100%; max-width: 460px; height: auto; margin: 14px auto 0; display: block; }
.mh-axis { stroke: var(--line, rgba(255,255,255,.15)); }
.mh-line { fill: none; stroke: var(--teal); stroke-width: 2; }
.mh-dot { fill: var(--card); stroke: var(--teal); stroke-width: 2; }
.mh-dot.top { fill: var(--teal); }
.mh-lbl { fill: var(--muted, #8a9399); font-size: 10px; }
.round-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.splits { display: block; margin-top: 2px; }
.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 4px; font-size: 26px; line-height: 1; color: rgba(255,255,255,.22); cursor: pointer; min-height: 0; }
.stars button.on { color: var(--teal); }
.effort-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.mh-hint { margin: 4px 0 6px; }
.mh-hint-box { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; margin-top: 4px; border-left: 2px solid var(--teal); background: rgba(var(--teal-rgb),.05); }
.sx-set-tools { display: inline-flex; gap: 4px; justify-content: flex-end; width: 88px; }
.cap-calc { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.cap-calc select { flex: 1 1 160px; min-width: 0; }
.thread-q { font-size: 19px; font-weight: 700; line-height: 1.3; }
.feed-rules { border-color: var(--teal-line); }
/* Saints para Saints */
.dir-hero { border-color: var(--teal-line); background: linear-gradient(160deg, rgba(var(--teal-rgb),.10), transparent 60%), var(--card); }
.dir-tools { margin: 14px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.dir-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 3px; background: var(--card); color: var(--muted); }
.dir-search input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 46px; padding: 0; box-shadow: none; }
.dir-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dir-chips::-webkit-scrollbar { display: none; }
.dchip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px;
  background: transparent; color: var(--text2); font-size: 13px; cursor: pointer; white-space: nowrap; }
.dchip b { color: var(--muted); font-weight: 700; font-size: 11px; }
.dchip.on { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.dchip.on b { color: var(--teal-ink); }
.dchip input { margin: 0; accent-color: var(--teal); }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.dir-card { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer; color: var(--text); font: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.dir-card:hover, .dir-card:focus-visible { border-color: var(--teal-line); }
.dir-card.is-hidden { opacity: .55; }
.dir-pic { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--card3), var(--card2)); display: grid; place-items: center; }
.dir-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dir-pic span { font-size: 44px; }
.dir-perk { position: absolute; left: 8px; top: 8px; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 2px; background: rgba(5,8,10,.8); color: var(--teal2); }
.dir-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dir-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.dir-name { font-size: 16px; line-height: 1.25; }
.dir-desc { margin: 0; font-size: 13px; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir-who { margin-top: auto; padding-top: 8px; gap: 8px; }
.dir-photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 10px; }
.dir-photos img { flex: none; width: 86%; max-height: 300px; object-fit: cover; border-radius: 4px; scroll-snap-align: start; border: 1px solid var(--line); }
.dir-photos img:only-child { width: 100%; }
.dir-perk-box { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--teal); background: rgba(var(--teal-rgb),.08); font-size: 20px; }
.dir-perk-box b { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.dir-perk-box div div { font-size: 14px; }
.dir-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-step { padding: 14px 0; border-top: 1px solid var(--line); }
.dir-step h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; }
.dir-step h4 i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); font-size: 12px; font-weight: 800; }
.dir-step .field:last-child { margin-bottom: 0; }
.dir-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.dir-thumb { position: relative; width: 96px; height: 96px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line2); }
.dir-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dir-thumb .icon-btn { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; min-height: 0; background: rgba(5,8,10,.75); }
.dir-thumb.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); cursor: pointer; border-style: dashed; }
.done-check.attend { margin-bottom: 16px; }
/* the drawn medals (medal-art.js): the top tiers glow like the box's neon sign */
.medal-svg { display: block; overflow: visible; }
.medal-svg { filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.medal-svg.t-gold { filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)) drop-shadow(0 0 6px rgba(242,193,78,.3)); }
.medal-svg.t-diamond { filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)) drop-shadow(0 0 9px rgba(6,177,207,.6)); }
.medal-svg.t-legend { filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(255,200,60,.5)); animation: legend-glow 3.2s ease-in-out infinite; }
@keyframes legend-glow { 50% { filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(255,200,60,.8)); } }
/* the medal images (medal-art.js) */
.medal-img { position: relative; display: inline-block; width: var(--w); height: var(--h); flex: none; }
.medal-img img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); }
.medal-img.t-gold img { filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)) drop-shadow(0 0 8px rgba(242,193,78,.35)); }
.medal-img.t-diamond img { filter: brightness(1.12) contrast(1.05) drop-shadow(0 0 10px rgba(6,177,207,.8)) drop-shadow(0 8px 12px rgba(0,0,0,.6)); }
/* diamond: the silver medal washed in the box's cyan (the teal ribbon stays teal) */
.medal-img.t-diamond::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: #18C8E8; mix-blend-mode: color; opacity: .55;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.medal-img.t-legend img { filter: saturate(1.15) brightness(1.06) drop-shadow(0 0 12px rgba(255,200,60,.65)) drop-shadow(0 8px 12px rgba(0,0,0,.6)); }
.medal-img.t-legend::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; animation: medal-shine 3.6s ease-in-out infinite; }
@keyframes medal-shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
.medal-img.t-locked img { filter: grayscale(1) brightness(.42) contrast(1.1); }
/* the original Saints wings, stamped on the smooth bottom of the medal */
.medal-img img.medal-wings { position: absolute; left: 50%; top: 80.5%; width: 19%; height: auto; transform: translateX(-50%); filter: drop-shadow(0 1px 0 rgba(0,0,0,.8)) drop-shadow(0 0 3px rgba(var(--teal-rgb),.5)); }
.medal-img.t-locked img.medal-wings { filter: grayscale(1) brightness(.5); }
.medal-progress { position: absolute; left: 18%; right: 18%; bottom: -2px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.medal-progress b { display: block; height: 100%; background: var(--teal); }
@media (prefers-reduced-motion: reduce) { .medal-img.t-legend::after { animation: none; } }
.medal-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.medal-tier { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.medal-tier.t-bronze { color: #E0A070; } .medal-tier.t-silver { color: #D5DDE2; } .medal-tier.t-gold { color: #F2C14E; }
.medal-tier.t-diamond { color: var(--teal2); text-shadow: 0 0 8px rgba(6,177,207,.6); } .medal-tier.t-legend { color: #FFD45C; text-shadow: 0 0 8px rgba(255,200,60,.6); }
.medal-cell { padding: 10px 6px 12px; }
@media (prefers-reduced-motion: reduce) { .medal-svg.t-legend { animation: none; } }
.medal-cell .muted.xs { font-family: 'Kalam', var(--font); font-size: 13px; }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.how { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.how b { display: inline-block; min-width: 92px; color: var(--teal); }
.cele { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; overflow: hidden; padding-top: 6px; }
.cele-points { font-family: var(--display); font-size: 40px; color: var(--teal); line-height: 1; } .cele-points span { font-size: 18px; color: var(--text2); }
.cele-line { font-size: 17px; font-weight: 600; }
.cele-medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }
.cele-medal { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: pop .5s var(--ease); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 12px; border-radius: 2px; background: var(--c); animation: fall 1.8s ease-in var(--d) forwards; }
@keyframes fall { to { transform: translateY(380px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* leaderboard */
.filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.lb .pos { width: 30px; text-align: center; font-family: var(--display); font-size: 24px; color: var(--muted); }
.lb li.p1 .pos { color: #f2c14e; } .lb li.p2 .pos { color: #c9d1d9; } .lb li.p3 .pos { color: #d08b5b; }
/* a coach who trains: in their real place, a COACH tag instead of a position */
.lb li.staff { background: linear-gradient(90deg, rgba(255,255,255,.03), transparent); }
.coach-tag { display: inline-block; padding: 3px 5px; border: 1px solid var(--teal-line); border-radius: 2px; color: var(--teal); font-family: var(--font); font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.lb.unranked .pos { color: var(--dim); }
.lb .who { flex: 1; min-width: 0; }
.lb .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .score { font-family: var(--display); font-size: 24px; letter-spacing: .5px; text-align: right; }
.lb .me { background: linear-gradient(90deg, var(--teal-soft), transparent); box-shadow: inset 2px 0 0 var(--teal); border-radius: 2px; }
.lb .changes { color: var(--lilac); font-size: 12.5px; }
.react { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2);
  background: transparent; font-size: 13px; cursor: pointer; color: var(--text2); }
.react.on { border-color: var(--teal-line); color: var(--teal); }
.av-stack { display: inline-flex; }
.av-stack .av + .av { margin-left: -10px; }

/* staff tables */
.list { display: flex; flex-direction: column; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
/* Socios: on a phone the role menu and buttons go on their own line under the name (they used to overlap the status chip) */
.user-row > .grow { min-width: 0; }
.user-acts select { flex: 0 0 auto; }
@media (max-width: 640px) {
  .user-row { flex-wrap: wrap; row-gap: 8px; }
  .user-row > .grow { flex: 1 1 calc(100% - 52px); }
  .user-acts { width: 100%; padding-left: 52px; justify-content: flex-start; flex-wrap: wrap; }
  .user-acts select { min-height: 32px !important; height: 32px; font-size: 14px; padding: 2px 6px !important; }
}
@media (max-width: 420px) { .user-acts { padding-left: 0; } }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } }
.stat { background: transparent; border: 1px solid var(--teal-line); border-radius: 2px; padding: 14px; }
.stat b { display: block; font-family: var(--display); font-size: 32px; line-height: 1; font-weight: 400; }
.stat span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.tbl-wrap { overflow-x: auto; }
.lb .pos { width: 46px; flex: none; }
/* more than 5 sections on a phone (staff): every label stays visible, smaller and with short names (app.js) */
@media (max-width: 560px) {
  .nav.many a { padding-left: 0; padding-right: 0; font-size: 8.5px; letter-spacing: .03em; gap: 3px; min-width: 0; }
  .nav.many a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
}
/* calendar button: the real date input covers it, invisible, so a tap opens the phone's date picker */
.day-pick { position: relative; overflow: hidden; cursor: pointer; }
.day-pick input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.day-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
/* the full session under the whiteboard */
.sx { margin-top: 8px; }
.sx-block { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
.sx-block.linked { margin-top: -6px; border-top: 1px dashed var(--line2); }
.sx-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.sx-letter { font-family: var(--display); font-size: 28px; color: var(--teal); line-height: 1; min-width: 20px; }
.sx-name { font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.sx-title { color: var(--text2); font-family: var(--font); font-size: 14px; text-transform: none; font-weight: 600; }
.sx-instr { color: var(--text2); font-size: 14px; margin: 0 0 10px; white-space: pre-line; }
.sx-moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sx-moves li { border-left: 2px solid var(--line2); padding-left: 12px; }
.sx-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.sx-qty { color: var(--teal); font-weight: 700; }
.sx-mv { font-weight: 600; }
.sx-load { color: var(--ok); font-weight: 600; font-size: 14px; }
.sx-pct { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.sx-pct-w { font-family: var(--display); font-size: 18px; color: var(--teal2); }
.sx-rm-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; }
.sx-rm-edit input { width: 96px; min-height: 38px; }
.sx-video { width: 100%; }
.sx-vbtn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 10px; border: 1px solid var(--line2); border-radius: 2px; background: transparent; color: var(--text2);
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.sx-vbtn:hover, .sx-vbtn.on { border-color: var(--teal-line); color: var(--teal); }
.sx-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 8px; border-radius: 4px; overflow: hidden; background: #000; }
.sx-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sx-f { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sx-log-ex { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sx-set { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 6px; }
.sx-set input { min-height: 40px; }
/* day videos */
.dv-card { padding: 14px; }
.dv-player { width: 100%; max-height: 70vh; border-radius: 4px; background: #000; display: block; }
.icon-btn.tech-on { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
/* "Lo hice completo": a big check */
.done-check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line2); border-radius: 3px; cursor: pointer; }
.done-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.done-box { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--line2); border-radius: 3px; color: transparent; flex: none; }
.done-check.on { border-color: var(--teal); background: var(--teal-soft); }
.done-check.on .done-box { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.done-check:focus-within { box-shadow: 0 0 0 3px var(--teal-soft); }
.dv-src { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 380px) { .dv-src { grid-template-columns: 1fr; } }
.modal { overflow-x: hidden; }
.modal input { min-width: 0; }
/* 16 px in fields: phones (iPhone) zoom into any smaller field when it is tapped */
input, select, textarea { font-size: 16px; }
.done-check.adapted.on { border-color: var(--lilac); background: rgba(201,179,255,.08); }
.done-check.adapted.on .done-box { background: var(--lilac); border-color: var(--lilac); color: #1a1030; }
.mk-w { font-family: var(--display); font-size: 18px; white-space: nowrap; }
.mk-hist { padding: 6px 0 10px 12px; border-left: 2px solid var(--teal-line); margin: 0 0 8px 4px; display: flex; flex-direction: column; gap: 4px; }
.vid-progress { height: 6px; margin-top: 10px; border-radius: 99px; background: var(--card3); overflow: hidden; }
.vid-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal2)); transition: width .3s; }

/* ---------- Mapa Saints (prototype, skillmap.js) ---------- */
.smap { display: flex; flex-direction: column; gap: 12px; }
.smap .card { margin: 0; }
.smap-head { display: flex; align-items: center; gap: 16px; }
.smap-ring { --p: 0; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--card) 76%, transparent 77%), conic-gradient(var(--teal) calc(var(--p) * 1%), var(--card3) 0); box-shadow: 0 0 18px rgba(var(--teal-rgb),.25); }
.smap-ring b { font-family: var(--display); font-size: 26px; font-weight: 400; }
.smap-of { font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1.1; margin-top: 2px; }
.smap-chip-h { background: rgba(242,193,78,.14); color: #F2C14E; }
.smap-chip-e { background: rgba(224,51,126,.16); color: #FF7DB5; }
.smap-tier.t-bronze { color: #D08A55; } .smap-tier.t-silver { color: #C9D3D8; } .smap-tier.t-gold { color: #F2C14E; } .smap-tier.t-legend { color: #FFD45C; text-shadow: 0 0 8px rgba(255,200,60,.6); }
.smap-cal { border: 1px solid var(--teal-line); background: linear-gradient(160deg, rgba(var(--teal-rgb),.14), var(--card) 60%); }
.smap-cal p { margin: 8px 0 14px; }
.smap-calbar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
  background: var(--teal); color: var(--teal-ink); font-weight: 700; font-size: 13px; border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.smap-calbar .btn { background: var(--teal-ink); color: var(--teal); border-color: var(--teal-ink); min-height: 38px; }

/* the whole map at a glance: one column per family, one square per movement */
.smap-overview { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 3px; padding: 12px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.smap-col { display: flex; flex-direction: column; align-items: center; gap: 3px; color: inherit; }
.smap-colic { font-size: 13px; max-width: 100%; overflow: hidden; line-height: 1; margin-bottom: 3px; }
.smap-overview i, .smap-key i { display: block; width: 100%; max-width: 18px; aspect-ratio: 1; border-radius: 3px; background: var(--card3); }
.smap-overview i.lv-h, .smap-key i.lv-h { box-shadow: inset 0 0 0 1.5px rgba(242,193,78,.7); }
.smap-overview i.lv-e, .smap-key i.lv-e { box-shadow: inset 0 0 0 1.5px rgba(255,125,181,.7); }
.smap-overview i.done, .smap-key i.done { background: var(--teal); box-shadow: 0 0 6px rgba(var(--teal-rgb),.6); }
.smap-overview i.lv-h.done, .smap-key i.lv-h.done { background: #F2C14E; box-shadow: 0 0 6px rgba(242,193,78,.7); }
.smap-overview i.lv-e.done, .smap-key i.lv-e.done { background: #FF5FA2; box-shadow: 0 0 8px rgba(255,95,162,.8); }
/* GOD LEVEL (Nov 9): above élite, violet with a white glow */
.smap-overview i.lv-g, .smap-key i.lv-g { box-shadow: inset 0 0 0 1.5px rgba(178,128,255,.8); }
.smap-overview i.lv-g.done, .smap-key i.lv-g.done { background: #B280FF; box-shadow: 0 0 10px rgba(178,128,255,.9), 0 0 2px #fff; }
.smap-chip-g { background: rgba(178,128,255,.16); color: #C9A6FF; }
.smap-trophy.lv-g { border-color: rgba(178,128,255,.6); box-shadow: 0 0 12px rgba(178,128,255,.25); }
.smap-node.lv-g .dot { border-color: rgba(178,128,255,.8); }
.smap-node.lv-g.done .dot { background: #B280FF; border-color: #B280FF; color: #1a0033; box-shadow: 0 0 14px rgba(178,128,255,.8); }
.lvtag.lv-g { background: linear-gradient(90deg, rgba(178,128,255,.25), rgba(255,255,255,.12)); color: #D9C2FF; }
.smap-fam#fam-god { border-color: rgba(178,128,255,.45); background: linear-gradient(160deg, rgba(178,128,255,.12), var(--card) 55%); }
/* Maestría (Nov 9): 3 stars after unlocking a movement */
.smap-chip-s { background: rgba(242,193,78,.1); color: #F7D57A; }
.smap-stars { display: inline-flex; gap: 1px; margin-left: 8px; vertical-align: 1px; }
.smap-stars i { font-style: normal; font-size: 12px; line-height: 1; color: var(--dim); }
.smap-stars i.done { color: #F2C14E; text-shadow: 0 0 6px rgba(242,193,78,.6); }
.smap-mastery { padding: 12px; border-radius: var(--r); background: var(--card2); border: 1px solid rgba(242,193,78,.3); }
.smap-mastery ol { list-style: none; margin: 8px 0 0; padding: 0; }
.smap-mastery li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--muted); }
.smap-mastery li .st { width: 18px; text-align: center; font-size: 15px; }
.smap-mastery li.done { color: var(--text); font-weight: 600; } .smap-mastery li.done .st { color: #F2C14E; }
.smap-mastery li.next { color: var(--text); }
.smap-overview i.pending, .smap-key i.pending { background: repeating-linear-gradient(45deg, var(--card3) 0 3px, var(--warn) 3px 5px); }
.smap-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.smap-key span { display: inline-flex; align-items: center; gap: 6px; }
.smap-key i { width: 12px; }

.smap-shelf { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.smap-trophy { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--r);
  background: var(--card2); border: 1px solid rgba(242,193,78,.35); color: var(--text); text-align: center; cursor: pointer; }
.smap-trophy.lv-e { border-color: rgba(255,95,162,.45); }
.smap-trophy span { font-size: 26px; } .smap-trophy b { font-size: 11.5px; line-height: 1.25; }

.smap-fam { scroll-margin-top: 70px; }
.smap-famic { font-size: 26px; width: 40px; text-align: center; }
.smap-path { list-style: none; margin: 6px 0 0; padding: 0; position: relative; }
.smap-path::before { content: ''; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--card3); }
.smap-node { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 4px; background: none; border: 0; color: var(--text2); text-align: left; cursor: pointer; font-size: 14px; }
.smap-node .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--dim); z-index: 1; font-size: 13px; }
.smap-node.lv-h .dot { border-color: rgba(242,193,78,.7); } .smap-node.lv-e .dot { border-color: rgba(255,95,162,.7); }
.smap-node .nm { flex: 1; }
.smap-node.done { color: var(--text); font-weight: 600; }
.smap-node.done .dot { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); box-shadow: 0 0 10px rgba(var(--teal-rgb),.6); }
.smap-node.lv-h.done .dot { background: #F2C14E; border-color: #F2C14E; color: #2a1d00; box-shadow: 0 0 10px rgba(242,193,78,.6); }
.smap-node.lv-e.done .dot { background: #FF5FA2; border-color: #FF5FA2; color: #2a0012; box-shadow: 0 0 12px rgba(255,95,162,.7); }
.smap-node.pending .dot { border-color: var(--warn); }
.smap-node.next { color: var(--text); }
.smap-node.next .dot { border-color: var(--teal); animation: smap-pulse 1.8s ease-in-out infinite; }
@keyframes smap-pulse { 50% { box-shadow: 0 0 0 6px rgba(var(--teal-rgb),.18); } }
@media (prefers-reduced-motion: reduce) { .smap-node.next .dot { animation: none; } }
.lvtag { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; white-space: nowrap; }
.lvtag.lv-h { background: rgba(242,193,78,.14); color: #F2C14E; } .lvtag.lv-e { background: rgba(255,95,162,.16); color: #FF7DB5; }
.lvtag.lv-p { background: var(--card3); color: var(--muted); }
.nexttag { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.smap-tiers { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 480px) { .smap .smap-tiers { gap: 3px; } .smap .smap-tiers span { font-size: 7.5px; letter-spacing: 0; padding: 6px 1px; } .smap .smap-tiers b { font-size: 15px; } }
.smap-tiers span { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: 10px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.smap-tiers b { font-family: var(--display); font-size: 17px; font-weight: 400; letter-spacing: 0; }
.smap-tiers i { font-style: normal; font-size: 10px; opacity: .8; }
.smap-tiers span.on { background: var(--card2); }
.smap-tiers span.on.t-bronze { color: #D08A55; border-color: rgba(208,138,85,.5); } .smap-tiers span.on.t-silver { color: #C9D3D8; border-color: rgba(201,211,216,.5); }
.smap-tiers span.on.t-gold { color: #F2C14E; border-color: rgba(242,193,78,.5); } .smap-tiers span.on.t-diamond { color: #3FD8F2; border-color: rgba(63,216,242,.6); box-shadow: 0 0 10px rgba(6,177,207,.35); }
.smap-tiers span.on.t-legend { color: #FFD45C; border-color: rgba(255,212,92,.6); box-shadow: 0 0 10px rgba(255,200,60,.35); }
.smap-tiers span.on.t-saint { color: #fff; border-color: #fff; background: linear-gradient(160deg, rgba(6,177,207,.35), rgba(255,95,162,.25)); box-shadow: 0 0 14px rgba(255,255,255,.3); }
.smap-tier.t-diamond { color: #3FD8F2; } .smap-tier.t-saint { color: #fff; text-shadow: 0 0 8px rgba(6,177,207,.8); }
/* Nov 9: the map medal's top tier, God Level (96 %) */
.smap-tiers span.on.t-god { color: #fff; border-color: #B280FF; background: linear-gradient(160deg, rgba(178,128,255,.45), rgba(242,193,78,.2)); box-shadow: 0 0 16px rgba(178,128,255,.55); }
.smap-tier.t-god { color: #D9C2FF; text-shadow: 0 0 10px rgba(178,128,255,.9); }
.smap-overview i.retry { box-shadow: inset 0 0 0 1.5px var(--warn); }
.lvtag.smap-retry { background: rgba(224,161,95,.16); color: var(--warn); }
.smap-node.retry .dot { border-color: var(--warn); color: var(--warn); }
.smap-elite { padding: 12px; border: 1px solid rgba(255,95,162,.35); border-radius: var(--r); background: rgba(255,95,162,.05); }
.smap-elite input:not([type=file]) { width: 100%; }
.smap-queue { margin-top: 12px; }
.smap-qrow { padding: 12px 0; border-top: 1px solid var(--line); }

.team-invite { border: 1px solid var(--teal-line); background: linear-gradient(160deg, rgba(var(--teal-rgb),.12), var(--card) 60%); }
.team-invite .ic { color: var(--teal); }

/* Welcome: add the app to the home screen */
.add-home-top { display: flex; gap: 14px; align-items: center; }
.add-home-top img { width: 64px; height: 64px; border-radius: 14px; flex: none; box-shadow: 0 0 16px rgba(var(--teal-rgb),.3); }
.add-home-steps { margin: 14px 0; padding-left: 22px; display: grid; gap: 8px; font-size: 14.5px; }
.add-home-steps b { color: var(--teal2); }

/* ---------- Perfil del atleta (bodyprofile.js, Nov 9): same class names in gutiandres.com ---------- */
:root { --bp-accent: var(--teal); }
.bp-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.bp-box { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--bp-accent); border-radius: var(--r); padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.bp-box h2 { margin: 0 0 6px; }
.bp-muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.bp-xs { font-size: 11.5px; margin: 8px 0 0; }
.bp-err { color: #FF8A80; font-size: 13px; margin: 8px 0; }
.bp-field { display: block; margin: 12px 0; }
.bp-field > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bp-field input { width: 100%; }
.bp-seg { display: flex; gap: 6px; } .bp-seg button { flex: 1; min-height: 42px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card2); color: var(--text); font-weight: 700; cursor: pointer; }
.bp-seg button.on { background: var(--bp-accent); border-color: var(--bp-accent); color: #001014; }
.bp-later { margin-top: 8px; }
.bp-card { margin-bottom: 14px; }
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.bp-stats div { background: var(--card2); border-radius: var(--r); padding: 10px 8px; text-align: center; }
.bp-stats b { display: block; font-size: 17px; } .bp-stats span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bp-sub { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bp-wchart { display: block; width: 100%; max-width: 420px; height: auto; margin: 4px auto 0; color: var(--bp-accent); }
.bp-wv { font-size: 10px; fill: var(--text); font-weight: 700; } .bp-wd { font-size: 9px; fill: var(--muted); text-transform: uppercase; }
.bp-add { display: flex; gap: 8px; margin-top: 8px; } .bp-add input { flex: 1; min-width: 0; }
.bp-radar { display: block; width: min(340px, 100%); margin: 6px auto 0; overflow: visible; }
.bp-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.bp-shape { fill: color-mix(in srgb, var(--bp-accent) 30%, transparent); stroke: var(--bp-accent); stroke-width: 2.5; stroke-linejoin: round; }
.bp-lab { font-size: 10.5px; font-weight: 700; fill: var(--text); } .bp-val { fill: var(--bp-accent); font-size: 12px; }
.bp-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 13.5px; font-weight: 600; margin: 4px 0 10px; }
.bp-axes { list-style: none; margin: 0; padding: 0; }
.bp-axes li { display: grid; grid-template-columns: 1fr 110px 30px; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.bp-axes i { height: 6px; border-radius: 3px; background: var(--card3, var(--card2)); overflow: hidden; } .bp-axes i b { display: block; height: 100%; background: var(--bp-accent); }
.bp-axes em { font-style: normal; font-weight: 800; text-align: right; } .bp-axes small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; margin-top: -2px; }
/* ---------- Clases (classes.js): booking, waiting list, attendance, timetable ---------- */
.cl-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 8px; scrollbar-width: none; }
.cl-days::-webkit-scrollbar { display: none; }
.cl-days > button { flex: none; min-width: 54px; padding: 8px 6px; border: 1px solid var(--line2); border-radius: 3px; background: transparent; color: var(--text2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; }
.cl-days > button span { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cl-days > button b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.cl-days > button.on { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.cl-days > button.on span { color: var(--teal-ink); }
.cl-date { font-weight: 700; }
.cl-date::first-letter { text-transform: uppercase; }
.cl-list { display: flex; flex-direction: column; gap: 10px; }
.cl-list .card + .card { margin-top: 0; }
.cl-card { display: flex; align-items: flex-start; gap: 14px; padding: 14px; }
.cl-card.mine { border-color: var(--teal-line); box-shadow: inset 3px 0 0 var(--teal); }
.cl-card.dim, .lrow.dim { opacity: .55; }
.cl-time { flex: none; width: 62px; text-align: center; }
.cl-time b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.cl-time span { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--teal); }
.cl-name { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.cl-occ { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cl-occ .bar { flex: 1; max-width: 160px; margin: 0; height: 6px; }
.cl-occ .bar.full i { background: var(--warn); }
.cl-people { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.cl-people .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); } .cl-people .av:first-child { margin-left: 0; }
.cl-act { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cl-promo { display: flex; gap: 12px; align-items: center; border-color: var(--teal); background: var(--teal-soft); margin-bottom: 12px; }
.cl-promo .ic { color: var(--teal); flex: none; }
.cl-mine { margin-bottom: 14px; }
.cl-check { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 3px; border: 1px solid var(--line2); background: transparent; color: var(--dim); cursor: pointer; }
.cl-check.on { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.cl-check.no { border-color: rgba(224,108,108,.5); color: var(--bad); }
.cl-pos { flex: none; width: 24px; font-family: var(--display); font-size: 20px; color: var(--warn); text-align: center; }
.cl-slot-t { flex: none; width: 78px; font-family: var(--display); font-weight: 400; font-size: 19px; }
.cl-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 0 0 8px 8px; }
.cl-next { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line2); border-radius: 3px; color: var(--text); }
.cl-next.on { border-color: var(--teal-line); background: var(--teal-soft); }
.cl-next .ic:first-child { color: var(--teal); }
.cl-next b, .cl-next .xs { display: block; }
@media (max-width: 480px) {
  .cl-card { flex-wrap: wrap; }
  .cl-act { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; }
}
/* ---------- Clases · coaches: the weekly calendar, quick assign, hours (classes.js) ---------- */
.warn { color: var(--warn); }
.cl-coachbtn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 3px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.cl-coachbtn:disabled { cursor: default; }
.cl-coachbtn .av + .av { margin-left: -14px; box-shadow: 0 0 0 2px var(--card); }
.cal-week { min-width: 132px; text-align: center; }
.cal-brush { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cal-brush::-webkit-scrollbar { display: none; }
.cal-brush > button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 1px solid var(--line2); border-radius: 99px; background: transparent; color: var(--text2); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.cal-brush > button.on { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.cal-hint.on { color: var(--teal); font-weight: 600; }
.cal-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px 4px; }
.cal { display: grid; grid-template-columns: 58px repeat(7, minmax(104px, 1fr)); gap: 4px; min-width: 800px; }
.cal-corner, .cal-time { position: sticky; left: 0; z-index: 2; background: var(--card); }
.cal-day { text-align: center; padding: 6px 2px 8px; border-bottom: 2px solid var(--line2); }
.cal-day span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cal-day b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.cal-day.today { border-bottom-color: var(--teal); } .cal-day.today span, .cal-day.today b { color: var(--teal); }
.cal-time { display: flex; align-items: flex-start; justify-content: flex-end; padding: 8px 6px 0 0; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.cal-cell { display: flex; flex-direction: column; gap: 4px; min-height: 48px; padding: 2px; border-radius: 3px; }
.cal-cell.today { background: rgba(var(--teal-rgb),.05); }
.cal-cls { display: block; width: 100%; padding: 6px 8px; border: 1px solid var(--line2); border-left: 3px solid var(--teal); border-radius: 3px; background: var(--card2); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.cal-cls b { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cls span { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.cal-cls:hover { border-color: var(--teal-line); }
.cal-cls.empty { border-left-color: var(--warn); border-style: dashed; background: transparent; } .cal-cls.empty span { color: var(--warn); }
.cal-cls.hit { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); } .cal-cls.hit b { color: var(--teal-ink); }
.cal-cls.past { opacity: .5; }
.cal-pick { display: flex; flex-direction: column; gap: 6px; }
.cal-pick > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 3px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.cal-pick > button.on { border-color: var(--teal); background: var(--teal-soft); }
.cal-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); font-size: 12px; font-weight: 800; }
.cal-hrs { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--teal); white-space: nowrap; }
.cal-mday { flex: none; width: 44px; text-align: center; }
.cal-mday span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cal-mday b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; }
.cal-mday.today span, .cal-mday.today b { color: var(--teal); }/* the weekly calendar needs the width of a computer screen */
.page:has(.cal) { max-width: 1180px; }
/* a program with its timetable (Configurar → Programas) */
.pg-line { display: block; font-size: 12px; color: var(--teal); margin-top: 2px; }
.pg-line.warn { color: var(--warn); }
.pg-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pg-days { display: flex; gap: 4px; flex: 1; }
.pg-days > button { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line2); border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.pg-days > button.on { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
/* Membresías en pruebas (sales.js): sales, payments, freezes, the month's money */
.sl-trial { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 0 0 14px; border: 1px dashed var(--warn); border-radius: 3px; font-size: 12.5px; color: var(--text2); }
.sl-trial .ic { color: var(--warn); flex: none; margin-top: 1px; } .sl-trial b { color: var(--warn); }
.modal .sl-trial { margin-top: 14px; margin-bottom: 0; }
/* Ventas → buscador de personas */
.sl-find { position: relative; }
.sl-find .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text2); pointer-events: none; }
.sl-find input { width: 100%; padding-left: 40px; }
.sl-money { font-weight: 800; color: var(--teal); }
.sl-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13.5px; }
.sl-sum .tot { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line2); font-size: 16px; }
.sl-sum .tot b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--teal); }
.sl-plan { padding: 8px 0; border-bottom: 1px solid var(--line); } .sl-plan:last-child { border-bottom: 0; }
.stat b { overflow-wrap: anywhere; }

/* ---------- Reportes (reports.js) ---------- */
.rp-src { margin: -10px 0 16px; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid var(--teal-line); border-radius: 2px; color: var(--text); font: inherit; }
.rp-card:hover, .rp-card:focus-visible { border-color: var(--teal); background: var(--teal-soft); }
.rp-card .ic { color: var(--teal); }
.rp-card b { font-size: 15px; } .rp-card span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 96px; padding: 8px 12px; cursor: pointer; background: transparent;
  border: 1px solid var(--line); border-radius: 2px; color: var(--text2); font: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.rp-chip b { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--text); letter-spacing: 0; }
.rp-chip.on { border-color: var(--teal); background: var(--teal-soft); color: #fff; }
.rp-side { flex: none; } .rp-wa { flex: none; }
.rp-down { transform: rotate(180deg); }
.rp-barrow { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.rp-bl { flex: none; width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rp-bv { flex: none; width: 34px; text-align: right; } .rp-bx { flex: none; width: 70px; }
@media (min-width: 700px) { .rp-stats4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .rp-bl { width: 96px; } .rp-bx { display: none; } }
.ei-files { margin: 0 0 12px; padding-left: 18px; } .ei-files li { margin: 3px 0; }

/* how the block is scored, above the boxes (scorerule.js, Nov 11) */
.score-rule { margin: 0 0 12px; padding: 8px 10px; border-left: 3px solid var(--teal); background: rgba(var(--teal-rgb),.08); border-radius: 6px; font-size: 13px; line-height: 1.35; }
/* numbers that make sense: what looks wrong before saving (plausible.js) */
.warn-box { border-color: var(--warn) !important; background: rgba(224,161,95,.10); }

/* several 🔥 and who gave them (Nov 12, fires.js) */
.fire-wrap { display: inline-flex; align-items: center; gap: 4px; }
.fire-ico { display: inline-block; animation: fire-pop .35s ease-out; }
@keyframes fire-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fire-ico { animation: none; } }
.fire-mine { font-size: 11px; font-weight: 700; color: var(--teal); margin-left: 2px; }
.react.fire-who { color: var(--muted); }
.react.fire-who.sm { padding: 2px 6px; }
.fire-n { font-weight: 700; color: var(--teal); white-space: nowrap; }

/* coaches' pay (Nov 12, coachpay.js) */
.cp-warn { border: 1px solid var(--warn); border-radius: 3px; margin-bottom: 10px; color: var(--warn); }
.cp-warn b { color: var(--warn); }
.cp-sum .row { padding: 4px 0; gap: 10px; }
.cp-sum .cp-total { border-top: 1px solid var(--line2); margin-top: 6px; padding-top: 10px; font-size: 18px; }
.cp-sum .cp-total b:last-child { color: var(--teal); font-family: var(--display); font-weight: 400; font-size: 26px; }

/* day videos: downloaded only when the athlete taps ▶ (Nov 12, Supabase cached egress) */
.dv-tap { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; width: 100%; aspect-ratio: 16 / 9; max-height: 60vh; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 12px; background: #000; color: #fff; cursor: pointer; overflow: hidden; padding: 0; }
.dv-tap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.dv-tap-ic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(var(--teal-rgb),.85); }
.dv-tap-tx { position: relative; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.8); }

/* ---------- waiver (waiver.js, Nov 13) ---------- */
.wv-gate { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100%); z-index: 70; overflow-y: auto; background: var(--bg); padding: 24px 16px 40px; }
.wv-box { width: min(560px, 100%); margin: 0 auto; }
.wv-logo { display: block; width: 72px; margin: 0 auto 14px; }
.wv-title { margin: 0 0 6px; text-align: center; }
.wv-form .field { margin-bottom: 12px; }
.wv-h { margin: 22px 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.wv-note { margin: -6px 0 12px; }
.wv-text { white-space: pre-wrap; font-size: 13px; line-height: 1.55; max-height: 260px; overflow-y: auto; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 6px; background: var(--card); color: var(--text2); }
.wv-accept { gap: 10px; align-items: center; margin-top: 14px; cursor: pointer; }
.wv-accept input { width: 22px; height: 22px; min-height: 0; flex: none; }
.wv-done { text-align: center; padding-top: 12vh; }
.wv-done-ic { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal-line); }
.wv-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.wv-alert { border: 0; cursor: pointer; padding: 2px 7px; letter-spacing: 0; }
.wv-pop { display: block; flex-basis: 100%; margin-top: 4px; color: var(--warn); text-transform: none; letter-spacing: 0; font-weight: 600; }
/* ---------- cortesías (trials.js, Nov 13) ---------- */
.tr-page { min-height: 100vh; padding: 24px 16px 48px; background: var(--bg); }
.tr-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 4px 0 14px; }
.tr-steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; min-width: 0; }
.tr-steps li i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; border: 1px solid var(--line2); }
.tr-steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-steps li.on { color: var(--text); } .tr-steps li.on i { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.tr-steps li.done i { border-color: var(--teal); color: var(--teal); }
.tr-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tr-day { flex: none; width: 58px; padding: 7px 0; border: 1px solid var(--line2); border-radius: 6px; background: var(--card); color: var(--text2); display: flex; flex-direction: column; align-items: center; cursor: pointer; font: inherit; }
.tr-day span, .tr-day i { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-style: normal; color: var(--muted); }
.tr-day b { font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1.1; }
.tr-day.on { border-color: var(--teal); background: var(--teal-soft); color: #fff; }
.tr-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 10px; }
.tr-time { padding: 10px 8px; border: 1px solid var(--line2); border-radius: 6px; background: var(--card); color: var(--text); cursor: pointer; font: inherit; text-align: center; }
.tr-time b { display: block; font-size: 15px; } .tr-time span { font-size: 11px; color: var(--muted); }
.tr-time.on { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.tr-time:disabled { opacity: .4; cursor: not-allowed; }
.btn.on { border-color: var(--teal); color: var(--teal); }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { padding: 7px 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--text2); cursor: pointer; font: inherit; font-size: 13px; }
.chip-btn.on { border-color: var(--teal); background: var(--teal-soft); color: #fff; }
.tr-done { text-align: center; }
.tr-ticket { margin: 16px 0 8px; padding: 16px; border: 1px solid var(--teal-line); border-radius: 8px; background: var(--teal-soft); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.tr-ticket.ghost { background: transparent; border-color: var(--line2); margin-top: 0; }
.tr-when { font-size: 18px; }
.tr-tips { font-size: 13px; color: var(--text2); margin: 14px 0; }
/* WhatsApp automático (Nov 14): the text of a message, like a chat bubble */
.wa-bubble { display: block; white-space: pre-line; margin-top: 6px; padding: 8px 10px; border-radius: 10px 10px 10px 2px; background: var(--card2, rgba(127,127,127,.12)); color: var(--text2); line-height: 1.4; text-transform: none; letter-spacing: 0; font-weight: 400; overflow-wrap: anywhere; }
/* inscripción directa (Nov 15): the plans as cards */
.su-plans { display: grid; gap: 10px; }
.su-plan { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line2, rgba(127,127,127,.35)); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.su-plan .su-name { font-weight: 700; }
.su-plan .su-price { font-size: 18px; white-space: nowrap; }
.su-plan .su-price i { font-style: normal; font-size: 12px; font-weight: 400; opacity: .7; }
.su-plan .xs { grid-column: 1 / -1; }
.su-plan.on { border-color: var(--teal, #4cc3d9); box-shadow: 0 0 0 1px var(--teal, #4cc3d9) inset; }
.su-sum { margin: 0 0 10px; }
.tr-time span { display: block; }
.tr-time span + span { opacity: .7; }
.wa-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wa-btns i { font-style: normal; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2, rgba(127,127,127,.35)); color: var(--teal, #4cc3d9); }
.tr-row { align-items: center; }
.tr-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tr-tbl th, .tr-tbl td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tr-tbl th:first-child, .tr-tbl td:first-child { text-align: left; }
.tr-tbl th { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tr-grid { border-collapse: collapse; font-size: 12px; }
.tr-grid th, .tr-grid td { padding: 4px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.tr-grid td:first-child { text-align: left; white-space: nowrap; }
.tr-grid input { width: 18px; height: 18px; min-height: 0; }
.tr-big { font-family: var(--display); font-size: 40px; font-weight: 400; }
.tr-data div { margin-bottom: 3px; }
.tr-badge { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,170,255,.14); color: var(--lilac); font-weight: 700; }
.grid2 { display: grid; gap: 12px; } .grid2 > * { min-width: 0; }
.tr-tbl td:first-child { white-space: normal; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
/* Nov 13: Finanzas → Cierre (fincierre.js) */
.fc-nav { display: grid; gap: 10px; margin-bottom: 14px; } .fc-nav .row { gap: 6px; }
.fc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fc-h { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 2px 0 0; } .print-only { display: none; }
.fc-kpis { grid-template-columns: repeat(2, 1fr); } @media (min-width: 900px) { .fc-kpis { grid-template-columns: repeat(3, 1fr); } }
.fc-kpi b { font-size: 26px; } .fc-kpi > span { display: block; margin-top: 4px; }
.fc-kpi .fc-vs, .fc-kpi .fc-vs span { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; display: inline; } .fc-kpi .fc-vs { display: block; } .fc-kpi .fc-vs .fc-delta { font-weight: 700; }
.fc-kpi.neg b { color: var(--bad); } .fc-vs { margin-top: 6px; line-height: 1.5; }
.fc-delta { font-weight: 700; white-space: nowrap; } .fc-delta.good { color: var(--ok); } .fc-delta.bad { color: var(--bad); }
.fc-chart { width: 100%; height: auto; display: block; }
.fc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text2); margin-top: 6px; }
.fc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; } .fc-legend i.ln { height: 3px; vertical-align: 3px; }
.fc-hbars { display: grid; gap: 10px; } .fc-hb { font-size: 13px; } .fc-hb .row { gap: 8px; } .fc-hb .row > span:first-child { min-width: 0; overflow-wrap: anywhere; } .fc-hb .bar { margin: 5px 0 0; height: 6px; }
.fc-checks { display: grid; gap: 8px; }
.fc-ck { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .fc-ck i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; background: var(--card3); color: var(--text2); }
.fc-ck.ok i { background: rgba(143,209,158,.16); color: var(--ok); } .fc-ck.warn i { background: rgba(224,161,95,.16); color: var(--warn); } .fc-ck.bad i { background: rgba(224,108,108,.16); color: var(--bad); }
.fc-closed { border-color: var(--teal-line); }
@media print {
  .demo-bar, header.top, .nav, .more-sheet, .desk-tabs, .fi-tabs, .ph, .no-print, .toasts { display: none !important; }
  html, body, .shell, main, .card, .stat { background: #fff !important; color: #111 !important; box-shadow: none !important; }
  .card, .stat { border: 1px solid #ccc !important; break-inside: avoid; } .muted, .fc-legend, .fi-kv span { color: #555 !important; }
  .fc-chart text { fill: #555 !important; } .fc-chart line { stroke: #ddd !important; }
  .stat b, .fc-h { color: #111 !important; } .fc-delta.good { color: #1a7f37 !important; } .fc-delta.bad, .fc-kpi.neg b, .warn { color: #b42318 !important; }
  .tbl-wrap { max-height: none !important; overflow: visible !important; } .print-only { display: block !important; }
}
/* Nov 13: Finanzas → Presupuesto (finbudget.js) */
.fb-list { display: grid; gap: 4px; }
.fb-row { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); } .fb-row:last-child { border-bottom: 0; }
.fb-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; } .fb-main .icon-btn { flex: none; }
.fb-cat { font-size: 14px; flex: 1 1 150px; min-width: 0; overflow-wrap: break-word; } .fb-row.on .fb-cat { font-weight: 700; }
.fb-money { width: 100%; text-align: right; font-variant-numeric: tabular-nums; } .fb-main > .fb-money, .fb-main > .fb-varies { flex: 1 1 130px; max-width: 170px; }
.fb-varies { text-align: right; }
.fb-months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; } @media (min-width: 540px) { .fb-months { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 700px) { .fb-months { grid-template-columns: repeat(6, 1fr); } }
.fb-months label { display: grid; gap: 2px; min-width: 0; } .fb-months .fb-money { font-size: 14px; padding-left: 8px; padding-right: 8px; }
.fb-sticky { position: sticky; bottom: 76px; display: flex; justify-content: flex-end; padding: 8px 0; pointer-events: none; } .fb-sticky .btn { pointer-events: auto; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.fb-tbl td.fb-ok { color: var(--ok); } .fb-tbl td.fb-bad { color: var(--bad); }
@media print { .fb-tbl td.fb-ok { color: #1a7f37 !important; } .fb-tbl td.fb-bad { color: #b42318 !important; } }
/* ---------- Mi Box Saints (box.js, Nov 13) ---------- */
.mb-scene { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: #0b0e10 center / cover no-repeat; box-shadow: 0 10px 30px rgba(0,0,0,.45); user-select: none; -webkit-user-select: none; }
.mb-scene img { position: absolute; transform: translateX(-50%); pointer-events: none; }
.mb-it { filter: drop-shadow(0 4px 4px rgba(0,0,0,.45)); }
.mb-it.tap { pointer-events: auto; cursor: pointer; transition: filter .15s; }
.mb-it.tap:hover { filter: drop-shadow(0 0 6px var(--teal)) drop-shadow(0 4px 4px rgba(0,0,0,.45)); }
.mb-it.glow { filter: drop-shadow(0 0 4px var(--teal)) drop-shadow(0 0 12px var(--teal)) drop-shadow(0 0 24px rgba(var(--teal-rgb),.7)); }
.mb-it.glow-warm { filter: drop-shadow(0 0 6px rgba(255,200,120,.8)); }
.mb-av { filter: drop-shadow(0 8px 8px rgba(0,0,0,.55)); animation: mb-breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes mb-breathe { 0%, 100% { transform: translateX(-50%) scaleY(1); } 50% { transform: translateX(-50%) scaleY(1.012); } }
.mb-add { position: absolute; transform: translate(-50%, 0); width: 16px; height: 16px; border-radius: 50%; border: 1px dashed rgba(var(--teal-rgb),.6); background: rgba(5,8,10,.4); opacity: .75; color: var(--teal); display: grid; place-items: center; cursor: pointer; padding: 0; }
.mb-coins { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border: 1px solid var(--teal-line); border-radius: 999px; background: var(--teal-soft); }
.mb-coins b { font-family: var(--display); font-size: 24px; font-weight: 400; } .mb-coins i { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.mb-shop { display: grid; gap: 8px; }
.mb-opt { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line2); border-radius: 8px; }
.mb-opt.on { border-color: var(--teal); background: var(--teal-soft); }
.mb-thumb { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: #1a2024; border-radius: 6px; }
.mb-thumb img { max-width: 58px; max-height: 58px; }
.mb-hide { gap: 8px; align-items: center; justify-content: center; margin: 14px 0; } .mb-hide input { width: 18px; height: 18px; min-height: 0; }
.mb-plus { color: var(--teal); } .mb-minus { color: #ff8fa1; }
.buddy-av.full { width: auto; height: calc(var(--s) * 1.7); border: 0; border-radius: 0; background: transparent; overflow: visible; box-shadow: none; outline: none; }
.buddy-av.full img { width: auto; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.5)); }
/* Mi Box · phase 2 */
.mb-board { position: absolute; transform: translateX(-50%); aspect-ratio: 1.12; container-type: size; } .mb-board img { position: static !important; transform: none !important; width: 100%; height: 100%; filter: drop-shadow(0 4px 4px rgba(0,0,0,.45)); }
.mb-board-t { position: absolute; inset: 16% 9%; display: flex; flex-direction: column; justify-content: center; gap: 2px; font: 700 7cqh/1.15 'Montserrat', sans-serif; letter-spacing: 0; color: #1b2a33; text-transform: uppercase; overflow: hidden; }
.mb-board-t span { background: rgba(255,255,255,.82); padding: 1px 3px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mb-board-t b { color: #06819a; }
.mb-it.pop { animation: mb-pop .8s var(--ease, ease); }
@keyframes mb-pop { 0% { transform: translateX(-50%) scale(.6); opacity: .2; } 60% { transform: translateX(-50%) scale(1.12); opacity: 1; } 100% { transform: translateX(-50%) scale(1); } }
.mb-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mb-cat-it { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); color: var(--text); cursor: pointer; font: inherit; font-size: 12px; text-align: center; }
.mb-cat-it:hover { border-color: var(--teal); } .mb-thumb img.dim { opacity: .35; filter: grayscale(1); }
.mb-scene.sm { border-radius: 6px; box-shadow: none; } .mb-feed { display: block; margin-top: 10px; }
.mb-scene.sm .mb-av { animation: none; transform: translateX(-50%); }
.moment.box { display: block; }