:root {
  --brand: #08706e;
  --brand-deep: #064f4e;
  --ink: #173334;
  --muted: #687a7a;
  --paper: #f7faf9;
  --line: #dce7e5;
  --white: #fff;
  --accent: #f4c9ae;
  --shadow: 0 18px 48px rgba(9, 55, 54, .12);
  --radius: 22px;
  /* Superficies y estados. Cambian con el tema claro/oscuro. */
  --surface: #ffffff;
  --surface-2: #f3f8f8;
  --topbar-bg: rgba(255,255,255,.9);
  --field-bg: #ffffff;
  --on-brand: #ffffff;
  --toast-bg: #173334;
  --tag-bg: #eef4f3;
  --warn-bg: #fff2e8;  --warn-ink: #a34e19;
  --good-bg: #e7f6ee;  --good-ink: #16734b;
  --note-bg: #fff4dc;  --note-ink: #654508;  --note-line: #ecd296;
  --danger: #b42318;   --danger-ink: #a52e35;
  --cal-day-bg: #f8fbfb;
  --cal-other: #edf2f2;
  --cal-line: #dce8e8;
  --cal-ctl-line: #cadcde;
  --online-bg: #f4f8ff;   --online-line: #2563eb;
  --presencial-bg: #f3fbf5; --presencial-line: #15803d;
  --chip-online-bg: #dbeafe;  --chip-online-ink: #173f94;
  --chip-pres-bg: #dcfce7;    --chip-pres-ink: #14532d;
  --chip-unknown-bg: #e2e8f0; --chip-unknown-ink: #334155;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--paper); }
.login-brand { position: relative; padding: clamp(28px, 6vw, 84px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: white; background: linear-gradient(145deg, rgba(4,67,66,.96), rgba(8,112,110,.9)), url('/assets/oxbridge-banner.png') center/cover; }
.login-brand::after { content: "A  B  C     O  X  B  R  I  D  G  E"; position: absolute; inset: auto -5% 14%; opacity: .06; font: 700 clamp(30px,6vw,84px) "Libre Baskerville",serif; transform: rotate(-8deg); }
.logo-wrap { width: 190px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.18); background: var(--brand); }
.logo-wrap img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); }
.login-brand h1 { font: 700 clamp(34px,5vw,68px)/1.05 "Libre Baskerville",serif; max-width: 760px; margin: 28px 0 16px; }
.login-brand p { max-width: 620px; line-height: 1.65; opacity: .86; }
.hacot-seal { position: relative; z-index: 1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.login-panel { display: grid; place-items: center; padding: 28px; }
.login-card { width: min(440px,100%); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px,4vw,44px); box-shadow: var(--shadow); }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.login-card h2 { font: 700 30px "Libre Baskerville",serif; margin: 12px 0 8px; }
.login-card > p { color: var(--muted); margin: 0 0 26px; }
.field { display: grid; gap: 7px; margin: 16px 0; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; color: var(--ink); background: var(--field-bg); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,112,110,.1); }
.primary { border: 0; color: var(--on-brand); background: var(--brand); border-radius: 13px; padding: 13px 18px; font-weight: 700; }
.primary:hover { background: var(--brand-deep); }
.login-button { width: 100%; margin-top: 10px; }
.demo-users { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-users > span { font-size: 12px; color: var(--muted); }
.demo-chips { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.demo-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 6px; color: var(--ink); font-size: 12px; }
.demo-chip:hover { border-color: var(--brand); color: var(--brand); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 18px; color: white; background: var(--brand-deep); display: flex; flex-direction: column; }
.side-brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 22px; }
.side-brand .mini-logo { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.side-brand img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.side-brand strong { font: 700 15px "Libre Baskerville",serif; letter-spacing: .08em; }
.side-brand small { display: block; opacity: .65; margin-top: 4px; }
.nav { display: grid; gap: 6px; }
.nav button { display: flex; gap: 12px; align-items: center; border: 0; color: rgba(255,255,255,.72); background: transparent; border-radius: 12px; padding: 11px 13px; text-align: left; }
.nav button:hover, .nav button.active { color: #fff; background: rgba(255,255,255,.12); }
.nav .icon { width: 20px; text-align: center; }
.side-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,.14); }
.side-foot button { border: 0; padding: 0; margin-bottom: 16px; background: transparent; color: white; }
.side-foot .hacot-seal { opacity: .55; line-height: 1.6; }
.main { min-width: 0; }
.topbar { height: 76px; padding: 0 clamp(20px,4vw,48px); display: flex; align-items: center; justify-content: space-between; background: var(--topbar-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; }
.topbar h2 { font-size: 17px; margin: 0; }
.topbar p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.avatar { display: flex; align-items: center; gap: 10px; }
.avatar-circle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--on-brand); font-weight: 700; background: var(--brand); }
.content { padding: clamp(22px,4vw,48px); max-width: 1500px; margin: auto; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.hero h1 { margin: 7px 0 5px; font: 700 clamp(27px,4vw,42px) "Libre Baskerville",serif; }
.hero p { color: var(--muted); margin: 0; }
.role-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); background: color-mix(in srgb,var(--brand) 12%,var(--surface)); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(22,62,61,.06); }
.metric { padding: 20px; }
.metric .label { color: var(--muted); font-size: 12px; }
.metric strong { display: block; font-size: 29px; margin: 9px 0 5px; }
.metric .trend { font-size: 12px; color: var(--brand); }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.panel { padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-head h3 { margin: 0; font-size: 16px; }
.panel-head button { border: 0; color: var(--brand); background: transparent; font-weight: 700; font-size: 12px; }
.schedule-list, .task-list { display: grid; gap: 10px; }
.class-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 14px; }
.class-time { font-weight: 700; color: var(--brand); }
.class-row strong { font-size: 13px; }
.class-row small { display: block; color: var(--muted); margin-top: 4px; }
.tag { border-radius: 999px; padding: 6px 9px; font-size: 10px; font-weight: 700; background: var(--tag-bg); color: var(--ink); }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.tag.good { background: var(--good-bg); color: var(--good-ink); }
.task { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border: 0; }
.task-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.task strong { font-size: 13px; }
.task small { color: var(--muted); display: block; margin-top: 3px; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 720px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
th { color: var(--muted); font-weight: 700; background: var(--surface-2); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search { min-width: 260px; flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; }
.secondary { border: 1px solid var(--line); color: var(--ink); background: var(--surface); border-radius: 12px; padding: 10px 13px; font-weight: 700; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.student-theme { --brand:#9F3461; --brand-deep:#9F3461; --accent:#f2c1d6; --paper:#fff7fa; --line:#f0dce5; }
.student-theme .hero-card { position: relative; overflow: hidden; color: white; padding: 28px; background: linear-gradient(135deg,#9F3461,#73304e); }
.student-theme .hero-card::after { content:"A+"; position:absolute; right:20px; top:-22px; font:700 110px "Libre Baskerville"; opacity:.1; }
.teacher-theme { --brand:#1E4D67; --brand-deep:#1E4D67; --accent:#a9d2e5; --paper:#f5f9fc; --line:#dce7ef; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display:block; height:100%; background:var(--brand); border-radius:inherit; }
.activity-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.activity { padding:20px; }
.activity .activity-icon { width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:color-mix(in srgb,var(--brand) 12%,var(--surface));font-size:20px; }
.activity h3 { margin:14px 0 6px; font-size:15px; }
.activity p { margin:0 0 16px;color:var(--muted);font-size:12px;line-height:1.5; }
.toast { position:fixed; right:24px; bottom:24px; z-index:30; padding:12px 16px; border-radius:12px; color:white; background:var(--toast-bg); box-shadow:var(--shadow); opacity:0; transform:translateY(14px); pointer-events:none; transition:.25s; }
.toast.show { opacity:1; transform:translateY(0); }
.mobile-nav { display:none; }
@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 300px; }
  .logo-wrap { width: 130px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display:none; }
  .metrics { grid-template-columns:repeat(2,1fr); }
  .dashboard-grid { grid-template-columns:1fr; }
  .mobile-nav { position:fixed;z-index:20;bottom:0;left:0;right:0;height:68px;background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:space-around;align-items:center; }
  .mobile-nav button { border:0;background:transparent;color:var(--muted);font-size:10px;display:grid;gap:4px;place-items:center; }
  .mobile-nav button.active { color:var(--brand); }
  .content { padding-bottom:90px; }
}
@media (max-width: 600px) {
  .login-brand { min-height: 250px; padding:28px; }
  .login-brand h1 { font-size:30px; }
  .login-brand p { display:none; }
  .login-panel { padding:16px; align-items:start; }
  .login-card { margin-top:-35px; position:relative;z-index:2; }
  .metrics,.activity-grid { grid-template-columns:1fr; }
  .hero { align-items:start; flex-direction:column; }
  .topbar { padding:0 18px; }
  .class-row { grid-template-columns:60px 1fr; }
  .class-row .tag { grid-column:2;justify-self:start; }
}
.secretary-theme{--brand:#71529c;--brand-deep:#432d63;--paper:#f9f6fc;--line:#e5dced}
button:disabled{opacity:.5;cursor:wait}#error,#form-error{color:var(--danger-ink);white-space:pre-wrap}.help{font-size:12px;line-height:1.5;margin-top:20px!important}.info{margin-top:20px}.info p{line-height:1.6;color:var(--muted)}dialog{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:26px;width:min(640px,94vw);max-height:88vh;color:var(--ink);box-shadow:var(--shadow)}dialog::backdrop{background:#102d37a6}dialog h2{font-size:21px}dialog .panel-head button{font-size:22px}td button{margin:3px;font-size:12px}td a{display:inline-block;margin:4px;color:var(--brand)}.app-footer{margin-top:32px;font-size:10px;letter-spacing:.12em;color:var(--muted)}.mobile-nav select{max-width:65%;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--field-bg);color:var(--ink)}.field select[multiple]{min-height:150px}.panel>p{line-height:1.6}.table-wrap td{vertical-align:top}.side-foot button{color:white}.panel a{color:var(--brand)}
/* Agenda institucional */
.calendar-heading,.calendar-controls,.calendar-navigation,.calendar-tabs,.calendar-sources{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.calendar-heading,.calendar-controls{justify-content:space-between;margin-bottom:18px}.calendar-heading h3{margin:0}.calendar-heading p{margin:6px 0;color:var(--muted)}.calendar-tabs button,.calendar-navigation button{border:1px solid var(--cal-ctl-line);background:var(--surface);border-radius:12px;padding:10px 14px;font:inherit;cursor:pointer;color:var(--ink)}.calendar-tabs button[aria-pressed=true]{background:var(--brand);color:var(--on-brand);border-color:var(--brand)}.calendar-tabs button span{margin-left:6px;font-size:.85em}.calendar-navigation input{padding:10px;border:1px solid var(--cal-ctl-line);border-radius:10px;font:inherit;max-width:180px;background:var(--field-bg);color:var(--ink)}.calendar-range{font-weight:600}.calendar-filters{margin-bottom:20px}.calendar-warning{background:var(--note-bg);color:var(--note-ink);border:1px solid var(--note-line);padding:14px;border-radius:12px;white-space:pre-wrap}.calendar-sources{color:var(--muted);font-size:.8rem;margin:16px 0;gap:20px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;align-items:stretch}.calendar-day{min-width:0;border:1px solid var(--cal-line);border-radius:14px;background:var(--cal-day-bg);padding:8px;min-height:160px}.calendar-day h4{font-size:.8rem;margin:4px 0 12px;display:flex;flex-wrap:wrap;gap:6px;text-transform:capitalize}.calendar-day h4 small{background:var(--brand);color:var(--on-brand);padding:2px 6px;border-radius:6px}.calendar-day.is-today{border:2px solid var(--brand)}.calendar-day.other-month{background:var(--cal-other)}.calendar-event{border:1px solid var(--cal-line);border-left:4px solid #64748b;background:var(--surface);border-radius:10px;padding:9px;margin:8px 0;overflow-wrap:anywhere}.calendar-event.online{border-left-color:var(--online-line);background:var(--online-bg)}.calendar-event.presencial{border-left-color:var(--presencial-line);background:var(--presencial-bg)}.calendar-event>strong{display:block;font-size:.86rem;line-height:1.4;margin:9px 0 5px}.calendar-event small{display:block;font-size:.68rem;color:var(--muted);margin-top:6px}.calendar-event p{font-size:.75rem;margin:6px 0}.modality{display:inline-flex;align-items:center;gap:4px;border-radius:20px;padding:4px 8px;font-size:.7rem;font-weight:700;line-height:1.4;white-space:nowrap}.modality.online{background:var(--chip-online-bg);color:var(--chip-online-ink)}.modality.presencial{background:var(--chip-pres-bg);color:var(--chip-pres-ink)}.modality.unknown{background:var(--chip-unknown-bg);color:var(--chip-unknown-ink)}.event-time{font-size:.78rem;font-weight:600}.event-links{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:10px}.event-links a{font-size:.75rem}.event-links button{font-size:.75rem;padding:6px 9px;border-radius:8px}.no-events{color:var(--muted);font-size:.73rem}.internal-classes{margin-top:24px}.internal-classes summary{font-weight:600;cursor:pointer}.calendar-confirm{display:flex;align-items:flex-start;gap:12px;line-height:1.6;padding:14px;background:var(--surface-2);border-radius:10px;font-size:.9rem}.calendar-confirm input{width:20px;min-width:20px;height:20px;margin-top:4px}#google-error{color:var(--danger-ink);white-space:pre-wrap}.calendar-panel{padding:24px}.calendar-tabs button:focus-visible,.calendar-navigation button:focus-visible{outline:3px solid #00a5a5;outline-offset:3px}
@media(min-width:1100px){.admin-theme .main,.secretary-theme .main{min-width:0}.calendar-grid.week .calendar-day{min-height:260px}}
@media(max-width:1250px){.calendar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-panel{padding:14px}.calendar-heading{align-items:flex-start}.calendar-controls{gap:16px}.calendar-day{padding:7px}.calendar-tabs button{padding:9px 11px}.calendar-event{padding:8px}.calendar-event>strong{font-size:.84rem}}
@media(max-width:420px){.calendar-grid{grid-template-columns:1fr}.calendar-event>strong{font-size:1rem}.calendar-day{min-height:100px}.calendar-heading>button{width:100%}}
.access-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--paper)}.access-shell>form{width:100%;max-width:540px}.access-shell h1{font-size:2rem}.access-shell button{margin:6px 8px 6px 0}.copy-row{display:flex;align-items:flex-start;gap:12px;padding:12px;border-bottom:1px solid #d6e3e3}.copy-row input{width:20px;min-width:20px;height:20px}.copy-row span{line-height:1.5}.copy-row:has(input:disabled){opacity:.65}.calendar-create{margin-bottom:18px}#copy-preview{margin-top:20px}#copy-preview h3{margin-top:16px}#activation-link input{width:100%;padding:12px;border:1px solid #bbd0d0;border-radius:8px;margin-bottom:12px}#forgot-password{width:100%;margin-top:12px}#forgot-message,#reset-error{white-space:pre-wrap}

button.danger{background:var(--danger);color:#fff;border:1px solid var(--danger)}button.danger:hover{background:#912018}button.danger:disabled{opacity:.55;cursor:wait}

.finance-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;align-items:end}.finance-filters button{margin-bottom:18px}.card details{margin-top:24px}input[type=file]{max-width:100%}

/* v2.6: docente por color; modalidad por etiqueta e ícono. */
.calendar-event.teacher-event{border-left:5px solid var(--teacher-color,#607D8B);background:var(--surface);}
.event-teacher{display:flex;align-items:center;gap:7px;font-size:.85rem;font-weight:700;margin:8px 0;color:#19383a;overflow-wrap:anywhere;}
.teacher-dot{width:12px;height:12px;min-width:12px;border-radius:50%;background:var(--teacher-color,#607D8B);border:1px solid #0003;}
.agenda-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0;}
.calendar-event small{display:block;}.color-sample{padding:16px;background:var(--surface-2);color:var(--ink);}
@media(max-width:640px){.agenda-filters{grid-template-columns:1fr;}.calendar-create{flex-wrap:wrap;}}

/* Vista diaria: una columna, también en teléfonos. */
.calendar-grid.day{grid-template-columns:minmax(0,1fr);}
.calendar-grid.day .calendar-day{padding:16px;}
.calendar-grid.day .calendar-day h4{font-size:1rem;}
.calendar-grid.day .calendar-event{padding:16px;}
.calendar-grid.day .calendar-event>strong{font-size:1.05rem;}
.calendar-grid.day .calendar-event small,.calendar-grid.day .calendar-event p,.calendar-grid.day .event-time{font-size:.9rem;}
/* v2.7: el color identifica al docente en la tarjeta completa. */
.calendar-event.teacher-event{background:var(--teacher-color,#607D8B);color:var(--teacher-ink,#fff);border:1px solid var(--teacher-color,#607D8B);border-left-width:5px;}
.teacher-event .event-teacher,.teacher-event small,.teacher-event p,.teacher-event .event-links a,.teacher-event details{color:inherit;}
.teacher-event .teacher-dot{border:1px solid currentColor;background:currentColor;}
.teacher-event .event-links button{background:var(--surface);color:var(--ink);border:1px solid var(--line);}
.teacher-event .event-links a{text-decoration:underline;text-underline-offset:3px;}
.personal-classes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;}
.teaching-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin:18px 0;}
.teaching-filters .field{flex:1 1 170px;margin:0;}
.teaching-filters button{margin-bottom:4px;}
.lesson-register .metric{background:var(--surface);border:1px solid var(--line);border-radius:14px;min-width:0;}
.lesson-register .metric span{font-size:12px;color:var(--muted);}
.lesson-register .table-wrap button{margin:3px;}
.payment-whatsapp{border:1px solid var(--line);border-radius:14px;padding:16px;margin:14px 0;}
.payment-whatsapp .primary{display:inline-block;white-space:normal;min-height:44px;}
.income-panel .teaching-filters,.lesson-register .teaching-filters{max-width:100%;}
.lesson-cards,.income-cards{display:none;}
.lesson-card,.income-card{border:1px solid var(--line);border-radius:14px;padding:16px;overflow-wrap:anywhere;}
.lesson-card h4,.income-card h4{margin:0 0 8px;}
.lesson-card p,.income-card p{margin:8px 0;}
.lesson-card .toolbar{display:flex;flex-wrap:wrap;gap:8px;}
.lesson-register .metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
.lesson-register .metric{padding:14px;}.lesson-register .metric strong{font-size:25px;}
.teacher-activity h4{margin:20px 0 12px;}.teacher-day-cards{display:none;}.activity-shortcuts{margin-top:18px;gap:8px;flex-wrap:wrap;}
@media(max-width:600px){.teacher-activity>.table-wrap{display:none;}.teacher-day-cards{display:grid;gap:12px;}.activity-shortcuts button{flex:1 1 42%;}.teacher-activity .metrics{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.income-panel .teaching-filters .field,.lesson-register .teaching-filters .field{min-width:0;flex-basis:100%;}.lesson-register .panel-head,.income-panel .panel-head{flex-wrap:wrap;gap:10px;}.lesson-register .table-wrap,.income-panel .table-wrap{max-width:100%;}}
@media(max-width:600px){.lesson-register>.table-wrap,.income-panel>.table-wrap{display:none;}.lesson-cards,.income-cards{display:grid;gap:12px;}.lesson-register .metric strong{font-size:23px;}}
.roster-list{max-height:320px;overflow:auto;border:1px solid #d5e4e4;border-radius:12px;margin:12px 0;padding:8px;}
.roster-option{display:flex;align-items:center;gap:12px;padding:10px;border-bottom:1px solid #e7eeee;}
.roster-option[hidden],[hidden]{display:none!important;}
.roster-option input{width:20px;height:20px;flex:none;}
.attendance-person{border:1px solid #c7dcdc;border-radius:12px;padding:14px;margin:14px 0;}
.attendance-person legend{font-weight:700;padding:0 8px;}
.notice-row{padding:16px 0;border-bottom:1px solid #d5e4e4;}
.notice-row button{margin-right:8px;}

/* ===== Tema oscuro =====
   Se activa con data-theme="dark" en <html>. Cada rol conserva su color,
   aclarado para que se lea sobre fondo oscuro. */
[data-theme="dark"] body {
  color-scheme: dark;
  --ink:#e6efee; --muted:#9db2b2; --paper:#101b1d; --line:#2a4145; --white:#17272b;
  --surface:#17272b; --surface-2:#1e3237; --field-bg:#122023;
  --topbar-bg:rgba(23,39,43,.92); --on-brand:#08201f; --toast-bg:#264044;
  --shadow: 0 18px 48px rgba(0,0,0,.5);
  --tag-bg:#22383c;
  --warn-bg:#3b2a1b; --warn-ink:#f2b98a;
  --good-bg:#17322a; --good-ink:#82d7ab;
  --note-bg:#3a3018; --note-ink:#f0d79a; --note-line:#5a4a22;
  --danger:#c4382c; --danger-ink:#f0938c;
  --cal-day-bg:#17272b; --cal-other:#121f22; --cal-line:#2a4145; --cal-ctl-line:#315055;
  --online-bg:#182a3f; --online-line:#5b8ef0;
  --presencial-bg:#16301f; --presencial-line:#4caf72;
  --chip-online-bg:#1e3557; --chip-online-ink:#a9c6ff;
  --chip-pres-bg:#1b3a27; --chip-pres-ink:#9fdcb4;
  --chip-unknown-bg:#28343a; --chip-unknown-ink:#b9c6cd;
}
[data-theme="dark"] .admin-theme { --brand:#39b3ac; --brand-deep:#0b2d2e; }
[data-theme="dark"] .secretary-theme {
  --brand:#b393e0; --brand-deep:#2b1d42; --paper:#141122; --line:#33284a;
  --surface:#1d1830; --surface-2:#251e3d; --field-bg:#171226;
  --topbar-bg:rgba(29,24,48,.92); --cal-day-bg:#1d1830; --cal-other:#171226; --cal-line:#33284a;
}
[data-theme="dark"] .teacher-theme {
  --brand:#9bc7df; --brand-deep:#152f41; --paper:#0f1b24; --line:#294654;
  --surface:#172c39; --surface-2:#203a4b; --field-bg:#10232f;
  --topbar-bg:rgba(23,44,57,.92); --cal-day-bg:#172c39; --cal-other:#10232f; --cal-line:#294654;
}
[data-theme="dark"] .student-theme {
  --brand:#f0a9c8; --brand-deep:#4b1932; --paper:#21131c; --line:#563047;
  --surface:#331d2b; --surface-2:#442539; --field-bg:#271722;
  --topbar-bg:rgba(51,29,43,.92); --cal-day-bg:#331d2b; --cal-other:#271722; --cal-line:#563047;
}
/* El banner de ingreso y la tarjeta del alumno ya son oscuros: no se invierten. */
[data-theme="dark"] .login-brand, [data-theme="dark"] .student-theme .hero-card { color:#fff; }

/* Control de tema e idioma en la barra superior */
.topbar-tools { display:flex; align-items:center; gap:8px; }
.icon-button {
  display:grid; place-items:center; min-width:40px; height:40px; padding:0 11px;
  border:1px solid var(--line); border-radius:12px;
  background:var(--surface); color:var(--ink); font-size:15px; line-height:1;
}
.icon-button:hover { border-color:var(--brand); color:var(--brand); }
.icon-button:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }
.lang-button { font-size:12px; font-weight:700; letter-spacing:.06em; }
@media (max-width: 600px) { .topbar-tools .icon-button { min-width:36px; height:36px; } }
.login-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }

.hacot-footer{padding:22px 20px;text-align:center;background:#064f4e;color:#fff;flex:none}
.institutional-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.institutional-grid h4{margin:6px 0 10px}.count-row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);padding:10px 4px;font-size:13px}.count-row:hover{background:var(--field-bg)}.count-row strong{font-size:17px}
.academic-fields{border:1px solid var(--line);border-radius:12px;padding:16px;margin:22px 0}.academic-fields legend{font-weight:700;padding:0 8px}.academic-fields p,.source-comparison p{font-size:13px;line-height:1.6}.document-buttons{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.document-warning{padding:12px;background:var(--field-bg);border-left:3px solid var(--danger-ink)}.document-confirm{display:flex;align-items:flex-start;gap:10px;font-size:13px;margin:15px 0}.document-confirm input{width:18px;height:18px;flex-shrink:0}.private-document-view{margin-top:18px}.private-document-view iframe{display:block;width:100%;height:65vh;border:1px solid var(--line);border-radius:8px;background:white}.source-comparison{padding:14px 0}.source-comparison summary,.history-panel>summary,.academic-review>summary{font-weight:700;cursor:pointer;line-height:1.5}.history-panel{margin-top:24px}.history-panel .toolbar .field{margin-bottom:0}.academic-review{margin-bottom:20px}.academic-review[open]{padding-bottom:24px}
@media(max-width:980px){.institutional-grid{grid-template-columns:1fr}.private-document-view iframe{height:55vh}}

/* Firma fija de dos líneas: panel verde en PC, footer de página en celular. */
.hacot-signature{position:relative;z-index:1;color:#fff;line-height:1.65;font-size:12px;overflow-wrap:anywhere;flex:none}
.hacot-signature-link{display:inline-block;max-width:100%;color:inherit;text-decoration:none}
.hacot-signature-link:hover .hacot-signature-brand{text-decoration:underline}
.hacot-signature-link:focus-visible{outline:2px solid currentColor;outline-offset:5px;border-radius:2px}
.hacot-signature-brand{display:block;font-weight:700;letter-spacing:.03em}
.hacot-signature small{display:block;font-size:11px;margin-top:4px}
.login-brand-footer{position:relative;z-index:1;padding-top:26px;margin-top:24px;border-top:1px solid #ffffff45}
.sidebar .nav{flex:1;min-height:0;overflow:auto}.sidebar .side-foot{flex:none;margin-top:12px;padding-inline:0}.sidebar .hacot-signature{font-size:9.5px}.sidebar .hacot-signature-brand{letter-spacing:.01em;white-space:nowrap}.sidebar .hacot-signature small{font-size:10px}
body.login-signature>.hacot-footer,body.access-signature>.hacot-footer,body.admin-theme>.hacot-footer,body.secretary-theme>.hacot-footer,body.teacher-theme>.hacot-footer,body.student-theme>.hacot-footer{display:none}
.access-shell>.hacot-signature,.panel>.hacot-signature{background:#064f4e;padding:18px 22px;border-radius:14px;width:min(480px,100%)}.access-shell{gap:18px}
.hw-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin-top:20px}.hw-card{border:1px solid var(--line);padding:18px;border-radius:16px}.hw-card-head{display:flex;align-items:start;gap:12px;justify-content:space-between}.hw-card h3{margin:0;overflow-wrap:anywhere}.hw-card button{margin:5px 5px 0 0}.hw-card p{font-size:13px}
.growth-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.growth-today{border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--surface)}.growth-today h4{margin:0 0 12px;display:flex;justify-content:space-between;gap:12px}.growth-today ul{padding:0;list-style:none;margin:0}.growth-today li{padding:12px 0;border-top:1px solid var(--line);display:grid;gap:8px;font-size:13px;overflow-wrap:anywhere}.growth-today button{justify-self:start}.growth-skills{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0;font-size:13px}.growth-summary .toolbar{flex-wrap:wrap}#hw-bank-query{max-width:650px;width:100%;margin-top:12px}
.sidebar .hacot-signature{background:#064f4e;color:#fff;padding:12px 4px;border-radius:10px}.growth-target{outline:2px solid var(--brand);outline-offset:-2px}
.hw-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;align-items:end}.hw-filters label,.hw-question label,#edit>label{display:grid;gap:6px;margin:14px 0;font-size:13px}.hw-question{border:1px solid var(--line);border-radius:14px;padding:16px;margin:16px 0}.hw-question legend,.hw-answer legend{font-weight:700;max-width:100%;overflow-wrap:anywhere}.hw-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hw-options[hidden],#hw-quiz-builder[hidden]{display:none}.hw-answer{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:12px;min-width:0}.hw-choice{display:flex;gap:10px;align-items:start;margin:12px 0;font-size:14px}.hw-choice input{width:auto;flex:none;margin-top:3px}.hw-preserve{white-space:pre-wrap;overflow-wrap:anywhere}.homework-panel .toolbar{flex-wrap:wrap}input[type=checkbox],input[type=radio]{accent-color:var(--brand)}
.hw-filters input,.hw-question input,.hw-question textarea,.hw-question select,.hw-answer textarea,#edit>label textarea,#edit>label input{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--field-bg);color:var(--ink)}.hw-question{min-width:0}
.material-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;margin-top:22px}
.material-links a{display:flex;align-items:center;justify-content:center;min-height:54px;text-align:center;text-decoration:none}
.material-links a:hover{border-color:var(--brand)}
.honoraria-panel{margin-bottom:24px}.honoraria-panel .panel-head{gap:16px;flex-wrap:wrap}.honoraria-panel>p{font-size:12px}
.honoraria-totals{display:flex;gap:12px 24px;flex-wrap:wrap;margin:18px 0}.honoraria-totals p{font-size:12px;margin:0}.honoraria-review{color:var(--danger-ink);font-size:12px}
@media(max-width:980px){
 body{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
 #app{flex:1;min-width:0}
 .login-shell,.access-shell,.app-shell{min-height:0}
 .login-brand-footer,.access-shell>.hacot-signature,.panel>.hacot-signature{display:none}
 body.login-signature>.hacot-footer,body.access-signature>.hacot-footer,body.admin-theme>.hacot-footer,body.secretary-theme>.hacot-footer,body.teacher-theme>.hacot-footer,body.student-theme>.hacot-footer{display:block}
 .hacot-footer{padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}
 body.admin-theme,body.secretary-theme,body.teacher-theme,body.student-theme{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
 body.admin-theme>.hacot-footer,body.secretary-theme>.hacot-footer,body.teacher-theme>.hacot-footer,body.student-theme>.hacot-footer{padding-bottom:22px}
 .mobile-nav{height:calc(68px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px)}
 .content{padding-bottom:28px}
 .hw-filters{grid-template-columns:1fr}.hw-options{grid-template-columns:1fr}.login-brand .logo-wrap{width:120px}.login-brand h1{font-size:34px}
}

/* Planilla mensual de cobros, Dirección y Secretaría. */
.collections-filters{display:grid;grid-template-columns:180px minmax(180px,1fr) minmax(170px,240px) auto;gap:14px;align-items:end;margin:22px 0}
.collections-filters .field{margin:0;min-width:0}.collections-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin:18px 0}
.collections-totals p{margin:0;padding:16px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;font-size:13px}
.collections-totals strong{display:block;margin-top:8px;font-size:20px}.collections-missing{padding:14px;border:1px solid var(--line);border-radius:12px}
.collections-panel .table-wrap{max-width:100%}.collections-panel table{min-width:1000px}.collections-panel th:nth-child(1){min-width:170px}
.collections-state{font-weight:600}.collections-state[data-state=overdue]{color:var(--danger-ink)}.collections-panel small{display:block;line-height:1.5}
@media(max-width:1200px){.collections-filters{grid-template-columns:1fr 1fr}.collections-filters button{justify-self:start}}
@media(max-width:600px){.collections-filters{grid-template-columns:1fr}.collections-panel .panel-head{display:block}.collections-panel .panel-head button{margin-top:12px}.collections-totals strong{font-size:17px;overflow-wrap:anywhere}}

@media(max-width:420px){.topbar{height:auto;min-height:76px;padding:14px 18px;flex-wrap:wrap;gap:10px;align-items:flex-start}.topbar-tools{flex-wrap:wrap;max-width:100%;gap:8px}.topbar-tools button{font-size:12px;padding:9px 12px}}

.collections-panel td:last-child button{max-width:110px;white-space:normal;padding:8px 10px}

/* Importación histórica y avisos privados del equipo. */
.import-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:14px;align-items:end;margin:20px 0}
.import-filters .field{min-width:0;margin:0}.import-filters button{max-width:100%}
.attendance-import .table-wrap{overflow-x:auto}.attendance-import table{min-width:1100px}
.team-notices .panel-head{flex-wrap:wrap;gap:12px}.team-notices .toolbar{flex-wrap:wrap}
.team-list .notice-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.team-list .notice-row>div{min-width:0;overflow-wrap:anywhere}.team-list .notice-row button{flex-shrink:0}
.team-message{padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:12px}.team-own{border-left:4px solid var(--accent)}
.team-body{white-space:pre-wrap;overflow-wrap:anywhere}.team-messages{max-height:45vh;overflow-y:auto}.team-messages small{display:block}
.cancellation-protocol li{margin:12px 0}.cancellation-protocol .toolbar{flex-wrap:wrap}
@media(max-width:420px){.team-list .notice-row{align-items:flex-start;flex-direction:column}.team-notices .toolbar button{font-size:12px}}

.homework-evolution{padding-left:1.3rem}.homework-evolution li{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;padding:.8rem 0;border-bottom:1px solid var(--border,#d6e0e0)}.homework-evolution li span{flex:1 1 220px}.homework-evolution meter{width:140px;max-width:100%}

.install-app{white-space:normal;min-height:44px}.demo-banner{padding:12px 16px;border:1px solid var(--line);background:var(--surface);border-radius:14px;font-weight:700;margin:12px 0}.topbar-tools{flex-wrap:wrap}#install-dialog{max-width:min(540px,calc(100vw - 24px));border:1px solid var(--line);border-radius:20px;padding:24px;background:var(--surface);color:var(--ink)}#install-dialog::backdrop{background:#0007}#install-dialog li{margin:12px 0}

/* Fichas privadas completas */
.profile-source table{min-width:0;table-layout:fixed;width:100%;}
.profile-source th,.profile-source td{white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top;}
.profile-source td:first-child,.profile-source th:first-child{width:42%;font-weight:600;}
.profile-private input{width:100%;min-width:0;}
.profile-review summary{cursor:pointer;font-weight:600;}
.profile-review td{white-space:normal;overflow-wrap:anywhere;}

/* Un único selector de destinatario con búsqueda integrada. */
.team-recipient input{width:100%;min-width:0;font-size:16px}
.team-recipient-options{max-height:220px;overflow-y:auto;border:1px solid var(--line);border-radius:12px;margin-top:6px;background:var(--surface)}
.team-recipient-options[hidden]{display:none}
.team-recipient-options button{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:0;min-height:44px;padding:12px 14px;color:var(--ink);background:var(--surface)}
.team-recipient-options button+button{border-top:1px solid var(--line)}
.team-recipient-options button:hover,.team-recipient-options button[aria-selected="true"]{background:var(--surface-2);box-shadow:inset 3px 0 var(--accent)}
.team-recipient-hint{font-size:12px;color:var(--muted);margin:6px 0 0}
.team-recipient-options p{padding:12px 14px;margin:0}

/* Accesos: tabla dentro del diálogo, sin ampliar el viewport móvil. */
/* Correo automático: todos los campos se leen sin desplazamiento lateral. */
dialog.onboarding-dialog{width:min(1040px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
.onboarding-panel{min-width:0;max-width:100%;overflow-wrap:anywhere}
.onboarding-panel .toolbar{flex-wrap:wrap}
.onboarding-panel .toolbar button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.onboard-records{list-style:none;margin:18px 0;padding:0;display:grid;gap:12px;min-width:0}
.onboard-records>li{min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.onboard-records dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:0;min-width:0}
.onboard-field{min-width:0}
.onboard-field dt{margin:0 0 5px;font-size:12px;font-weight:700;color:var(--muted)}
.onboard-field dd{margin:0;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.onboard-detail{grid-column:1/-1}
@media(max-width:600px){dialog.onboarding-dialog{padding:16px}.onboard-records>li{padding:14px}.onboard-records dl{grid-template-columns:minmax(0,1fr);gap:12px}.onboarding-panel .toolbar{display:grid;grid-template-columns:minmax(0,1fr)}.onboarding-panel .toolbar button{width:100%}}
/* Birthday notices share the interface palette and never force horizontal scroll. */
.birthday-card{min-width:0;overflow-wrap:anywhere}
.birthday-people,.birthday-missing{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}
.birthday-people li{display:flex;gap:12px;align-items:center;justify-content:space-between;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px}
.birthday-people li>span{color:var(--muted);font-size:13px;flex-shrink:0}
.birthday-people li>div{min-width:0}
.birthday-people p{margin:6px 0 0}
.birthday-card .toolbar{flex-wrap:wrap}
.birthday-card button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.birthday-management{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
.birthday-management details{padding:14px 0}
.birthday-management summary{cursor:pointer;font-weight:700}
@media(max-width:600px){.birthday-people li{align-items:flex-start;flex-wrap:wrap}.birthday-card .toolbar{display:grid;grid-template-columns:minmax(0,1fr)}.birthday-card .toolbar button{width:100%}}

#birthday-notices{scroll-margin-top:110px}
@media(max-width:600px){#birthday-notices{scroll-margin-top:150px}}

/* Update banner stays outside app renders. It never reloads without a click. */
.update-banner{position:fixed;right:20px;bottom:20px;z-index:1000;display:grid;gap:10px;width:min(390px,calc(100vw - 32px));box-sizing:border-box;padding:18px;background:var(--surface,#fff);color:var(--ink,#172a2b);border:1px solid var(--line,#c6d1d1);border-radius:16px;box-shadow:0 8px 35px #0003;overflow-wrap:anywhere}
.update-banner[hidden]{display:none}.update-banner strong{font-size:16px;line-height:1.4}.update-banner p{margin:0;font-size:13px;line-height:1.5}.update-banner p:empty{display:none}.update-banner button{width:100%;min-height:44px;white-space:normal}
@media(max-width:800px){.update-banner{right:16px;bottom:calc(80px + env(safe-area-inset-bottom,0px));padding:16px}}

/* Private exam cards and student picker, readable at 320px. */
.exam-panel,.exam-notices,.exam-summary{min-width:0;max-width:100%;overflow-wrap:anywhere}
.exam-panel .panel-head,.exam-panel .toolbar,.exam-notices .toolbar,.exam-summary .toolbar{flex-wrap:wrap;gap:12px}
.exam-panel button,.exam-notices button,.exam-summary button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px}
.exam-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));align-items:end;gap:14px;margin:18px 0}
.exam-filters .field{margin:0;min-width:0}.exam-filters input,.exam-filters select{width:100%;min-width:0;max-width:100%}
.exam-list{list-style:none;margin:18px 0;padding:0;display:grid;gap:14px;min-width:0}
.exam-card{min-width:0;padding:18px;border:1px solid var(--line);border-radius:14px;overflow-wrap:anywhere}
.exam-card h4,.exam-card p{margin:0 0 10px}.exam-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.exam-card dl>div{min-width:0}.exam-card dt{font-size:12px;color:var(--muted);font-weight:600}.exam-card dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.exam-picker input{width:100%;min-width:0;font-size:16px}.exam-picker-options{max-height:220px;overflow-y:auto;border:1px solid var(--line);border-radius:12px;margin:8px 0;background:var(--surface)}
.exam-picker-options[hidden]{display:none}.exam-picker-options button{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:0;min-height:44px;padding:12px;color:var(--ink);background:var(--surface)}
.exam-picker-options button+button{border-top:1px solid var(--line)}.exam-picker-options button:hover,.exam-picker-options button[aria-selected=true]{background:var(--surface-2);box-shadow:inset 3px 0 var(--accent)}
.exam-picker-options p{padding:12px;margin:0}.exam-settings{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px}
@media(max-width:600px){.exam-card{padding:14px}.exam-card dl{grid-template-columns:minmax(0,1fr)}.exam-panel .toolbar,.exam-notices .toolbar,.exam-summary .toolbar{display:grid;grid-template-columns:minmax(0,1fr)}.exam-panel .toolbar button,.exam-notices .toolbar button{width:100%}.exam-panel .panel-head{display:block}.exam-panel .panel-head button{margin-top:12px}}

.exam-reminder{display:flex;align-items:center;gap:10px;margin:18px 0;line-height:1.5}.exam-reminder input[type=checkbox]{width:20px;height:20px;flex-shrink:0;margin:0}.exam-picker,.exam-picker input{min-width:0;max-width:100%}#exam-panel,#exam-notices{scroll-margin-top:110px}
@media(max-width:600px){#exam-panel,#exam-notices{scroll-margin-top:150px}}
.exam-demo{display:inline-block;margin-inline-start:8px;margin-top:4px;padding:3px 7px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:var(--muted);font:700 10px/1.4 sans-serif;vertical-align:middle;letter-spacing:.04em}
.exam-panel .panel-head .toolbar{margin:0;gap:10px}.exam-panel .panel-head button{font-size:14px;padding:11px 14px;line-height:1.4}.exam-panel .panel-head .primary{color:var(--on-brand);background:var(--brand)}.exam-panel .panel-head .primary:hover{background:var(--brand-deep)}.exam-panel .panel-head .secondary{color:var(--ink);background:var(--surface);border:1px solid var(--line)}
#edit>label.exam-reminder{display:flex;align-items:center;gap:10px;margin:18px 0;line-height:1.5}#edit>label.exam-reminder input[type=checkbox]{width:20px;min-width:20px;height:20px;padding:0;margin:0;flex:0 0 20px}
@media(max-width:600px){.exam-panel .panel-head .toolbar{margin-top:16px}.exam-panel .panel-head button{margin-top:0}}

/* Acciones importantes: contraste alto y foco visible en todos los roles. */
.attention-neon,[data-action="refresh"],[data-action="google_sync_open"],[data-action="teaching_sync"],[data-action="calendar_refresh"],[data-action="teaching_reload"],.attention-sync{
 min-height:44px;font-weight:800;border:2px solid #064f4e;background:#08706e;color:#ffffff;box-shadow:0 0 0 3px #08706e18;white-space:normal;
}
.attention-neon:hover:not(:disabled),.attention-sync:hover:not(:disabled),[data-action="google_sync_open"]:hover,[data-action="refresh"]:hover{background:#064f4e;color:#ffffff}
.attention-neon:focus-visible,.attention-sync:focus-visible,[data-action="refresh"]:focus-visible,[data-action="google_sync_open"]:focus-visible{outline:3px solid #1675ed;outline-offset:3px}
.attention-neon:disabled{opacity:.8;cursor:default}.attention-neon.is-active{background:#edf7f5;color:#064f4e;border-color:#08706e;box-shadow:none}
.access-notice{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);border-left:5px solid #08706e;margin-bottom:18px}
.access-notice h3{margin:0 0 8px}.access-notice p{margin:6px 0;color:var(--ink);font-size:14px;line-height:1.5}.access-notice .push-status:empty{display:none}.access-notice>button{flex:0 0 auto;max-width:280px}.push-compact{display:inline-flex}
.update-banner{border:3px solid #08706e;box-shadow:0 0 0 5px #08706e20,0 10px 36px #0004}
.update-banner strong{font-size:18px;font-weight:800}.update-banner button{background:#08706e;color:#ffffff;border:2px solid #064f4e;font-weight:800}
.bulk-link-dialog{max-width:min(850px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:24px;border-radius:20px;background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.bulk-link-dialog::backdrop{background:#0008}.bulk-date-fields{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}.bulk-date-fields label{display:grid;gap:8px}.bulk-link-dialog li{margin:10px 0}.bulk-link-dialog details{margin:14px 0}
@media(max-width:700px){.access-notice{flex-direction:column;align-items:stretch;gap:10px}.access-notice>button{max-width:none;width:100%}.topbar-tools{justify-content:flex-start}.push-compact button{max-width:230px}.bulk-link-dialog{padding:18px}}

[data-action="schedule_open"]{background:#08706e;color:#fff;border:2px solid #064f4e;min-height:44px;font-weight:700}
#schedule-filter{margin:16px 0;width:100%}#schedule-list .notice-row{flex-wrap:wrap;gap:12px}#schedule-list button{white-space:normal;min-height:44px}

/* Teacher class distribution, using the Oxbridge palette. */
.liquidation-report{border-top:1px solid var(--line);margin-top:22px;padding-top:18px;min-width:0}
.liquidation-report h4{font-size:18px;margin:18px 0 12px}.liquidation-report p{line-height:1.6}
.liquidation-report .toolbar{display:flex;flex-wrap:wrap;gap:10px}.liquidation-report button{min-height:44px;white-space:normal}
.liquidation-pie{display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.liquidation-pie svg{width:220px;max-width:100%;height:auto;flex:0 1 220px}.liquidation-pie ul{list-style:none;padding:0;margin:0;display:grid;gap:14px;min-width:0}
.liquidation-pie li{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.liquidation-dot{display:inline-block;width:14px;height:14px;border-radius:50%;flex:0 0 14px}
.liquidation-report details{margin:16px 0}.liquidation-report summary{font-weight:700;cursor:pointer;min-height:44px;display:list-item}
@media(max-width:600px){.liquidation-pie{justify-content:center;gap:16px;padding:14px}.liquidation-pie ul{width:100%}.liquidation-report .toolbar button{flex:1 1 160px}}

/* Account security, same institutional colors as other important actions. */
.mfa-shell{max-width:620px;margin:40px auto;padding:16px}.mfa-shell h1{font-size:1.65rem}.mfa-shell input,.mfa-shell select{display:block;width:100%;margin:10px 0;padding:12px}.mfa-shell button{margin:8px 8px 8px 0}.mfa-shell #mfa-code{font-size:1.5rem;letter-spacing:.25em}.mfa-shell #mfa-qr{background:white;width:fit-content;padding:12px;margin:16px 0}.mfa-secret{display:block;overflow-wrap:anywhere;user-select:all;margin:12px 0}.mfa-shell #mfa-error{color:#9b2434;white-space:pre-wrap}

.mfa-shell #mfa-qr{max-width:100%;box-sizing:border-box}.mfa-shell #mfa-qr img{display:block;max-width:100%;height:auto}

/* Primary links must retain readable text inside panels in every role/theme. */
a.primary,.panel a.primary,.panel a.primary:visited,.panel a.primary:hover,.panel a.primary:focus-visible{color:var(--on-brand);text-decoration:none}

/* Compact content panels across management, teacher and student sections. */
.panel-folder{border:1px solid var(--line);border-radius:16px;background:var(--surface);margin:0 0 14px;overflow:hidden}.panel-folder>summary{padding:18px 20px;font-weight:700;font-size:1rem;color:var(--ink);cursor:pointer;min-height:52px}.panel-folder>summary:focus-visible{outline:3px solid var(--brand);outline-offset:-4px}.panel-folder[open]>summary{border-bottom:1px solid var(--line)}.panel-folder>.panel{margin:0;border:0;box-shadow:none;border-radius:0}.panel-folder .panel>details>summary{cursor:pointer;padding:14px 0;font-weight:700}

/* Clear exam choices and bounded table scrolling on narrow and wide screens. */
.exam-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}.exam-hub-choice{border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--surface);color:var(--ink);text-align:left;min-height:100px;white-space:normal}.exam-hub-choice strong,.exam-hub-choice span{display:block}.exam-hub-choice strong{font-size:1.05rem;margin-bottom:9px}.exam-hub-choice span{font-size:.9rem;line-height:1.5}.exam-hub-choice.is-selected{border:2px solid var(--brand);background:var(--surface-2)}.exam-hub-choice:focus-visible{outline:3px solid var(--brand);outline-offset:3px}.panel-folder .table-wrap{max-height:65vh;overflow:auto;overscroll-behavior:contain}.panel-folder .table-wrap thead th{position:sticky;top:0;z-index:1;background:var(--surface-2)}.panel-folder>.panel>h3:first-child{display:none}@media(max-width:600px){.exam-hub{grid-template-columns:1fr}.exam-hub-choice{padding:16px;min-height:88px}.panel-folder>summary{padding:16px}.panel-folder .table-wrap{max-height:55vh}}

/* 2.29.4: compact, accessible header on phones and tablets. */
.topbar{height:auto;min-height:76px;gap:20px;padding-top:12px;padding-bottom:12px}
.topbar-identity{min-width:0;flex:1 1 180px}
.topbar-identity h2{overflow-wrap:anywhere}
.topbar-identity p{overflow-wrap:anywhere}
.topbar-actions{flex:0 1 auto;min-width:0}
.topbar-actions>summary{display:none}
.topbar-actions:not([open])>.topbar-tools{display:flex}
.topbar-tools{justify-content:flex-end}
@media(max-width:900px){
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 18px;min-height:76px;flex-wrap:nowrap}
 .topbar-identity{min-width:0}
 .topbar-identity h2{font-size:15px;line-height:1.4}
 .topbar-identity p{font-size:12px;line-height:1.4;margin-top:3px}
 .topbar-actions{position:relative;align-self:center}
 .topbar-actions>summary{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:14px;font-weight:700;cursor:pointer}
 .topbar-actions>summary::-webkit-details-marker{display:none}
 .topbar-actions>summary:focus-visible{outline:3px solid #08706e;outline-offset:3px}
 .topbar-actions:not([open])>.topbar-tools{display:none}
 .topbar-actions[open]>.topbar-tools{display:flex;position:absolute;right:0;top:calc(100% + 10px);width:min(300px,calc(100vw - 36px));max-width:none;max-height:65dvh;overflow:auto;flex-direction:column;align-items:stretch;gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 12px 30px #17333424;z-index:20}
 .topbar-tools>*,.topbar-tools .push-compact{width:100%;max-width:none}
 .topbar-tools button,.topbar-tools .push-compact button{width:100%;max-width:none;min-height:44px;margin:0;white-space:normal;font-size:14px;padding:10px 12px}
}

.history-summary{padding:20px;margin:18px 0 24px;border:1px solid var(--line);border-left:5px solid #08706e;border-radius:16px;background:var(--surface)}
.history-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.history-metrics>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.history-metrics strong{display:block;font-size:26px;line-height:1.3;color:var(--ink)}
.history-metrics span{display:block;margin-top:5px;font-size:13px;color:var(--muted)}
@media(max-width:600px){.history-metrics{grid-template-columns:1fr}.history-summary{padding:14px}.history-summary .panel-head{flex-wrap:wrap;gap:10px}}

/* OXBRIDGE 2.32.0 — explicit disclosure controls, all roles. */
details > summary {
 position:relative; list-style:none !important; cursor:pointer;
 min-height:48px; box-sizing:border-box;
 padding:13px 112px 13px 14px !important;
 border-radius:10px; line-height:1.45;
 overflow-wrap:anywhere; background:var(--surface-2,#f3f8f7);
}
details > summary::marker {content:'';font-size:0}
details > summary::-webkit-details-marker {display:none !important}
details > summary::after {
 content:'Abrir +'; position:absolute; right:10px; top:50%;
 transform:translateY(-50%); display:inline-flex; align-items:center;
 justify-content:center; box-sizing:border-box; min-width:86px;
 min-height:30px; padding:5px 10px; border:1px solid var(--brand,#08706e);
 border-radius:8px; background:var(--surface,#fff);
 color:var(--brand,#08706e); font-size:12px; font-weight:700;
 line-height:1.2; white-space:nowrap; pointer-events:none;
}
details[open] > summary::after {content:'Cerrar −';background:var(--brand,#08706e);color:var(--on-brand,#fff)}
:lang(en) details > summary::after {content:'Open +'}
:lang(en) details[open] > summary::after {content:'Close −'}
details > summary:focus-visible {outline:3px solid var(--brand,#08706e);outline-offset:3px}
details[open] > summary {margin-bottom:10px}
/* Actions uses the same closed-by-default behavior on desktop and mobile. */
.topbar-actions {position:relative;align-self:center}
.topbar-actions > summary {display:block !important;min-width:180px;border:1px solid var(--line)}
.topbar-actions:not([open]) > .topbar-tools {display:none !important}
.topbar-actions[open] > .topbar-tools {
 display:flex;position:absolute;right:0;top:calc(100% + 10px);
 width:min(320px,calc(100vw - 36px));max-width:none;max-height:65dvh;
 overflow:auto;flex-direction:column;align-items:stretch;gap:10px;
 padding:14px;border:1px solid var(--line);border-radius:16px;
 background:var(--surface);box-shadow:0 12px 30px #17333424;z-index:30;
}
.topbar-actions .topbar-tools > *, .topbar-actions .push-compact {width:100%;max-width:none}
.topbar-actions .topbar-tools button {width:100%;white-space:normal;min-height:44px}
@media(max-width:420px){
 details > summary {padding-right:100px !important;font-size:14px}
 details > summary::after {min-width:76px;right:7px;padding:5px 7px;font-size:11px}
 .topbar-actions > summary {min-width:157px}
 .topbar {gap:8px;padding-left:12px;padding-right:12px}
}

/* 2.33.1: persistent notification emphasis and action feedback, every role. */
[data-push-button], [data-action="teaching_push"], [data-action="access_push_help"] {
 border:2px solid #087f80 !important;border-radius:14px !important;
 box-shadow:0 0 0 3px rgba(8,127,128,.14),0 0 15px rgba(8,127,128,.32) !important;
 background:#f1fbfa;color:#064f4e;font-weight:750;
}
[data-push-button].is-active,[data-push-button]:disabled {
 opacity:1;box-shadow:0 0 0 3px rgba(8,127,128,.10),0 0 10px rgba(8,127,128,.24) !important;
}
button.ox-busy {cursor:progress;opacity:1;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;}
button.ox-busy::before {content:"";width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ox-button-spin .8s linear infinite;flex-shrink:0;}
@keyframes ox-button-spin {to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){button.ox-busy::before{animation:none;border-right-color:currentColor}}

/* 2.33.2: global update prompt; teal + warm gold notification accent. */
#oxbridge-update{position:fixed;top:18px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);z-index:2147483000;width:min(520px,calc(100vw - 24px));padding:22px;border:3px solid #087f80;border-radius:20px;background:#fffdf7;color:#103c3c;box-shadow:0 0 0 5px #d7ad5140,0 15px 55px #002f3f55;}
#oxbridge-update strong{font-size:21px;line-height:1.3}#oxbridge-update button{background:#075e60;color:#fff;min-height:50px;font-size:17px;border-radius:12px}
[data-push-button],[data-action="teaching_push"],[data-action="access_push_help"]{background:linear-gradient(120deg,#e9fbf8 0%,#fff2cb 100%) !important;color:#064f4e !important;border:2px solid #087f80 !important;border-bottom:4px solid #c19637 !important;box-shadow:0 0 0 3px #d9af5555,0 0 20px #087f8060,0 0 30px #d7ad5133 !important;font-weight:800;min-height:46px;}
[data-push-button].is-active,[data-push-button]:disabled{background:linear-gradient(120deg,#edfaf7,#fff4d5) !important;opacity:1;box-shadow:0 0 0 3px #d9af5540,0 0 14px #087f8045 !important;}
@media(max-width:800px){#oxbridge-update{top:calc(12px + env(safe-area-inset-top,0px));padding:17px;}#oxbridge-update strong{font-size:19px}}

/* 2.33.4: consistent rounded controls inside request dialogs. */
#dialog button.secondary,#dialog button.primary{font:inherit;border-radius:14px;padding:11px 16px;min-height:46px;line-height:1.35;white-space:normal;margin:5px 6px 5px 0;}
#dialog button.secondary{background:var(--surface,#fff);border:1px solid var(--line,#cadcdb);color:var(--ink,#173d3f);font-weight:750;}
#dialog button.primary{background:var(--brand,#08706e);color:var(--on-brand,#fff);border:2px solid var(--brand-deep,#075453);font-weight:800;}
#dialog button:disabled{cursor:progress;opacity:.7}
#dialog select{border-radius:14px;min-height:48px;border:1px solid var(--line,#cadcdb);}
details>summary::after{border-radius:12px !important;min-height:34px;}

/* 2.35.0: password visibility and anonymous opinions. */
.password-control{position:relative;display:flex;align-items:center;width:100%}
.password-control input{width:100%;padding-right:54px!important}
.password-control .password-eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:8px;border:0;background:transparent;color:inherit;box-shadow:none;min-height:44px}
.password-eye:focus-visible{outline:2px solid currentColor;outline-offset:-4px}
[data-password-status]{font-size:.9rem;margin:6px 0;min-height:1.3em;color:#b3261e}
[data-password-status][data-valid="true"]{color:#08706e}
.feedback-body{white-space:pre-wrap;overflow-wrap:anywhere}
.feedback-entry{border-top:1px solid #9aaba94d;padding:16px 0}
.feedback-entry:first-child{border-top:0}
.feedback-entry h3{margin-bottom:8px}
#teacher-feedback textarea{width:100%;min-height:150px;resize:vertical}

/* 2.36.0: shared birthday calendar. */
.birthday-calendar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.birthday-calendar>section{min-width:0}
.birthday-calendar h4{margin:12px 0}
.birthday-date{font-size:.9rem;margin:6px 0;opacity:.85}
.birthday-people strong{overflow-wrap:anywhere}
@media(max-width:700px){.birthday-calendar{grid-template-columns:1fr;gap:12px}}

/* 2.37.0: internal continuity and institutional requests. */
.ops-preserve{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 16px}
.ops-entry{padding:18px 0;border-top:1px solid #839d9b55}
.ops-entry h4{margin:0 0 10px}
#ops-applied{padding:14px;border:1px solid #839d9b55;border-radius:12px}
#ops-applied[hidden]{display:none}
.ops-entry .toolbar{flex-wrap:wrap}

/* 2.37.1: visible student cancellation notice, independent of disclosure panels. */
.cancellation-important{border:2px solid #b7791f;border-left-width:7px;background:var(--surface);margin-bottom:22px}
.cancellation-important h3{margin-top:0}
.cancellation-important-lead{font-size:1.1rem;line-height:1.6}
.cancellation-important-lead strong{color:#9a5b00}
.cancellation-next{padding:10px 16px;border-radius:12px;background:#b7791f12}
.cancellation-closed{color:#a33124}
.cancellation-important .toolbar{flex-wrap:wrap}
[data-theme="dark"] .cancellation-important-lead strong{color:#ffd08c}
[data-theme="dark"] .cancellation-closed{color:#ffb4a8}

/* OXBRIDGE 2.38.1 - enlaces públicos, sin cambiar formularios ni navegación privada */
.ox-legal-links{display:flex;align-items:center;justify-content:center;gap:8px 19px;flex-wrap:wrap;padding-top:10px;font-size:12px;line-height:1.5}
.ox-legal-links a{color:#e4fff8;text-decoration:underline;text-underline-offset:3px;white-space:normal}
.ox-legal-links a:hover{color:#ffffff;text-decoration-thickness:2px}
.ox-legal-links a:focus-visible{outline:2px solid #fff;border-radius:3px;outline-offset:4px}
.sidebar .ox-legal-links{gap:7px 12px;font-size:10px;padding:8px 6px 3px}
.login-brand-footer .ox-legal-links,.access-shell .ox-legal-links{gap:7px 12px;font-size:11px}
@media(max-width:600px){.ox-legal-links{gap:8px 15px;font-size:11px}}
/* OXBRIDGE 2.39.0 - colores Google, clases sin vincular y calificación de clases */
.color-legend{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}.color-legend li{display:flex;align-items:center;gap:8px}.color-chip{width:18px;height:18px;border-radius:50%;flex:0 0 18px;border:1px solid var(--line)}
.link-warning{margin:6px 0;padding:6px 8px;border-radius:8px;background:var(--warn-bg);color:var(--warn-ink);font-size:.85rem;font-weight:600}
.link-summary{margin:10px 0;padding:12px 14px;border-radius:12px;background:var(--warn-bg);color:var(--warn-ink)}.link-summary p{margin:0 0 8px}
.calendar-block.is-unlinked{outline:3px dashed var(--danger);outline-offset:-3px}
.rating-slot:empty,.rating-hint:empty{display:none}.rating-done{color:var(--good-ink);font-weight:600}
.rating-wish{margin:6px 0 0;padding:6px 8px;border-radius:8px;background:var(--note-bg);color:var(--note-ink);font-size:.86rem}
.rating-dialog{width:min(560px,calc(100vw - 24px))}
.rating-form fieldset{border:0;margin:0 0 14px;padding:0;min-width:0}.rating-form legend{font-weight:700;margin-bottom:8px;padding:0}.rating-form legend small{font-weight:400;color:var(--muted)}
.rating-stars{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}.rating-stars legend{width:100%}
.rating-stars input{position:absolute;opacity:0;width:1px;height:1px}.rating-stars label{font-size:2.3rem;line-height:1;color:var(--line);cursor:pointer;padding:0 2px}
.rating-stars input:checked~label,.rating-stars label:hover,.rating-stars label:hover~label{color:#F6BF26}
.rating-stars input:focus-visible+label{outline:2px solid var(--brand);border-radius:6px}
.rating-choice label{display:inline-flex;margin:0 6px 6px 0;cursor:pointer}.rating-choice input{position:absolute;opacity:0;width:1px;height:1px}
.rating-choice span{display:inline-block;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:var(--field-bg);min-width:44px;text-align:center}
.rating-choice input:checked+span{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}.rating-choice input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
.rating-note{font-size:.85rem;color:var(--muted)}
.rating-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.rating-filters .field{margin:0;min-width:150px}
.rating-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:14px 0}.rating-stats div{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.rating-stats strong{display:block;font-size:1.5rem}.rating-stats span{font-size:.82rem;color:var(--muted)}
.rating-entry{border-top:1px solid var(--line);padding:14px 0}.rating-entry h4{margin:0 0 4px}.rating-entry.is-new h4::after{content:' · Nueva';font-size:.8rem;color:var(--danger-ink)}
.rating-stars-read{color:#E4A500;letter-spacing:1px}.rating-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.rating-chip{padding:4px 10px;border-radius:999px;background:var(--tag-bg);font-size:.82rem}
.rating-chip.is-alert{background:var(--warn-bg);color:var(--warn-ink)}
.rating-form fieldset.is-missing legend{color:var(--danger-ink)}.rating-form fieldset.is-missing legend::after{content:' · falta responder';font-weight:400;font-size:.85rem}
.attendance-reminder{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:1000;width:min(560px,calc(100vw - 32px));display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:16px 18px;border-radius:16px;background:var(--surface);color:var(--ink);border:2px solid var(--brand);box-shadow:var(--shadow)}
.attendance-reminder[hidden]{display:none}.attendance-reminder p{margin:4px 0 0}.attendance-reminder-actions{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:700px){.attendance-reminder{bottom:84px}}
.vacancy-badge{margin:6px 0;padding:6px 8px;border-radius:8px;background:var(--danger);color:#fff;font-weight:700;font-size:.85rem}
.calendar-block.is-vacancy{background-image:repeating-linear-gradient(135deg,transparent 0 14px,rgba(255,255,255,.2) 14px 20px);outline:3px solid var(--danger);outline-offset:-3px}
.absence-note{margin:6px 0;padding:6px 8px;border-radius:8px;background:var(--warn-bg);color:var(--warn-ink);font-size:.86rem;font-weight:600}
