/* VECTOR — piezas que la app de Mauro no tiene (entrenador, editor, formularios, hojas), dibujadas con su mismo lenguaje. Va después de screens.css. */
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--green); cursor: pointer; text-decoration: none; padding: 0; box-shadow: 0 1px 2px rgba(62,95,77,.08), var(--raise);
}
.btn.sm { min-height: 38px; padding: 8px 12px; font-size: 12.5px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 auto; }
.stack { display: grid; gap: 8px; }
.count { display: inline-block; font-family: var(--mono); font-size: 10px; background: var(--clay); color: #fff; border-radius: 99px; padding: 1px 7px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--gold-bg); color: var(--gold); }
.tag.soft { background: var(--surface-2); color: var(--muted); margin-left: 8px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.note { margin: 0 0 12px; padding: 10px 13px; border-left: 3px solid var(--green); background: color-mix(in srgb, var(--sage) 22%, var(--surface)); border-radius: 0 10px 10px 0; font-size: 13.5px; line-height: 1.5; }
.alert { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--gold-bg); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: 13px; }
.empty { text-align: center; padding: 34px 18px; display: grid; gap: 8px; justify-items: center; }
.empty strong { font-family: var(--display); font-weight: 400; font-size: 15px; text-transform: uppercase; color: var(--green); }
.empty p { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; max-width: 34ch; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-head h3 { font-family: var(--display); font-weight: 400; font-size: 12.5px; text-transform: uppercase; }
h2.section { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 22px 2px 10px; }

/* Listas (alumnos, planes) */
.list { display: grid; gap: 9px; margin-top: 14px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; min-height: 64px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow), var(--raise);
}
.row > .ic { color: var(--green-soft); }
.row-wrap { position: relative; }
.row-wrap .row { padding-right: 58px; }
.row-del {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; border: 0; padding: 0;
  display: grid; place-items: center; background: none; color: var(--muted); cursor: pointer;
}
.row-del:hover, .row-del:focus-visible { color: var(--clay); background: color-mix(in srgb, var(--clay) 10%, transparent); }
.row-del .ic { width: 18px; height: 18px; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 14px; color: var(--green);
  background: linear-gradient(180deg, #E9F0E7, #D5E3D6); box-shadow: inset 0 1px 2px rgba(62,95,77,.18);
}
.row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row-main strong { font-weight: 650; font-size: 14.5px; }
.row-main small { color: var(--muted); font-size: 12px; }
.row-note { font-style: italic; }
.alert-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.alert-chip { font-family: var(--mono); font-size: 9.5px; letter-spacing: .03em; color: var(--clay); background: color-mix(in srgb, var(--clay) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--clay) 28%, transparent); border-radius: 4px; padding: 2px 6px; }
.alert-card { border-top: 4px solid var(--clay); }
.alert-card h3 { color: var(--clay); }
.alert-card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.evblock.ev-ctl { border-top-color: var(--gold); }
.ev-ctl .evhead { color: var(--gold); }
.chip10.wide { width: 64px; }
.sugg { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 2px; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--sage) 26%, var(--surface)); font-size: 13px; }
.sugg b { font-family: var(--mono); font-weight: 500; color: var(--green); }
.sugg .why { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sugg .up, .ssub b.up { color: var(--green); }
.sugg .down, .ssub b.down { color: var(--clay); }
.sugg .up, .sugg .down { font-family: var(--mono); font-size: 11.5px; }
.ssgroup { border-left: 3px solid var(--gold); padding-left: 8px; margin: 6px 0 10px; }
.ss-lab { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 4px 0 6px; }
.sstag { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 500; color: #fff; background: var(--gold); border-radius: 4px; padding: 1px 5px; margin-right: 6px; vertical-align: 1px; }
.rounds { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin: 4px 0 10px; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); }
.rounds .rl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.rbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.rnd { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 13px; color: var(--muted); cursor: pointer; padding: 0; }
.rnd.on { background: linear-gradient(180deg, var(--green-hi), var(--green)); color: var(--on-green); border-color: var(--green); }
.logline { grid-template-columns: 1fr 76px 84px; }
/* Hoy */
.today-head { margin: 16px 2px 10px; }
.eyebrow-dark { font-family: var(--display); font-size: 18px; text-transform: uppercase; color: var(--green); margin: 0 0 2px; }
.wkstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 0 0 14px; }
.wkstrip span { display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--muted); }
.wkstrip b { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.wkstrip i { font-style: normal; font-size: 11px; height: 14px; color: var(--green-soft); }
.wkstrip .has { color: var(--ink); }
.wkstrip .done i { color: var(--green); font-weight: 700; }
.wkstrip .today { border: 2px solid var(--green); background: color-mix(in srgb, var(--sage) 25%, var(--surface)); }
.today-card { border-top: 5px solid var(--phase, var(--green)); padding-top: 16px; }
.today-card h2, .pending-card h2, .done-hero h2 { font-family: var(--display); font-weight: 400; font-size: 17px; text-transform: uppercase; color: var(--ink); margin: 2px 0 4px; }
.today-card.isdone { opacity: .85; }
.today-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-soft); margin: 0; }
.today-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.today-meta span { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink); }
.btn.today-go { min-height: 54px; font-size: 16px; }
.pending-card { border-left: 4px solid var(--clay); }
.pending-card .today-eyebrow { color: var(--clay); }
.last-card { display: grid; gap: 3px; text-decoration: none; color: inherit; }
.done-hero { margin-top: 14px; background: linear-gradient(180deg, var(--green-hi), var(--green)); border: 0; }
.done-hero .today-eyebrow, .done-hero h2 { color: var(--on-green); }
/* Biblioteca */
.lib-row { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.lib-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--surface-2); }
.lib-dot.on { background: var(--green); color: var(--on-green); }
.item .idx { min-width: 24px; width: auto; padding: 0 4px; border-radius: 12px; }
.row-meta { display: grid; gap: 2px; justify-items: end; font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: right; }

/* Formularios */
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field > span, .field-title { font-family: var(--mono); font-size: 9.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.field-title { margin: 14px 0 6px; }
.input {
  width: 100%; font-family: var(--sans); font-size: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--ink);
}
textarea.input { resize: vertical; line-height: 1.45; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.static { min-height: 44px; display: flex; align-items: center; font-family: var(--mono); font-size: 13px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.check-line input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex: none; }

/* Editor de planes */
.title-input { width: 100%; margin: 16px 0 12px; padding: 6px 2px; border: 0; border-bottom: 2px solid var(--line); background: transparent; font-family: var(--display); font-size: 19px; text-transform: uppercase; color: var(--ink); }
.day-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 4px 0; font-family: var(--display); font-size: 13.5px; text-transform: uppercase; color: var(--green); }
.goal-input { min-height: 40px; font-size: 14px; margin-bottom: 4px; }
.seg { display: flex; gap: 7px; margin: 18px 0 12px; overflow-x: auto; padding: 2px; }
.seg button { min-height: 42px; min-width: 52px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 13px; flex: none; display: grid; place-items: center; cursor: pointer; }
.seg button[aria-selected="true"] { background: linear-gradient(180deg, var(--green-hi), var(--green)); color: var(--on-green); border-color: var(--green); }
.seg .ic { width: 18px; height: 18px; }
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; }
.wk-chip { display: grid; gap: 3px; justify-items: start; padding: 10px; border-radius: 10px; border: 1px solid var(--line-soft); border-top: 3px solid var(--phase, var(--line)); background: var(--surface-2); text-align: left; min-height: 72px; cursor: pointer; }
.wk-chip b { font-family: var(--display); font-weight: 400; font-size: 13px; color: var(--green); }
.wk-chip span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-chip i { display: flex; gap: 2px; margin-top: 2px; }
.wk-chip u { width: 10px; height: 4px; border-radius: 2px; background: var(--line); }
.wk-chip u.on { background: var(--green-soft); }
.wk-chip.add { place-items: center; justify-items: center; border-style: dashed; border-top-width: 1px; color: var(--muted); background: transparent; }
.stage-ed { border-top: 1px dashed var(--line-soft); margin-top: 12px; padding-top: 10px; }
.stage-name { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; background: none; border: 0; padding: 4px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.stage-name .ic { width: 16px; height: 16px; color: var(--muted); }
.stage-name .tag { letter-spacing: .06em; }
.items { list-style: none; margin: 0 0 10px; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-top: 1px dashed var(--line-soft); background: none; text-align: left; cursor: pointer; }
.items li:first-child .item { border-top: 0; }
.item > .ic { color: var(--muted); width: 16px; height: 16px; }
.idx { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--green); font-family: var(--mono); font-size: 11px; display: grid; place-items: center; flex: none; }
.row-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0 0; margin-top: 2px; border: 0; border-top: 1px dashed var(--line-soft); background: none; text-align: left; cursor: pointer; }
.row-btn > .ic { color: var(--green); width: 18px; height: 18px; }
.link-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; border: 0; background: none; color: var(--green); font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 0; }
.link-btn .ic { width: 16px; height: 16px; }
.wkpick { display: flex; flex-wrap: wrap; gap: 8px; }
.wkpick label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; }
.wkpick input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.areas { margin: 0; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.areas dt { margin-top: 2px; }
.areas dd { margin: 0 0 4px; color: var(--muted); }
.daytab .opt { font-size: 10px; font-weight: 500; opacity: .75; }

/* Bienvenida */
.welcome-hero { padding-top: 54px !important; padding-bottom: 34px !important; }
.wordmark { font-family: var(--display); letter-spacing: .04em; }
.wordmark.lg { font-size: 36px !important; }
.welcome { display: grid; gap: 14px; padding-top: 6px; }
.choice { display: grid; gap: 10px; }
.choice-card {
  display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; text-align: left; cursor: pointer; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line-soft); border-left: 4px solid var(--green); border-radius: 12px; box-shadow: var(--shadow), var(--raise);
}
.choice-card strong { font-family: var(--display); font-weight: 400; font-size: 14px; text-transform: uppercase; color: var(--green); }
.choice-card span { grid-column: 1; color: var(--muted); font-size: 13px; }
.choice-card .ic { grid-row: 1 / 3; grid-column: 2; color: var(--green); }

/* Hojas modales */
dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 620px; max-height: 92dvh; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; box-shadow: var(--shadow); }
@media (min-width: 660px) { dialog.sheet { margin: auto; border-radius: 22px; } }
dialog.sheet::backdrop { background: rgba(38,51,43,.45); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: up .22s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet-inner { padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 14px; border-bottom: 3px double var(--line); margin-bottom: 16px; }
.sheet-head h2 { font-family: var(--display); font-weight: 400; font-size: 15px; text-transform: uppercase; }
.sheet .btn-row { margin-top: 6px; }
.menu { display: grid; margin: -8px -20px 0; }
.menu button { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border: 0; background: none; text-align: left; font-size: 15px; font-weight: 600; cursor: pointer; }
.menu button .ic { color: var(--green); }
.menu button:hover { background: var(--surface-2); }
.menu button.danger, .menu button.danger .ic { color: var(--clay); }

/* Aviso flotante */
.toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Privacidad e invitación del alumno (js/sync-athlete.js) */
.priv p { font-size: 13px; line-height: 1.55; margin: 0 0 10px; }
.priv summary { cursor: pointer; margin-bottom: 8px; }
#conn-card .hist li .btn { margin-left: auto; padding: 6px 10px; min-height: 0; font-size: 12px; }

/* Panel de cargas (load.js) */
.load-card .kpi.bad .v { color: var(--clay); }
.load-card .kpi.ok .v { color: var(--green); }
.load-sub { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 18px 0 4px; }
.pvr { display: flex; flex-direction: column; gap: 10px; }
.pvr-row { display: grid; grid-template-columns: 52px 1fr; gap: 4px 9px; align-items: center; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.pvr-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pvr-row .bl { font-family: var(--mono); font-size: 10.5px; font-weight: 700; grid-row: span 2; align-self: start; }
.pvr-plan { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.pvr-real { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; }
.pvr-real .bt { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pvr-real .bt span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-soft), var(--green)); }
.pvr-real .bv { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.pvr-flag { grid-column: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .03em; }
.pvr-flag.más { color: var(--clay); }
.pvr-flag.menos { color: var(--slate); }
