/* The lead's screens: shell bits, lesson rows, Inicio, Agenda, Alumnos, the forms and Ajustes. Tokens only. */

/* Shell */
.wordmark .mark { width: var(--e-32); height: var(--e-32); border-radius: var(--r-m); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: var(--t-xs); font-weight: 720; letter-spacing: .02em; }
.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.side-reg { justify-content: flex-start; margin: var(--e-4) 0 var(--e-12); }
.side-reg svg { width: var(--e-20); height: var(--e-20); }
:root[data-side="folded"] .side-reg { width: var(--h-nav); padding: 0; justify-content: center; }
.main:focus { outline: none; }
.page > * + .sheet, .page > * + .grid2, .page > * + .filters, .page > * + .week, .page > * + .cal { margin-top: var(--gap-p); }
.btn svg { width: var(--e-20); height: var(--e-20); flex: none; }
.btn.plain.danger-t { color: var(--bad); }
.hint { display: block; color: var(--soft); font-size: var(--t-xs); margin-top: var(--e-4); font-weight: 400; }
.err:empty { display: none; }
.pos { color: var(--good); }
.pre { white-space: pre-wrap; margin: 0; }
textarea { width: 100%; border: 1px solid var(--line2); border-radius: var(--r-m); padding: var(--e-10) var(--e-12); background: var(--paper); resize: vertical; min-height: calc(var(--base) * 6); line-height: 1.45; }
textarea:focus { border-color: var(--accent); outline: none; }
.msg { font-size: var(--t-m); }

/* Segmented choice */
.seg { display: inline-flex; gap: var(--e-2); padding: var(--e-2); border-radius: var(--r-pill); background: var(--tint); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: calc(var(--h-pill) - var(--e-4)); padding: 0 var(--e-12); border: 0; border-radius: var(--r-pill); background: none; color: var(--ink2); font-size: var(--t-s); font-weight: var(--w-control); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.seg.wrap { flex-wrap: wrap; border-radius: var(--r-m); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-8); }
.grid3 label.f { min-width: 0; }
.grid3 input { min-width: 0; width: 100%; }
label.f.inline { display: flex; align-items: center; justify-content: space-between; gap: var(--e-12); }
label.f.inline > span { margin: 0; }
label.f.inline input { max-width: calc(var(--base) * 9); }
.panel > * + * { margin-top: var(--e-16); }
.panel > .head + * { margin-top: var(--e-8); }

/* Lesson rows */
.lessons > li + li { border-top: 1px solid var(--line); }
.stack, .stack > *, .lessons, .lrow { min-width: 0; }
.lrow { display: flex; align-items: center; gap: var(--e-12); min-height: var(--h-row); }
.lr-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--e-12); padding: var(--e-10) var(--e-8); margin-left: calc(var(--e-8) * -1); border: 0; border-radius: var(--r-m); background: none; text-align: left; color: inherit; }
.lr-main:hover { background: var(--tint); }
.lr-time { flex: none; width: calc(var(--base) * 3.25); font-weight: var(--w-strong); font-variant-numeric: tabular-nums; font-size: var(--t-m); }
.lr-time small { display: block; color: var(--soft); font-weight: 400; font-size: var(--t-xs); }
.lr-who { min-width: 0; display: flex; flex-direction: column; }
.lr-who b { font-weight: var(--w-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-who small { color: var(--soft); font-size: var(--t-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow.due .lr-time { color: var(--bad); }
.marks { flex: none; display: flex; gap: var(--e-4); }
.mk { display: inline-flex; align-items: center; gap: var(--e-4); height: var(--h-pill); padding: 0 var(--e-10); border-radius: var(--r-pill); border: 1px solid var(--line2); background: var(--paper); font-size: var(--t-s); font-weight: var(--w-control); color: var(--ink2); }
.mk svg { width: var(--e-16); height: var(--e-16); }
.mk:hover { border-color: var(--ink2); color: var(--ink); }
.mk.ok { border-color: var(--good); color: var(--good); }
.mk.ok:hover { background: var(--good-l); }
.st { flex: none; font-size: var(--t-xs); font-weight: var(--w-control); padding: var(--e-2) var(--e-8); border-radius: var(--r-pill); background: var(--tint); color: var(--ink2); white-space: nowrap; }
.st.good { background: var(--good-l); color: var(--good); }
.st.look { background: var(--look-l); color: var(--look); }
.st.quiet { background: none; color: var(--soft); }
@media (max-width: 559.98px) {
  .lrow.pend { flex-wrap: wrap; gap: 0 var(--e-12); padding-bottom: var(--e-10); }
  .lrow.pend .lr-main { flex: 1 1 100%; margin-left: 0; padding-left: 0; }
  .lrow.pend .marks { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; margin-left: calc(var(--base) * 3.25 + var(--e-12)); }
}

/* The class sheet */
.facts { display: grid; grid-template-columns: auto 1fr; gap: var(--e-8) var(--e-16); margin: 0; }
.facts dt { color: var(--soft); font-size: var(--t-s); }
.facts dd { margin: 0; font-weight: var(--w-control); }
.acts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-8); }
.acts-grid .btn { justify-content: flex-start; width: 100%; }
.acts-grid .btn.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sheet-foot { justify-content: space-between; border-top: 1px solid var(--line); padding-top: var(--e-12); flex-wrap: wrap; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { padding: var(--e-8) 0; font-size: var(--t-s); }
.hist li + li { border-top: 1px solid var(--line); }
.hist small { display: block; color: var(--soft); }

/* Inicio */
.top .figures .figure .amt { font-size: var(--t-fig); }
.left-n { flex: none; font-size: var(--t-s); font-weight: var(--w-strong); white-space: nowrap; }
.left-n.warn { color: var(--bad); }

/* Agenda */
.ag-head { flex-wrap: wrap; gap: var(--e-12); align-items: center; }
.ag-head .row { flex-wrap: wrap; gap: var(--e-8); }
.ag-step { display: flex; align-items: center; gap: var(--e-12); margin-top: var(--e-16); }
.ag-step h2 { margin: 0; font-size: var(--t-xl); }
.ag-step .btn { margin-left: auto; }
.ag-count { margin: var(--e-4) 0 0; }
.week { display: grid; gap: var(--e-12); }
.wk-day { border-top: 1px solid var(--line); padding-top: var(--e-8); min-width: 0; }
.wk-h { display: flex; align-items: baseline; gap: var(--e-6); border: 0; background: none; padding: var(--e-4) 0; color: var(--soft); font-size: var(--t-s); font-weight: var(--w-control); }
.wk-h b { color: var(--ink); font-size: var(--t-l); font-weight: var(--w-strong); }
.wk-day.today .wk-h b { background: var(--accent); color: var(--on-accent); border-radius: var(--r-pill); padding: 0 var(--e-8); }
.wk-list { list-style: none; margin: var(--e-4) 0 0; padding: 0; display: grid; gap: var(--e-4); }
.wk-l { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 0 var(--e-8); padding: var(--e-6) var(--e-8); border: 0; border-left: 3px solid var(--line2); border-radius: var(--r-s); background: var(--tint); text-align: left; color: inherit; }
.wk-l:hover { background: var(--tint2); }
.wk-t { font-weight: var(--w-strong); font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.wk-n { font-size: var(--t-s); font-weight: var(--w-control); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-k { grid-column: 2; font-size: var(--t-xs); color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-l.realizada, .wk-l.cancelada_tarde { border-left-color: var(--good); }
.wk-l.ausente, .wk-l.cancelada_alumno { border-left-color: var(--look); }
.wk-l.cancelada_profe, .wk-l.reprogramada { opacity: .6; }
.wk-l.cancelada_profe .wk-n, .wk-l.reprogramada .wk-n { text-decoration: line-through; }
.wk-l.due { border-left-color: var(--bad); }
.wk-add { width: 100%; height: var(--h-pill); border: 1px dashed var(--line2); border-radius: var(--r-s); background: none; color: var(--soft); display: grid; place-items: center; }
.wk-add:hover { color: var(--ink); border-color: var(--ink2); }
.wk-add svg { width: var(--e-16); height: var(--e-16); }
@media (max-width: 899.98px) { .wk-day.none { display: flex; align-items: center; gap: var(--e-12); } .wk-day.none .wk-add { width: auto; padding: 0 var(--e-12); } }
@media (min-width: 900px) {
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--e-8); }
  .week.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .week > :nth-child(7):is(:empty) { display: none; }
  .wk-day { border-top: 0; padding-top: 0; }
  .wk-l { grid-template-columns: 1fr; }
  .wk-k { grid-column: 1; }
}
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-h { padding: var(--e-6); font-size: var(--t-xs); color: var(--soft); font-weight: var(--w-control); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.cal-d { min-width: 0; min-height: calc(var(--base) * 3.5); display: flex; flex-direction: column; align-items: stretch; gap: var(--e-2); padding: var(--e-4); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; text-align: left; color: inherit; }
.cal-d:hover { background: var(--tint); }
.cal-d.out { color: var(--faint); background: var(--tint); }
.cal-n { font-size: var(--t-s); font-weight: var(--w-strong); font-variant-numeric: tabular-nums; }
.cal-d.today .cal-n { align-self: flex-start; background: var(--accent); color: var(--on-accent); border-radius: var(--r-pill); padding: 0 var(--e-6); }
.cal-ls { display: none; }
.cal-dots { display: flex; gap: var(--e-2); flex-wrap: wrap; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink2); }
.cal-dots i.realizada, .cal-dots i.cancelada_tarde { background: var(--good); }
.cal-dots i.cancelada_profe, .cal-dots i.reprogramada, .cal-dots i.ausente, .cal-dots i.cancelada_alumno { background: var(--line2); }
@media (min-width: 900px) {
  .cal-d { min-height: calc(var(--base) * 6.5); padding: var(--e-6); }
  .cal-ls { display: flex; flex-direction: column; gap: var(--e-2); min-width: 0; }
  .cal-dots { display: none; }
  .cal-l { font-size: var(--t-xs); padding: 0 var(--e-4); border-radius: var(--r-s); background: var(--tint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-l.realizada, .cal-l.cancelada_tarde { background: var(--good-l); color: var(--good); }
  .cal-l.cancelada_profe, .cal-l.reprogramada { text-decoration: line-through; color: var(--soft); }
  .cal-more { font-size: var(--t-xs); color: var(--soft); }
}
.filters .dates { display: inline-flex; gap: var(--e-8); }
.filters input[type=search] { flex: 1 1 calc(var(--base) * 14); }
@media (max-width: 559.98px) { .filters select, .filters .dates, .filters input[type=search] { flex: 1 1 100%; } .filters .dates input { flex: 1; min-width: 0; } }

/* Alumnos */
.item.person { grid-template-columns: auto minmax(0, 1fr) auto; }
.av { flex: none; width: calc(var(--base) * 2.5); height: calc(var(--base) * 2.5); border-radius: 50%; background: var(--tint2); display: grid; place-items: center; font-size: var(--t-s); font-weight: var(--w-strong); color: var(--ink); }
.av.big { width: calc(var(--base) * 4); height: calc(var(--base) * 4); font-size: var(--t-l); }
.who { min-width: 0; display: flex; flex-direction: column; }
.who .t, .who .m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-col { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.r-col small { color: var(--soft); font-size: var(--t-xs); }
.back { display: inline-flex; align-items: center; gap: var(--e-4); border: 0; background: none; padding: var(--e-4) 0; color: var(--soft); font-weight: var(--w-control); font-size: var(--t-s); }
.back svg { width: var(--e-16); height: var(--e-16); }
.back:hover { color: var(--ink); }
.prof-name { display: flex; align-items: center; gap: var(--e-16); margin-top: var(--e-8); }
.prof-name h1 { margin: 0; }
.prof-name .sub { margin: var(--e-4) 0 0; }
.prof-acts { flex-wrap: wrap; gap: var(--e-8); margin-top: var(--e-20); }
.next-l { margin: var(--e-12) 0 0; }
.pkgs { display: grid; gap: var(--e-12); }
@media (min-width: 720px) { .pkgs { grid-template-columns: repeat(auto-fill, minmax(calc(var(--base) * 17), 1fr)); } }
.pkg { display: flex; flex-direction: column; gap: var(--e-8); width: 100%; padding: var(--e-16); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); text-align: left; color: inherit; }
.pkg:hover { border-color: var(--line2); background: var(--tint); }
.pkg.live { border-color: var(--line2); }
.pkg-h { display: flex; justify-content: space-between; align-items: center; gap: var(--e-8); }
.pkg-h .tag { margin: 0; flex-shrink: 0; }
.pkg-h b { min-width: 0; }
.pkg .m { margin: 0; color: var(--soft); font-size: var(--t-s); }
.pkg-f { display: flex; justify-content: space-between; gap: var(--e-8); flex-wrap: wrap; margin: 0; font-size: var(--t-s); }
.tag.ok { background: var(--good-l); color: var(--good); }
.tag.bad { background: var(--bad-l); color: var(--bad); }
.pkg-ls { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--e-2); }
.pkg-ls button { width: 100%; display: flex; justify-content: space-between; gap: var(--e-8); padding: var(--e-8) var(--e-10); border: 0; border-radius: var(--r-m); background: none; text-align: left; color: inherit; }
.pkg-ls button:hover { background: var(--tint); }
.pkg-ls small { color: var(--soft); }
.ch-progw { width: 100%; }
.ch-prog i.used { background: var(--good); }
.ch-prog i.plan { background: var(--bar); opacity: .55; }

/* Forms */
.picker { display: grid; gap: var(--e-8); }
.pills { display: flex; flex-wrap: wrap; gap: var(--e-6); }
.pills.picked:empty { display: none; }
.pills.picked .pill { padding-right: var(--e-4); background: var(--accent-l); color: var(--ink); }
.chip-x { width: calc(var(--base) * 1.5); height: calc(var(--base) * 1.5); border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--soft); padding: 0; }
.chip-x:hover { background: var(--tint2); color: var(--ink); }
.chip-x svg { width: var(--e-12); height: var(--e-12); }
.pick-list { display: grid; max-height: calc(var(--base) * 15); overflow: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.pick-list:empty { display: none; }
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: var(--e-8); min-height: var(--h-ctl); padding: var(--e-6) var(--e-12); border: 0; background: none; text-align: left; color: inherit; }
.pick-row + .pick-row { border-top: 1px solid var(--line); }
.pick-row:hover, .pick-row:focus-visible { background: var(--tint); }
.pick-row small { color: var(--soft); font-size: var(--t-xs); }
.pick-none { margin: 0; padding: var(--e-10) var(--e-12); display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-8); }
.svc:empty { display: none; }
.svc .pill { cursor: pointer; border: 1px solid var(--line2); background: var(--paper); }
.svc .pill.sel, .svc .pill[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pkg-line:empty { display: none; }
.pkg-says { display: flex; gap: var(--e-8); align-items: flex-start; margin: 0; padding: var(--e-10) var(--e-12); border-radius: var(--r-m); background: var(--tint); font-size: var(--t-s); }
.pkg-says svg { flex: none; width: var(--e-20); height: var(--e-20); color: var(--soft); }
.pkg-line > * + * { margin-top: var(--e-8); }
.owes-line:empty { display: none; }
.owes-line { margin: 0; }
.reg-menu { display: grid; gap: var(--e-8); }
.reg-opt { display: flex; align-items: center; gap: var(--e-16); padding: var(--e-16); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); text-align: left; color: inherit; }
.reg-opt:hover, .reg-opt:focus-visible { border-color: var(--ink2); }
.reg-opt svg { flex: none; width: var(--e-24); height: var(--e-24); }
.reg-opt b { display: block; font-weight: var(--w-title); font-size: var(--t-l); }
.reg-opt small { color: var(--soft); font-size: var(--t-s); }
.slots { display: grid; gap: var(--e-8); }
.slot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--e-8); align-items: center; }
.slot select, .slot input { min-width: 0; width: 100%; }
.svc-f { display: grid; gap: var(--e-12); padding: var(--e-12); border: 1px solid var(--line); border-radius: var(--r-l); }
.shares { display: grid; gap: var(--e-8); }

/* Ajustes */
.set-list { list-style: none; margin: 0; padding: 0; }
.set-list > li { display: flex; align-items: center; gap: var(--e-8); min-height: var(--h-row); }
.set-list > li + li { border-top: 1px solid var(--line); }
.set-list .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.set-list .grow small { display: block; color: var(--soft); font-size: var(--t-s); }
.set-form { display: grid; gap: var(--e-12); }
.set-form .row { flex-wrap: wrap; gap: var(--e-8); }
