.exam-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;padding:20px;margin-bottom:20px}.exam-filters .field{min-width:155px;flex:1}.exam-filters button{margin-bottom:0}.exam-calendar{overflow:auto;margin:20px 0}.exam-calendar-grid,.exam-weekdays{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));min-width:1015px}.exam-weekdays>div{padding:14px 10px;background:var(--surface-raised);font-weight:700}.exam-day{min-height:135px;padding:10px;border:1px solid var(--line)}.exam-day.other-month{opacity:.6}.exam-day.today{outline:2px solid var(--accent);outline-offset:-2px;background-color:color-mix(in srgb,var(--accent) 8%,var(--surface))}.exam-day-number{background:transparent;border:0;color:var(--ink);padding:5px 9px;margin-bottom:6px}.exam-event{display:block;width:100%;text-align:left;margin:5px 0;padding:8px;border-radius:7px;border:1px solid var(--line);font-size:12px;color:var(--ink)}.exam-event strong,.exam-event span,.exam-event small{display:block;margin-bottom:3px}.exam-teorico{background:color-mix(in srgb,#428bc9 18%,var(--surface))}.exam-destreza{background:color-mix(in srgb,#bb870c 18%,var(--surface))}.exam-circulacion{background:color-mix(in srgb,#55a464 18%,var(--surface))}.exam-event.cancelled{text-decoration:line-through;opacity:.6}.exam-legend{display:flex;gap:12px;flex-wrap:wrap}.exam-legend span{border-radius:6px;padding:7px 12px}.exam-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0}.exam-integrations,.exam-history,.exam-detail-summary{padding:24px;margin:24px 0}.exam-integrations summary,.exam-history summary,.exam-requirements summary{font-weight:700;cursor:pointer}.exam-integrations h3{margin-top:24px}.exam-dialog{width:min(800px,95vw);max-height:92vh;padding:28px;border-radius:16px}.exam-dialog h2{margin-bottom:24px}.exam-dialog .field{margin:12px 0}.exam-dialog .doc-check{margin:24px 0;display:flex;align-items:flex-start;gap:12px}.exam-dialog .doc-check input{margin-top:5px;flex:none}.exam-dialog [data-error]{white-space:pre-wrap}.exam-requirements{margin:24px 0;padding:18px;border:1px solid var(--line);border-radius:10px}.exam-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.exam-check-grid label{display:flex;align-items:flex-start;gap:10px}.exam-add-list{max-height:45vh;overflow:auto}.exam-add-item{display:flex;gap:16px;padding:15px;border-bottom:1px solid var(--line)}.exam-add-item small{display:block;margin-top:6px}.exam-add-item[hidden]{display:none!important}.exam-detail-summary+.table-card{padding:24px}.exam-dialog .table-scroll{max-height:40vh;overflow:auto}@media(max-width:650px){.exam-check-grid{grid-template-columns:1fr}.exam-dialog{padding:20px}}
.exam-list-card>h2{padding:24px 24px 0}
.exam-event .exam-presentation-exam-date{font-weight:600}
.exam-calendar:not(.exam-show-weekends) :is(.exam-weekdays,.exam-calendar-grid){grid-template-columns:repeat(5,minmax(145px,1fr));min-width:725px}
.exam-calendar:not(.exam-show-weekends) [data-exam-weekend]{display:none}
.exam-calendar-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:12px 0}
.exam-calendar-tools .exam-drag-hint{flex:1 1 360px;margin:0}
.exam-calendar-tools .exam-weekend-toggle{display:inline-flex;align-items:center;gap:8px;min-height:38px;margin-left:auto}
.exam-weekend-toggle small{padding:2px 7px;border-radius:12px;background:var(--selection);color:var(--selection-text);font-size:11px}
.exam-weekend-toggle small:empty{display:none}
.exam-list-card+.sw-waiting-settings{margin-top:24px}
.sw-waiting-settings.exam-disclosure,.exam-integrations.exam-disclosure{padding:0;transition:border-color .15s,box-shadow .15s}
.exam-disclosure>summary{display:flex;align-items:center;gap:14px;min-height:86px;padding:18px 22px;list-style:none;cursor:pointer;border-radius:calc(var(--radius,15px) - 1px);background:var(--surface-soft);transition:background .15s}
.exam-disclosure>summary::-webkit-details-marker{display:none}
.exam-disclosure>summary::marker{content:''}
.exam-disclosure>summary:hover{background:var(--surface-raised)}
.exam-disclosure:has(>summary:hover),.exam-disclosure:has(>summary:focus-visible){border-color:var(--focus);box-shadow:0 0 0 1px color-mix(in srgb,var(--focus) 25%,transparent)}
.exam-disclosure>summary:focus-visible{outline:2px solid var(--focus);outline-offset:-4px}
.exam-disclosure-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--focus)}
.exam-disclosure-copy{display:grid;gap:5px;min-width:0;flex:1}
.exam-disclosure-copy strong{font-size:15px;font-weight:650;line-height:1.4;color:var(--ink)}
.exam-disclosure-copy small{font-size:12px;font-weight:400;line-height:1.4;color:var(--muted)}
.exam-disclosure-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:none;min-height:40px;padding:9px 13px;border:1px solid color-mix(in srgb,var(--focus) 45%,var(--line));border-radius:9px;background:var(--selection);color:var(--selection-text);font-size:12px;font-weight:650}
.exam-disclosure-action svg{transition:transform .15s}
.exam-disclosure-open,.exam-disclosure[open] .exam-disclosure-closed{display:none}
.exam-disclosure[open] .exam-disclosure-open{display:inline}
.exam-disclosure[open]>.exam-disclosure-toggle{border-bottom-left-radius:0;border-bottom-right-radius:0}
.exam-disclosure[open]>.exam-disclosure-toggle .exam-disclosure-action svg{transform:rotate(180deg)}
.exam-disclosure-body{padding:24px;border-top:1px solid var(--line)}
.exam-disclosure-body>.sw-global-validity-settings{margin-top:0}
.exam-disclosure-body>h3:first-child{margin-top:0}
@media(max-width:650px){.exam-disclosure>summary{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px 12px;padding:16px}.exam-disclosure-icon{width:36px;height:36px;border-radius:9px}.exam-disclosure-copy strong{font-size:14px}.exam-disclosure-action{grid-column:2;justify-self:start;min-height:40px}.exam-disclosure-body{padding:16px}}
@media(prefers-reduced-motion:reduce){.exam-disclosure,.exam-disclosure>summary,.exam-disclosure-action svg{transition:none}}
.exam-list-scroll{max-height:410px;overflow:auto;overscroll-behavior:contain}
.exam-list-scroll{overflow-anchor:none;scroll-snap-type:y proximity;scroll-padding-top:var(--exam-head,0px)}
#exam-list tbody::before,#exam-list tbody::after{content:"";display:table-row;height:calc(2 * var(--exam-slot,0px))}
#exam-list tbody tr{height:var(--exam-slot,auto);scroll-snap-align:center}
#exam-list tr[data-wheel-distance="0"]>td{background:color-mix(in srgb,var(--accent) 18%,var(--surface))}
#exam-list tr[data-wheel-distance="0"]>td:first-child{box-shadow:inset 4px 0 var(--accent);font-weight:700}
#exam-list tr[data-wheel-distance="1"]>td{background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
#exam-list tr[data-wheel-distance="2"]>td{background:color-mix(in srgb,var(--accent) 3%,var(--surface))}
#exam-list .exam-next-label{display:table;margin-top:3px;padding:2px 6px;border-radius:4px;background:var(--good-bg);color:var(--good-ink);font-weight:600;font-size:.74rem}
.exam-list-scroll:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.exam-list-scroll thead th{position:sticky;top:0;z-index:2;background:var(--surface-raised)}
/* Fit the office list to its panel; keep full labels and all actions available. */
#exam-list{table-layout:fixed;width:100%;white-space:normal}
#exam-list th,#exam-list td{padding:14px 10px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
#exam-list th{font-size:11px;letter-spacing:.04em;line-height:1.4}
#exam-list td{font-size:13px;line-height:1.45}
#exam-list th:first-child,#exam-list td:first-child{padding-left:16px}
#exam-list th:last-child,#exam-list td:last-child{padding-right:14px}
#exam-list th:nth-child(1){width:10%}#exam-list th:nth-child(2){width:11%}#exam-list th:nth-child(3){width:19%}
#exam-list th:nth-child(4){width:9%}#exam-list th:nth-child(5){width:11%}#exam-list th:nth-child(6){width:12%}#exam-list th:nth-child(7){width:28%}
#exam-list .table-sort-button{display:inline-flex;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
#exam-list .exam-list-kind{display:block;font-weight:600}#exam-list td small{font-size:12px;margin-top:3px}
.exam-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.exam-row-actions button{min-width:0;max-width:100%;padding:8px 10px;font-size:12px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
@media(max-width:650px){#exam-list{min-width:740px}}
.exam-event[draggable="true"]{cursor:grab}.exam-event.exam-dragging{opacity:.45;cursor:grabbing}.exam-day.exam-drop-target{outline:2px dashed var(--accent);outline-offset:-3px;background:color-mix(in srgb,var(--accent) 12%,var(--surface))}.exam-drag-hint{margin:12px 0}.exam-list-card td:last-child{white-space:nowrap}
/* Compact, editable calendar legend. Uses the shared light/dark palette. */
.exam-color-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin:16px 0;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:12px}
.exam-color-group{min-width:0;display:flex;flex-direction:column;gap:9px;flex:1 1 410px}
.exam-color-group+.exam-color-group{padding-left:16px;border-left:1px solid var(--line)}
.exam-color-heading{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-height:16px}
.exam-color-heading strong{color:var(--muted);font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:700}
.exam-color-heading>span{font-size:10px;color:var(--muted);padding:2px 6px;border-radius:4px;background:var(--surface-soft);line-height:1.2}
.exam-color-items{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.exam-color-item{display:inline-flex;align-items:center;gap:8px;min-height:36px;max-width:100%;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--ink);font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.exam-color-item>span{min-width:0;overflow-wrap:anywhere;line-height:1.3}
.exam-color-item.exam-color-section-title{padding:0;min-height:24px;border:0;background:transparent;font-size:13px}
.exam-color-item:hover{background:var(--surface-raised);border-color:var(--muted-soft)}
.exam-color-item:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.exam-color-item:has(input:disabled){opacity:.6;cursor:wait}
.exam-color-item input[type=color]{appearance:none;-webkit-appearance:none;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;overflow:hidden}
.exam-color-item input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.exam-color-item input[type=color]::-webkit-color-swatch{border:1px solid color-mix(in srgb,var(--ink) 20%,transparent);border-radius:50%}
.exam-color-item input[type=color]::-moz-color-swatch{border:1px solid color-mix(in srgb,var(--ink) 20%,transparent);border-radius:50%}
.exam-color-edit{color:var(--muted);opacity:.6}
.exam-color-item:hover .exam-color-edit{opacity:1}
.exam-color-legend>small{flex:0 0 100%;color:var(--muted);font-size:11px;line-height:1.5}
@media(max-width:1100px){.exam-color-legend>small{flex-basis:100%;margin-left:0}}
@media(max-width:650px){.exam-color-legend{align-items:stretch;gap:12px;padding:12px 14px;border-radius:12px}.exam-color-group{width:100%;gap:8px}.exam-color-group+.exam-color-group{padding-left:0;padding-top:12px;border-left:0;border-top:1px solid var(--line)}.exam-color-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.exam-color-item{min-height:44px;gap:7px;padding:6px 8px}.exam-color-edit{display:none}.exam-color-legend>small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.exam-color-item{transition:none}}
.exam-event[data-exam-kind]{background:var(--exam-fill);color:var(--exam-ink);border-left:6px solid var(--exam-section)}.exam-event[data-exam-kind] strong,.exam-event[data-exam-kind] span,.exam-event[data-exam-kind] small{color:inherit;opacity:1}.exam-section-dot{display:inline-block!important;width:9px;height:9px;border-radius:50%;background:var(--exam-section);outline:1px solid currentColor;margin:0 5px 0 0!important;vertical-align:middle}
.exam-day-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;gap:8px}
.exam-day-heading .exam-day-number{margin-bottom:0}
.exam-day-add{display:grid;place-items:center;flex:none;width:30px;height:30px;min-height:30px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--ink);font-size:23px;line-height:1;cursor:pointer}
.exam-day-add:hover{border-color:var(--accent);background:var(--surface-raised);color:var(--accent)}
.exam-day-add:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.exam-color-group.agenda-color-group{flex:0 1 155px}
.agenda-task{background:var(--exam-fill);color:var(--exam-ink);border-left:6px dashed currentColor}
.agenda-task strong,.agenda-task span,.agenda-task small{color:inherit;overflow-wrap:anywhere}
.agenda-task-done strong{text-decoration:line-through}
.agenda-add-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}
.agenda-add-options button{text-align:left;padding:20px;font-size:16px}
.agenda-add-options button span{display:block;font-size:12px;margin-top:10px;font-weight:400;line-height:1.5}
@media(max-width:650px){.exam-day-add{width:44px;height:44px;min-height:44px}.exam-color-group.agenda-color-group{flex:1 1 auto;flex-direction:row;justify-content:space-between;align-items:center}.agenda-color-group .exam-color-items{display:flex}.agenda-color-group .exam-color-heading{gap:4px}.agenda-add-options{grid-template-columns:1fr}.exam-color-group+.exam-color-group{padding-left:0}}

/* Only the body scrolls; the title and actions stay in view. */
#dialog.exam-call-dialog{
 width:min(860px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);
 box-sizing:border-box;padding:0;overflow:hidden;border:1px solid var(--line);
 border-radius:16px;background:var(--surface);color:var(--ink)
}
.exam-call-dialog .exam-dialog-form{
 display:flex;flex-direction:column;gap:0;min-height:0;max-height:calc(100dvh - 42px);margin:0;padding:0
}
.exam-call-head{display:flex;flex:none;align-items:center;gap:14px;padding:20px 26px;border-bottom:1px solid var(--line);background:var(--surface-soft)}
.exam-call-mark{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--selection);color:var(--selection-text)}
.exam-call-mark svg{width:23px;height:23px}
.exam-call-head small{display:block;font-size:10px;line-height:1.4;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.exam-call-head h2{margin:2px 0 0;font-size:24px;letter-spacing:-.025em;line-height:1.2}
.exam-call-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 26px}
.exam-call-section{margin:0 0 18px}
.exam-call-section+.exam-call-section{padding-top:16px;border-top:1px solid var(--line)}
.exam-call-section h3{margin:0 0 12px;font-size:15px;line-height:1.35}
.exam-call-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.exam-call-context{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr)}
#dialog.exam-call-dialog .exam-call-fields .field{display:flex;flex-direction:column;margin:0;min-width:0;gap:5px}
.exam-call-fields .field>span{font-size:13px;font-weight:600;color:var(--ink);line-height:1.4}
.exam-call-fields .field small{margin-left:3px;color:var(--muted);font-size:11px;font-weight:400}
.exam-call-fields :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:42px;margin:0}
.exam-call-note{margin:8px 0 0;font-size:12px;line-height:1.55;color:var(--muted)}
.exam-call-policy{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.exam-call-policy summary{display:flex;align-items:center;gap:10px;padding:13px 16px;list-style:none;cursor:pointer;color:var(--ink);font-size:14px;font-weight:650}
.exam-call-policy summary::-webkit-details-marker{display:none}
.exam-call-policy summary small{margin-left:auto;color:var(--muted);font-size:12px;font-weight:500}
.exam-call-policy summary::after{content:'';flex:none;width:7px;height:7px;margin:0 2px 4px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.exam-call-policy details[open]>summary::after{transform:rotate(225deg);margin-bottom:-3px}
.exam-call-policy summary:focus-visible{outline:2px solid var(--focus);outline-offset:-3px;border-radius:10px}
.exam-call-policy-body{padding:0 16px 16px}
.exam-call-policy-body .exam-call-note{margin:0}
.exam-call-group{min-width:0;margin:16px 0 0;padding:0;border:0}
.exam-call-group legend{margin:0 0 7px;padding:0;color:var(--ink);font-size:13px;font-weight:650}
.exam-call-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:6px}
#dialog.exam-call-dialog :is(.exam-call-check,.exam-call-confirm){display:grid;grid-template-columns:17px minmax(0,1fr);align-items:center;gap:9px;margin:0;cursor:pointer;font-size:13px;line-height:1.4}
.exam-call-check{box-sizing:border-box;min-height:38px;padding:6px 9px;border:1px solid var(--line);border-radius:7px;background:var(--surface)}
.exam-call-check:has(:checked){background:color-mix(in srgb,var(--selection) 38%,var(--surface))}
.exam-call-check:hover{border-color:var(--focus)}
.exam-call-check:focus-within,.exam-call-confirm:focus-within{outline:2px solid var(--focus);outline-offset:1px}
#dialog.exam-call-dialog .exam-call-policy input[type=checkbox]{appearance:auto;box-sizing:border-box;width:17px;min-width:17px;max-width:17px;height:17px;min-height:17px;margin:0;padding:0;accent-color:var(--brand);cursor:pointer}
.exam-call-confirm{min-height:44px;padding:9px 16px;border-top:1px solid var(--line);color:var(--ink)}
.exam-call-scope{margin:12px 0 0}
.exam-call-footer{flex:none;padding:12px 26px;border-top:1px solid var(--line);background:var(--surface)}
.exam-call-footer [data-error]{margin:0 0 8px;line-height:1.4}
.exam-call-footer [data-error]:empty{display:none}
.exam-call-footer .exam-actions{justify-content:flex-end;margin:0;gap:8px}
@media(max-width:640px){
 #dialog.exam-call-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}
 .exam-call-dialog .exam-dialog-form{max-height:calc(100dvh - 18px)}
 .exam-call-head{gap:10px;padding:14px 16px}.exam-call-head h2{font-size:21px}
 .exam-call-body{padding:16px}.exam-call-footer{padding:10px 16px}
 .exam-call-context,.exam-call-fields{grid-template-columns:minmax(0,1fr)}
 .exam-call-policy summary{flex-wrap:wrap;gap:6px;padding:12px}
 .exam-call-policy-body{padding:0 12px 12px}.exam-call-confirm{padding:10px 12px}
}

.agenda-mark-tile{position:relative;margin:5px 0;border-radius:7px}
.agenda-mark-tile>.exam-event{margin:0;min-height:40px}
.agenda-mark-tile>.exam-event strong{padding-right:30px;overflow-wrap:anywhere}
.agenda-mark-tile.is-done>.exam-event{opacity:.65;filter:saturate(.45)}
.agenda-mark-tile.is-important{outline:2px solid #e6ac39;outline-offset:-1px;box-shadow:0 0 0 2px color-mix(in srgb,#e6ac39 30%,transparent)}
.agenda-mark-trigger{position:absolute;top:3px;right:3px;display:grid;place-items:center;min-width:26px;min-height:26px;padding:0 4px;border:1px solid #ffffff45;border-radius:6px;background:#182119d9;color:white;line-height:1;font-size:15px;font-weight:700;cursor:pointer}
.agenda-mark-trigger:hover,.agenda-mark-trigger[aria-expanded=true]{background:#152015;border-color:white}
.is-important>.agenda-mark-trigger{background:#ffdf87;border-color:#9c6a0b;color:#302000}
.agenda-mark-trigger:focus-visible,.agenda-mark-menu button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
dialog.agenda-mark-menu{position:fixed;inset:auto;margin:0;width:min(255px,calc(100vw - 16px));max-height:calc(100vh - 16px);box-sizing:border-box;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 8px 32px #0005}
.agenda-mark-menu::backdrop{background:transparent}
.agenda-mark-menu header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 10px}
.agenda-mark-menu header strong{display:block;overflow-wrap:anywhere;font-size:.9rem}
.agenda-mark-menu header small{color:var(--muted);font-size:.75rem}
.agenda-mark-close{border:0;background:transparent;color:var(--ink);font-size:18px;cursor:pointer;min-width:28px;min-height:28px}
.agenda-mark-options{display:grid;gap:5px}
.agenda-mark-options button{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface-soft);color:var(--ink);font:inherit;font-size:.87rem;text-align:left;cursor:pointer}
.agenda-mark-options button[aria-pressed=true]{border-color:var(--accent);font-weight:700}
.agenda-mark-options i{margin-left:auto;display:grid;place-items:center;height:16px;width:16px;border-radius:4px;border:1px solid var(--line)}
.agenda-mark-options [aria-pressed=true] i{background:var(--accent);color:#172310}
.agenda-mark-options [aria-pressed=true] i::after{content:'✓';font-style:normal}
.agenda-mark-menu [role=alert]{font-size:.8rem}
.agenda-item-actions{display:flex;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.agenda-item-actions button{flex:1;padding:8px 4px;border:1px solid var(--line);border-radius:7px;background:var(--surface-soft);color:var(--ink);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer}
.agenda-item-actions [data-agenda-delete]{color:var(--danger,#c55454)}
.agenda-item-actions button:hover{background:color-mix(in srgb,currentColor 8%,transparent)}
.exam-candidates-card{min-width:0;container-type:inline-size;container-name:exam-candidates}
.exam-candidates-list{min-width:0}
#exam-candidates{width:100%;min-width:0;table-layout:fixed;white-space:normal}
#exam-candidates :is(th,td){padding:12px 10px;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
#exam-candidates th:nth-child(1){width:16%}
#exam-candidates th:nth-child(2){width:26%}
#exam-candidates th:nth-child(3),#exam-candidates th:nth-child(4){width:16%}
#exam-candidates th .table-sort-button{min-width:0;max-width:100%;white-space:normal}
#exam-candidates td small{display:block;margin-top:5px}
#exam-candidates .exam-actions{margin:0;gap:6px}
#exam-candidates .exam-actions button{margin:0;max-width:100%;white-space:normal}
@container exam-candidates (max-width:850px){
 #exam-candidates,#exam-candidates :is(thead,tbody){display:block}
 #exam-candidates thead tr{display:flex;flex-wrap:wrap;align-items:center;gap:3px 10px;margin:0 0 8px}
 #exam-candidates thead th:nth-child(n){width:auto;padding:2px 0}
 #exam-candidates thead th:last-child{display:none}
 #exam-candidates tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:14px;margin-bottom:8px;border:1px solid var(--line);border-radius:8px}
 #exam-candidates tbody td{display:block;padding:0;border:0}
 #exam-candidates td[data-label]::before{content:attr(data-label);display:block;margin-bottom:4px;color:var(--muted);font-size:.75rem;font-weight:600}
 #exam-candidates td:is(:first-child,:nth-child(2),:last-child){grid-column:1/-1}
}
@media(pointer:coarse){.agenda-mark-trigger{min-height:32px;min-width:32px}.agenda-mark-tile>.exam-event strong{padding-right:35px}}

#dialog.exam-picker{width:min(1000px,calc(100vw - 32px));max-width:none;padding:0}
.exam-picker .exam-picker-body{display:flex;flex-direction:column;min-height:0;overflow:auto;padding:18px 26px 12px}
.exam-picker-context{color:var(--muted);font-size:13px;margin-bottom:14px}
.exam-picker .exam-picker-search{display:grid;gap:5px;margin:0 0 16px}
.exam-picker .exam-add-list{min-height:0;max-height:48dvh;overflow:auto;border:1px solid var(--line);border-radius:8px;scrollbar-gutter:stable}
.exam-picker .exam-picker-head,.exam-picker .exam-add-item{display:grid;grid-template-columns:20px minmax(0,1fr) 110px 120px;gap:14px;align-items:center;padding:10px 14px;margin:0}
.exam-picker-head{overflow:hidden;scrollbar-gutter:stable;border-inline:1px solid transparent;color:var(--muted);font-size:12px;font-weight:700}
.exam-picker .exam-add-item{min-height:52px;cursor:pointer}
.exam-picker .exam-add-item:last-of-type{border-bottom:0}
.exam-picker .exam-add-item:has(:checked){background:var(--surface-soft);box-shadow:inset 3px 0 var(--brand)}
#dialog.exam-picker [data-add-exp]{appearance:auto;box-sizing:border-box;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--brand);cursor:pointer}
.exam-add-person{min-width:0;overflow-wrap:anywhere}
.exam-add-person small{color:var(--muted);font-size:12px}
.exam-picker .exam-add-permit{justify-self:start;padding:3px 9px;border:1px solid var(--line);border-radius:6px;font-size:12px;white-space:nowrap}
.exam-add-number{font-variant-numeric:tabular-nums}
.exam-picker-note,.exam-picker [data-picker-empty]{font-size:13px;color:var(--muted)}
.exam-picker-note{margin:12px 0 0}
.exam-picker [data-picker-empty]{padding:12px 14px;margin:0}
.exam-picker-count{margin-right:auto;font-weight:700}
#dialog.exam-presentation-dialog{width:min(780px,calc(100vw - 24px));padding:26px;max-width:none}
.exam-presentation-dialog .field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.exam-presentation-context{padding:14px 16px;background:var(--surface-soft);border-left:3px solid var(--brand)}
.exam-presentation-context p{margin:5px 0 0;color:var(--muted)}
.exam-presentation-medical{padding:18px;border:1px solid var(--line);border-radius:10px;margin:20px 0}
.exam-presentation-medical h3{margin:0 0 10px}
.exam-presentation-medical select{max-width:100%}
.exam-presentation-medical [data-presentation-view]{margin-top:12px}
.exam-presentation-confirm{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;line-height:1.5}
#dialog.exam-presentation-dialog .exam-presentation-confirm input{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:3px 0 0;padding:0;accent-color:var(--brand)}
.exam-presented-label{display:block;color:var(--brand);font-weight:700}
#exam-candidates .exam-presented-label+small{margin:3px 0 10px}
@media(max-width:600px){#dialog.exam-presentation-dialog{padding:16px}.exam-presentation-dialog .field-grid{grid-template-columns:1fr}.exam-presentation-dialog .exam-actions{flex-wrap:wrap}}
@media(max-width:600px){
 #dialog.exam-picker{width:calc(100vw - 16px)}
 .exam-picker .exam-picker-body{padding:12px}
 .exam-picker .exam-picker-head{display:none}
 .exam-picker .exam-add-item{grid-template-columns:20px minmax(0,1fr) auto;gap:4px 10px;padding:10px}
 .exam-picker [data-add-exp]{grid-row:1/3}
 .exam-picker .exam-add-person{grid-column:2/4}
 .exam-picker .exam-add-permit{grid-column:2}
 .exam-picker .exam-add-number{font-size:12px}
 .exam-picker .exam-actions{display:grid;grid-template-columns:auto 1fr;gap:8px}
 .exam-picker-count{grid-column:1/-1}
}
/* Convocatoria: resumen, grupos y revisión de alumnos. */
.exam-detail-page{min-width:0}.exam-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:10px 0 22px}.exam-eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:.09em;color:var(--muted);line-height:1.5}.exam-detail-heading h1{font-size:28px;line-height:1.25;margin:8px 0 0}.exam-detail-heading h1 span{font-weight:500;color:var(--muted)}.exam-detail-heading>button{flex-shrink:0}.exam-detail-page .exam-detail-summary{padding:22px 24px;margin:0 0 20px;border-top:3px solid var(--brand,#80cf35)}.exam-summary-top{display:flex;gap:12px;align-items:center;margin-bottom:20px}.exam-state-pill,.exam-count-pill{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid var(--line);border-radius:7px;font-size:12px;font-weight:600;background:var(--surface-soft)}.exam-location{font-size:13px;color:var(--muted)}.exam-summary-grid{display:grid;grid-template-columns:1.3fr 1.3fr repeat(3,1fr);gap:16px}.exam-date-block,.exam-kpi{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:6px}.exam-date-block{padding:0 18px 0 0;border-right:1px solid var(--line)}.exam-date-block>span,.exam-kpi>span{font-size:12px;color:var(--muted);line-height:1.5}.exam-date-block>strong{font-size:20px;line-height:1.35}.exam-date-block small{font-size:12px;color:var(--muted)}.exam-kpi{text-align:center;padding:12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:10px}.exam-kpi>strong{font-size:30px;line-height:1.1;font-variant-numeric:tabular-nums}.exam-kpi-ready>strong{color:var(--brand,#85cc3e)}.exam-kpi-pending>strong{color:var(--warning,#dcb35c)}.exam-summary-footer{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.exam-summary-footer p{margin:0;font-size:12px;line-height:1.5}.exam-summary-footer p span{display:block;color:var(--muted);margin-top:3px}.exam-summary-footer button{flex-shrink:0}.exam-local-tools{margin-top:16px;font-size:12px;color:var(--muted)}.exam-local-tools summary{cursor:pointer;width:fit-content;padding:4px 0}.exam-local-tools p{margin-bottom:0}.exam-local-tools .exam-actions{margin:12px 0 0}.exam-detail-page .exam-departures{padding:22px 24px;margin:0 0 20px}.exam-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.exam-section-heading h2{font-size:19px;margin:5px 0 0}.exam-section-heading p{font-size:12px;line-height:1.5;color:var(--muted);margin:7px 0 0}.exam-section-heading>button,.exam-count-pill{flex-shrink:0}.exam-departure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.exam-departure-grid:has(>.exam-departure:only-child){grid-template-columns:minmax(0,1fr)}.exam-departure{border:1px solid var(--line);border-left:3px solid var(--brand,#80cf35);background:var(--surface-soft);border-radius:10px;padding:18px;min-width:0}.exam-departure>header{display:flex;justify-content:space-between;align-items:center;gap:16px}.exam-departure h3{font-size:15px;line-height:1.4;margin:4px 0 0;overflow-wrap:anywhere}.exam-vehicle{border:1px solid var(--line);border-radius:6px;padding:6px 9px;font-size:13px;font-weight:700;white-space:nowrap;letter-spacing:.05em;background:var(--surface)}.exam-departure-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;font-size:12px;color:var(--muted)}.exam-departure-meta>span+span{border-left:1px solid var(--line);padding-left:12px}.exam-departure-students{list-style:none;padding:0;margin:0}.exam-departure-students li{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:8px 0;border-top:1px solid var(--line);font-size:13px;line-height:1.5}.exam-departure-students strong{font-size:12px;text-align:right;flex-shrink:0}.exam-debt{color:var(--danger,#f5a799);font-variant-numeric:tabular-nums}.exam-departure-time{color:var(--muted);font-size:12px;margin-top:12px;line-height:1.5}.exam-departure .exam-actions{margin:16px 0 0;gap:8px}.exam-departure .exam-actions button{font-size:12px;min-height:36px;padding:8px 12px}.exam-departure [data-trip-cancel]{margin-left:auto}.exam-empty-state{padding:16px;border:1px dashed var(--line);color:var(--muted);font-size:13px}.exam-detail-page .exam-candidates-card{padding:22px 24px;margin:0 0 20px;overflow:visible}.exam-detail-page #exam-candidates th:nth-child(1){width:24%}.exam-detail-page #exam-candidates th:nth-child(2){width:23%}.exam-detail-page #exam-candidates th:nth-child(3){width:15%}.exam-detail-page #exam-candidates th:nth-child(4){width:17%}.exam-detail-page #exam-candidates th:nth-child(5){width:21%}.exam-detail-page #exam-candidates :is(th,td){padding:14px 12px}.exam-detail-page #exam-candidates th{font-size:11px}.exam-detail-page #exam-candidates td{font-size:13px;line-height:1.5}.exam-detail-page #exam-candidates td small{font-size:12px;color:var(--muted);line-height:1.5}.exam-student-link{display:inline;padding:0;border:0;background:none;text-align:left;color:var(--ink);font:inherit;font-weight:700;cursor:pointer;line-height:1.5;white-space:normal}.exam-student-link:hover{color:var(--brand);text-decoration:underline}.exam-missing-details{font-size:12px;margin-top:8px}.exam-missing-details summary,.exam-more-actions summary{cursor:pointer;color:var(--muted);padding:4px 0}.exam-missing-details ul{padding-left:16px;margin:8px 0 0;line-height:1.5}.exam-missing-details li+li{margin-top:6px}.exam-candidate-actions{display:grid;gap:7px}.exam-candidate-actions>button{width:100%;font-size:12px;padding:8px 10px;min-height:35px;white-space:normal;line-height:1.4}.exam-confirm-action{background:color-mix(in srgb,var(--brand,#80cf35) 12%,var(--surface))!important}.exam-more-actions{font-size:12px}.exam-more-actions>div{display:grid;gap:6px;margin-top:7px}.exam-more-actions button{white-space:normal;font-size:12px;width:100%}.exam-detail-page .exam-history{padding:16px 20px;margin:0;font-size:12px}.exam-detail-page details>summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media(max-width:1100px){.exam-summary-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.exam-date-block{grid-column:span 3;border-right:0;padding:0 0 12px;border-bottom:1px solid var(--line)}.exam-kpi{grid-column:span 2}.exam-departure-grid{grid-template-columns:minmax(0,1fr)}}
@container exam-candidates (max-width:850px){.exam-detail-page #exam-candidates thead th:nth-child(n){width:auto}.exam-detail-page #exam-candidates td{padding:0}.exam-candidate-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-more-actions{grid-column:1/-1}}
@media(max-width:600px){.exam-detail-heading{align-items:flex-start;flex-direction:column;gap:14px}.exam-detail-heading h1{font-size:23px}.exam-detail-heading h1 span{display:block;font-size:18px;margin-top:5px}.exam-detail-page .exam-detail-summary,.exam-detail-page .exam-departures,.exam-detail-page .exam-candidates-card{padding:16px}.exam-summary-grid{gap:10px}.exam-date-block>strong{font-size:16px}.exam-kpi{padding:10px 6px}.exam-kpi>strong{font-size:25px}.exam-kpi>span{font-size:11px}.exam-summary-footer,.exam-section-heading{align-items:flex-start;flex-wrap:wrap}.exam-summary-footer button{width:100%}.exam-departure{padding:14px}.exam-departure>header{gap:10px;flex-wrap:wrap}.exam-departure-students li{flex-direction:column;gap:2px}.exam-departure [data-trip-cancel]{margin-left:0}.exam-departure .exam-actions{flex-wrap:wrap}.exam-departure .exam-actions button{white-space:normal}}
/* Shared result tones: neutral leading edge, colour towards the row end. */
.exam-detail-page #exam-candidates tbody tr[data-exam-result]{--exam-row-fill:#283125;--exam-row-edge:#59634e;background:linear-gradient(180deg,#ffffff04,transparent 35%),linear-gradient(110deg,#1c251f 8%,var(--exam-row-fill) 100%);color:#f4f6f0;box-shadow:inset 3px 0 0 var(--exam-row-edge),inset 0 1px 0 #ffffff0b}
.exam-detail-page #exam-candidates tbody tr[data-exam-result=apto]{--exam-row-fill:#29563b;--exam-row-edge:#69aa78}
.exam-detail-page #exam-candidates tbody tr[data-exam-result=no_apto],.exam-detail-page #exam-candidates tbody tr[data-exam-result=no_presentado]{--exam-row-fill:#673039;--exam-row-edge:#c9747c}
.exam-detail-page #exam-candidates tbody tr[data-exam-result=aplazado]{--exam-row-fill:#775026;--exam-row-edge:#df9b4c}
.exam-detail-page #exam-candidates tr[data-exam-result]>td{background:transparent;color:#f4f6f0}
.exam-detail-page #exam-candidates tr[data-exam-result] :is(small,summary),.exam-detail-page #exam-candidates tr[data-exam-result] td[data-label]::before{color:#e4e7df}
.exam-detail-page #exam-candidates tr[data-exam-result] .exam-student-link{color:#f4f6f0}
.exam-detail-page #exam-candidates tr[data-exam-result] .exam-student-link:hover{color:#c4ef88}
.exam-detail-page #exam-candidates tr[data-exam-result] .exam-candidate-actions button{background:#20281e;color:#f4f6f0;border-color:#65705c}
