body{margin:0;font:15px system-ui;background:var(--bg);color:var(--ink)}main{max-width:1200px;margin:24px auto;padding:0 24px}h1{font-size:28px;margin:20px 0}a{color:var(--brand)}.notice{background:var(--subtle);padding:12px 16px;border-left:3px solid var(--accent);border-radius:6px}.panel{background:var(--surface);border:1px solid var(--line);padding:18px;margin:14px 0;border-radius:10px}button,.dash-action{font:inherit;background:var(--button-bg)!important;color:var(--button-ink)!important;border:0;padding:10px 14px;border-radius:6px;cursor:pointer}input,textarea,select{font:inherit;background:var(--input);color:var(--ink);border:1px solid var(--line);padding:10px;max-width:100%;box-sizing:border-box}textarea{width:100%}label{display:block;margin:10px 0}.muted{color:var(--muted)}.dash-toolbar{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.dash-toolbar p{margin:0}.dash-toolbar form{margin-left:auto}.dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.dash-grid .dash-card{margin:0}.dash-section{font-size:20px;margin:22px 0 12px}.dash-card p{margin:9px 0;line-height:1.45}.student-icon{display:inline-flex;margin-right:8px}.dash-card .dash-request{background:var(--subtle);border-color:var(--line);margin:12px 0;padding:12px}.draft-delete{margin-top:12px;color:var(--muted);font-size:13px}.draft-delete summary{cursor:pointer}.draft-delete button{background:#87584c!important;color:white!important}.result-field{border-color:var(--line)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line)}html[data-theme=dark] .dash-badge{background:#26364b;color:#c9d7e8}html[data-theme=dark] .dash-green{background:#243f36;color:#b8dfc6}html[data-theme=dark] .dash-amber{background:#463a28;color:#ecd5a6}html[data-theme=dark] .dash-blue{background:#243d59;color:#b9d6f5}@media(max-width:700px){main{padding:0 14px}.dash-grid{grid-template-columns:1fr}.dash-toolbar{gap:12px}.dash-toolbar form{margin-left:0}h1{font-size:23px}}

.institutional-header .brand{max-width:1248px;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.institutional-header .brand-name{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700}.institutional-header .brand-name small{display:block;font-size:11px;letter-spacing:.6px;margin-top:4px}.institutional-header button.theme-toggle{background:transparent!important;border:1px solid #ffffff55;color:var(--header-ink)!important;padding:9px 14px}.institutional-header .school-logo{display:block}html .panel{background:var(--surface);border-color:var(--line)}html .state-badge{background:var(--subtle);color:var(--muted)}html .state-enviada,html .state-edicion_autorizada{background:var(--positive-bg);color:var(--positive)}html .state-modificacion_pendiente,html .pending-alert{background:var(--notice-bg);color:var(--notice-ink);border-color:var(--notice-line)}html .state-autorizacion_vencida{background:var(--negative-bg);color:var(--negative)}html .field-options label{border-color:var(--line)}html .field-options label:has(input[value=aprobada]:checked),html tr:has(input[value=aprobada]:checked){background:var(--positive-bg);color:var(--positive)}html .field-options label:has(input[value=rechazada]:checked),html tr:has(input[value=rechazada]:checked){background:var(--negative-bg);color:var(--negative)}html tbody tr:hover{background:var(--hover)}html th{background:var(--subtle);color:var(--ink)}html .notice{background:var(--notice-bg);color:var(--notice-ink)}.panel{overflow-wrap:anywhere}.panel>div[style*="overflow"]{max-width:100%}@media(max-width:600px){.institutional-header .brand{padding:14px;gap:12px}.institutional-header .brand-name{font-size:16px}.institutional-header .school-logo{width:38px;height:46px}.institutional-header .theme-toggle{font-size:12px}.panel{padding:14px}}

html body .theme-toggle{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:0;width:78px;height:38px;min-width:78px;padding:0 10px!important;border:1px solid #ffffff65!important;border-radius:24px!important;background:#10284a55!important;color:#fff!important;isolation:isolate;cursor:pointer;box-shadow:inset 0 1px 4px #0002}html body .theme-toggle .theme-sun,html body .theme-toggle .theme-moon{position:relative;z-index:2;font-size:21px;line-height:1;width:20px;text-align:center;transition:color .2s}html body .theme-toggle .theme-knob{position:absolute;left:4px;top:4px;width:28px;height:28px;border-radius:50%;background:#fff7dc;box-shadow:0 2px 5px #0003;z-index:1;transition:transform .22s ease,background .22s}html[data-theme=dark] body .theme-toggle .theme-knob{transform:translateX(40px);background:#dce8fa}html[data-theme=light] body .theme-toggle .theme-sun{color:#936614}html[data-theme=dark] body .theme-toggle .theme-moon{color:#244471}html body .theme-toggle .theme-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}html body .theme-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:4px}@media(prefers-reduced-motion:reduce){html body .theme-toggle .theme-knob{transition:none}}

html body .theme-toggle .theme-sun,html body .theme-toggle .theme-moon{position:absolute;top:4px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;line-height:1;text-align:center}html body .theme-toggle .theme-sun{left:4px}html body .theme-toggle .theme-moon{left:44px}

main{line-height:1.6}main h2{line-height:1.3;margin:24px 0 14px}main h3{line-height:1.35;margin:20px 0 12px}main p{margin:12px 0;line-height:1.65}.panel>h2:first-child,.panel>h3:first-child{margin-top:0}.request-history{margin:26px 0}.request-history>h2{margin-bottom:16px}.request-history summary{line-height:1.5;margin-bottom:8px}.result-field{padding:18px 0}.result-field p{margin:10px 0 0;line-height:1.75}.request-history details>p{margin:18px 0 4px}.dash-card p{margin:10px 0;line-height:1.6}.dash-card h3{margin:0 0 14px}.dash-toolbar{margin:16px 0 24px}.panel>form{margin-top:16px}html body main>div[role=status]{background:var(--positive-bg)!important;color:var(--positive)!important}html body main>div[role=status] p{color:var(--positive);line-height:1.65}

.student-meta{display:flex;gap:8px 20px;flex-wrap:wrap;color:var(--muted);font-size:13px}.student-meta strong{color:var(--ink);font-weight:600}

main form:has(#email),main form:has(#code){display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin:20px 0}main form:has(#email) label,main form:has(#code) label{margin:0}main form #email{display:block;width:100%;margin:0}main form #sendCode,main form #verifyCode{margin:4px 0 0;position:static;align-self:flex-start}

html body #codeCountdown{background:var(--surface)!important;border-color:var(--line);color:var(--ink)}html body #codeCountdown p{color:var(--ink)}html body #codeCountdown #codeExpiry{color:var(--brand)!important}html body #codeCountdown #codeResend{color:var(--muted)}html body #codeCountdown #codeTimerNotice{color:var(--notice-ink)}

html body .field-options{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;min-width:210px}html body .field-options>label:not(.field-reason){display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 11px;margin:0;min-height:38px;font-size:13px;line-height:1.2;white-space:nowrap}html body .field-options input[type=radio]{appearance:auto;width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;flex:0 0 16px;padding:0;margin:0;border:0;border-radius:50%;accent-color:var(--brand);vertical-align:middle}html body .field-options .field-reason{display:block;flex-basis:100%;min-width:0}html body .field-options .field-reason[hidden]{display:none}html body .decision-tools button[data-decide-all=aprobada]{background:var(--positive-bg)!important;color:var(--positive)!important;border:1px solid var(--positive)}html body .decision-tools button[data-decide-all=rechazada]{background:var(--negative-bg)!important;color:var(--negative)!important;border:1px solid var(--negative)}

.review-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.review-source-grid>section{background:var(--subtle);border:1px solid var(--line);padding:16px;border-radius:8px;overflow-wrap:anywhere}.review-source-grid h3{margin-top:0}@media(max-width:850px){.review-source-grid{grid-template-columns:1fr}}
