:root { --board:#1468dc; --board-deep:#0e58c6; --ink:#20385f; --muted:#607391; --line:#dce3ef; --paper:#f8f9fc; --card:#fff; --green:#27a77c; --danger:#ce5363; --shadow:0 2px 0 rgba(23,48,91,.13),0 9px 18px rgba(12,40,83,.12); }
* { box-sizing:border-box; }
body { min-width:320px; min-height:100vh; margin:0; color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:var(--board); }
button,input,select,textarea { font:inherit; } button { cursor:pointer; }
.app-shell { position:relative; width:100%; min-height:100vh; margin:0 auto; padding:18px max(20px,calc((100% - 1500px) / 2 + 20px)) 52px; overflow:hidden; background:var(--board); }
.app-shell::before,.app-shell::after { position:absolute; z-index:0; content:""; pointer-events:none; opacity:.19; background:#a9d2ff; transform:rotate(-50deg); }.app-shell::before { width:18px; height:850px; top:90px; left:20%; }.app-shell::after { width:13px; height:800px; top:-190px; left:9%; }
.section-nav,.board-date,.workspace { position:relative; z-index:1; }.section-nav { position:absolute; z-index:4; top:20px; left:max(20px,calc((100% - 1500px) / 2 + 20px)); display:flex; gap:3px; padding:3px; border:1px solid rgba(255,255,255,.38); border-radius:8px; background:rgba(5,55,143,.2); }.section-nav__button { border:0; border-radius:5px; padding:5px 10px; color:#dceaff; background:transparent; font-size:.78rem; font-weight:800; }.section-nav__button:hover { color:#fff; background:rgba(255,255,255,.13); }.section-nav__button.is-active { color:var(--board-deep); background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.12); }
.board-meta { position:relative; z-index:1; display:flex; justify-content:flex-end; align-items:stretch; gap:9px; margin-left:auto; }.board-date,.exam-countdown { display:flex; align-items:center; min-height:40px; padding:8px 14px; border-radius:8px; color:var(--board-deep); background:#fff; box-shadow:0 2px 0 rgba(6,52,122,.22); }.board-date { font-size:.86rem; font-weight:780; text-transform:capitalize; }.exam-countdown { font-size:.86rem; font-weight:800; }.workspace[hidden] { display:none; }.workspace--degree { min-height:calc(100vh - 80px); }
.degree-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; padding:52px 16px 26px; color:#fff; }.degree-heading h1 { margin:0; font-size:2rem; letter-spacing:-.04em; }.degree-heading__actions { display:flex; align-items:center; gap:14px; }.degree-delete-mode { border:1px solid rgba(255,255,255,.55); border-radius:7px; padding:7px 10px; color:#fff; background:rgba(5,55,143,.18); font-size:.78rem; font-weight:800; white-space:nowrap; }.degree-delete-mode:hover { background:rgba(5,55,143,.34); }.degree-delete-mode.is-active { border-color:#ffc1c8; color:#fff; background:#c84959; }.degree-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:20px; padding:0 15px 26px; }.degree-subject { min-width:0; padding:20px 16px; border-radius:15px; background:var(--paper); box-shadow:0 2px 0 rgba(4,45,112,.18); }.degree-subject__header { display:flex; align-items:start; justify-content:space-between; gap:16px; padding-bottom:14px; border-bottom:1px solid #e1e7f0; }.degree-subject h2 { margin:0; color:#243b61; font-size:1.05rem; letter-spacing:-.02em; }.text-button { border:0; padding:3px 0; color:var(--board); background:none; font-size:.82rem; font-weight:800; white-space:nowrap; }.degree-topics { display:grid; gap:8px; padding-top:11px; }.degree-empty { margin:0; padding:9px 0 3px; color:var(--muted); font-size:.8rem; }.degree-topic { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 11px; border:1px solid #e0e6ef; border-radius:9px; background:#fff; transition:background .18s,border-color .18s; }.degree-topic[data-progress="1"] { border-color:#e9d28a; background:#fff8df; }.degree-topic[data-progress="2"] { border-color:#a8ccef; background:#eaf5ff; }.degree-topic[data-progress="3"] { border-color:#9bd9bb; background:#e8f8ee; }.degree-topic__title { min-width:0; color:#2d4569; font-size:.84rem; font-weight:650; }.degree-topic__checks { display:flex; gap:6px; flex:0 0 auto; }.degree-check { appearance:none; width:15px; height:15px; margin:0; border:1.5px solid #afbdd0; border-radius:50%; cursor:pointer; }.degree-check:checked { border-color:var(--green); background:radial-gradient(circle,#fff 0 30%,transparent 34%),var(--green); }.topic-delete-button { flex:0 0 auto; width:22px; height:22px; padding:0; border:0; border-radius:5px; color:#c84959; background:#fff0f2; font-size:1.1rem; line-height:1; }.topic-delete-button:hover { color:#fff; background:#c84959; }
.hero { display:flex; justify-content:flex-end; padding:18px 16px 27px; }.eyebrow { margin:0 0 6px; color:inherit; font-size:.68rem; font-weight:800; letter-spacing:.12em; opacity:.72; }.section-heading h2,.modal h2 { margin:0; letter-spacing:-.04em; }.hero__actions { display:flex; gap:10px; }.button { border:0; border-radius:8px; padding:10px 15px; color:var(--board-deep); background:#fff; box-shadow:0 2px 0 rgba(6,52,122,.22); font-weight:780; transition:transform .16s,background .16s; }.button:hover { background:#e9f3ff; transform:translateY(-1px); }.button--secondary { border:1px solid rgba(255,255,255,.65); color:#fff; background:transparent; box-shadow:none; }.button--secondary:hover { background:rgba(255,255,255,.14); }
.stats { display:flex; gap:8px; padding:0 16px 20px; }.stat-card { display:flex; align-items:baseline; gap:6px; padding:7px 10px; border:1px solid rgba(255,255,255,.34); border-radius:7px; color:#fff; background:rgba(3,59,153,.16); }.stat-card__label { display:none; }.stat-card strong { font-size:1rem; }.stat-card__detail { color:#e4efff; font-size:.75rem; }.stat-card--blue,.stat-card--soft { background:rgba(3,59,153,.16); }
.content-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(360px,1fr)); align-items:start; gap:20px; width:100%; min-height:450px; padding:0 15px 26px; }.subjects-section,.subjects-list { display:contents; }.agenda,.subject-card,.empty-state { min-width:0; border-radius:15px; background:var(--paper); box-shadow:0 2px 0 rgba(4,45,112,.18); }.agenda { padding:20px 16px; }.section-heading { display:flex; align-items:end; justify-content:space-between; margin:0 4px 16px; }.section-heading .eyebrow { color:#7890b4; opacity:1; }.section-heading h2 { color:#243b61; font-size:1.28rem; }.agenda-list { display:grid; gap:10px; }
.subject-card { position:relative; display:grid; grid-template-columns:5px minmax(0,1fr) auto; gap:13px; align-items:start; overflow:hidden; padding:20px 12px 15px 0; }.subject-card__stripe { align-self:stretch; border-radius:0 5px 5px 0; background:var(--subject-color); }.subject-card__main { min-width:0; padding:0; }.subject-card h3 { margin:0; color:#243b61; font-size:1.12rem; letter-spacing:-.025em; }.subject-card p { margin:5px 0 0; color:var(--muted); font-size:.8rem; }.subject-card__tasks { display:flex; align-items:center; gap:3px; }.task-badge { min-width:30px; padding:5px 7px; border-radius:6px; color:var(--board); background:#e8f2ff; font-size:.75rem; font-weight:850; text-align:center; }.icon-action { width:30px; height:30px; border:0; border-radius:6px; color:#8b9bb4; background:transparent; font-size:1.1rem; }.icon-action:hover { color:var(--danger); background:#fff0f2; }.subject-tasks { grid-column:2 / -1; margin:4px 0 0; padding-top:11px; border-top:1px solid #e1e7f0; }.task-row { display:grid; grid-template-columns:19px minmax(0,1fr) auto auto; gap:8px; align-items:center; padding:7px 0; }.check { appearance:none; width:17px; height:17px; margin:0; border:1.5px solid #aab8cc; border-radius:50%; cursor:pointer; }.check:checked { border-color:var(--green); background:radial-gradient(circle,#fff 0 30%,transparent 34%),var(--green); }.task-row__title { min-width:0; overflow:hidden; color:#31496e; font-size:.83rem; text-overflow:ellipsis; white-space:nowrap; }.task-row.is-complete .task-row__title { color:#8492a7; text-decoration:line-through; }.task-row__dates { display:grid; gap:2px; color:#7889a2; font-size:.66rem; line-height:1.2; text-align:right; white-space:nowrap; }.task-row__dates .is-late { color:var(--danger); font-weight:800; }.task-row .icon-action,.cycle-topic-actions .icon-action { width:24px; height:24px; font-size:.95rem; }
.agenda-item { display:grid; grid-template-columns:42px 1fr; gap:11px; align-items:center; padding:11px 2px; border-bottom:1px solid #e1e7f0; }.agenda-item:last-child { border-bottom:0; }.agenda-date { padding:5px 2px; border-radius:6px; color:var(--board); background:#e8f2ff; font-size:.64rem; font-weight:850; line-height:1.15; text-align:center; text-transform:uppercase; }.agenda-date strong { display:block; font-size:1rem; }.agenda-item h3 { margin:0; color:#30476b; font-size:.88rem; font-weight:700; }.agenda-item p { margin:3px 0 0; color:var(--muted); font-size:.75rem; }.empty-state { padding:33px 20px; border:1px dashed #b7c9e2; border-radius:10px; color:var(--muted); background:#f1f4f8; text-align:center; }.empty-state__icon { display:grid; place-items:center; width:36px; height:36px; margin:0 auto 11px; border-radius:50%; color:var(--board); background:#deedff; font-size:1.45rem; }.empty-state h3 { margin:0; color:var(--ink); font-size:1rem; }.empty-state p { margin:7px auto 16px; max-width:280px; font-size:.84rem; line-height:1.5; }.empty-state .button { border:1px solid var(--board); color:#fff; background:var(--board); }.empty-agenda { padding:25px 4px 10px; color:var(--muted); text-align:center; font-size:.84rem; }.empty-agenda span { display:grid; place-items:center; width:29px; height:29px; margin:auto; border-radius:50%; color:var(--green); background:#e7f8f1; font-weight:900; }
.agenda-item { display:grid; grid-template-columns:42px 1fr; gap:11px; align-items:center; padding:11px 2px; border-bottom:1px solid #e1e7f0; }.agenda-item:last-child { border-bottom:0; }.agenda-item.is-available { margin:0 -5px; padding:11px 7px; border-color:#c9def7; border-radius:8px; background:#eff7ff; }.agenda-date { padding:5px 2px; border-radius:6px; color:var(--board); background:#e8f2ff; font-size:.64rem; font-weight:850; line-height:1.15; text-align:center; text-transform:uppercase; }.agenda-date strong { display:block; font-size:1rem; }.agenda-date--next { color:#278260; background:#e9f8f0; }.agenda-item h3 { margin:0; color:#30476b; font-size:.88rem; font-weight:700; }.agenda-item p { margin:3px 0 0; color:#152238; font-size:.75rem; font-weight:600; }.agenda-item.is-complete h3 { color:#8a99ad; text-decoration:line-through; }.agenda-item.is-complete p { color:#8a99ad; text-decoration:line-through; }.agenda--openings .agenda-list { max-height:475px; padding-right:6px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#b7c9e2 transparent; }.agenda--openings .agenda-list::-webkit-scrollbar { width:6px; }.agenda--openings .agenda-list::-webkit-scrollbar-thumb { border-radius:999px; background:#b7c9e2; }.agenda--openings .agenda-item { grid-template-columns:42px minmax(0,1fr) 42px 18px; gap:9px; }.agenda-check { appearance:none; width:17px; height:17px; margin:0; border:1.5px solid #aab8cc; border-radius:50%; cursor:pointer; }.agenda-check:checked { border-color:var(--green); background:radial-gradient(circle,#fff 0 30%,transparent 34%),var(--green); }.empty-state { padding:33px 20px; border:1px dashed #b7c9e2; border-radius:10px; color:var(--muted); background:#f1f4f8; text-align:center; }.empty-state__icon { display:grid; place-items:center; width:36px; height:36px; margin:0 auto 11px; border-radius:50%; color:var(--board); background:#deedff; font-size:1.45rem; }.empty-state h3 { margin:0; color:var(--ink); font-size:1rem; }.empty-state p { margin:7px auto 16px; max-width:280px; font-size:.84rem; line-height:1.5; }.empty-state .button { border:1px solid var(--board); color:#fff; background:var(--board); }.empty-agenda { padding:25px 4px 10px; color:var(--muted); text-align:center; font-size:.84rem; }.empty-agenda span { display:grid; place-items:center; width:29px; height:29px; margin:auto; border-radius:50%; color:var(--green); background:#e7f8f1; font-weight:900; }
.modal { width:min(510px,calc(100% - 28px)); padding:0; border:0; border-radius:15px; color:var(--ink); box-shadow:0 25px 80px rgba(18,47,88,.3); }.modal::backdrop { background:rgba(11,31,65,.45); backdrop-filter:blur(2px); }.modal__box { padding:25px; }.modal__heading { display:flex; justify-content:space-between; gap:20px; margin-bottom:22px; }.modal h2 { font-size:1.4rem; }.modal .eyebrow { color:var(--board); opacity:1; }.close-button { width:32px; height:32px; border:0; border-radius:7px; color:var(--muted); background:#edf1f7; font-size:1.45rem; line-height:1; }label { display:block; margin:0 0 15px; color:#40516a; font-size:.83rem; font-weight:750; }input,select,textarea { width:100%; margin-top:7px; padding:10px 11px; border:1px solid #d3ddea; border-radius:8px; color:var(--ink); background:#fff; outline:none; font-weight:500; }input:focus,select:focus,textarea:focus { border-color:var(--board); box-shadow:0 0 0 3px rgba(20,104,220,.12); }input[type="color"] { height:41px; padding:4px; }.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }textarea { min-height:80px; resize:vertical; }.optional { color:var(--muted); font-weight:500; }.modal__actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }.modal__actions .button { border:1px solid var(--board); color:#fff; background:var(--board); }.modal__actions .button--secondary { color:var(--board); background:#fff; }
@media (max-width:650px) { .app-shell { padding:10px 0 34px; }.section-nav { top:12px; left:20px; }.board-meta { margin-right:20px; gap:6px; }.board-date,.exam-countdown { min-height:36px; padding:7px 9px; font-size:.72rem; }.hero { padding:18px 20px 22px; }.stats { padding:0 20px 17px; overflow-x:auto; }.stat-card { flex:0 0 auto; }.content-grid { grid-template-columns:minmax(0,1fr); padding:0 20px 20px; gap:14px; }.degree-heading { display:block; padding:48px 20px 22px; }.degree-heading__actions { margin-top:12px; }.degree-grid { grid-template-columns:minmax(0,1fr); padding:0 20px 20px; gap:14px; }.form-row { grid-template-columns:1fr; gap:0; } }

/* Filas del panel Entregas: separación visual y resaltado de PACs disponibles. */
.agenda-list { gap:8px; padding:0 5px; }
.agenda-item,
.agenda-item:last-child { padding:10px 8px; border:1px solid #e1e7f0; border-radius:10px; }
.agenda-item.is-available { margin:0; padding:10px 8px; border-color:#65acec; background:#84c2ff; }
.agenda--openings .agenda-list { padding:0 5px; }

.degree-planner { margin:0 15px 24px; padding:20px; border-radius:15px; background:var(--paper); box-shadow:0 2px 0 rgba(4,45,112,.18); }
.degree-planner__heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 4px 16px; }
.degree-planner__heading h2 { margin:0; color:#243b61; font-size:1.3rem; letter-spacing:-.035em; }
.degree-plan-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:9px; }
.degree-plan-stat { display:grid; gap:4px; min-width:0; padding:12px 13px; border:1px solid #e0e7f1; border-radius:10px; background:#fff; }
.degree-plan-stat span { color:#71839e; font-size:.68rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.degree-plan-stat strong { color:#243b61; font-size:1.15rem; }
.degree-plan-stat small { color:var(--muted); font-size:.7rem; line-height:1.35; }
.degree-progress-track { height:7px; margin:2px 0; overflow:hidden; border-radius:999px; background:#e8edf4; }
.degree-progress-track span { display:block; height:100%; border-radius:inherit; background:var(--green); transition:width .2s ease; }

@media (max-width:650px) {
  .degree-planner { margin:0 20px 18px; padding:13px 10px; }
  .degree-planner__heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .degree-plan-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.degree-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:16px; padding:0 15px 24px; }
.degree-overview .degree-planner { margin:0; }
.degree-overview .degree-plan-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
.degree-overview .degree-deliveries { display:flex; flex-direction:column; min-height:420px; }
.degree-deliveries .section-heading { flex:0 0 auto; }
.degree-overview .degree-deliveries .agenda-list { flex:1 1 0; height:0; min-height:0; max-height:none; overflow-y:auto; align-content:start; }
.degree-deliveries .agenda-item > div { min-width:0; }
.agenda-date-placeholder { display:block; width:42px; height:1px; }

@media (max-width:1100px) {
  .degree-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .degree-overview .degree-planner { grid-column:1/-1; }
}

@media (max-width:850px) {
  .degree-overview { grid-template-columns:minmax(0,1fr); padding:0 20px 18px; }
  .degree-overview .degree-planner { grid-column:auto; }
}

.degree-grid { grid-template-columns:repeat(5,minmax(180px,1fr)); gap:12px; overflow-x:auto; }
.degree-subject { padding:14px 10px; }
.degree-subject__header { align-items:start; gap:8px; padding-bottom:10px; }
.degree-subject__header h2 { min-width:0; overflow-wrap:anywhere; font-size:.94rem; line-height:1.2; }
.degree-subject .text-button { font-size:.74rem; }
.degree-topics { gap:6px; padding-top:9px; }
.degree-topic { gap:8px; padding:8px 7px; }
.degree-topic__title { font-size:.78rem; }
.degree-topic__checks { gap:4px; }
.degree-topic[data-progress="1"] { border-color:#ecd98a; background:#fff9e6; }
.degree-topic[data-progress="2"] { border-color:#f0c992; background:#fff3e4; }
.degree-topic[data-progress="3"] { border-color:#afd0ef; background:#edf6ff; }
.degree-topic[data-progress="4"] { border-color:#88cf9d; background:#e5f7e9; }

.degree-review-calendar { min-width:0; padding:18px; border-radius:15px; background:var(--paper); box-shadow:0 2px 0 rgba(4,45,112,.18); }
.degree-review-calendar__header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 2px 8px; }
.degree-review-calendar__header .eyebrow { margin-bottom:3px; color:#7890b4; opacity:1; }
.degree-review-calendar__header h2 { margin:0; color:#243b61; font-size:1.05rem; line-height:1.2; }
.degree-review-calendar__navigation { display:flex; gap:4px; flex:0 0 auto; }
.degree-review-calendar__navigation button { width:28px; height:28px; padding:0; border:1px solid #dce5f0; border-radius:7px; color:#36537c; background:#fff; font-size:1.2rem; line-height:1; }
.degree-review-calendar__navigation button:hover { border-color:#a9c9ed; background:#edf6ff; }
.degree-review-calendar__month { margin:0 0 7px; color:#30476b; font-size:.78rem; font-weight:800; text-align:center; text-transform:capitalize; }
.degree-review-calendar__weekdays,.degree-review-calendar__days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.degree-review-calendar__weekdays { margin-bottom:4px; color:#8190a5; font-size:.61rem; font-weight:800; text-align:center; }
.degree-review-calendar__weekdays span { padding:3px 0; }
/* Un cuadradito por actividad, como en el calendario de PACs. */
.degree-calendar-day { position:relative; display:flex; flex-direction:column; align-items:stretch; gap:2px; min-width:0; width:100%; height:54px; min-height:54px; padding:5px; border:1px solid transparent; border-radius:7px; color:#405777; background:#fff; text-align:left; font-size:.72rem; font-weight:700; }
.degree-calendar-day:hover { border-color:#a9c9ed; background:#edf6ff; }
.degree-calendar-day.is-exam { background:#fff1df; border-color:#e6b879; }
.degree-calendar-day.is-today:not(.is-selected) { border-color:#43a77d; }
.degree-calendar-day.is-selected { border-color:var(--board); box-shadow:inset 0 0 0 1px var(--board); background:#eaf4ff; }
.degree-calendar-day:focus-visible { outline:2px solid var(--board); outline-offset:2px; }
.degree-calendar-day-number { align-self:flex-start; line-height:1.2; }
.calendar-day-events { display:grid; grid-template-columns:repeat(auto-fill,9px); justify-content:start; gap:5px; min-width:0; padding:3px 0; }
.calendar-event-preview { position:relative; display:flex; align-items:center; justify-content:center; width:9px; height:9px; }
.calendar-marker { display:inline-block; width:9px; height:9px; color:var(--event-color,var(--board)); }
.calendar-marker--pac { border-radius:2px; background:currentColor; }
.calendar-event-preview.is-complete .calendar-marker { opacity:.45; }
.calendar-event-preview.is-complete::after { content:"✓"; position:absolute; top:-4px; right:-3px; display:grid; place-items:center; width:8px; height:8px; color:#168347; font-size:8px; font-weight:900; line-height:1; }
.degree-calendar-empty { min-height:54px; }
.degree-review-calendar__log { margin-top:11px; padding-top:9px; border-top:1px solid #e2e8f1; }
.degree-review-calendar__log h3 { margin:0 0 6px; color:#30476b; font-size:.75rem; }
.degree-review-calendar__log > div { display:grid; gap:5px; max-height:103px; overflow-y:auto; }
.degree-review-entry { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 7px; border:1px solid #e3eaf2; border-radius:7px; background:#fff; }
.degree-review-entry:hover { border-color:#c4d9f2; background:#f5f9ff; }
.degree-review-entry__edit { display:grid; flex:1; min-width:0; gap:2px; padding:0; border:0; color:inherit; background:transparent; text-align:left; }
.degree-review-entry__edit strong { overflow:hidden; color:#30476b; font-size:.67rem; text-overflow:ellipsis; white-space:nowrap; }
.degree-review-entry__edit small { color:#71839e; font-size:.6rem; }
.degree-review-entry__edit:hover { background:transparent; }
.degree-review-entry__delete { flex:0 0 auto; width:22px; height:22px; padding:0; border:0; border-radius:5px; color:#b44958; background:#fff0f2; font-size:1rem; line-height:1; }
.degree-review-entry__delete:hover { color:#fff; background:#c84959; }
.degree-review-calendar__empty { margin:0; color:#71839e; font-size:.68rem; }
.review-date-context { margin:-8px 0 15px; color:#526783; font-size:.84rem; font-weight:650; }

.subject-group-title { position:relative; z-index:1; margin:12px 15px 24px; color:white; text-align:center; font-size:1.7rem; }
.subject-part { padding-top:12px; }
.subject-part + .subject-part { margin-top:12px; border-top:1px solid #e1e7f0; }
.subject-part h3,.subject-part h4 { margin:0 0 8px; color:#243b61; font-size:.92rem; }
.subject-part__heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cycle-topics { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.cycle-topics li { padding:10px 11px; border:1px solid #e0e6ef; border-radius:9px; background:white; color:#2d4569; font-size:.84rem; }
.delivery-type { color:#7890b4; font-size:.65rem; font-weight:600; }
.degree-grid { grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); overflow-x:visible; }
.degree-delivery-row { grid-template-columns:19px minmax(0,1fr) auto; }
@media(max-width:650px) { .degree-grid { grid-template-columns:minmax(0,1fr); } }

.subject-view-buttons { display:flex; gap:8px; padding-top:12px; }
.subject-view-button { flex:1; border:1px solid #dce5f1; border-radius:8px; padding:8px 12px; background:#fff; color:#647a9b; font:inherit; font-size:.82rem; font-weight:750; cursor:pointer; }
.subject-view-button:hover { background:#edf4ff; color:var(--board); }
.subject-view-button.is-active { background:var(--board); border-color:var(--board); color:#fff; }
.subject-view-button:focus-visible { outline:2px solid var(--board); outline-offset:3px; }
.subject-part[hidden] { display:none; }
.subject-part + .subject-part { margin-top:0; border-top:0; }

.degree-topic[data-complete="true"] { border-color:#9bd9bb; background:#e8f8ee; }

/* Los laterales iguales mantienen la fecha en el centro de la ventana. */
.stats--toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:20px; padding:0 15px 20px; overflow:visible; }
.toolbar-summary,.toolbar-date,.stats--toolbar .hero__actions { display:flex; align-items:stretch; gap:8px; min-width:0; }
.toolbar-summary { justify-self:start; }
.toolbar-date { justify-self:center; }
.stats--toolbar .hero__actions { justify-self:end; }
.stats--toolbar .board-date,.stats--toolbar .exam-countdown,.stats--toolbar .stat-card,.stats--toolbar .button { display:flex; align-items:center; justify-content:center; height:40px; min-height:40px; min-width:0; margin:0; padding:7px 10px; border-radius:7px; white-space:nowrap; }
.stats--toolbar .board-date,.stats--toolbar .exam-countdown,.stats--toolbar .button { font-size:.8rem; }
.stats--toolbar .button:focus-visible { outline:2px solid #fff; outline-offset:3px; }
@media (max-width:1350px) {
  .stats--toolbar { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px 20px; }
  .toolbar-date { grid-column:1/-1; grid-row:1; }
  .toolbar-summary { grid-column:1; grid-row:2; flex-wrap:wrap; }
  .stats--toolbar .hero__actions { grid-column:2; grid-row:2; flex-wrap:wrap; justify-content:flex-end; }
}
@media (max-width:750px) {
  .stats--toolbar { grid-template-columns:minmax(0,1fr); padding:8px 20px 18px; gap:14px; }
  .toolbar-date { grid-column:1; grid-row:1; }
  .toolbar-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-column:1; grid-row:2; justify-self:stretch; }
  .stats--toolbar .hero__actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-column:1; grid-row:3; justify-self:stretch; }
  .stats--toolbar .board-date,.stats--toolbar .exam-countdown,.stats--toolbar .stat-card,.stats--toolbar .button { height:auto; min-height:44px; white-space:normal; text-align:center; }
  .stats--toolbar .stat-card { flex-direction:column; gap:2px; padding:8px 5px; }
  .stats--toolbar .stat-card__detail { line-height:1.3; }
  .stats--toolbar .button { line-height:1.35; }
}
@media (max-width:380px) {
  .stats--toolbar .hero__actions { grid-template-columns:minmax(0,1fr); }
}

.degree-review-entry--delivery { border-color:#b8d5f2; background:#edf6ff; }
.calendar-delivery-check { flex:0 0 auto; color:var(--green); font-weight:800; }

.stats--toolbar { margin-top:16px; }

.subject-group { position:relative; z-index:1; }
.subject-group-toggle { display:block; width:fit-content; max-width:calc(100% - 30px); margin:12px auto 24px; border:1px solid #dce5f1; border-radius:10px; background:#fff; color:var(--board); box-shadow:0 2px 0 rgba(4,45,112,.18); cursor:pointer; list-style:none; }
.subject-group-toggle::-webkit-details-marker { display:none; }
.subject-group-toggle .subject-group-title { display:flex; align-items:center; justify-content:center; gap:10px; margin:0; padding:10px 18px; color:var(--board); }
.subject-group-arrow { display:inline-block; font-size:1.9rem; line-height:1; transform:rotate(0deg); transition:transform .18s; }
.subject-group[open] > .subject-group-toggle .subject-group-arrow { transform:rotate(90deg); }
.subject-group-toggle:hover { background:#edf4ff; }
.subject-group-toggle:focus-visible { outline:2px solid #fff; outline-offset:4px; }
@media (prefers-reduced-motion:reduce) { .subject-group-arrow { transition:none; } }

.cycle-topic-row { display:flex; align-items:center; gap:8px; min-width:0; }
.cycle-topic-row .degree-topic { flex:1; min-width:0; }
.cycle-topic-actions { display:flex; align-items:center; gap:8px; }
@media(max-width:420px) { .cycle-topic-row { flex-wrap:wrap; } .cycle-topic-row .degree-topic { flex-basis:100%; } .cycle-topic-actions { margin-left:auto; } }


.calendar-marker--deadline { border:1.5px solid currentColor; background:transparent; }

@media (max-width:650px) {
  .degree-overview .degree-deliveries { min-height:0; }
  .degree-overview .degree-deliveries .agenda-list { flex:0 1 auto; height:auto; max-height:350px; }
}

.calendar-event-preview[hidden] { display:none; }
.calendar-day-events { height:29px; flex:0 0 29px; grid-template-rows:repeat(2,9px); align-content:start; }
.degree-calendar-day .calendar-overflow { align-self:center; color:var(--muted); font-size:9px; line-height:9px; white-space:nowrap; }

.pac-open-date-edit:focus-visible { outline:2px solid var(--board); outline-offset:3px; }


.pac-open-date-edit { border:0; padding:0 2px; color:inherit; background:transparent; font:inherit; cursor:pointer; }

.study-progress { margin:0 15px 20px; color:#fff; }
.study-progress__heading { display:flex; justify-content:space-between; gap:12px; margin-bottom:7px; font-size:.72rem; }
.study-progress__heading > :last-child { text-align:right; }
.study-progress progress { display:block; appearance:none; width:100%; height:7px; overflow:hidden; border:0; border-radius:999px; background:rgba(255,255,255,.22); }
.study-progress progress::-webkit-progress-bar { border-radius:999px; background:rgba(255,255,255,.22); }
.study-progress progress::-webkit-progress-value { border-radius:999px; background:#fff; }
.study-progress progress::-moz-progress-bar { border-radius:999px; background:#fff; }
@media (max-width:750px) { .study-progress { margin:0 20px 18px; } }
@media (max-width:420px) { .study-progress__heading { flex-direction:column; gap:4px; } .study-progress__heading > :last-child { text-align:left; } }

.degree-review-calendar__navigation #reviewCalendarToday { width:auto; padding:0 9px; font-size:.75rem; font-weight:750; }
.sync-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 16px; color: var(--ink); background: #fff; border-radius: 12px; }
.sync-bar span { flex: 1; min-width: 180px; font-size: .9rem; }
.sync-bar[hidden] { display: none; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 390px; padding: 32px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.login-card h1 { margin: 0; font-size: 1.7rem; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.login-card label { font-weight: 700; }
.login-card input { width: 100%; padding: 12px; border: 1px solid #aebed5; border-radius: 8px; }
.login-card button { padding: 12px; border: 0; border-radius: 8px; background: var(--board-deep); color: #fff; font-weight: 700; }
.login-card button:disabled { opacity: .6; cursor: wait; }
