:root{color-scheme:dark;--paper:#101112;--surface:#191b1e;--surface-hover:#222427;--ink:#ededeb;--muted:#a4a4a1;--line:#303235;--gold:#a88d58;--gold-light:#c1aa79;--danger:#e2a6a0;--sans:'Segoe UI',Arial,sans-serif;--radius:8px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.55 var(--sans);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}button svg{pointer-events:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600;letter-spacing:-.025em;line-height:1.3}h1{font-size:32px}h2{font-size:22px}h3{font-size:16px}h1 em,h2 em{font-style:normal;color:var(--gold-light)}img,video{max-width:100%}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--gold-light);outline-offset:4px}input,select,textarea{color:var(--ink);background:#141618;border:1px solid #3a3c3e;border-radius:6px}input:not([type=range]):not([type=checkbox]),textarea{width:100%;min-height:48px;padding:12px 14px}input::placeholder,textarea::placeholder{color:#888b8e}select{min-height:48px;padding:11px 34px 11px 13px;max-width:100%}textarea{resize:vertical;min-height:96px}label{display:block;font-size:12px;font-weight:600}label>input,label>select,label>textarea,label>.password-field{margin-top:7px}form{margin:0}.muted{color:var(--muted)}.eyebrow{display:block;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-light)}.eyebrow.light{color:var(--gold-light)}.tiny{font-size:9px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:20px;z-index:1000;padding:12px 20px;background:var(--gold-light);color:#101112;border-radius:6px}.skip-link:focus{top:12px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:46px;padding:12px 18px;border:1px solid transparent;border-radius:6px;line-height:1.3;font-size:12px;font-weight:600;transition:background .16s,border-color .16s;color:var(--ink)}.button.primary,.button.gold{background:var(--gold);color:#101112}.button.primary:hover:not(:disabled),.button.gold:hover:not(:disabled){background:var(--gold-light)}.button.secondary{border-color:#424448;background:#1b1d20}.button.secondary:hover:not(:disabled){background:#27292c;border-color:#66635a}.button.danger{background:#332625;color:var(--danger);border-color:#61413e}.button.small{padding:10px 13px;min-height:44px;font-size:11px}.full{width:100%}.icon-button{display:inline-grid;place-items:center;background:transparent;border:0;color:inherit;width:44px;height:44px;padding:11px;border-radius:6px;flex:none;transition:background .16s}.icon-button:hover{background:#ffffff0d}.text-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 0;border:0;background:transparent;color:var(--muted);font-size:12px}.text-button:hover{color:var(--ink)}
.brand{display:flex;align-items:center;gap:11px;font-size:15px;font-weight:600;letter-spacing:-.025em;white-space:nowrap}.brand small{display:block;font-size:7px;font-weight:500;letter-spacing:.12em;color:var(--muted);margin-top:4px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:36px;height:38px;border:1px solid #746241;border-radius:3px;color:var(--gold-light);font:22px Georgia,serif;letter-spacing:-.15em;padding-right:3px;flex:none}.brand-mark span{position:relative;top:4px;font-size:17px}.brand-light{color:var(--ink)}.boot{min-height:100dvh;display:grid;align-content:center;justify-items:center;gap:20px;color:var(--muted)}.boot p{font-size:12px}.loading-dots{animation:breathe 1s infinite}
.auth-layout{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px}.auth-story{width:100%;max-width:420px;padding:0 0 26px}.auth-story .brand{justify-content:center;font-size:18px}.auth-story .brand small{font-size:8px}.auth-editorial,.auth-architecture,.auth-foot{display:none}.auth-main{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:30px}.auth-form-wrap{width:100%;margin:auto}.auth-form-wrap h2{font-size:28px;margin:8px 0 9px}.auth-intro{font-size:12px;line-height:1.7;margin-bottom:24px}.form-stack{display:grid;gap:17px}.password-field{position:relative}.password-field input{padding-right:52px!important;margin:0}.password-field button{position:absolute;right:2px;top:2px;color:var(--muted)}.form-note{display:flex;align-items:flex-start;gap:9px;font-size:11px;color:var(--muted);line-height:1.6;font-weight:400}.form-note svg{width:16px;height:16px;margin-top:2px;color:var(--gold-light)}.auth-small{margin-top:22px;padding-top:19px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);text-align:center}.auth-small a:hover{text-decoration:underline;text-underline-offset:3px}.message{padding:12px 13px;font-size:12px;line-height:1.6;border-radius:6px;overflow-wrap:anywhere}.message.error{background:#322323;color:var(--danger)}.message.info{background:#29261f;color:#dbc89f}.status-seal{display:grid;place-items:center;width:48px;height:48px;border:1px solid #66583e;border-radius:50%;color:var(--gold-light);margin-bottom:22px}.status-seal svg{width:24px;height:24px}.pending-card{display:flex;gap:14px;align-items:center;background:#131517;border:1px solid var(--line);padding:17px;margin:22px 0;border-radius:6px}.pending-card strong{font-size:12px}.pending-card small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.status-dot{width:8px;height:8px;background:var(--gold);border-radius:50%;flex:none;animation:breathe 2s infinite}#pending-panel>.muted{font-size:13px}#pending-back{margin:8px auto 0;display:flex}
.site-header{min-height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;padding:12px max(calc((100vw - 1192px)/2),24px);background:#141618}.site-header .brand{margin-right:auto}.site-header nav{display:flex;gap:5px}.nav-button{background:transparent;border:1px solid transparent;border-radius:6px;color:var(--muted);font-size:12px;padding:10px 16px;min-height:44px}.nav-button:hover{background:#ffffff05}.nav-button.active{color:var(--gold-light);background:#25231e;border-color:#4a402d}.header-account{display:flex;align-items:center;gap:10px}.account-name{font-size:11px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-page,.admin-page{max-width:1240px;padding:0 24px 60px;margin:auto}.library-page:not([hidden]),.player-page:not([hidden]),.admin-page:not([hidden]){animation:view-in .18s ease-out}.welcome{padding:32px 0 20px}.welcome h1{margin:6px 0 8px}.welcome p{font-size:13px;color:var(--muted)}.welcome-note{display:none}.summary-strip{display:flex;gap:26px;padding-bottom:22px;margin-bottom:24px;border-bottom:1px solid var(--line)}.summary-item{display:flex;align-items:baseline;gap:7px;min-width:0}.summary-value{font-size:16px;font-weight:600;white-space:nowrap}.summary-label{color:var(--muted);font-size:11px;line-height:1.5}.continue-section{margin:0 0 28px}.continue-card{border:1px solid #4c4231;background:#1d1d1b;border-radius:8px;overflow:hidden}.continue-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:26px;padding:22px 24px;align-items:center}.continue-copy>.eyebrow,.continue-copy>h2,.continue-copy>p{grid-column:1}.continue-copy h2{font-size:20px;line-height:1.4;margin:6px 0}.continue-copy p{color:var(--muted);font-size:12px;margin:0}.continue-copy .button{grid-column:2;grid-row:1/4;align-self:center}.continue-art,.art-orbit,.art-corner{display:none}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.section-heading h2{font-size:20px;display:flex;align-items:center;gap:10px}.count-badge{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted);border:1px solid #414347;border-radius:20px;padding:3px 8px}.catalog-tools{display:flex;gap:9px;align-items:center}.catalog-tools select{font-size:12px;max-width:200px}.search-field{display:flex;align-items:center;background:#141618;border:1px solid #3a3c3e;border-radius:6px;max-width:230px;padding-left:12px;color:var(--muted)}.search-field svg{width:18px;height:18px}.search-field input{margin:0!important;border:0;padding:12px!important;font-size:12px;background:transparent;outline-offset:0}.lesson-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lesson-card{display:grid;grid-template-columns:104px minmax(0,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface);text-align:left;width:100%;padding:0;color:inherit;transition:background .16s,border-color .16s}.lesson-card:hover{background:#202225;border-color:#655b48}.lesson-art{height:84px;margin:16px 0 16px 16px;position:relative;overflow:hidden;background:#262729;display:flex;align-items:center;justify-content:center;border:1px solid #383837;border-radius:5px}.art-number{font-size:30px;font-weight:500;letter-spacing:-.055em;color:#aa946d;line-height:1}.art-duration{position:absolute;bottom:5px;right:5px;background:#101112d9;color:#d1d0ca;font-size:9px;padding:1px 4px;border-radius:3px}.art-play{position:absolute;display:grid;place-items:center;width:36px;height:36px;background:var(--gold-light);border-radius:50%;color:#101112;opacity:0;transition:opacity .16s}.art-play svg{width:15px;height:15px;fill:currentColor;stroke:none;margin-left:2px}.lesson-card:hover .art-play,.lesson-card:focus-visible .art-play{opacity:1}.lesson-card-body{padding:16px 17px;display:flex;flex-direction:column;min-width:0}.lesson-card .eyebrow{font-size:9px;margin-bottom:6px;letter-spacing:.07em}.lesson-card h3{font-size:14px;font-weight:600;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-foot{margin-top:auto;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted)}.card-foot span{display:flex;gap:5px;align-items:center}.card-foot svg{width:13px;height:13px}.card-progress{grid-column:1/-1}.empty-state{padding:38px 20px;text-align:center;border:1px dashed #434343;border-radius:8px;background:#17191b}.empty-state>svg{width:28px;height:28px;color:var(--gold);margin-bottom:14px}.empty-state h3{font-size:20px;margin-bottom:8px}.empty-state p{color:var(--muted);font-size:12px}.empty-state .button{margin-top:20px}.site-footer{display:flex;justify-content:space-between;gap:18px;padding:22px max(calc((100vw - 1192px)/2),24px);border-top:1px solid var(--line);color:var(--muted);font-size:10px}.site-footer a:hover{color:var(--ink)}.footer-dot{padding:0 8px;color:var(--gold)}
.player-page{max-width:1450px;margin:auto;padding:18px 24px 60px}.player-breadcrumb{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.player-breadcrumb .eyebrow{font-size:9px}.watch-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.watch-primary{min-width:0}.video-shell{background:#090a0b;position:relative;overflow:hidden;border:1px solid #303235;border-radius:8px;color:var(--ink)}.player-stage{position:relative;aspect-ratio:16/9;background:#080909;min-width:0}.player-stage video{display:block;width:100%;height:100%;background:#080909;object-fit:contain}.player-start{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;border:1px solid #b29b6b;border-radius:50%;background:#171819df;color:var(--gold-light);transition:background .16s}.player-start:hover{background:#32302b}.player-start svg{width:25px;height:25px;fill:currentColor;stroke:none;margin-left:3px}.video-controls{position:relative;padding:0 10px 8px;background:#181a1c;border-top:1px solid #303235}.seek-line{height:31px;display:flex;align-items:center}.seek-line input{width:100%;margin:0}.control-row{display:flex;align-items:center;gap:2px;min-height:44px}.video-controls .icon-button{width:44px;height:44px;padding:11px}.video-controls .icon-button:hover{background:#ffffff10}.video-controls select{color:#e5e5e1;background:#222427;border:1px solid #37393c;font-size:12px;min-height:44px;padding:8px 5px;margin:0 2px;max-width:76px;cursor:pointer}.video-controls select option{background:#202225}.video-time{font-size:11px;color:#b9b9b5;white-space:nowrap;padding:0 6px;font-variant-numeric:tabular-nums}.volume-control{display:flex;align-items:center;gap:3px;margin-left:2px;min-width:0}.volume-control input{width:55px;min-width:0}.control-spacer{flex:1}input[type=range]{accent-color:var(--gold-light);height:44px;cursor:pointer;border:0;padding:0;background:transparent}.video-loading{position:absolute;inset:0;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;background:#090a0b99;font-size:12px;pointer-events:none;z-index:2}.spinner{display:block;width:28px;height:28px;border:2px solid #ffffff30;border-top-color:var(--gold-light);border-radius:50%;animation:spin 1s linear infinite}.video-error{position:absolute;inset:15% 8% auto;padding:18px;background:#1e1f21f5;border:1px solid #6f5d3b;color:#e5d6b8;font-size:12px;line-height:1.7;text-align:center;border-radius:6px;z-index:3}.video-shell:fullscreen{display:flex;flex-direction:column;width:100vw;height:100dvh;border:0;border-radius:0}.video-shell:fullscreen .player-stage{flex:1;min-height:0;aspect-ratio:auto}.video-shell:fullscreen video{height:100%;width:100%;aspect-ratio:auto}.video-shell:fullscreen .video-controls{flex:none;padding-bottom:max(8px,env(safe-area-inset-bottom));padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.lesson-detail{padding:23px 0 22px;border-bottom:1px solid var(--line)}.lesson-detail h1{font-size:25px;line-height:1.35;margin:8px 0 12px}.lesson-detail>p{font-size:13px;line-height:1.75;color:var(--muted);max-width:760px;white-space:pre-line}.lesson-detail-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;font-size:11px;color:var(--muted)}.lesson-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lesson-actions .button{font-size:11px;padding:10px 13px;min-height:44px}.lesson-actions svg{width:17px;height:17px}.keyboard-hint{display:flex;flex-wrap:wrap;gap:15px;font-size:10px;color:#939493;margin-top:16px}.keyboard-hint span{display:flex;align-items:center;gap:5px}kbd{font:10px var(--sans);padding:2px 5px;border:1px solid #3b3d3f;border-radius:3px}.watch-sidebar{border:1px solid var(--line);background:var(--surface);border-radius:8px;overflow:hidden}.sidebar-heading{padding:18px;border-bottom:1px solid var(--line)}.sidebar-heading h2{font-size:18px}.sidebar-heading .eyebrow{font-size:9px;margin-bottom:5px}.playlist{max-height:620px;overflow-y:auto}.playlist-item{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;padding:16px;border:0;border-bottom:1px solid #2c2e30;background:transparent;color:var(--ink);min-height:70px}.playlist-item:last-child{border-bottom:0}.playlist-item:hover{background:#242629}.playlist-item.active{background:#28261f;box-shadow:inset 3px 0 var(--gold)}.playlist-number{font-size:10px;color:#9e9f9d;min-width:22px;margin-top:3px}.playlist-item.active .playlist-number{color:var(--gold-light)}.playlist-number svg{width:16px;height:16px}.playlist-title{display:block;font-size:12px;line-height:1.55;font-weight:600}.playlist-sub{display:block;color:var(--muted);font-size:10px;margin-top:6px}
.admin-heading{padding:30px 0 24px;display:flex;justify-content:space-between;align-items:center;gap:20px}.admin-heading h1{margin:0 0 8px}.admin-heading p{font-size:13px}.admin-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.admin-tabs>button{padding:12px 1px 14px;min-height:48px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);white-space:nowrap;font-size:12px}.admin-tabs>button.active{color:var(--gold-light);border-bottom-color:var(--gold);font-weight:600}.small-count{background:var(--gold);border-radius:20px;color:#101112;font-size:10px;padding:2px 5px;margin-left:6px}.admin-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:22px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:24px;margin-bottom:22px;min-width:0}.panel h2{font-size:21px;margin-bottom:8px}.panel>.muted{font-size:12px;margin-bottom:22px;line-height:1.7}.panel h3{margin-bottom:14px}.panel .form-stack{gap:16px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-row label{min-width:0}.form-row input,.form-row select{width:100%}.admin-lesson-list{max-height:400px;overflow:auto;border-top:1px solid var(--line)}.admin-lesson-item{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.admin-lesson-item strong{font-size:12px;font-weight:600;display:block}.admin-lesson-item small{font-size:10px;color:var(--muted)}.quality-badge{display:inline-block;font-size:9px;font-weight:600;padding:4px 7px;border:1px solid #605337;border-radius:4px;color:var(--gold-light);white-space:nowrap;align-self:center}.quality-badge.empty{border-color:#494a4b;color:var(--muted)}.upload-drop{position:relative;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;border:1px dashed #59554c;border-radius:6px;background:#141618;padding:22px}.upload-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-drop:focus-within{outline:2px solid var(--gold-light);outline-offset:3px}.upload-drop>svg{width:26px;height:26px;color:var(--gold-light)}.upload-drop strong{font-size:12px;max-width:100%;overflow-wrap:anywhere}.upload-drop span,.upload-help{font-size:11px;color:var(--muted)}.upload-help{line-height:1.7}.upload-status{padding:13px;border:1px solid var(--line);border-radius:6px;background:#141618}.upload-status progress{display:block;width:100%;height:6px;accent-color:var(--gold)}.upload-status p{font-size:11px;color:var(--muted);margin-top:9px}.drive-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.drive-heading h2{font-size:21px;margin-bottom:7px}.drive-heading p{font-size:12px}.account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.drive-card{padding:22px;border:1px solid var(--line);border-radius:8px;background:var(--surface);min-width:0}.drive-card>svg{color:var(--gold-light);margin-bottom:14px}.drive-card h3{font-size:15px;margin-bottom:5px}.drive-card .email{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.storage-labels{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin:20px 0 8px}.storage-labels strong{color:var(--ink);font-weight:500}.account-status{font-size:10px;color:var(--muted);margin-top:10px}.drive-actions{margin-top:16px}.drive-actions .button svg{width:15px;height:15px}.access-section{margin-bottom:27px}.access-section h3{font-size:15px;margin-bottom:13px}.access-row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:15px 0}.access-identity{display:flex;align-items:center;gap:13px;min-width:0}.access-identity>svg{color:var(--gold-light);width:22px}.access-identity strong{font-size:12px;display:block;overflow-wrap:anywhere}.access-identity small{display:block;font-size:10px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.row-actions{display:flex;gap:7px;flex:none}.advanced-form{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.advanced-form summary{cursor:pointer;min-height:44px;color:var(--gold-light);font-size:12px}.advanced-form>p{font-size:11px;color:var(--muted);margin:10px 0 18px}.empty-inline{font-size:12px;color:var(--muted);padding:19px 0}.load-error{padding:22px;border:1px solid #61413e;background:#292122;border-radius:8px;color:var(--danger);font-size:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;max-width:calc(100vw - 32px);padding:13px 20px;background:#e4d4b2;color:#161718;border:1px solid #c8b17e;border-radius:7px;font-size:12px;text-align:center}.noscript-message{padding:30px;text-align:center;color:var(--gold-light)}
progress.card-progress,progress.storage-track{display:block;width:100%;border:0;border-radius:0;appearance:none;background:#303236;accent-color:var(--gold)}progress.card-progress{height:2px}progress.storage-track{height:4px}progress.card-progress::-webkit-progress-bar,progress.storage-track::-webkit-progress-bar{background:#303236}progress.card-progress::-webkit-progress-value,progress.storage-track::-webkit-progress-value{background:var(--gold)}progress.card-progress::-moz-progress-bar,progress.storage-track::-moz-progress-bar{background:var(--gold)}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes breathe{50%{opacity:.5}}@keyframes view-in{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.watch-layout{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.volume-control input{width:40px}.video-time{font-size:10px;padding:0 3px}.account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-name{display:none}}
@media(max-width:960px){.watch-layout{grid-template-columns:1fr}.watch-sidebar{margin-top:2px}.playlist{max-height:340px}.video-time{font-size:11px}.volume-control input{width:65px}.admin-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;gap:16px;flex-direction:column}.catalog-tools{width:100%}.search-field{max-width:none;flex:1}.catalog-tools select{max-width:240px}.video-controls select{margin-left:4px}.keyboard-hint{gap:12px}}
@media(max-width:700px){.site-header{padding:12px 18px 10px;gap:10px;flex-wrap:wrap}.site-header .brand{font-size:14px}.site-header .brand small{font-size:6px}.site-header nav{order:3;width:100%;margin-top:4px}.nav-button{flex:1;min-height:44px;padding:8px 14px}.header-account{gap:0}.library-page,.admin-page{padding:0 18px 42px}.welcome{padding:25px 0 18px}.welcome h1{font-size:29px}.welcome p{font-size:12px}.summary-strip{gap:20px;padding-bottom:19px;margin-bottom:20px}.summary-item{display:block;flex:1}.summary-value{display:block;font-size:17px}.summary-label{font-size:10px}.continue-section{margin-bottom:24px}.continue-copy{padding:20px;column-gap:18px}.continue-copy h2{font-size:18px}.continue-copy .button{padding:12px 14px;font-size:11px}.section-heading h2{font-size:20px}.lesson-grid{grid-template-columns:1fr}.lesson-card{grid-template-columns:95px minmax(0,1fr)}.lesson-art{margin:14px 0 14px 14px;height:77px}.lesson-card-body{padding:14px 15px}.lesson-card h3{font-size:14px}.site-footer{padding:20px 18px;font-size:9px;flex-wrap:wrap;gap:9px}.player-page{padding:10px 18px 40px}.player-breadcrumb{margin-bottom:10px}.player-breadcrumb .eyebrow{display:none}.lesson-detail h1{font-size:23px}.lesson-detail-foot{align-items:flex-start;flex-direction:column;gap:14px}.lesson-actions{width:100%}.keyboard-hint{display:none}.admin-heading{padding:25px 0 20px;align-items:flex-start}.admin-heading h1{font-size:29px}.admin-heading p{font-size:12px}.admin-heading .button{padding:10px 13px}.admin-tabs{gap:22px}.panel{padding:20px;margin-bottom:18px}.panel h2{font-size:20px}.drive-heading{align-items:flex-start;flex-direction:column}.account-grid{grid-template-columns:1fr}.drive-card{padding:20px}.access-row{align-items:flex-start;flex-direction:column;gap:12px}.row-actions{align-self:flex-end}.toast{bottom:16px;width:max-content;max-width:calc(100vw - 32px)}}
@media(max-width:560px){.auth-layout{padding:28px 20px;justify-content:flex-start}.auth-story{padding:5px 0 25px}.auth-story .brand{font-size:17px}.auth-main{border:0;background:transparent;padding:0;max-width:360px}.auth-form-wrap h2{font-size:27px}.auth-intro{margin-bottom:23px}.auth-small{margin-top:24px}.auth-layout input,.auth-layout select,.admin-page input,.admin-page select,.admin-page textarea{font-size:16px}.continue-copy{display:block;padding:19px}.continue-copy h2{font-size:18px}.continue-copy p{font-size:11px}.continue-copy .button{width:100%;margin-top:16px}.catalog-tools{display:grid;grid-template-columns:1fr;gap:8px}.catalog-tools select{width:100%;max-width:none;font-size:14px}.search-field{width:100%}.search-field input{font-size:16px}.lesson-card{grid-template-columns:83px minmax(0,1fr)}.lesson-art{height:72px;margin:13px 0 13px 12px}.art-number{font-size:27px}.lesson-card-body{padding:13px 12px}.lesson-card .eyebrow{font-size:8px}.lesson-card h3{font-size:13px}.card-foot{font-size:9px;padding-top:9px}.player-page{padding-left:0;padding-right:0}.player-breadcrumb{padding:0 18px}.video-shell{border-radius:0;border-left:0;border-right:0}.video-controls{padding:0 9px 8px}.seek-line{height:30px}.control-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:44px 44px;gap:3px 0}.video-controls .icon-button{width:44px;height:44px;justify-self:center}.video-controls #play-pause{grid-column:1;grid-row:1}.video-controls #skip-back{grid-column:2;grid-row:1}.video-controls #skip-forward{grid-column:3;grid-row:1}.video-time{grid-column:4/7;grid-row:1;justify-self:end;padding:0 7px;font-size:11px}.volume-control{grid-column:1/3;grid-row:2;gap:0;margin:0;width:100%}.volume-control .icon-button{flex:none}.volume-control input{width:calc(100% - 49px)}.video-controls #speed{grid-column:3/5;grid-row:2;justify-self:center;min-width:69px;margin:0}.video-controls #quality{grid-column:5;grid-row:2;margin:0;font-size:10px;max-width:100%;padding:5px 1px}.video-controls #fullscreen{grid-column:6;grid-row:2}.video-controls #pip,.control-spacer{display:none!important}.player-start{width:58px;height:58px}.lesson-detail{padding:21px 18px}.lesson-detail h1{font-size:22px}.lesson-detail>p{font-size:12px}.lesson-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lesson-actions .button{font-size:11px;padding:10px 8px}.lesson-actions .button:only-child{grid-column:1/-1}.watch-sidebar{margin:0 18px}.watch-layout{gap:22px}.sidebar-heading{padding:16px}.sidebar-heading h2{font-size:18px}.playlist-item{padding:16px}.admin-tabs{gap:17px}.admin-tabs>button{font-size:11px}.form-row{grid-template-columns:1fr;gap:16px}.admin-heading .button{font-size:11px}.admin-heading .button svg{width:16px;height:16px}.panel{padding:18px}.row-actions .button{padding:10px 12px}.video-shell:fullscreen .video-controls{padding-bottom:max(8px,env(safe-area-inset-bottom))}}
@media(max-width:360px){.site-header,.library-page,.admin-page{padding-left:14px;padding-right:14px}.brand{gap:8px}.site-header .brand{font-size:13px}.brand small{letter-spacing:.08em}.summary-strip{gap:12px}.summary-value{font-size:15px}.summary-label{font-size:9px}.lesson-card{grid-template-columns:74px minmax(0,1fr)}.lesson-art{height:66px;margin-left:10px}.lesson-card-body{padding-left:11px;padding-right:10px}.card-foot{gap:4px}.art-duration{font-size:8px}.lesson-actions{grid-template-columns:1fr}.admin-heading{gap:10px}.admin-heading p{font-size:11px}.admin-tabs{gap:13px}.video-controls{padding-left:5px;padding-right:5px}.video-time{font-size:10px;padding:0 4px}.site-footer{padding-left:14px;padding-right:14px}}
@media(orientation:landscape) and (max-height:560px){.video-shell:fullscreen .video-controls{padding-top:0}.video-shell:fullscreen .seek-line{height:22px}.video-shell:fullscreen .control-row{display:flex;min-height:44px;gap:3px}.video-shell:fullscreen .volume-control{width:auto;margin-left:0}.video-shell:fullscreen .volume-control input{width:50px}.video-shell:fullscreen .video-time{margin-right:auto;padding:0 5px}.video-shell:fullscreen #speed,.video-shell:fullscreen #quality{min-width:0;max-width:76px}.video-shell:fullscreen #speed{margin-left:0}.video-shell:fullscreen .video-controls #fullscreen{margin-left:auto}.video-shell:fullscreen .player-start{width:54px;height:54px}.auth-layout{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Resume action remains a sibling of the text so the whole row stays compact. */
.continue-card{display:flex;align-items:center;gap:24px;padding:22px 24px}.continue-copy{display:block;flex:1;min-width:0;padding:0}.continue-card>.button{flex:none}.drive-card>p{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:700px){.continue-card{padding:20px;gap:18px}}
@media(max-width:560px){.continue-card{display:block;padding:19px}.continue-copy{padding:0}.continue-card>.button{width:100%;margin-top:16px}}
.seek-feedback{position:absolute;top:50%;transform:translateY(-50%);z-index:4;display:block;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:rgba(255,243,213,.76);font-size:30px;font-weight:600;line-height:1.2;letter-spacing:-.035em;text-shadow:0 1px 3px #0009;pointer-events:none;user-select:none;animation:none}.seek-feedback[data-side=left]{left:18%}.seek-feedback[data-side=right]{right:18%}
.video-shell.is-seek-feedback #video-loading,.video-shell.is-seek-feedback #player-start{display:none!important}
.video-loading.is-seek-loading{background:transparent;color:rgba(255,243,213,.76);text-shadow:0 1px 3px #0009;gap:0}
.video-loading.is-seek-loading .spinner{display:none}
@media(max-width:560px){.seek-feedback{font-size:26px}}
.player-stage video{touch-action:manipulation}
/* Fullscreen video fills the viewport; overlaid controls stay clear of hardware cutouts. */
body.has-fallback-fullscreen{overflow:hidden;overscroll-behavior:none}
body.has-fallback-fullscreen .player-page{animation:none;transform:none}
.video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen){display:flex;flex-direction:column;justify-content:flex-start;width:100vw;height:100vh;height:100svh;height:100dvh;min-width:0;min-height:0;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#000;overflow:hidden;isolation:isolate}
.video-shell.is-fallback-fullscreen{position:fixed;inset:0;z-index:10000;overscroll-behavior:contain}
.video-shell::backdrop{background:#000}
.video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .player-stage{position:absolute;inset:0;flex:none;width:100%;height:100%;min-width:0;min-height:0;max-height:none;aspect-ratio:auto;margin:0;padding:0;border:0;border-radius:0;background:#000;overflow:hidden}
.video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .player-stage video{width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;background:#000;border:0;border-radius:0}
.video-shell.is-fill:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .player-stage video{object-fit:cover}
.video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .video-controls{position:absolute;left:0;right:0;bottom:0;z-index:5;flex:none;min-width:0;margin:0;border:0;border-radius:0;background:linear-gradient(transparent,rgba(0,0,0,.8) 28%,rgba(0,0,0,.94));padding:22px 10px 8px;transition:opacity .18s,transform .18s;padding-right:max(10px,env(safe-area-inset-right,0px));padding-bottom:max(8px,env(safe-area-inset-bottom,0px));padding-left:max(10px,env(safe-area-inset-left,0px))}
.video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .video-error{left:max(8%,env(safe-area-inset-left,0px));right:max(8%,env(safe-area-inset-right,0px));top:max(15%,env(safe-area-inset-top,0px))}
.video-controls #video-fit{width:44px;height:44px;flex:none}
.video-controls #video-fit[aria-pressed=true]{color:var(--gold-light);background:#a88d5826}
.video-controls #video-fit:disabled{cursor:default;opacity:.4}
@media(max-width:560px){
  .video-controls #video-fit{grid-column:5;grid-row:2;justify-self:center}
  .video-controls #quality:not([hidden]){grid-column:4/6;grid-row:3;justify-self:end;min-width:76px;margin:3px 0 0;min-height:44px}
}
@media(orientation:landscape) and (max-height:560px){
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .seek-line{height:22px}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .control-row{display:flex;min-height:44px;gap:2px}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .volume-control{width:auto;margin-left:0;gap:0}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .volume-control input{width:48px}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .video-time{margin-right:auto;padding:0 5px;font-size:11px}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) #speed,.video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) #quality{min-width:0;max-width:76px;margin:0 2px;padding:8px 4px}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .video-controls #fullscreen{margin-left:0}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .player-start{width:54px;height:54px}
}
@media(orientation:landscape) and (max-height:560px) and (max-width:700px){
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .volume-control input{display:none}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .video-time{font-size:10px;padding:0 3px}
}
.video-shell.controls-hidden:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .video-controls:not(:has(:focus-visible)){opacity:0;pointer-events:none;transform:translateY(8px)}
.video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .video-controls:has(:focus-visible){opacity:1;pointer-events:auto;transform:none}
/* Wrapping also keeps the extra fit control usable in narrow tablet layouts. */
.video-controls .control-row{flex-wrap:wrap}
/* A clear outline play affordance; the transparent target remains easy to tap. */
#player-start{width:76px;height:76px;padding:12px;border:0;border-radius:0;background:transparent;color:#f2cf7f;box-shadow:none;transition:color .16s,opacity .16s}
#player-start:hover{background:transparent;color:#ffe5a8}
#player-start svg{width:48px;height:48px;margin-left:4px;fill:none;stroke:currentColor;stroke-width:1.7;filter:drop-shadow(0 1px 3px #0009)}
#player-start:focus-visible{outline:2px solid #f2cf7f;outline-offset:3px;border-radius:5px}
.video-shell.is-loading #player-start,#video-loading:not([hidden])~#player-start{display:none!important}
.seek-line{position:relative;min-width:0}
.seek-tooltip{position:absolute;left:42px;bottom:calc(100% + 3px);z-index:8;display:block;min-width:48px;max-width:84px;padding:5px 9px;border:1px solid #78643f;border-radius:5px;background:#191a1cf2;color:#ead3a1;font-size:11px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;transform:translateX(-50%);pointer-events:none;user-select:none}
/* Native dialog supplies focus containment, Escape handling and the modal backdrop. */
.confirm-dialog{width:calc(100% - 32px);max-width:390px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid #57503f;border-radius:12px;background:#191b1e;color:var(--ink);text-align:center;overflow:auto}
.confirm-dialog::backdrop{background:#08090bcc;backdrop-filter:blur(3px)}
.confirm-dialog[open]{animation:dialog-in .16s ease-out}
.confirm-icon{display:inline-grid;place-items:center;width:44px;height:44px;margin:0 auto 15px;color:#d7b66c}
.confirm-icon svg{width:36px;height:36px;stroke-width:1.5}
.confirm-dialog h2{font-size:22px;line-height:1.35;margin:0 0 11px}
.confirm-dialog p{font-size:13px;line-height:1.75;color:var(--muted);margin:0;overflow-wrap:anywhere}
.dialog-actions{display:flex;gap:10px;margin-top:24px}
.dialog-actions>.button{flex:1;min-width:0;min-height:46px;padding:12px 14px}
.credentials-form,#user-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 15px;min-width:0}
.credentials-form>label,#user-form>label{min-width:0}
.credentials-form>.button,.credentials-form>.message,.credentials-form>.form-note,.credentials-form>.muted,#user-form>.button,#user-form>.message,#user-form>.form-note{grid-column:1/-1}
.owner-credentials-panel{border-color:#4d4433}
.owner-credentials-panel .credentials-form{margin-top:21px}
.owner-credentials-panel .credentials-form .button{justify-self:start;min-width:160px}
.site-footer{flex-direction:column;justify-content:center;align-items:center;gap:1px;padding:19px 18px 12px;text-align:center}
.footer-signature{font:italic 500 16px/1.5 Georgia,'Times New Roman',serif;letter-spacing:.04em;color:#bca574}
.site-footer>a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:4px 8px;font-size:10px;color:#91928e;text-underline-offset:4px}
.site-footer>a:hover{color:var(--gold-light);text-decoration:underline}
@keyframes dialog-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:560px){
  #player-start{width:68px;height:68px;padding:11px}
  #player-start svg{width:43px;height:43px}
  .seek-tooltip{font-size:11px;bottom:calc(100% + 2px)}
  .credentials-form,#user-form{grid-template-columns:1fr;gap:17px}
  .owner-credentials-panel .credentials-form .button{justify-self:stretch;width:100%;min-width:0}
  .confirm-dialog{padding:25px 22px;max-width:360px}
  .confirm-dialog h2{font-size:21px}
  .dialog-actions{gap:9px;margin-top:23px}
  .site-footer>a{min-height:44px}
}
@media(max-width:360px){.confirm-dialog{padding:23px 18px}.dialog-actions>.button{font-size:12px;padding:12px 9px}}
.owner-credentials-panel summary{min-height:44px;padding:7px 0;font-size:18px;font-weight:600;line-height:1.5;cursor:pointer;list-style-position:inside}
.owner-credentials-panel summary::marker{color:var(--gold-light);font-size:11px}
.owner-credentials-panel details>.muted{margin-top:7px;font-size:12px;line-height:1.7}
/* Give volume a useful travel distance without squeezing mobile touch buttons. */
.video-controls .volume-control input{width:96px;flex:0 1 96px;min-width:0}
@media(max-width:1100px){.video-controls .volume-control input{width:80px;flex-basis:80px}}
@media(max-width:560px){
  .video-controls .volume-control{grid-column:1/4;padding-right:10px}
  .video-controls .volume-control input{width:0;flex:1 1 0;min-width:0}
  .video-controls #speed{grid-column:4;min-width:0;max-width:100%;width:100%;padding:8px 2px;font-size:11px}
}
@media(orientation:landscape) and (max-height:560px){
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .volume-control{padding-right:0;flex:0 1 auto}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .volume-control input{display:block;width:80px;flex:0 1 80px;min-width:32px}
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) #speed{width:auto}
}
@media(orientation:landscape) and (max-height:560px) and (max-width:700px){
  .video-shell:is(:fullscreen, :-webkit-full-screen, .is-fallback-fullscreen) .volume-control input{width:60px;flex-basis:60px}
}
/* Source descriptions stay literal, readable and independently scrollable. */
#player-description{max-width:none;max-height:24rem;max-height:min(48dvh,24rem);margin-top:17px;padding:17px 19px;border:1px solid var(--line);border-radius:8px;background:#17191b;color:#b9b9b4;font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#62583f #202225}
#player-description a{color:#d7bd85;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
#player-description a:hover{color:#f0d8a5}
#player-description a:focus-visible{outline-offset:3px}
@media(max-width:560px){#player-description{padding:15px;max-height:21rem;max-height:min(46dvh,21rem);font-size:13px}#player-description a{display:inline-block;max-width:100%;min-height:32px;padding:3px 0;vertical-align:baseline}}
