.practice-toolbar,.practice-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.practice-toolbar{padding:22px;margin:22px 0;align-items:flex-end}.practice-toolbar .field{min-width:150px;flex:1}.practice-week{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:12px;overflow:auto;padding-bottom:14px}.practice-day{padding:16px;min-height:240px}.practice-day h2{font-size:15px;min-height:42px;text-transform:capitalize}.practice-calendar-event{display:block;width:100%;padding:12px;margin:12px 0;text-align:left;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--surface-raised)}.practice-calendar-event strong,.practice-calendar-event span,.practice-calendar-event small{display:block;margin:5px 0}.practice-cancelled{opacity:.6;text-decoration:line-through}.practice-list{margin-top:20px;padding:22px}.practice-dialog{width:min(820px,96vw);padding:28px;border-radius:16px;max-height:92vh}.practice-dialog h2{margin-bottom:22px}.practice-dialog .field{margin:14px 0}.practice-dialog textarea{min-height:100px}.practice-dialog [data-error]{white-space:pre-wrap}.practice-dialog [data-price]{font-weight:700;margin:20px 0}.practice-check{display:flex;gap:12px;align-items:flex-start;margin:24px 0}.practice-check input{margin-top:5px;flex:none}.practice-actions{margin:20px 0}.practice-signature{display:block;width:100%;height:auto;aspect-ratio:650/200;background:#fff;border:2px solid #68735f;border-radius:8px;touch-action:none;margin:20px 0}.practice-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.practice-check-grid label{display:flex;gap:10px}.practice-price{padding:18px;border:1px solid var(--line);border-radius:9px;margin:18px 0}.teacher-portal{max-width:1400px;margin:auto;padding:24px}.teacher-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.teacher-header img{max-width:150px;max-height:60px;object-fit:contain}.teacher-header h1{margin:14px 0;font-size:28px}.teacher-portal footer{margin-top:28px;padding:20px;border-top:1px solid var(--line);color:var(--muted)}@media(max-width:700px){.teacher-portal{padding:14px}.teacher-header{align-items:flex-start;flex-direction:column}.practice-week{grid-template-columns:repeat(7,minmax(180px,1fr))}.practice-dialog{padding:18px}.practice-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-toolbar{gap:10px}}
.practice-day-agenda{margin-top:18px;min-width:0;overflow:hidden}
.practice-day-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.practice-day-title h2{margin:0;font-size:20px}.practice-day-title p{margin:6px 0 0;color:var(--muted);text-transform:capitalize}.practice-day-title>span{font-size:13px;color:var(--muted)}
.practice-day-scroll{overflow:auto;max-height:70vh;overscroll-behavior:contain;position:relative}.practice-day-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.practice-day-grid{display:grid;align-items:start}.practice-teacher-column{min-width:0;border-left:1px solid var(--line)}
.practice-day-header{height:80px;padding:14px 12px;position:sticky;top:0;z-index:2;background:var(--surface-raised);border-bottom:1px solid var(--line);box-sizing:border-box}
.practice-day-header h3{font-size:14px;margin:0 0 8px;line-height:1.3}.practice-day-header small{color:var(--muted);font-size:12px}
.practice-hour-column{position:sticky;left:0;z-index:3;background:var(--surface)}.practice-hour-column>.practice-day-header{font-size:12px;color:var(--muted);display:flex;align-items:center;justify-content:center;z-index:4}
.practice-hour-track{position:relative;background:repeating-linear-gradient(to bottom,var(--line) 0,var(--line) 1px,transparent 1px,transparent 112px)}
.practice-hour{height:112px;box-sizing:border-box;padding:7px 8px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}
.practice-time-event{position:absolute;margin:0;padding:7px 9px;overflow:hidden;box-sizing:border-box;border-left:3px solid var(--accent);border-radius:7px}
.practice-time-event strong,.practice-time-event span,.practice-time-event small{margin:0 0 4px;line-height:1.25}.practice-time-event strong{font-size:12px;font-variant-numeric:tabular-nums}.practice-time-event span{font-size:13px}.practice-time-event small{font-size:11px;color:var(--muted)}
.practice-time-event:focus-visible{z-index:5;outline:2px solid var(--ink);outline-offset:1px}
@media(max-width:700px){.practice-day-title{padding:16px}.practice-day-scroll{max-height:65vh}}
.practice-dialog [data-practice-content-ref]{overflow-wrap:anywhere}
.practice-week .practice-calendar-event{padding:9px 10px;margin:8px 0}
.practice-week .practice-calendar-event strong{margin:0;line-height:1.35;overflow-wrap:anywhere}
.practice-week .practice-event-time{margin:5px 0 0;font-size:12px;line-height:1.3;font-weight:500;font-variant-numeric:tabular-nums;color:var(--muted)}
/* Compact shared header for the teacher's full agenda. */
.teacher-header{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:10px 16px;margin-bottom:14px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(110deg,transparent,#73dc030a),var(--surface)}
.teacher-identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 240px}
.teacher-logo{display:flex;flex-direction:column;align-items:flex-start;gap:3px;flex:0 0 76px}
.teacher-logo .corporate-logo{width:76px}
.teacher-logo .brand-product{font-size:8px;padding:1px 4px;letter-spacing:2px}
.teacher-heading{min-width:0;flex:1;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.5fr) 38px;align-items:center;gap:3px 8px}
.teacher-meta{display:contents}
.teacher-header .teacher-meta p{grid-column:2;grid-row:1;text-align:right;align-self:center;min-width:0;width:100%;max-width:none;box-sizing:border-box;margin:0;padding:0 5px;overflow:hidden;text-overflow:clip;white-space:nowrap;border:0;border-radius:0;background:none;color:#d5f783;font-family:'Bahnschrift','Avenir Next Condensed','Roboto Condensed','Arial Black',sans-serif;font-size:40px;font-weight:900;font-stretch:condensed;font-style:oblique 14deg;font-synthesis:weight style;line-height:1;letter-spacing:.7px;text-transform:uppercase;box-shadow:none;filter:drop-shadow(0 1px 2px #19330c45)}
.teacher-header .teacher-meta .sidebar-appearance{grid-column:2;grid-row:1;width:auto;margin-left:auto}
.teacher-header .teacher-meta .theme-switch{width:auto;min-height:28px;padding:3px 5px;gap:4px;font-size:9px;border-radius:7px}
.teacher-meta .theme-switch-track{flex-basis:32px;height:18px;border-radius:4px}
.teacher-meta .theme-switch-lever{width:12px;height:12px;top:2px;left:2px;border-radius:2px}
.teacher-meta .theme-switch-lever::after{left:4px;top:2px;height:6px}
.teacher-meta .theme-switch[aria-checked="true"] .theme-switch-lever{transform:translateX(14px)}
@media(max-width:420px){.teacher-header .teacher-heading h1{font-size:15px}}
@media(max-width:380px){.teacher-meta .theme-switch-light,.teacher-meta .theme-switch-dark{display:none}}
.teacher-header h1{margin:0;font-size:18px;line-height:1.2;letter-spacing:-.4px}
.teacher-header p{margin:4px 0 0;font-size:11px;line-height:1.3;overflow-wrap:anywhere;color:var(--muted)}
.teacher-header .practice-actions{display:flex;align-items:center;gap:6px;margin:0;flex-wrap:wrap}
.teacher-header .practice-actions>button{min-height:44px;margin:0;padding:8px 10px;border-radius:10px;font-size:17px;font-weight:700;white-space:nowrap}
.teacher-header .sidebar-appearance,.mj-actions .sidebar-appearance{margin:0;padding:0;border:0}
.teacher-header .theme-switch-caption,.mj-actions .theme-switch-caption{display:none}
.teacher-header .theme-switch,.mj-actions .theme-switch{min-height:44px;margin:0;padding:6px 8px;gap:6px;font-size:11px;border-radius:10px}
@media(max-width:700px){.teacher-portal{padding:8px}.teacher-header{gap:8px;padding:8px 10px;margin-bottom:10px}.teacher-header .practice-actions{width:100%}.teacher-header .practice-actions>button{flex:1}.teacher-header .sidebar-appearance{flex:1 0 132px}}
/* Mobile teacher workspace: contained agenda, tactile controls and clear signature states. */
.teacher-header{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;box-shadow:0 5px 15px #00000015}
.teacher-header [aria-current="page"]{background:var(--selection);color:var(--selection-text);border-color:var(--focus)}
.mj .teacher-header{margin:8px 8px 0;position:relative;top:0;flex-direction:row;flex-wrap:wrap;gap:8px;padding:8px 10px;color:var(--ink);background:linear-gradient(110deg,transparent,#73dc030a),var(--surface)}
.mj .teacher-header h1{font-size:18px;line-height:1.2;margin:0;letter-spacing:-.4px}
.mj .teacher-header .practice-actions{width:100%;margin:0}
.mj .teacher-header .practice-actions>button{flex:1}
.mj .teacher-header .theme-switch{font:inherit;font-size:9px;min-height:28px;border-radius:7px}
@media(max-width:420px){.mj .teacher-header h1{font-size:15px}}
.mj{--mj-teal:#163e36;--mj-lime:#b9f36c;box-sizing:border-box;height:100vh;height:100dvh;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);background:radial-gradient(ellipse at 100% 0,#73dc0314,transparent 55%),var(--canvas,#f3f5f2);color:var(--ink,#20271d);padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);font-family:Arial,sans-serif}
.mj *{box-sizing:border-box}
.mj header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;background:radial-gradient(ellipse at 100% 0,#77b34355,transparent 70%),linear-gradient(115deg,#0f2724,#22483b);color:#f4faee;border-bottom:1px solid #ffffff18}
.mj-brand{display:flex;align-items:center;gap:9px;flex-shrink:0}
.mj-brand-mark{display:grid;place-content:center;position:relative;width:32px;height:34px;border:1px solid #d4f5ad44;border-radius:10px;background:#ffffff0d;color:#c7f28f;font-size:25px;font-weight:900;letter-spacing:-3px;padding-right:4px}
.mj-brand-mark>span{position:absolute;right:3px;bottom:1px;color:#fff;font-size:20px}
.mj-brand b{font-size:12px;letter-spacing:1px}
.mj-brand small{display:block;margin-top:4px;font-size:8px;letter-spacing:1.5px;color:#c1d3c9}
.mj-profile{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0}
.mj-teacher-name{font-size:11px;line-height:1.4;max-width:135px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:right}
.mj-profile-initials{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#d1edb8;color:#234137;font-weight:700;font-size:12px;border:2px solid #ffffff33}
.mj section{display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:13px;padding:8px 16px 0;min-height:0;overflow:hidden}
.mj-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.mj-eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:700;color:var(--muted)}
.mj h1{font-size:28px;letter-spacing:-1px;line-height:1.1;margin:6px 0 0;font-weight:800}
.mj button,.mj input,.mj-actions button{min-height:44px;font-family:inherit}
.mj-heading>div{min-width:0}
.mj .mj-add-practice{display:flex;flex:none;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:10px 14px;border:1px solid #95cc3f;border-radius:14px;background:linear-gradient(115deg,#d5fa92,#9cde43);color:#18330e;font-size:15px;font-weight:800;box-shadow:0 4px 12px #6a9d2528}
.mj .mj-add-practice>span:last-child{font-size:28px;line-height:1;font-weight:500}
.mj .mj-add-practice:hover{background:linear-gradient(115deg,#e1ffab,#aceb56)}
@media(max-width:380px){.mj .mj-add-practice{gap:6px;padding:9px 10px;font-size:14px}.mj-heading h1{font-size:23px}.mj-heading .mj-eyebrow{font-size:8px;letter-spacing:1px}}
.mj nav{display:flex;align-items:center;gap:8px;padding:6px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:0 3px 10px #142e1f05}
.mj nav button{flex:0 0 44px;width:44px;height:44px;padding:0;min-width:44px;border:0;border-radius:12px;font-size:29px;font-weight:400;line-height:1;background:var(--surface-raised);color:var(--ink);box-shadow:none}
.mj nav input{flex:1;width:0;min-width:0;max-width:100%;height:44px;padding:0 5px;border:0;box-shadow:none;background:transparent;color:var(--ink);text-align:center;font-size:15px;font-weight:700;letter-spacing:.2px}
.mj-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 3px}
.mj-count{margin:0;font-size:11px;font-weight:600;color:var(--muted)}
.mj-signed-count{font-size:10px;font-weight:700;padding:6px 9px;border-radius:20px;background:var(--good-bg);color:var(--good-ink);white-space:nowrap}
.mj-wheel{position:relative;align-self:stretch;min-height:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scroll-snap-type:y proximity;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:3px 3px 14px}
.mj-wheel > [data-lesson-index]{position:relative;flex:0 0 auto;scroll-snap-align:center;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;min-height:88px;height:88px;padding:0 12px 0 0;width:100%;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:0 3px 8px #152a1d05}
.mj-wheel .mj-time{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:auto;align-self:stretch;border-radius:17px 0 0 17px;background:var(--surface-raised);border:0;border-right:1px solid var(--line);font-variant-numeric:tabular-nums}
.mj-time b{font-size:17px;letter-spacing:-.5px}
.mj-wheel .mj-time small{font-size:10px;line-height:1.2;color:var(--muted);font-weight:500}
.mj-lesson-info{min-width:0;display:flex;flex-direction:column;gap:8px}
.mj-wheel strong{font-size:13px;line-height:1.3;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mj-lesson-status{font-size:10px;font-weight:500;color:var(--muted);line-height:1.2}
.mj-lesson-status>span{font-size:7px;color:#a67823;margin-right:3px;vertical-align:1px}
.mj-card-arrow{font-size:23px;color:var(--muted)}
.mj-wheel .mj-open-practice{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:12px;min-width:0;width:100%;height:auto;align-self:stretch;padding:0;border:0;background:transparent;color:inherit;text-align:left;box-shadow:none}
.mj-wheel .mj-view-student{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:64px;padding:4px 0 4px 10px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;color:var(--muted);font-size:10px;white-space:nowrap}
.mj-wheel .mj-open-practice:focus-visible,.mj-wheel .mj-view-student:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.mj-wheel .mj-open-practice:has(.mj-permit){grid-template-columns:62px minmax(0,1fr) auto}
.mj-wheel .mj-permit{font-size:26px;font-weight:800;line-height:1;color:var(--ink);white-space:nowrap;padding-left:2px}
@media(max-width:350px){.mj-wheel .mj-open-practice{grid-template-columns:50px minmax(0,1fr);gap:7px}.mj-wheel .mj-open-practice:has(.mj-permit){grid-template-columns:50px minmax(0,1fr) auto}.mj-wheel .mj-permit{font-size:23px}.mj-wheel .mj-view-student{min-width:58px;gap:3px}}
.mj-wheel .focus{border-color:transparent;background:var(--surface);color:var(--ink);box-shadow:none;transform:none;opacity:1}
.mj-wheel > [data-lesson-index].focus::after{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:2px;background:linear-gradient(90deg,#a4ed59 0%,#a4ed5950 22%,#a4ed5920 45%,#a4ed5920 55%,#a4ed5950 78%,#a4ed59 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none}
.mj-wheel .focus .mj-time{background:var(--surface-raised);border-color:var(--line);color:var(--ink)}
.mj-wheel .focus .mj-time small,.mj-wheel .focus .mj-lesson-status,.mj-wheel .focus .mj-card-arrow{color:var(--muted)}
.mj-wheel .focus .mj-lesson-status>span{color:#c1ed88}
.mj-wheel .side{transform:scale(.98);opacity:.92}
.mj-wheel .signed{opacity:.65}
.mj-wheel .signed .mj-lesson-status{color:var(--good-ink)}
.mj-wheel .signed.focus{opacity:.8}
.mj-wheel .signed.focus .mj-lesson-status{color:var(--good-ink)}
.mj-wheel .cancelled .mj-lesson-status{color:var(--error)}
.mj-wheel .cancelled.focus .mj-lesson-status{color:var(--error)}
.mj-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;text-align:center;padding:20px;color:var(--muted)}
.mj-empty>span{font-size:38px;color:var(--good-ink);margin-bottom:15px}
.mj-empty strong{display:block;font-size:18px;color:var(--ink);line-height:1.4}
.mj-empty p{font-size:13px;line-height:1.6;margin:10px 0}
.mj footer{display:flex;align-items:stretch;gap:10px;padding:12px 16px;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 24px #19352705}
.mj footer .primary{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;min-height:52px;border:1px solid #a0d34e;border-radius:15px;background:linear-gradient(115deg,#c8ef8c,#9cde59);color:#193513;font-size:14px;font-weight:750;padding:12px 17px;box-shadow:0 4px 10px #73aa2920}
.mj footer .primary>span{font-size:22px;font-weight:400}
.mj footer .primary:disabled{opacity:.45;cursor:default}
.mj footer [data-more]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:85px;min-height:52px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft);color:var(--ink);font-size:10px;font-weight:600;padding:4px 9px}
.mj-more-icon{font-size:17px;letter-spacing:3px;line-height:1}
.mj button:focus-visible,.mj input:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.mj button:active{filter:brightness(.95)}
.mj-actions{display:flex;align-items:stretch;flex-direction:column;gap:10px}
body:has(.mj) .practice-dialog{max-height:92dvh;max-width:calc(100vw - 24px);overflow:auto;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 24px 80px #071b2140}
body:has(.mj) .practice-dialog h2{font-size:22px;letter-spacing:-.6px}
body:has(.mj) .practice-dialog .mj-actions button{border:1px solid var(--line);border-radius:13px;padding:14px;text-align:left;background:var(--surface-raised);color:var(--ink)}
body:has(.mj) .practice-dialog .mj-actions button[data-role]:not(:disabled){background:linear-gradient(115deg,#c8ef8c,#9cde59);color:#193513;border-color:#a0d34e}
body:has(.mj) .practice-dialog [hidden]{display:none!important}
body:has(.mj) .practice-signature{height:clamp(80px,18dvh,160px);width:100%;touch-action:none}
@media(max-height:600px){.mj header{padding:9px 14px}.mj section{padding-top:12px;gap:8px}.mj h1{font-size:24px}.mj-eyebrow{display:none}.mj-wheel > [data-lesson-index]{height:80px;min-height:80px}.mj footer{padding-top:8px;padding-bottom:8px}}
@media(max-width:350px){.mj header{padding-left:12px;padding-right:12px}.mj-profile-initials{display:none}.mj-teacher-name{max-width:105px}.mj section{padding-left:10px;padding-right:10px}.mj-wheel > [data-lesson-index]{gap:8px;grid-template-columns:minmax(0,1fr) auto;padding:0 10px 0 0}.mj footer{padding-left:10px;padding-right:10px}}
.practice-week.date-wheel{position:relative;display:flex;gap:14px;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;padding:12px max(0px,calc((100% - 260px)/2)) 16px;align-items:stretch}
.practice-week.date-wheel::-webkit-scrollbar{display:none}
.date-wheel .practice-day{flex:0 0 260px;box-sizing:border-box;scroll-snap-align:center;opacity:.5;transform:scale(.94);margin:0}
.date-wheel .date-selected{opacity:1;transform:scale(1);border-color:var(--accent);background:var(--surface-raised);box-shadow:0 0 0 1px var(--accent)}
.date-wheel-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0}
.date-wheel-controls button{background:var(--accent);color:var(--accent-text);width:48px;height:48px;font-size:30px}
.date-wheel-controls span{min-width:125px;text-align:center;font-weight:600}
@media(prefers-reduced-motion:no-preference){.date-wheel .practice-day{transition:opacity .15s,transform .15s}}
.mj-wheel{touch-action:pan-y pinch-zoom;user-select:none}
.mj-wheel > [data-lesson-index]:focus-visible{outline:3px solid #729a35;outline-offset:2px}
body:has(.mj){margin:0;overflow:hidden;overscroll-behavior:none}
body:has(.mj) #app{margin:0;padding:0;max-width:none;height:100dvh}
.mj{margin:0;width:100%}
.mj>section{padding-top:8px}
@media(prefers-reduced-motion:no-preference){.mj-wheel > [data-lesson-index]{transition:background-color .15s,opacity .15s,transform .15s,box-shadow .15s}}
.practice-time-wheels{display:flex;gap:12px;width:100%;margin-top:6px}
.practice-time-column{flex:1;min-width:0;text-align:center}
.practice-time-column>span{font-size:12px;color:var(--muted)}
.practice-time-drum{height:132px;box-sizing:border-box;padding:44px 0;overflow:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;background:var(--surface-raised);border-radius:10px}
.practice-time-drum::-webkit-scrollbar{display:none}
.practice-time-drum button{display:block;box-sizing:border-box;width:100%;height:44px;min-height:44px;scroll-snap-align:center;font-size:19px;color:var(--muted);font-variant-numeric:tabular-nums}
.practice-time-drum button[aria-pressed=true]{background:var(--accent);color:var(--accent-text);font-size:23px;font-weight:700}
.practice-week.date-wheel,.date-wheel-controls{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.practice-week.date-wheel{cursor:grab}
.practice-week.date-wheel:active{cursor:grabbing}
.practice-dialog:has(.practice-new-teacher){margin:8px auto auto;padding:12px;max-height:calc(100dvh - 16px);overflow:auto}
.practice-dialog .practice-new-teacher h2{margin:0 0 10px;font-size:20px}
.practice-dialog .practice-new-teacher .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}
.practice-dialog .practice-new-teacher .field{margin:0;min-width:0}
.practice-new-teacher .field:has([name=expedient_id]),.practice-new-teacher .field:has([name=vehicle_id]),.practice-new-teacher .field:has([name=exam_id]),.practice-new-teacher .field:has([name=start_time]){grid-column:1/-1}
.practice-dialog .practice-new-teacher input,.practice-dialog .practice-new-teacher select{min-width:0;max-width:100%;min-height:44px}
.practice-dialog .practice-new-teacher p{margin:8px 0;font-size:13px;line-height:1.4}
.practice-dialog .practice-new-teacher p:empty{display:none}
.practice-dialog .practice-new-teacher textarea{min-height:52px;height:52px}
.practice-dialog .practice-new-teacher .practice-check{margin:10px 0;gap:8px;font-size:13px}
.practice-dialog .practice-new-teacher .practice-check input{min-height:0;width:20px;height:20px}
.practice-dialog .practice-new-teacher .practice-actions{margin:10px 0 0;gap:8px}
.practice-duration-choices{grid-column:1/-1;border:0;padding:0;margin:0;min-width:0}
.practice-duration-choices legend{font-size:13px;font-weight:700;margin-bottom:6px}
.practice-duration-choices [data-duration-buttons]{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.practice-duration-choices button{display:flex;flex-direction:row;flex:1 1 64px;align-items:center;justify-content:center;gap:5px;width:auto;height:46px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);color:var(--ink);box-shadow:none}
.practice-duration-choices button b{font-size:19px;line-height:1.1}
.practice-duration-choices button small{font-size:12px}
.practice-duration-choices button[data-exam-choice] b{font-size:15px}
.practice-duration-choices button[aria-pressed=true]{background:linear-gradient(135deg,#d9f795,#a8df57);border-color:#8bc541;color:#193512;box-shadow:inset 0 0 0 1px #638d29}
.practice-duration-choices button:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.practice-duration-choices button:disabled{opacity:.45}
.practice-duration-choices [data-duration-hint]{display:block;margin:6px 0 0;font-size:12px;color:var(--muted)}
body:has(.mj) .practice-dialog:has(.practice-new-teacher){margin-top:8px;padding:12px;border-radius:16px;max-height:calc(100dvh - 16px)}
.practice-new-teacher .practice-optional-notes{margin:4px 0}
.practice-new-teacher .practice-optional-notes summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;font-weight:600}
.practice-new-teacher .practice-optional-notes summary::before{content:'+';margin-right:8px}
.practice-new-teacher .practice-optional-notes[open] summary::before{content:'−'}
.exam-trip-student{padding:10px 0;border-top:1px solid var(--line);display:grid;gap:5px}
.exam-trip-student>small{display:block}
.exam-trip-time{padding:10px;border-radius:10px;background:var(--surface-raised);font-weight:700}
.mj-wheel:has([data-lesson-index]){padding-block:0}
.mj-wheel:has([data-lesson-index])::before,.mj-wheel:has([data-lesson-index])::after{content:"";display:block;flex:0 0 var(--mj-edge-space,0px)}


/* Zona docente: una elección por expediente, compartida con seguimiento. */
.practice-zone-choices{min-width:0;margin:8px 0 12px;padding:0;border:0}
.practice-zone-choices[hidden],.practice-zone-choices [hidden]{display:none!important}
.practice-zone-choices legend{font-weight:750;margin-bottom:7px}
.practice-zone-buttons{display:flex;gap:8px;flex-wrap:wrap}
.practice-zone-buttons button{flex:0 0 84px;width:84px;height:84px;padding:8px 6px;border:1px solid var(--line);border-radius:13px;background:var(--surface-raised);color:var(--ink);font-size:13px;font-weight:750;line-height:1.2}
.practice-zone-buttons button[aria-pressed=true]{background:linear-gradient(135deg,#d5f58d,#a6dc55);color:#18240c;border-color:#90ce3d;box-shadow:inset 0 0 0 1px #ecffb9,0 0 0 2px #91ca3c40}
.practice-zone-buttons button:focus-visible{outline:3px solid #86cfff;outline-offset:2px}
.practice-zone-choices [data-zone-center]{margin-top:8px}
.practice-zone-choices small{display:block;margin-top:6px;color:var(--muted,#b4bea9)}


.practice-sign-single .signature-km{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.practice-sign-single h3{margin:4px 0}
.practice-sign-single .signature-summary{margin:4px 0 10px;font-size:13px}
.practice-sign-single textarea{min-height:60px;height:60px}
#dialog .practice-sign-single .practice-signature{display:block;width:100%;height:clamp(220px,32dvh,320px);margin:6px 0;touch-action:none}
.practice-sign-single .signature-pad-title{display:block;font-weight:700;margin-top:8px}
.practice-sign-single .practice-signature{border:2px dashed #76b82a;outline:none}
.practice-sign-single .practice-signature:focus{border-color:#70b323;box-shadow:0 0 0 2px #a4ed5926}
.practice-sign-single [data-sign-hint]{display:block;font-size:12px;color:var(--muted);margin:6px 0}
.practice-sign-single .practice-zone-buttons button{width:72px;height:64px;flex-basis:82px}
.practice-stage-steps{padding:10px 0;margin:10px 0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}
.practice-stage-steps .practice-zone-buttons{display:flex;flex-wrap:nowrap;gap:32px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:thin;overscroll-behavior-x:contain}
.practice-stage-steps .practice-zone-buttons button,.practice-sign-single .practice-stage-steps .practice-zone-buttons button{position:relative;display:flex;flex-direction:row;align-items:center;flex:1 0 120px;gap:10px;width:auto;height:auto;min-height:48px;padding:4px 0;border:0;background:transparent;box-shadow:none;color:var(--muted);font-size:13px;line-height:1.3;border-radius:0;text-align:left}
.practice-stage-steps .practice-stage-dot{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:1px solid var(--line);border-radius:50%;background:var(--surface-soft);font-size:12px;font-weight:700}
.practice-stage-steps .practice-stage-copy{display:grid;gap:5px;min-width:0}
.practice-stage-steps .practice-stage-label{font-size:13px;font-weight:650;color:var(--ink);text-align:left}
.practice-stage-steps .practice-stage-copy small{font-size:11px;line-height:1.3;margin:0;color:inherit}
.practice-stage-steps .practice-zone-buttons button:not(:last-child)::after{content:'';position:absolute;left:calc(100% + 4px);top:50%;width:24px;border-top:2px dashed var(--line)}
.practice-stage-steps .practice-zone-buttons button:not(:last-child)::before{content:'';position:absolute;left:calc(100% + 22px);top:calc(50% - 3px);width:6px;height:6px;border-top:2px solid var(--muted);border-right:2px solid var(--muted);transform:rotate(45deg)}
.practice-stage-steps button[data-step-state=previous] .practice-stage-dot{border-color:var(--good-ink);background:var(--good-bg);color:var(--good-ink)}
.practice-stage-steps button[data-step-state=previous] .practice-stage-copy,.practice-stage-steps button[data-step-state=previous] .practice-stage-label{color:var(--good-ink)}
.practice-stage-steps .practice-zone-buttons button[data-link-state=done]::after{border-top-style:solid;border-color:var(--good-ink)}
.practice-stage-steps .practice-zone-buttons button[data-link-state=done]::before{border-color:var(--good-ink)}
.practice-stage-steps .practice-zone-buttons button[data-link-state=current]::after{height:2px;border:0;background:linear-gradient(90deg,var(--good-ink),#ec9e38)}
.practice-stage-steps .practice-zone-buttons button[data-link-state=current]::before{border-color:#ec9e38}
.practice-stage-steps button[data-step-state=current] .practice-stage-dot{border:2px solid #ec9e38;background:var(--sw-prep-bg,#edaa3615);color:var(--sw-prep-ink,#dc941e)}
.practice-stage-steps button[data-step-state=current] .practice-stage-copy,.practice-stage-steps button[data-step-state=current] .practice-stage-label{color:var(--sw-prep-ink,#dc941e)}
.practice-stage-steps button:disabled{opacity:.5}
.practice-stage-steps.ps-stage-readonly button:disabled{opacity:1;cursor:default}
.practice-stage-steps .practice-zone-buttons button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.practice-stage-steps [data-zone-status]{font-size:11px;line-height:1.4}
@media(max-width:550px){
 .practice-stage-steps .practice-zone-buttons{gap:18px;overflow:visible}
 .practice-stage-steps .practice-zone-buttons button,.practice-sign-single .practice-stage-steps .practice-zone-buttons button{flex:1 1 0;min-width:0;gap:5px}
 .practice-stage-steps .practice-stage-dot{flex-basis:24px;width:24px;height:24px}
 .practice-stage-steps .practice-stage-label{font-size:11px;overflow-wrap:normal}
 .practice-stage-steps .practice-stage-copy{gap:4px}
 .practice-stage-steps .practice-stage-copy small{font-size:10px}
 .practice-stage-steps .practice-zone-buttons button:not(:last-child)::after{left:calc(100% + 2px);width:13px}
 .practice-stage-steps .practice-zone-buttons button:not(:last-child)::before{left:calc(100% + 9px);width:5px;height:5px;top:calc(50% - 2.5px)}
}
.practice-sign-single .practice-actions{position:static;padding:8px 0;background:var(--surface,#fff);margin:8px 0 0}
.practice-dialog .practice-sign-single .field{margin:6px 0}
.practice-dialog .practice-sign-single h2{margin:0 0 10px}


/* Estado real de la práctica, independiente de la selección en la ruleta. */
.mj-wheel .lesson-done-signed{background:linear-gradient(115deg,#65b97a24,#65b97a66),var(--surface,#fff)}
.mj-wheel .lesson-done-unsigned{background:linear-gradient(115deg,#e9a04424,#e9a04466),var(--surface,#fff)}
.mj-wheel .lesson-done-signed.focus,.mj-wheel .lesson-done-unsigned.focus{color:var(--ink);background-color:var(--surface,#fff)}
.mj-wheel .lesson-done-signed.focus{border-color:transparent;box-shadow:none}
.mj-wheel .lesson-done-unsigned.focus{border-color:transparent;box-shadow:none}
.mj-wheel .lesson-done-signed.focus .mj-time,.mj-wheel .lesson-done-unsigned.focus .mj-time{color:var(--ink);background:var(--surface-raised);border-color:var(--line)}
.mj-wheel .lesson-done-signed.focus .mj-time small,.mj-wheel .lesson-done-unsigned.focus .mj-time small,.mj-wheel .lesson-done-signed.focus .mj-card-arrow,.mj-wheel .lesson-done-unsigned.focus .mj-card-arrow,.mj-wheel .lesson-done-unsigned.focus .mj-lesson-status{color:var(--muted)}
.mj-wheel .lesson-done-signed.focus .mj-lesson-status{color:var(--good-ink)}
.mj-wheel .lesson-done-unsigned .mj-lesson-status>span{color:#cb8c3f}

.practice-sign-single [data-delete-practice]{margin-left:auto;color:var(--error,#b33b32);border-color:currentColor;min-height:44px}


/* Calendario mensual del profesor: cabecera y mes fijos, agenda con desplazamiento propio. */
.teacher-portal:has(.pm-calendar){height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:8px;max-width:900px}
.teacher-portal:has(.pm-calendar)>.teacher-header{flex:none;margin-bottom:8px}
.teacher-portal:has(.pm-calendar)>main{flex:1;min-height:0;display:flex}
.teacher-portal:has(.pm-calendar)>footer{display:none}
.pm-calendar{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom;padding:10px 12px;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:20px}
.pm-month-nav{display:flex;align-items:center;gap:6px;flex:none}
.pm-month-nav h2{flex:1;text-align:center;text-transform:capitalize;font-size:16px;margin:0;line-height:1.2}
.pm-month-nav button{min-width:40px;min-height:40px;padding:6px;border:1px solid var(--line);border-radius:11px;background:var(--surface-raised);color:var(--ink)}
.pm-month-nav [data-month-prev],.pm-month-nav [data-month-next]{font-size:26px}
.pm-weekdays,.pm-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.pm-weekdays{font-size:11px;color:var(--muted);text-align:center;font-weight:700;flex:none}
.pm-days{flex:none;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.pm-days button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:42px;padding:4px 1px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink)}
.pm-days button b{font-size:15px;line-height:18px}
.pm-days .pm-outside{color:var(--muted)}
.pm-days .pm-today{background:linear-gradient(145deg,#c5ec8340,#8abb3520);border-color:#85bd43}
.pm-days .pm-today b{font-weight:900}
.pm-days button[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:-3px}
.pm-days button:focus-visible{outline:3px solid #41a5f0;outline-offset:0}
.pm-day-markers{height:12px;display:flex;align-items:center;gap:3px}
.pm-practice-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--muted);flex:none}
.pm-exam-tag{font-size:9px;line-height:12px;font-weight:800;color:#995409;background:#ffd59a;border-radius:4px;padding:0 3px;white-space:nowrap}
.pm-days .pm-exam{box-shadow:inset 0 -2px #dc963b}
.pm-legend{display:flex;gap:14px;align-items:center;font-size:10px;color:var(--muted);flex:none}
.pm-legend>span{display:flex;align-items:center;gap:4px}
.pm-today-key{width:9px;height:9px;border:1px solid #85bd43;background:#85bd4330;border-radius:3px}
.pm-exam-key{color:var(--ink)}
.pm-day-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;border-top:1px solid var(--line);padding-top:6px;flex:none}
.pm-day-heading h3{font-size:14px;margin:0;text-transform:capitalize}
.pm-day-heading button{font-size:11px;min-height:36px;padding:6px 10px}
.pm-events{flex:none;min-height:70px;overflow:visible;display:flex;flex-direction:column;gap:8px;padding:2px}
.pm-event{position:relative;flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;text-align:left;width:100%;padding:0 12px 0 0;min-height:88px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px}
.pm-event strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.3}
.pm-event small{display:block;font-size:10px;margin-top:4px;color:var(--muted);line-height:1.3}
.pm-event-time{display:flex;flex-direction:column;align-items:center;justify-content:center;height:auto;align-self:stretch;border-radius:17px 0 0 17px;background:var(--surface-raised);border:0;border-right:1px solid var(--line);font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}.pm-event-time small{font-weight:500}
.pm-open-practice{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:12px;min-width:0;width:100%;height:auto;align-self:stretch;padding:0;border:0;background:transparent;color:inherit;text-align:left;box-shadow:none}
.pm-open-practice:has(.pm-permit){grid-template-columns:62px minmax(0,1fr) auto}
.pm-permit{font-size:26px;font-weight:800;line-height:1;color:var(--ink);white-space:nowrap;padding-left:2px}
.pm-view-student{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:64px;padding:4px 0 4px 10px;border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;color:var(--muted);font-size:10px;white-space:nowrap}
.pm-card-arrow{font-size:23px;color:var(--muted)}
.pm-open-practice:focus-visible,.pm-view-student:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.pm-event:has(:focus-visible){border-color:#a4ed59}
@media(max-width:350px){.pm-event{gap:8px;padding:0 10px 0 0}.pm-open-practice{grid-template-columns:50px minmax(0,1fr);gap:7px}.pm-open-practice:has(.pm-permit){grid-template-columns:50px minmax(0,1fr) auto}.pm-permit{font-size:23px}.pm-view-student{min-width:58px;gap:3px}}
.pm-event-signed{background:linear-gradient(115deg,#65b97a24,#65b97a66),var(--surface);opacity:.8}
.pm-event-unsigned{background:linear-gradient(115deg,#e9a04424,#e9a04466),var(--surface)}
.pm-event-exam{border-left:3px solid #d68a29;background:linear-gradient(115deg,#edb65618,#edb65638),var(--surface)}
.pm-empty{font-size:13px;color:var(--muted);text-align:center;padding:12px}
.pm-add{flex:none;width:100%;min-height:44px}
@media(min-width:700px){.pm-days button{min-height:52px}.pm-month-nav h2{font-size:22px}}
@media(max-height:700px){.pm-calendar{gap:4px;padding:6px 10px}.pm-days button{min-height:36px;padding:2px 1px}.pm-month-nav button{min-height:36px}.pm-events{min-height:60px}}


.teacher-portal:has(.pt-students){height:100dvh;display:flex;flex-direction:column;padding:8px;overflow:hidden;max-width:900px}
.teacher-portal:has(.pt-students)>.teacher-header{flex:none;margin-bottom:8px}
.teacher-portal:has(.pt-students)>main{flex:1;min-height:0;display:flex}
.teacher-portal:has(.pt-students)>footer{display:none}
.pt-students{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px}
.pt-students h2{font-size:20px;margin:0 0 10px}
.pt-students .field{margin:0}
.pt-students [data-student-count]{font-size:12px;color:var(--muted);margin:8px 0}
.pt-student-list{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}
.pt-student{padding:12px;margin:0 0 8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised)}
.pt-student h3{font-size:14px;margin:0 0 8px}
.pt-student button{display:flex;justify-content:space-between;gap:8px;min-height:44px;width:100%;margin-top:5px;text-align:left;font-size:11px;padding:7px}
.pt-student button span:last-child{white-space:nowrap}
@media(max-width:500px){.teacher-header .practice-actions{gap:5px}.teacher-header .practice-actions>button{min-width:0;min-height:44px;padding:8px 4px;font-size:clamp(13px,3.7vw,17px);flex:1}.teacher-header .practice-actions #teacher-calendar{flex:1.3}.teacher-header .practice-actions #teacher-logout{flex:.7}}
.teacher-header .teacher-settings-button{grid-column:3;grid-row:1;justify-self:end;width:38px;min-height:38px;padding:2px;font-size:24px;line-height:1}
.teacher-header .teacher-settings-button[aria-current]{border-color:var(--accent,#a6df42);color:var(--accent,#a6df42)}
.teacher-portal:has(.teacher-settings-page){height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:8px;max-width:900px}
.teacher-portal:has(.teacher-settings-page)>.teacher-header{flex:none;margin-bottom:8px}
.teacher-portal:has(.teacher-settings-page)>main{flex:1;min-height:0;display:flex}
.teacher-portal:has(.teacher-settings-page)>footer{display:none}
.teacher-settings-page{min-height:0;min-width:0;display:flex;flex:1;flex-direction:column}
.teacher-settings-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;margin:4px 4px 12px}
.teacher-settings-title h2{margin:0;font-size:22px;line-height:1.2;white-space:nowrap}
.teacher-settings-title .sidebar-appearance{margin:0;padding:0;border:0;flex:none}
.teacher-settings-title .theme-switch-caption{display:none}
.teacher-settings-title .theme-switch{width:auto;min-height:44px;padding:5px 7px;gap:5px;font-size:10px}
@media(max-width:380px){.teacher-settings-title h2{font-size:18px}.teacher-settings-title .theme-switch{padding:4px;gap:4px;font-size:9px}}
.teacher-settings-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 4px 24px;scrollbar-width:thin}
.teacher-settings-scroll>.card{padding:18px;margin-bottom:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.teacher-settings-scroll h3{margin:0 0 12px}
.teacher-settings-scroll p{line-height:1.5}
.teacher-settings-scroll form{display:grid;gap:12px;min-width:0}
.teacher-settings-scroll .field{display:grid;gap:6px;margin:0;min-width:0}
.teacher-settings-scroll input{width:100%;box-sizing:border-box;min-width:0}
.teacher-settings-scroll small{display:block;color:var(--muted);line-height:1.5}
.teacher-settings-scroll [data-error]:empty,.teacher-settings-scroll [data-success]:empty{display:none}
.teacher-settings-scroll [data-success]{color:var(--ink);margin:0}
.teacher-settings-scroll .practice-signature{margin:0;aspect-ratio:650/260}
.teacher-settings-scroll .sidebar-appearance{max-width:230px;margin:10px 0}
.teacher-settings-scroll button{min-height:44px}
/* Professor practice record: fixed actions and a single vertical reading area. */
#dialog.practice-sheet-mobile{width:min(560px,calc(100vw - 16px));height:min(880px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:1px solid var(--line);border-radius:22px;box-sizing:border-box}
#dialog.practice-sheet-mobile>form{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0;margin:0}
#dialog.practice-sheet-mobile h2{flex:none;margin:0;padding:18px 18px 5px;font-size:17px;color:var(--muted)}
.ps-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;align-items:center;padding:16px 18px 14px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,transparent,#73dc0312)}
#dialog.practice-sheet-mobile .ps-identity h2{grid-column:1;grid-row:1;padding:0;font-size:17px}
.ps-identity h3{grid-column:1 / -1;grid-row:2;font-size:22px;margin:0;line-height:1.25;overflow-wrap:anywhere}
.ps-permit{grid-column:2;grid-row:1;align-self:center;justify-self:end;font-size:32px;line-height:1;font-weight:900;color:var(--ink);letter-spacing:-1px}
.ps-identity p{font-size:11px;color:var(--muted);margin:7px 0 0}
.ps-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:14px;scrollbar-width:thin}
.ps-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:18px}
.ps-summary>div{display:flex;flex-direction:column;gap:6px;padding:10px 7px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised)}
.ps-summary strong{font-size:20px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ps-summary strong small{font-size:10px;font-weight:500}
.ps-summary span{font-size:10px;color:var(--muted);line-height:1.3}
.ps-summary .ps-pending{border-color:#bc852755}
.ps-bundles{margin:0 0 16px}.ps-bundles h4{margin:0 0 8px;font-size:14px}
.ps-bundle{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px;margin:6px 0;border:1px solid var(--line);border-radius:12px;background:linear-gradient(110deg,transparent,#89c94b16),var(--surface-raised)}
.ps-bundle strong{font-size:13px;overflow-wrap:anywhere}.ps-bundle small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.ps-bundle-count{display:flex;align-items:baseline;gap:5px}.ps-bundle-count b{font-size:24px;color:var(--good-ink)}.ps-bundle-count span{font-size:11px;color:var(--muted)}
.ps-bundle p{grid-column:1/-1;margin:0;font-size:11px;color:var(--muted)}
.ps-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.ps-list-heading h3{font-size:16px;margin:0}
.ps-list-heading h3 small{color:var(--muted);font-weight:400}
.ps-list-heading select{width:auto;max-width:155px;min-height:44px;padding:6px 24px 6px 9px;font-size:12px}
.ps-lesson{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:8px;padding:8px 10px 2px;margin-bottom:8px;background:var(--surface-raised);border:1px solid var(--line);border-radius:12px}
.ps-lesson.ps-signed{background:linear-gradient(115deg,var(--surface-raised),#4cba6c25)}
.ps-lesson.ps-awaiting{background:linear-gradient(115deg,var(--surface-raised),#e89b3028)}
.ps-lesson.ps-cancelled{border-style:dashed}
.ps-lesson-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ps-lesson-top>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.ps-date{display:block;font-size:11px;color:var(--muted);margin:0}
.ps-time{font-size:19px;font-variant-numeric:tabular-nums}
.ps-duration{padding:5px 8px;border-radius:9px;border:1px solid var(--line);font-size:17px;font-weight:700;white-space:nowrap}
.ps-duration small{font-size:11px;font-weight:400}
.ps-lesson-top>.ps-lesson-badges{flex-wrap:nowrap;align-items:center;gap:7px}
.ps-teacher-initials{font-size:13px;font-weight:800;letter-spacing:.04em;padding:5px 7px;border-radius:8px;border:1px solid var(--line);color:var(--text);background:var(--surface-raised)}
.ps-readonly-note{font-size:13px;color:var(--muted)}
.ps-lesson h4{font-size:13px;margin:3px 0 4px}
.ps-lesson.ps-signed .ps-status{display:none}
.ps-lesson .ps-signatures{gap:4px}
.ps-lesson .ps-signatures span{padding:3px 5px}
.ps-lesson .ps-lesson-action{grid-column:1;min-height:44px;padding:0;background:transparent;justify-content:flex-start;font-size:11px;text-align:left}
.ps-lesson>.ps-detail{grid-column:2;min-width:0}
.ps-lesson>.ps-detail summary{justify-content:flex-end}
.ps-lesson>.ps-detail[open]{grid-column:1/-1}
.ps-lesson>.ps-detail[open] summary{justify-content:flex-start}
.ps-status{font-size:11px;margin:0 0 6px;color:var(--muted)}
.ps-signatures{display:flex;flex-wrap:wrap;gap:6px}
.ps-signatures span{font-size:10px;padding:5px 7px;border-radius:6px;border:1px solid var(--line);color:var(--muted)}
.ps-signatures .is-signed{background:var(--good-bg);color:var(--good-ink)}
.ps-detail{margin-top:0;font-size:11px}
.ps-detail summary,.ps-notice summary{min-height:44px;display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--muted)}
.ps-detail summary::before,.ps-notice summary::before{content:'+';font-size:18px}
.ps-detail[open] summary::before,.ps-notice[open] summary::before{content:'−'}
.ps-detail dl{margin:0}.ps-detail dl>div{margin:8px 0}.ps-detail dt{font-size:10px;color:var(--muted)}.ps-detail dd{margin:3px 0;overflow-wrap:anywhere}.ps-detail p{white-space:pre-wrap;overflow-wrap:anywhere}
.ps-notice{font-size:11px;color:var(--muted);line-height:1.5}
.ps-empty{text-align:center;padding:28px 8px;color:var(--muted);font-size:14px}
.practice-sheet-mobile .practice-actions{flex:none;display:grid;grid-template-columns:1fr 2fr;gap:10px;padding:12px 14px;margin:0;border-top:1px solid var(--line);background:var(--surface)}
.practice-sheet-mobile .practice-actions button{min-height:46px;min-width:0;font-size:13px}
.practice-sheet-mobile [data-download-sheet]{display:flex;justify-content:space-between;align-items:center}
.practice-sheet-mobile [data-error]{flex:none;margin:0;padding:0 14px;font-size:12px}
.practice-sheet-mobile [data-error]:empty{display:none}
.ps-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pt-student.pt-student-pending{background:linear-gradient(110deg,var(--surface-raised),#ed901b40);border-color:#d88b3d99}
.pt-student-pending .pt-pending-label{margin:0 0 10px;font-size:12px;line-height:1.4;color:var(--ink);font-weight:600}
.pt-student-pending button{background:transparent;border-color:#d88b3d66}
.pt-expedient-pending{display:block;margin-top:4px;font-size:10px;color:var(--ink)}
.ps-lesson .ps-open-lesson{grid-column:1/-1;display:block;width:100%;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;font-weight:inherit;border-radius:8px}
.ps-open-lesson .ps-open-label{display:flex;justify-content:space-between;align-items:center;margin-top:4px;font-size:11px;font-weight:700;min-height:24px}
.ps-open-lesson:hover .ps-open-label{text-decoration:underline}
.ps-saved-signature{margin:16px 0}
.ps-saved-signature figcaption{font-size:13px;line-height:1.4}
.ps-saved-signature .practice-signature{margin:8px 0;pointer-events:none}
.practice-sheet-mobile .ps-official-pending{grid-column:1/-1;color:var(--muted);font-size:10px;line-height:1.4;text-align:center}
.exam-time-button{display:flex;width:100%;min-height:52px;justify-content:space-between;padding:10px 12px;background:var(--surface-raised);color:var(--ink);border:1px solid var(--line)}
.exam-time-button strong{font-size:18px;font-variant-numeric:tabular-nums}
.exam-time-button[aria-expanded=true]{border-color:var(--accent)}
.exam-time-picker{border:1px solid var(--line);border-radius:14px;padding:12px;margin:8px 0;background:var(--surface)}
.exam-time-picker[hidden]{display:none}
.exam-time-picker h3{font-size:15px;margin:0 0 10px}
.exam-time-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.exam-time-actions button{flex:1;min-height:44px;font-size:12px;padding:8px}
.exam-time-selection{display:flex;align-items:center;gap:10px;min-width:0}
.exam-time-selection>.field-grid,.exam-time-selection>.practice-time-wheels{flex:1;min-width:0}
.exam-clock-row{margin-bottom:16px}
.exam-clock-row>.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.exam-practice-total{flex:0 0 80px;text-align:center;padding:0;border:0;border-radius:0;background:transparent;color:var(--ink)}
[data-theme=dark] .exam-practice-total{color:#fff}
.exam-practice-total strong{display:inline;font-size:23px;font-variant-numeric:tabular-nums}
.exam-practice-total span{display:inline;font-size:12px;color:inherit}
.exam-practice-total small{display:block;font-size:10px;line-height:1.4;margin-top:4px;color:var(--muted)}
@media(max-width:400px){.exam-time-selection{gap:6px}.exam-practice-total{flex-basis:66px}.exam-clock-row .exam-time-button{padding:8px 5px}.exam-clock-row .exam-time-button strong{font-size:14px}.exam-clock-row .field>span{font-size:11px}}
.ps-summary .ps-payment strong{font-size:17px;white-space:normal;overflow-wrap:anywhere}
.practice-dialog .practice-new-teacher select[name=expedient_id]{font-size:18px;font-weight:600;min-height:50px}
.practice-dialog .practice-new-teacher select[name=expedient_id] option{font-size:18px;font-weight:500}
.practice-new-teacher .practice-student-picker{min-width:0;position:relative}
.practice-student-trigger,.practice-student-option{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-width:0;min-height:60px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-raised);color:var(--ink)}
.practice-student-trigger>span:last-child{flex:none;margin-left:auto}
.practice-student-copy{display:block;flex:1;min-width:0;overflow:hidden}
.practice-student-copy strong{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:18px;line-height:1.3}
.practice-student-copy small{display:block;font-size:12px;line-height:1.4;margin-top:3px;color:var(--muted)}
.practice-student-options{max-height: min(360px,45dvh);overflow-y:auto;overscroll-behavior:contain;margin-top:6px;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.practice-student-options[hidden]{display:none}
.practice-student-option{margin:0 0 4px;border-color:transparent}
.practice-student-option:last-child{margin-bottom:0}
.practice-student-option[aria-pressed="true"]{border-color:#94ce42;background:linear-gradient(110deg,#94ce4220,#94ce4240),var(--surface)}
.practice-student-option:focus-visible,.practice-student-trigger:focus-visible{outline:2px solid #94ce42;outline-offset:1px}
.practice-student-picker>select[hidden]{display:none}
.practice-picker-search{display:flex;align-items:stretch;min-width:0;width:100%;min-height:60px;border:1px solid var(--line);border-radius:10px;background:var(--surface-raised)}
.practice-picker-search:focus-within{border-color:#94ce42;box-shadow:0 0 0 1px #94ce4255}
.practice-picker-search-copy{flex:1;min-width:0;align-self:center;padding:9px 12px}
.practice-picker-search-copy input[type=search]{display:block;width:100%;min-width:0;min-height:30px;margin:0;padding:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;color:var(--ink);font-size:18px;font-weight:600;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}
.practice-picker-search-copy small{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
.practice-picker-search-copy small[hidden]{display:none}
.practice-picker-search .practice-student-trigger{flex:0 0 48px;width:48px;min-height:58px;padding:0;justify-content:center;border:0;border-left:1px solid var(--line);border-radius:0 9px 9px 0;background:transparent;font-size:23px}
.practice-picker-search .practice-student-trigger>span:last-child{margin:0}
.practice-picker-empty{padding:10px;margin:0;color:var(--muted)}
.exam-practice-total .exam-equivalent-unit{display:block;margin-top:3px;font-size:10px;line-height:1.3}
.exam-record-header{padding:14px;margin:0 0 14px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(120deg,#73dc031c,transparent 65%),var(--surface-raised)}
.exam-record-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.exam-record-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;background:#73dc0320;border:1px solid #73dc0340;border-radius:11px;color:var(--ink)}
.exam-record-title [data-exam-title]{flex:1;min-width:140px}
.practice-dialog .practice-new-teacher .exam-record-header h2{font-size:21px;letter-spacing:-.4px;margin:0;line-height:1.2}
.exam-record-title time{font-size:11px;font-weight:700;padding:6px 8px;border-radius:8px;background:var(--surface);color:var(--ink);white-space:nowrap}
.practice-dialog .practice-new-teacher .exam-record-teacher{font-size:12px;font-weight:600;margin:12px 0 8px;overflow-wrap:anywhere}
.exam-record-meta{display:flex;flex-wrap:wrap;gap:6px}
.exam-record-meta span{font-size:10px;border:1px solid var(--line);padding:4px 7px;border-radius:6px;color:var(--muted)}
.practice-dialog .practice-new-teacher .exam-record-plan{font-size:11px;color:var(--muted);margin:8px 0 0}
/* Exam record: same layout, clearer hierarchy and comfortable touch targets. */
.exam-record-form .exam-record-header{background:linear-gradient(125deg,#80d52925,transparent 72%),var(--surface-raised);border-color:#85b74740;box-shadow:inset 0 1px 0 #ffffff0b,0 6px 18px #0000000a}
.exam-record-form .exam-record-icon{background:linear-gradient(145deg,#9de23a35,#72b81b12);border-color:#99d94d55;box-shadow:inset 0 1px 0 #ffffff18}
.exam-record-form .exam-record-title time{padding:7px 9px;border:1px solid var(--line);font-variant-numeric:tabular-nums}
.exam-record-form .exam-record-meta span{background:var(--surface);border-radius:7px;padding:4px 8px}
.practice-dialog .exam-record-form button.exam-time-button{align-items:center;border-radius:12px;background:linear-gradient(145deg,#ffffff08,transparent),var(--surface-raised);color:var(--ink);box-shadow:inset 0 1px 0 #ffffff0b;transition:border-color .15s,background .15s}
.exam-record-form .exam-time-button:hover{border-color:#90c64799}
.exam-record-form .exam-time-button[aria-expanded=true]{border-color:var(--accent);background:linear-gradient(120deg,#8cce2920,transparent),var(--surface-raised)}
.exam-record-form .exam-practice-total strong{font-size:26px;letter-spacing:-.6px}
.exam-record-form .exam-trip-student{margin:0 0 10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(115deg,#84c7400a,transparent 75%),var(--surface-raised);gap:6px;box-shadow:inset 0 1px 0 #ffffff06}
.exam-record-form .exam-trip-student>strong{font-size:16px;line-height:1.35;letter-spacing:-.15px;overflow-wrap:anywhere}
.exam-record-form .exam-trip-student>small{font-size:12px;line-height:1.4;font-weight:600}
.exam-record-form .exam-trip-student>small.error-text{color:#9b381d}
[data-theme=dark] .exam-record-form .exam-trip-student>small.error-text{color:#ffb193}
.practice-dialog .exam-record-form .exam-trip-student .field{margin:3px 0 0}
.exam-record-form .exam-trip-student .field>span{font-size:12px;color:var(--muted);font-weight:600}
.practice-dialog .exam-record-form .exam-trip-student select{min-height:46px;border-radius:10px;background-color:var(--surface);color:var(--ink);font-size:14px;padding:10px 12px}
.practice-dialog .exam-record-form .practice-check{padding:9px 2px;margin:6px 0;line-height:1.45;font-size:12px;color:var(--muted);align-items:flex-start}
.exam-record-form .practice-check input{accent-color:var(--accent);margin-top:0}
.practice-dialog .exam-record-form>.practice-actions{display:flex;gap:10px;padding-top:12px;margin-top:4px;border-top:1px solid var(--line)}
.exam-record-form>.practice-actions button{min-height:46px;padding:11px 18px;border-radius:12px;font-size:13px}
.exam-record-form>.practice-actions .primary{background:linear-gradient(115deg,#b5ed54,#80d900);color:#142500;border-color:#97d93d;box-shadow:inset 0 1px 0 #ffffff40,0 3px 10px #00000012}
.exam-record-form button:focus-visible,.exam-record-form select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.exam-record-form .exam-time-button{transition:none}}
.exam-record-form .exam-trip-student[data-exam-result]{--result-fill:#283125;--result-edge:#59634e;background:linear-gradient(180deg,#ffffff04,transparent 35%),linear-gradient(115deg,#1c251f 8%,var(--result-fill) 100%);color:#f4f6f0;border-color:var(--result-edge);box-shadow:inset 3px 0 0 var(--result-edge),inset 0 1px 0 #ffffff0b,0 4px 12px #00000010}
.exam-record-form .exam-trip-student[data-exam-result=apto]{--result-fill:#29563b;--result-edge:#69aa78}
.exam-record-form .exam-trip-student[data-exam-result=no_apto],.exam-record-form .exam-trip-student[data-exam-result=no_presentado]{--result-fill:#673039;--result-edge:#c9747c}
.exam-record-form .exam-trip-student[data-exam-result=aplazado]{--result-fill:#775026;--result-edge:#df9b4c}
.exam-record-form .exam-trip-student[data-exam-result]>strong{color:#f4f6f0}
.exam-record-form .exam-trip-student[data-exam-result]>small,.exam-record-form .exam-trip-student[data-exam-result] .field>span{color:#e4e7df}
.exam-record-form .exam-trip-student[data-exam-result]>small.error-text{color:#ffd0c1}
.exam-record-form [data-result-note]{color:var(--muted);font-weight:400;font-size:11px}
.exam-record-form [data-result-note]:empty{display:none}

/* Shared mobile practice card: full-width name above status, permit and file. */
/* Teacher screens use the available viewport; inner lists own their scrolling. */
:root[data-theme="light"] .teacher-header .teacher-meta p{
 -webkit-text-stroke:.65px #455b24;paint-order:stroke fill;
 text-shadow:0 1px 1px #29440d30;filter:none;
}
body:has(.teacher-portal){margin:0;overflow:hidden;overscroll-behavior:none}
body:has(.teacher-portal) #app{width:100%;height:100dvh;margin:0;padding:0;max-width:none}
body:has(.teacher-portal) .teacher-portal{
 width:100%;max-width:none;height:100dvh;min-height:0;margin:0;padding:0;
 box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;
}
body:has(.teacher-portal) .teacher-portal>.teacher-header{flex:none;margin:8px 8px 0}
body:has(.teacher-portal) .teacher-portal>main#main{
 width:100%;max-width:none;min-width:0;min-height:0;flex:1;
 margin:0;padding:0;overflow:auto;
}
body:has(.teacher-portal) .teacher-portal>footer{display:none}
.teacher-portal .pm-calendar,.teacher-portal .pt-students,.teacher-portal .teacher-settings-page{
 width:100%;max-width:none;margin:0;border:0;border-radius:0;box-shadow:none;
 padding:12px;box-sizing:border-box;
}
body:has(.teacher-portal,.mj) #dialog[open]{
 position:fixed;inset:0;margin:0;box-sizing:border-box;
 width:100%;max-width:none;height:100dvh;max-height:100dvh;
 border:0;border-radius:0;box-shadow:none;padding:16px;overflow:auto;
}
body:has(.teacher-portal,.mj) #dialog.practice-sheet-mobile[open]{padding:0;overflow:hidden}

.mj-wheel > [data-lesson-index],.pm-event{
 --card-time-width:62px;--card-action-width:64px;
 height:94px;min-height:94px;
 grid-template-columns:minmax(0,1fr) var(--card-action-width);
 grid-template-rows:minmax(0,1fr) minmax(0,1fr);row-gap:0;
}
.mj-wheel .mj-open-practice,.mj-wheel .mj-open-practice:has(.mj-permit),
.pm-open-practice,.pm-open-practice:has(.pm-permit){
 grid-column:1/-1;grid-row:1/3;
 grid-template-columns:var(--card-time-width) minmax(0,1fr) auto var(--card-action-width);
 grid-template-rows:minmax(0,1fr) minmax(0,1fr);row-gap:0;min-height:0;
}
.mj-wheel .mj-time,.pm-event-time{grid-column:1;grid-row:1/3}
.mj-lesson-info,.pm-event-info{display:contents}
.mj-wheel .mj-lesson-info>strong,.pm-event-info>strong{
 grid-column:2/-1;grid-row:1;font-size:16px;line-height:1.15;
 align-self:center;padding-top:4px;min-width:0;
}
.mj-lesson-status,.pm-event-info>small{
 grid-column:2;grid-row:2;align-self:center;margin:0;min-width:0;
}
.mj-wheel .mj-permit,.pm-permit{grid-column:3;grid-row:2;align-self:center}
.mj-wheel .mj-view-student,.pm-view-student{
 grid-column:2;grid-row:2;align-self:stretch;min-height:0;
 position:relative;z-index:1;
}
.mj-wheel > [data-lesson-index]>.mj-card-arrow,.pm-event>.pm-card-arrow{
 grid-column:2;grid-row:2;justify-self:end;pointer-events:none;
}
@media(max-width:350px){
 .mj-wheel > [data-lesson-index],.pm-event{--card-time-width:50px;--card-action-width:58px}
 .mj-wheel .mj-lesson-info>strong,.pm-event-info>strong{font-size:15px}
}
