*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#09131b;color:#eaf0ee;font:15px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,72px);border-bottom:1px solid #293742;background:#0c1822}.brand{font-size:22px;font-weight:800;letter-spacing:.06em}.brand b{color:#e8c383}.brand:first-letter{font-size:33px;color:#d7b477}.top-right{display:flex;gap:16px;align-items:center}.top-right select{color:#f0e9da;background:#172632;border:1px solid #385060;padding:10px;border-radius:9px}.version,.muted{color:#98a9b1}.version{font-size:12px}.entry{min-height:calc(100vh - 76px);display:grid;grid-template-columns:1fr 1.1fr;align-items:center;max-width:1280px;margin:auto;padding:45px 32px;gap:60px}.entry-art{height:460px;border-radius:28px;background:radial-gradient(circle at 50% 55%,#40503c,#1a2d30 45%,#0c1a25 80%);display:grid;place-items:center;position:relative;overflow:hidden;box-shadow:0 20px 80px #0005;border:1px solid #4a5143}.entry-art:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 90%,#ffffff08 91%),linear-gradient(90deg,transparent 90%,#ffffff08 91%);background-size:45px 45px;transform:perspective(500px) rotateX(50deg) scale(1.5)}.chess-piece{font-size:270px;line-height:1;color:#f3dfb8;text-shadow:0 4px #b09a74,0 14px 7px #0007,0 34px 25px #0008;z-index:1}.eyebrow{font-size:11px;letter-spacing:.24em;color:#dcb879;font-weight:800}.entry h1{font-size:clamp(40px,5vw,74px);line-height:1.1;letter-spacing:-.05em;margin:22px 0}.entry-content>p{max-width:580px}.notice{color:#dfc6a0}.entry-actions{display:flex;flex-wrap:wrap;gap:12px;margin:32px 0}.btn{border:1px solid #465866;background:#1d303c;color:#f3f3ee;padding:12px 19px;border-radius:11px;font-weight:700;min-height:45px}.btn:hover{filter:brightness(1.12)}.btn:focus-visible,.lesson-row:focus-visible,.answer:focus-visible,.navitem:focus-visible{outline:3px solid #e8c383;outline-offset:3px}.btn.gold{background:linear-gradient(140deg,#efd3a0,#c99a52);color:#1c1a15;border-color:#e4bd79}.btn.outline{background:transparent;border-color:#ad8d58}.smallprint{font-size:12px}.app{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100vh - 76px)}.side{padding:28px 17px;border-right:1px solid #273b47;background:#101e29}.role-tag{padding:17px 12px;background:#1b303b;border-radius:12px;color:#e6c185;font-weight:700;margin-bottom:20px}.navitem{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:10px;color:#a9b9c1;padding:15px 14px;margin:5px 0;font-weight:650}.navitem:hover,.navitem.active{background:#294039;color:#e8d1a1}.logout{width:100%;margin-top:36px}.side-link{display:block;margin-top:18px;font-size:13px;color:#dfc28e}.workspace{min-width:0;padding:36px clamp(18px,4vw,64px);max-width:1500px;width:100%;margin:auto}.workspace-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.workspace h1{font-size:clamp(26px,3vw,38px);margin:8px 0}.demo-banner{border:1px solid #846e48;background:#302c23;color:#f4d4a0;padding:8px 12px;border-radius:9px;font-size:12px}.mini-stats{display:flex;flex-wrap:wrap;gap:12px;margin:25px 0}.mini-stats span{background:#182936;border:1px solid #2b404b;border-radius:9px;padding:8px 13px;font-size:12px;color:#b8c9ca}.topline{display:flex;align-items:baseline;justify-content:space-between}.learning-grid{display:grid;grid-template-columns:minmax(220px,330px) minmax(0,1fr);gap:24px;align-items:start}.catalog{max-height:70vh;overflow:auto;border:1px solid #30414a;border-radius:15px;background:#11232e;padding:9px}.lesson-row{display:block;text-align:left;width:100%;border:0;background:transparent;color:#bdcdd2;border-radius:9px;padding:12px 10px;min-height:46px}.lesson-row:hover,.lesson-row.chosen{background:#2c493e;color:#f2e1b5}.lesson-detail{border:1px solid #344650;background:linear-gradient(145deg,#192e37,#12212b);padding:clamp(22px,4vw,38px);border-radius:17px;box-shadow:0 15px 40px #0003}.lesson-detail h2{font-size:clamp(24px,3vw,36px);margin:10px 0 16px}.lesson-body{white-space:pre-line;color:#c8d4d4;line-height:1.85}.learning-tip{padding:15px;background:#283b36;border-left:3px solid #bfa06a;margin:24px 0;border-radius:5px}.answer-grid{display:grid;gap:11px;margin:20px 0}.answer{border:1px solid #445661;color:#e2e9e9;background:#20343e;text-align:left;padding:15px;border-radius:10px;min-height:52px}.answer:hover{border-color:#d9b779}.answer.correct{background:#24533c;border-color:#75bf92}.answer.incorrect{background:#57302e;border-color:#d37e75}.feedback{min-height:26px;font-weight:700}.feedback.success{color:#8de4a4}.feedback.error{color:#ff9b90}.tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:17px;margin-top:28px}.tile,.assignment,.stat{background:#162a35;border:1px solid #304651;border-radius:14px;padding:23px}.tile-icon{font-size:45px;color:#e8c383}.tile h3{margin:9px 0}.assignment-form{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0}.assignment-form input,.assignment-form select{background:#1b303b;border:1px solid #40535c;border-radius:10px;color:white;padding:12px;min-height:46px}.assignment-form input{flex:1;min-width:170px}.assignment-list{display:grid;gap:12px}.assignment{display:flex;align-items:center;justify-content:space-between;gap:14px}.assignment h3{margin:0}.assignment p{margin:3px 0}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:22px 0}.stat{display:flex;flex-direction:column;gap:7px}.stat strong{font-size:32px;color:#e8c383}.progress-track{height:13px;background:#263b45;border-radius:99px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#62c09d,#e2c17d);transition:width .2s}.completed-list{columns:2;margin:25px 0}.completed-list p{break-inside:avoid;color:#a9d4b8}.danger{color:#e6a9a3}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:850px){.entry{grid-template-columns:1fr}.entry-art{height:230px}.chess-piece{font-size:160px}.app{grid-template-columns:1fr}.side{display:flex;align-items:center;gap:8px;overflow:auto;padding:10px;border-right:0;border-bottom:1px solid #293c49}.role-tag{display:none}#sidebar{display:flex;gap:4px}.navitem{white-space:nowrap;padding:10px 12px;margin:0}.logout{width:auto;margin:0;white-space:nowrap}.side-link{display:none}.learning-grid{grid-template-columns:1fr}.catalog{display:flex;gap:6px;overflow-x:auto;max-height:none}.lesson-row{min-width:185px}.workspace{padding:25px 17px}.workspace-head{align-items:start;flex-direction:column}}@media(max-width:450px){.entry{padding:20px}.entry-actions .btn{width:100%}.topbar{padding:0 12px}.brand{font-size:16px}.top-right{gap:5px}.version{display:none}.stat-grid{grid-template-columns:1fr}.completed-list{columns:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
.academy-embed{display:block;width:100%;height:min(80vh,790px);min-height:510px;border:1px solid #415966;border-radius:16px;background:#0b1822;margin:16px 0 22px}.workspace .btn{margin-right:8px}@media(max-width:600px){.academy-embed{height:75vh;min-height:480px;border-radius:10px}}

.profile-name{color:#f0d5a5;font-size:13px}.demo-chooser{display:grid;gap:8px;max-width:410px}.demo-chooser select{padding:13px;background:#1b303b;color:white;border:1px solid #718080;border-radius:10px}.student-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.student-card{background:#152b35;border:1px solid #40515a;border-radius:16px;padding:23px}.student-card h3{margin:8px 0}.avatar{height:52px;width:52px;border-radius:50%;display:grid;place-items:center;background:#d8b77c;color:#15222a;font-weight:800}.student-card .btn{width:100%}@media(max-width:500px){.profile-name{font-size:11px;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* v0.16 reporting */
.report-table{margin:18px 0;overflow-x:auto;border:1px solid rgba(255,255,255,.12);border-radius:14px}
.report-row{display:grid;grid-template-columns:minmax(135px,1.5fr) repeat(5,minmax(75px,1fr));gap:12px;min-width:650px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.08);cursor:pointer}
.report-row:last-child{border-bottom:0}.report-row:not(.report-head):hover,.report-row:focus-visible{background:rgba(255,255,255,.07)}
.report-head{font-weight:700;cursor:default;background:rgba(255,255,255,.06)}

/* v0.17 */
.plan-controls{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.plan-controls select{min-height:42px;border-radius:8px;padding:8px}.note-card{padding:12px;margin:8px 0;border:1px solid rgba(255,255,255,.14);border-radius:10px}.note-card small{opacity:.7}.note-form{display:grid;gap:10px;margin:12px 0}.note-form textarea{width:100%;min-height:90px;padding:12px;border-radius:10px;background:#101b2c;color:white;border:1px solid #526174}

/* v0.22 lesson taxonomy filters */
.lesson-filter-bar{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0 20px}
.lesson-filter-bar select{min-height:44px;padding:10px 14px;max-width:100%;background:#182b38;color:#f7f4eb;border:1px solid #a78a55;border-radius:10px;font:inherit}
.lesson-filter-bar select:focus-visible{outline:3px solid #e5bb70;outline-offset:2px}
@media(max-width:600px){.lesson-filter-bar select{flex:1 1 100%}}

/* Top-level navigation, organized into accessible category menus */
.app{display:flex!important;flex-direction:column!important;min-height:calc(100vh - 76px)}
.academy-topnav{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:10px clamp(14px,3vw,50px);border-bottom:1px solid #344858;background:#10222e;box-shadow:0 8px 24px #0004}
.academy-topnav .role-tag{margin:0;padding:8px 12px;white-space:nowrap;font-size:13px}
.academy-topnav #sidebar{display:flex;align-items:center;flex:1;gap:8px;flex-wrap:wrap}
.academy-topnav .navitem{width:auto;margin:0;padding:10px 13px;white-space:nowrap}
.academy-topnav .logout{width:auto;margin:0;padding:8px 12px}
.academy-topnav .nav-category{position:relative}
.academy-topnav .nav-category>summary{list-style:none;cursor:pointer;padding:11px 16px;border-radius:10px;color:#f3dba8;font-weight:700;user-select:none}
.academy-topnav .nav-category>summary::-webkit-details-marker{display:none}
.academy-topnav .nav-category>summary:after{content:" ▾";font-size:11px}
.academy-topnav .nav-category[open]>summary,.academy-topnav .nav-category>summary:hover{background:#294039}
.academy-topnav .nav-category-items{position:absolute;top:100%;left:0;min-width:210px;padding:9px;border:1px solid #3b5562;border-radius:12px;background:#132632;box-shadow:0 16px 38px #0009}
.academy-topnav .nav-category-items .navitem{display:block;width:100%;text-align:left}
@media(max-width:760px){.academy-topnav{position:relative;gap:8px}.academy-topnav #sidebar{order:3;flex-basis:100%;gap:2px}.academy-topnav .nav-category>summary{padding:9px}.academy-topnav .nav-category-items{z-index:80}.workspace{padding:20px 12px}}

/* Chess-first arena: spacious board, centered match controls, responsive layout */
.workspace:has(.home-view){max-width:1760px;padding:24px clamp(14px,2.4vw,42px)}
.home-view{width:100%}
.arena-hero{margin:0 0 18px;text-align:center}
.arena-hero h2{font-size:clamp(29px,3vw,45px);margin:5px 0;color:#f7e8c8}
.arena-hero p{margin:0}
.arena-eyebrow{font-size:11px;letter-spacing:.18em;font-weight:800;color:#e5bb70}
.home-arena{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.8fr);gap:clamp(16px,2vw,30px);align-items:start;max-width:1510px;margin:0 auto}
.home-board-card,.home-match-panel{min-width:0;border:1px solid #37505b;border-radius:18px;background:linear-gradient(155deg,#172c38,#0d1b26);padding:18px;box-shadow:0 20px 48px #0005}
.arena-board-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;color:#e9d3a4}
.arena-live-label{font-size:11px;color:#84d3aa;white-space:nowrap}
.home-board-frame{display:block;width:100%;height:clamp(610px,64vw,900px);border:0;border-radius:10px;background:#0b1720}
.home-board-actions{display:flex;justify-content:center;margin-top:12px}
.home-match-panel h3{font-size:clamp(21px,2vw,28px);margin:7px 0 12px}
.home-match-panel>p{margin:0 0 16px}
.home-time-groups{display:grid;gap:16px;margin-top:20px}
.home-time-label{font-size:11px;letter-spacing:.16em;font-weight:800;color:#91b5c3;margin-bottom:8px}
.home-time-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.home-time-btn{border:1px solid #425a67;background:#1c3442;color:#e7f0ec;padding:15px 4px;border-radius:10px;font-size:18px;font-weight:800;cursor:pointer;transition:background .15s,transform .15s}
.home-time-btn:hover{background:#315164;transform:translateY(-1px)}
.home-time-btn.selected{background:#ddbc78;color:#17232b;border-color:#f6d99d;box-shadow:0 0 0 2px #d4aa6340}
.arena-match-status{margin:16px 0!important;min-height:44px;padding:10px;border-radius:8px;background:#0c202c;color:#c5d2d5}
.arena-play-btn,.arena-secondary-btn{display:block;width:100%;padding:15px 10px;border-radius:11px;font-size:16px;font-weight:800;cursor:pointer}
.arena-play-btn{background:linear-gradient(125deg,#eacb90,#b88a43);color:#17242b;border:1px solid #f4d9a5}
.arena-secondary-btn{margin-top:16px;background:#263d4b;color:#e7f0ec;border:1px solid #4c6875}
.home-action-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.home-action-cards .btn{padding:13px 8px}
.arena-footnote{font-size:12px;margin:12px 0 0!important}
@media(max-width:1120px){.home-arena{grid-template-columns:1fr;max-width:850px}.home-board-frame{height:780px}}
@media(max-width:620px){.home-board-card,.home-match-panel{padding:10px;border-radius:12px}.home-board-frame{height:620px}.home-time-btn{font-size:16px;padding:12px 3px}.arena-board-top{font-size:12px}.arena-hero p{font-size:13px}}

/* Scroll-free home board and integrated chess clock */
.home-board-frame{overflow:hidden;scrollbar-width:none;display:block;min-height:0;height:min(70vw,780px)}
.home-board-frame::-webkit-scrollbar{display:none}
.arena-chess-clock{margin:20px 0;padding:14px;border:1px solid #577180;border-radius:16px;background:#0b1821;display:grid;gap:9px}
.arena-clock-side{font-size:clamp(23px,2.5vw,35px);font-weight:850;letter-spacing:.06em;font-variant-numeric:tabular-nums;text-align:center;padding:15px 10px;border-radius:10px;background:#203341;color:#dce6e8;border:1px solid #3b5261}
.arena-clock-side.running{background:#e3c18a;color:#1d292f;border-color:#f5dfb3;box-shadow:0 0 0 2px #e3c18a40}
.arena-clock-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}
.arena-clock-actions .btn{padding:8px 11px;min-height:37px;font-size:12px}
@media(max-width:1120px){.home-board-frame{height:min(90vw,760px)}}
@media(max-width:620px){.home-board-frame{height:min(110vw,580px)}}

/* Compact vertical chess clock above the quick-match controls */
.arena-chess-clock{order:-1;margin:0 0 22px;display:flex;flex-direction:column;gap:10px;border-radius:16px}
.arena-clock-side{font-variant-numeric:tabular-nums;min-height:82px;display:flex;align-items:center;justify-content:center;font-size:clamp(28px,3vw,42px);letter-spacing:.08em}
.arena-clock-side.black-clock{background:#101418;color:#f9f9f9;border:2px solid #4e5b63}
.arena-clock-side.white-clock{background:#f3f0e9;color:#171b20;border:2px solid #d6d1c6}
.arena-clock-side.running{outline:3px solid #d6aa55;outline-offset:2px;box-shadow:0 0 20px #e5b76b4d}
.arena-match-status{margin-top:12px!important}

/* Neutral clock faces; piece icons alone identify sides. */
.arena-clock-side.black-clock,.arena-clock-side.white-clock{background:#203341;color:#e7eff0;border:1px solid #4a6370}
.arena-clock-side.running{background:#2c4853;color:#fff;outline:2px solid #d6aa55}

/* Copyable homepage move log and external Lichess analysis */
.home-history-panel{margin:12px 0 16px;padding:14px;border:1px solid #a58b63;border-radius:14px;background:#152630;color:#f6e5c9}.home-history-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}.home-history-head>div{display:flex;gap:8px;flex-wrap:wrap}.home-history-head .btn{font-size:12px;padding:8px 11px;cursor:pointer}.home-history-head .btn:disabled{opacity:.5;cursor:not-allowed}.home-history-panel textarea{display:block;box-sizing:border-box;width:100%;min-height:84px;resize:vertical;background:#0a1820;color:#f5e8d0;border:1px solid #62717a;border-radius:9px;padding:10px;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}

.home-color-picker{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:8px 0 14px;color:#ead7b5;font-size:13px;font-weight:700}.home-color-btn{border:1px solid #6c8290;background:#1b3341;color:#f1e7d7;border-radius:10px;padding:9px 17px;cursor:pointer;font-weight:700}.home-color-btn.selected{border-color:#eac17d;background:#5c482f;box-shadow:0 0 0 2px #eac17d55}

/* Premium side selector, centered directly below chessboard */
.home-color-picker{display:flex!important;flex-direction:column;align-items:center!important;justify-content:center!important;gap:9px!important;margin:14px auto 16px!important;padding:12px!important;width:fit-content;max-width:100%;border:1px solid #536676;border-radius:14px;background:#101e28;box-shadow:0 8px 22px #0003}
.home-color-label{font-size:10px;font-weight:800;letter-spacing:.18em;color:#c9b48e}
.home-color-options{display:flex;justify-content:center;align-items:center;gap:8px}
.home-color-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:9px;min-width:114px;padding:10px 14px!important;border:1px solid #536575!important;border-radius:10px!important;background:#223746!important;color:#e9edf0!important;font:700 13px system-ui;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.home-color-btn.selected{background:#705533!important;border-color:#eac17d!important;color:#fff2d8!important;box-shadow:0 0 0 2px #d9ae6d55!important}
.home-color-btn:active{transform:scale(.97)}.home-color-btn:focus-visible{outline:3px solid #f0ca81;outline-offset:3px}
.color-disc{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;font-size:22px;line-height:1}.white-disc{background:#f2e7d4;color:#413327}.black-disc{background:#101820;color:#e4cfa7}

/* Entry screen: remove artificial vertical overflow until new sections are added. */
body:has(#entry:not([hidden])){min-height:100dvh;overflow-x:hidden}
body:has(#entry:not([hidden])) .entry{min-height:0;height:auto;max-height:none;align-content:center;padding-block:clamp(16px,3vh,32px);gap:clamp(18px,4vw,54px)}
body:has(#entry:not([hidden])) .entry-art{height:clamp(230px, min(44vw, 49dvh), 430px)}
body:has(#entry:not([hidden])) .entry h1{margin:clamp(10px,2vh,18px) 0}
body:has(#entry:not([hidden])) .entry-actions{margin:clamp(12px,2vh,22px) 0}
@media(min-width:851px){body:has(#entry:not([hidden])) .entry{min-height:calc(100dvh - 76px);padding-block:clamp(12px,2.5vh,28px)}body:has(#entry:not([hidden])) .entry-art{height:min(430px,calc(100dvh - 145px))}}
@media(max-width:850px){body:has(#entry:not([hidden])) .entry{padding-block:18px;gap:20px}body:has(#entry:not([hidden])) .entry-art{height:clamp(160px,27dvh,230px)}}


/* Secure account entry */
.auth-card{margin-top:22px;max-width:470px;background:#122531;border:1px solid #405360;border-radius:18px;padding:24px;box-shadow:0 20px 55px #0003}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}.auth-tab{background:transparent;border:1px solid #405360;color:#b7c6c9;border-radius:10px;padding:12px;font-weight:700}.auth-tab.active{background:#344639;border-color:#caa76d;color:#f6dca9}#authForm{display:grid;gap:9px}#authForm label{font-size:13px;color:#d8e0dc;font-weight:650}#authForm input{width:100%;border:1px solid #48616e;border-radius:10px;background:#091923;color:white;padding:13px;min-height:46px}#authForm input:focus{outline:2px solid #d2af72;outline-offset:1px}#authSignupFields{display:grid;gap:9px}#authSignupFields[hidden]{display:none}#authSubmit{margin-top:8px}.auth-link{border:0;background:none;color:#dfc28e;text-align:left;padding:6px 0;cursor:pointer}.auth-error{color:#ffb0a9}.auth-ok{color:#9cdec0}#authMessage{font-size:13px;min-height:20px;margin:3px 0}.demo-details{margin-top:24px;color:#aebec5}.demo-details summary{cursor:pointer;color:#d4b780;font-weight:650}.demo-details .entry-actions{margin:16px 0}.demo-details .demo-chooser{margin-top:15px}

#authForm textarea{width:100%;resize:vertical;border:1px solid #48616e;border-radius:10px;background:#091923;color:white;padding:13px;font:inherit;min-height:85px}#authForm textarea:focus{outline:2px solid #d2af72;outline-offset:1px}.auth-privacy{font-size:12px;color:#9cbdc5;margin:2px 0 10px}

/* Teacher enrollment */
.student-dialog{background:#122531;color:#eef4f2;border:1px solid #caa76d;border-radius:18px;padding:24px;width:min(94vw,520px);max-height:90vh;overflow:auto;box-shadow:0 25px 80px #0008}.student-dialog::backdrop{background:#000b}.student-dialog form{display:grid;gap:14px}.student-dialog label{display:grid;gap:6px;font-weight:650}.student-dialog input,.student-dialog textarea{width:100%;padding:12px;border:1px solid #48616e;border-radius:10px;background:#091923;color:#fff;font:inherit}.student-dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}#createStudentOpen{white-space:nowrap}#studentCreateMessage{min-height:20px;color:#cde7bf}

/* BARIDA brand palette: forest green with soft pink accents */
:root{--barida-green:#103a2c;--barida-green-deep:#09281e;--barida-pink:#f3c8d8;--barida-text:#f7faf7}
body{background:var(--barida-green-deep);color:var(--barida-text)}
.topbar{background:#103a2c;border-bottom-color:#315b49}
.brand b,.brand:first-letter{color:var(--barida-pink)}
.top-right select{background:#184b39;border-color:#5a836e;color:#fff}
.entry-art{background:radial-gradient(circle at 50% 55%,#386e50,#174532 50%,#09281e 85%)}

/* Match the neon pink + emerald green homepage design */
:root{--barida-green:#19e49b;--barida-green-deep:#070d15;--barida-pink:#ff258f;--barida-text:#f6f2f5;--barida-surface:#101b20}
body{background:#070d15;color:#f6f2f5}
.topbar{background:#080f17;border-bottom:1px solid #19e49b65;box-shadow:0 2px 22px #19e49b16}
.brand b,.brand:first-letter{color:#ff258f;text-shadow:0 0 13px #ff258f55}
.top-right select{background:#111c25;border:1px solid #19e49b88;color:#f6f2f5}
.entry-art{background:radial-gradient(circle at 25% 42%,#ff258f35,transparent 44%),radial-gradient(circle at 77% 62%,#19e49b30,transparent 46%),#070d15}
.btn.gold,.btn.primary,.navitem.active{border-color:#19e49b!important;background:linear-gradient(125deg,#0f483a,#103329)!important;color:#f7fff9!important;box-shadow:0 0 16px #19e49b25}
.btn:hover,.navitem:hover{border-color:#ff258f!important;box-shadow:0 0 14px #ff258f20}
.nav-category summary{color:#ffb7d9}
input:focus,select:focus,textarea:focus{outline-color:#19e49b}

/* Accessibility: neon identity with high-contrast readable content */
:root{color-scheme:dark}
.app,.workspace,.side,#view,.tile,.lesson-detail,.auth-card{color:#f7fafc}
.muted,.version,.tile p,.lesson-detail p,.entry-content p{color:#d1dce1!important}
.navitem,.lesson-row,.nav-category-items a{color:#f2f6fa!important}
.navitem.active{color:#ffffff!important;font-weight:800}
button,.btn{font-weight:700}
input,textarea,select{color:#f8fbff;background-color:#13232c;border-color:#52736c}
input::placeholder,textarea::placeholder{color:#b4c6c9;opacity:1}
input:disabled,button:disabled{opacity:.65}
#view a:not(.btn){text-decoration-color:#ff258f;text-underline-offset:3px}
#view :is(h1,h2,h3,h4){color:#ffffff}
.brand{display:inline-flex;align-items:center;gap:10px;font-size:clamp(13px,1.65vw,22px);line-height:1.2;letter-spacing:.015em;white-space:normal}
.brand b{color:#ff7dbb}
.barida-brand-knight{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #19e49b;border-radius:12px;background:linear-gradient(135deg,#ff258f29,#19e49b2b);font-size:35px;color:#080d15;text-shadow:-2px 0 #ff258f,2px 0 #19e49b,0 0 15px #19e49b88;filter:drop-shadow(0 0 5px #ff258f44)}
@media(max-width:520px){.barida-brand-knight{width:35px;height:35px;font-size:28px}.brand{gap:6px;font-size:13px}}

/* BARIDA SATRANÇ KULÜBÜ: animated neon lettering */
.topbar .brand span:not(.barida-brand-knight){display:inline-block;color:#f6fff9;font-weight:850;text-shadow:0 0 13px #19e49b22}
.topbar .brand span:not(.barida-brand-knight) b{display:inline-block;color:#e9fff4;background:linear-gradient(110deg,#caffea 0%,#19e49b 19%,#f7fff9 36%,#ff65b2 54%,#ff258f 68%,#19e49b 87%,#caffea 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:barida-brand-colorflow 7s ease-in-out infinite;text-shadow:none;filter:drop-shadow(0 0 5px #19e49b44)}
@keyframes barida-brand-colorflow{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
@media(prefers-reduced-motion:reduce){.topbar .brand span:not(.barida-brand-knight) b{animation:none;background-position:40% 50%}}

/* Animate BARIDA itself in sync with the neon club name */
.topbar .brand span:not(.barida-brand-knight){color:#e9fff4;background:linear-gradient(110deg,#caffea 0%,#19e49b 19%,#f7fff9 36%,#ff65b2 54%,#ff258f 68%,#19e49b 87%,#caffea 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:barida-brand-colorflow 7s ease-in-out infinite;text-shadow:none;filter:drop-shadow(0 0 5px #19e49b44)}
.topbar .brand span:not(.barida-brand-knight) b{background:none;-webkit-background-clip:initial;background-clip:initial;-webkit-text-fill-color:inherit;animation:none;filter:none}
@media(prefers-reduced-motion:reduce){.topbar .brand span:not(.barida-brand-knight){animation:none;background-position:40% 50%}}

/* Role banner responsive layout: image carries its own typography */
#view .sd-hero:has(>.barida-banner-image),#view .bd-hero:has(>.barida-banner-image){position:relative!important;display:block!important;width:100%!important;min-height:0!important;height:auto!important;aspect-ratio:9/1!important;padding:0!important;margin:26px 0 24px!important;overflow:visible!important;background:none!important;border:0!important;border-radius:18px!important;box-shadow:none!important}
#view .sd-hero:has(>.barida-banner-image)>:not(.barida-banner-image),#view .bd-hero:has(>.barida-banner-image)>:not(.barida-banner-image){display:none!important}
#view .sd-hero>.barida-banner-image,#view .bd-hero>.barida-banner-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;object-position:center!important;border-radius:18px!important;box-shadow:0 12px 30px #0005!important;z-index:1!important}
@media(max-width:700px){#view .sd-hero:has(>.barida-banner-image),#view .bd-hero:has(>.barida-banner-image){aspect-ratio:6/1!important;min-height:105px!important;margin-top:24px!important}#view .sd-hero>.barida-banner-image,#view .bd-hero>.barida-banner-image{object-fit:contain!important;background:#071322!important}}

/* Floating crown illusion: duplicate only the crown area above the banner edge. */
#view .sd-hero:has(>.barida-banner-image)>.barida-banner-crown,#view .bd-hero:has(>.barida-banner-image)>.barida-banner-crown{display:block!important;position:absolute!important;left:0!important;top:-19px!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:fill!important;pointer-events:none!important;z-index:3!important;border:0!important;border-radius:0!important;clip-path:polygon(54% 0,73% 0,73% 17%,54% 17%)!important;filter:drop-shadow(0 -5px 5px #0005)!important}
@media(max-width:700px){#view .sd-hero:has(>.barida-banner-image)>.barida-banner-crown,#view .bd-hero:has(>.barida-banner-image)>.barida-banner-crown{top:-13px!important;clip-path:polygon(52% 0,75% 0,75% 20%,52% 20%)!important}}

/* Mobile: keep banner lettering visible and float the crown beyond the frame */
#view .sd-hero:has(>.barida-banner-image),#view .bd-hero:has(>.barida-banner-image){max-width:100%!important;overflow:visible!important}
#view .sd-hero:has(>.barida-banner-image)>.barida-banner-crown,#view .bd-hero:has(>.barida-banner-image)>.barida-banner-crown{display:block!important;z-index:5!important}
@media(max-width:700px){#view .sd-hero:has(>.barida-banner-image),#view .bd-hero:has(>.barida-banner-image){aspect-ratio:9/1!important;min-height:0!important;height:auto!important;margin-top:30px!important}#view .sd-hero>.barida-banner-image,#view .bd-hero>.barida-banner-image{object-fit:fill!important;width:100%!important;height:100%!important}#view .sd-hero>.barida-banner-crown,#view .bd-hero>.barida-banner-crown{top:-11px!important;clip-path:polygon(55% 0,74% 0,74% 24%,55% 24%)!important}}

/* No duplicated floating crown overlay */
#view .barida-banner-crown{display:none!important}

/* Dedicated teacher landing page, intentionally separate from administrator dashboard */
#view.barida-teacher-landing{width:min(1200px,100%);max-width:1200px;margin:0 auto;padding:18px 16px 52px;box-sizing:border-box;color:#edf0ff}
#view.barida-teacher-landing .teacher-landing-hero{position:relative;width:100%;aspect-ratio:9/1;min-height:90px;margin:14px 0 30px;border-radius:20px;overflow:hidden}
#view.barida-teacher-landing .teacher-landing-hero>.barida-banner-image{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;border-radius:20px}
#view.barida-teacher-landing .teacher-landing-hero>:not(.barida-banner-image){display:none!important}
#view.barida-teacher-landing>h2{color:#f7d9ff;font-size:clamp(24px,3vw,34px);margin:18px 0 8px}
#view.barida-teacher-landing .teacher-landing-intro{color:#c5b8dc;margin:0 0 24px;line-height:1.6}
#view.barida-teacher-landing .teacher-landing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#view.barida-teacher-landing .teacher-landing-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:165px;padding:22px;text-align:left;border-radius:20px;border:1px solid #6e478f;background:linear-gradient(145deg,#302044,#21162f);color:#f9edff;cursor:pointer;box-shadow:0 8px 22px #0002}
#view.barida-teacher-landing .teacher-landing-card:hover{border-color:#e0a1ff;transform:translateY(-2px)}
#view.barida-teacher-landing .teacher-landing-card strong{font-size:19px}
#view.barida-teacher-landing .teacher-landing-card small{color:#d4c5e2;line-height:1.5;font-size:13px}
#view.barida-teacher-landing .teacher-card-icon{font-size:30px}
@media(max-width:760px){#view.barida-teacher-landing .teacher-landing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){#view.barida-teacher-landing .teacher-landing-grid{grid-template-columns:1fr}#view.barida-teacher-landing .teacher-landing-card{min-height:130px}#view.barida-teacher-landing .teacher-landing-hero{min-height:65px}}

/* Teacher student leaderboard: readable text on every theme */
#view:has(>.report-table)>.report-table{width:100%;overflow-x:auto;border:1px solid #52647d;border-radius:14px;background:#142436!important;color:#f3f7ff!important}
#view:has(>.report-table)>.report-table .report-row{color:#eef5ff!important;background:#172b40!important;border-bottom:1px solid #3d536b!important}
#view:has(>.report-table)>.report-table .report-row span{color:#eef5ff!important;opacity:1!important;text-shadow:none!important}
#view:has(>.report-table)>.report-table .report-head{background:#26435e!important;color:#fff!important;font-weight:800!important}
#view:has(>.report-table)>.report-table .report-head span{color:#fff!important}
#view:has(>.report-table)>.report-table .report-row:not(.report-head):hover{background:#28435e!important}
#view:has(>.report-table)>h2{color:#fff!important}
#view:has(>.report-table)>.muted{color:#c7d8ec!important}

/* Admin dashboard: coherent dark gold design, clear text and tidy actions */
#view.barida-admin-home .sd-panel,#view.barida-admin-home .sd-stat{background:linear-gradient(145deg,#192536,#202c3e)!important;border:1px solid #46526a!important;color:#f1f6ff!important;box-shadow:0 10px 26px #0003!important}
#view.barida-admin-home .sd-panel h3{color:#ffdb8b!important;font-size:18px!important;letter-spacing:.2px!important}
#view.barida-admin-home .sd-note,#view.barida-admin-home .sd-panel p,#view.barida-admin-home .sd-line small{color:#c4d0df!important}
#view.barida-admin-home .sd-line strong,#view.barida-admin-home .sd-stat strong{color:#fff4d3!important}
#view.barida-admin-home .sd-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
#view.barida-admin-home .sd-actions button{min-height:66px!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:14px 12px!important;text-align:center!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important;background:linear-gradient(145deg,#263b4d,#203144)!important;border:1px solid #657185!important;border-radius:14px!important;color:#f9f1dc!important;font-size:14px!important;font-weight:750!important;box-shadow:inset 0 1px #ffffff14,0 4px 12px #0002!important;transition:background .15s,border-color .15s,transform .15s!important}
#view.barida-admin-home .sd-actions button:hover,#view.barida-admin-home .sd-actions button:focus-visible{background:linear-gradient(145deg,#3b4c4a,#24463f)!important;border-color:#21d7a3!important;color:#fff!important;transform:translateY(-1px)!important}
#view.barida-admin-home .sd-actions button:nth-child(2){border-color:#b8944f!important;background:linear-gradient(145deg,#403723,#2f3440)!important;color:#ffe4a3!important}
#view.barida-admin-home .sd-panels{align-items:stretch!important}
@media(max-width:520px){#view.barida-admin-home .sd-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}#view.barida-admin-home .sd-actions button{min-height:74px!important;padding:11px 8px!important;font-size:12px!important}}

/* Embedded chess activities use one page scrollbar, never an inner viewport */
#view iframe.academy-puzzle-inline{display:block!important;width:100%!important;max-width:100%!important;min-height:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:transparent!important;margin:12px 0!important;box-shadow:none!important}

/* Consistent dark canvas around all embedded learning tools. */
#view:has(iframe.academy-embed){background:transparent!important;color:var(--barida-text,#f0f7ff)!important}
#view iframe.academy-embed,#view iframe.home-board-frame{background:#07111b!important;border:0!important;box-shadow:none!important;color-scheme:dark}
#view .home-board-card,#view .board-studio-resizer{background:transparent!important;border:0!important;box-shadow:none!important}

/* An embedded page must inherit the academy's selected canvas theme. */
html[data-academy-theme="light"] #view iframe.academy-embed,
html[data-academy-theme="light"] #view iframe.home-board-frame{background:#f1f5fa!important;color-scheme:light}
html[data-academy-theme="dark"] #view iframe.academy-embed,
html[data-academy-theme="dark"] #view iframe.home-board-frame{background:#07111b!important;color-scheme:dark}

/* Teacher menu stays above the dashboard and remains usable on hover. */
.academy-topnav .barida-teacher-nav{position:relative;z-index:110!important}
.academy-topnav .barida-teacher-nav[open]>.nav-category-items{display:block!important;position:absolute!important;top:100%;left:0;z-index:111!important;min-width:230px;max-height:min(70vh,600px);overflow-y:auto;overscroll-behavior:contain}
.academy-topnav .barida-teacher-nav>summary{cursor:pointer}
@media(hover:none){.academy-topnav .barida-teacher-nav[open]>.nav-category-items{max-height:65vh}}

/* Seamless training surfaces: no artificial panel behind embedded activities. */
#view:has(iframe.academy-puzzle-inline),#view.home-view:has(iframe.home-board-frame){background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important}
#view iframe.academy-puzzle-inline,#view iframe.home-board-frame{display:block!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:0!important;margin:0!important;vertical-align:top}
#view .home-board-card:has(iframe.home-board-frame),#view .board-studio-resizer{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important}
html[data-academy-theme="light"] #view iframe.academy-puzzle-inline,html[data-academy-theme="light"] #view iframe.home-board-frame,html[data-academy-theme="dark"] #view iframe.academy-puzzle-inline,html[data-academy-theme="dark"] #view iframe.home-board-frame{background:transparent!important}

/* Compact student roster cards; preserve existing colors and green action buttons. */
#view .student-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important}
#view .student-grid>.student-card{display:flex!important;flex-direction:column!important;gap:10px!important;padding:15px 17px!important;min-height:0!important;border-radius:16px!important}
#view .student-card>.btn.small:first-child{align-self:flex-end!important;width:auto!important;min-width:0!important;padding:7px 13px!important;font-size:12px!important;line-height:1.3!important;order:0!important}
#view .barida-student-head{display:flex!important;align-items:center!important;gap:13px!important;min-width:0!important;order:1!important}
#view .barida-pawn-avatar{width:76px!important;height:76px!important;min-width:76px!important;flex:0 0 76px!important;border-radius:14px!important;overflow:hidden!important;background:transparent!important;padding:0!important;display:block!important}
#view .barida-pawn-avatar img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:14px!important}
#view .barida-student-identity{min-width:0!important;flex:1!important}
#view .barida-student-identity h3{margin:0 0 6px!important;font-size:16px!important;line-height:1.25!important}
#view .barida-student-identity p{margin:3px 0!important;font-size:12px!important;line-height:1.4!important}
#view .barida-student-identity .barida-password-alert{font-size:12px!important}
#view .student-grid>.student-card>.btn.gold{flex:0 0 auto!important;width:auto!important;min-height:36px!important;padding:8px 11px!important;font-size:12px!important;line-height:1.35!important;margin:0!important}
#view .student-grid>.student-card>.btn.gold:nth-last-child(2){margin-top:auto!important}
#view .student-grid>.student-card>.btn.gold:last-child{margin-top:0!important}
@media(min-width:760px){#view .student-grid>.student-card{display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)!important;grid-template-rows:auto 1fr auto!important;column-gap:9px!important}#view .student-card>.btn.small:first-child{grid-column:2!important;grid-row:1!important}#view .barida-student-head{grid-column:1 / -1!important;grid-row:2!important}#view .student-grid>.student-card>.btn.gold:nth-last-child(2){grid-column:1!important;grid-row:3!important}#view .student-grid>.student-card>.btn.gold:last-child{grid-column:2!important;grid-row:3!important}}
@media(max-width:759px){#view .student-grid{grid-template-columns:1fr!important}#view .student-grid>.student-card>.btn.gold{width:100%!important}#view .barida-pawn-avatar{width:64px!important;height:64px!important;min-width:64px!important;flex-basis:64px!important}}

/* Student avatar collage-edge repair: crop neighboring portrait bleed inside each tile. */
#view .student-grid .barida-pawn-avatar{position:relative!important;isolation:isolate!important;overflow:hidden!important;contain:paint!important;flex-shrink:0!important;border-radius:14px!important}
#view .student-grid .barida-pawn-avatar>img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center center!important;transform:none!important;border-radius:0!important}

/* Student roster: registration action in top-right, tightly centered portraits. */
#view .barida-roster-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px;flex-wrap:wrap}
#view .barida-roster-toolbar h2{margin:0!important}
#view .barida-roster-toolbar .barida-roster-add{width:auto!important;min-width:210px!important;min-height:45px!important;margin:0!important;flex:0 0 auto}
#view .barida-pawn-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 46%!important;transform:scale(1.22)!important;transform-origin:50% 46%!important}
@media(max-width:560px){#view .barida-roster-toolbar{align-items:flex-start}#view .barida-roster-toolbar .barida-roster-add{min-width:0!important}}

/* Compact weekly schedule editor, without stretching the entire student card. */
#view .student-grid>.student-card{align-self:start!important;align-content:start!important}
#view .student-card .ca-schedule-editor{box-sizing:border-box!important;position:static!important;display:flex!important;flex-direction:column!important;gap:9px!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:13px!important;margin:0!important;border-radius:12px!important}
#view .student-card .ca-schedule-editor>strong{font-size:13px!important;line-height:1.35!important}
#view .student-card .ca-schedule-days{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;width:100%!important;margin:0!important}
#view .student-card .ca-schedule-day{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:0!important;width:100%!important;min-height:35px!important;margin:0!important;padding:5px 6px!important;font-size:11px!important;white-space:nowrap!important}
#view .student-card .ca-schedule-day input{margin:0!important;width:15px!important;height:15px!important;flex:0 0 15px!important}
#view .student-card .ca-schedule-editor>.btn{width:100%!important;min-height:34px!important;margin:0!important}
@media(min-width:760px){
 #view .student-grid>.student-card{grid-template-rows:auto auto auto auto!important}
 #view .student-grid>.student-card>.ca-schedule-editor{grid-column:1/-1!important;grid-row:3!important}
 #view .student-grid>.student-card>.btn.gold:nth-last-child(2){grid-row:4!important;margin-top:0!important}
 #view .student-grid>.student-card>.btn.gold:last-child{grid-row:4!important}
}
@media(max-width:560px){#view .student-card .ca-schedule-days{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Registration: dark, legible surfaces and reliably aligned weekday choices. */
#view .student-registration-page,#view .student-registration-page form,#view #studentCreateForm{color:#eaf3f8!important}
#view .student-registration-page{background:#152b36!important;border:1px solid #39515d!important;border-radius:16px!important;padding:22px!important}
#view #studentCreateForm{background:#152b36!important}
#view #studentCreateForm label{color:#eaf3f8!important}
#view #studentCreateForm .register-step{color:#d6f4e7!important}
#view #studentCreateForm .register-note,#view #studentCreateForm .register-hint{color:#b7ccd5!important}
#view #studentCreateForm input:not([type=checkbox]):not([type=radio]),#view #studentCreateForm select{background:#0d202b!important;color:#f1f7fa!important;border:1px solid #55717f!important}
#view #studentCreateSchedule{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:12px 0 22px!important}
#view #studentCreateSchedule>label{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;box-sizing:border-box!important;min-width:0!important;width:100%!important;margin:0!important;padding:12px 10px!important;border-radius:10px!important;background:#203a47!important;border:1px solid #4a6978!important;color:#f1f7fa!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:13px!important;line-height:1.25!important}
#view #studentCreateSchedule input[type=checkbox]{width:17px!important;height:17px!important;flex:0 0 17px!important;margin:0!important;accent-color:#22bb8a!important}
#view .register-hidden-select{display:none!important}
#view .register-segment{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:8px 0 15px!important}
#view .register-segment>label{display:block!important;min-width:0!important;margin:0!important;cursor:pointer!important}
#view .register-segment input[type=radio]{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important}
#view .register-segment label span{display:flex!important;align-items:center!important;justify-content:center!important;min-height:43px!important;padding:9px 8px!important;border-radius:10px!important;background:#203b49!important;border:1px solid #567481!important;color:#edf6fa!important;font-size:13px!important;font-weight:650!important;text-align:center!important;box-sizing:border-box!important}
#view .register-segment input:checked+span{background:#075944!important;border-color:#1ce3a0!important;color:#fff!important;box-shadow:inset 0 0 0 1px #1ce3a0!important}
#view .register-segment input:focus-visible+span{outline:3px solid #7be8ca!important;outline-offset:2px!important}
#view .barida-detail-schedule{margin:18px 0;padding:16px;border:1px solid #405e6d;border-radius:12px;background:#10232e}
#view .barida-detail-schedule h3{margin:0 0 10px;color:#f0f8fb}
#view .barida-detail-schedule .ca-schedule-days{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
#view .barida-detail-schedule .ca-schedule-day{margin:0!important;padding:10px!important;min-width:0!important;box-sizing:border-box!important}
#view .barida-detail-schedule>.btn{width:auto!important;margin-top:8px!important}
@media(max-width:700px){#view #studentCreateSchedule,#view .barida-detail-schedule .ca-schedule-days{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:430px){#view .register-segment{grid-template-columns:1fr!important}}

/* BARIDA: seven weekdays stay on one horizontal row; readable dark student forms. */
#view #studentCreateSchedule,#view .barida-detail-schedule .ca-schedule-days,#view .student-card .ca-schedule-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:6px!important;overflow-x:auto!important;max-width:100%!important}
#view #studentCreateSchedule>label,#view .barida-detail-schedule .ca-schedule-day,#view .student-card .ca-schedule-day{min-width:0!important;padding:9px 5px!important;font-size:clamp(10px,1vw,13px)!important;white-space:nowrap!important;overflow-wrap:normal!important;background:#203a47!important;color:#f3f7fa!important;border-color:#567481!important}
#view .student-registration-page,#view .student-card .ca-schedule-editor,#view .barida-detail-schedule{background:#142b38!important;color:#f3f7fa!important}
@media(max-width:700px){#view #studentCreateSchedule,#view .barida-detail-schedule .ca-schedule-days,#view .student-card .ca-schedule-days{grid-template-columns:repeat(7,minmax(75px,1fr))!important} }


/* Admin student roster and compact pencil edit button */
.barida-admin-student-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}
.barida-admin-student-controls input,.barida-admin-student-controls select{background:#112733;color:#f0f6f8;border:1px solid #577080;border-radius:10px;padding:11px 13px;min-width:200px}
.barida-admin-student-controls input{flex:1}
.barida-admin-student-list{display:grid;gap:11px}
.barida-admin-student-card{background:#142b38!important;border:1px solid #4c6675!important;color:#f0f7fa!important}
.barida-admin-student-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}
.barida-admin-student-summary::-webkit-details-marker{display:none}
.barida-admin-student-person{display:grid;gap:3px;flex:1;min-width:0}
.barida-admin-student-person strong{color:#f7f5ec;font-size:16px;overflow-wrap:anywhere}
.barida-admin-student-person small{color:#c1d2db}
.barida-admin-student-flag{padding:5px 10px;border-radius:999px;font-size:12px;font-weight:750;white-space:nowrap}
.barida-admin-student-flag.is-active{background:#174839;color:#a5f4d3}
.barida-admin-student-flag.is-passive{background:#4f3040;color:#ffbec9}
.barida-admin-student-body{padding-top:16px;color:#d8e6ec}
.barida-admin-student-body>.btn{margin:5px 8px 8px 0}
.barida-admin-student-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #466574;background:#0d222d;border-radius:13px;padding:15px;margin:12px 0}
.barida-admin-student-edit label{display:grid;gap:5px;color:#edf5f9;font-weight:600}
.barida-admin-student-edit input{background:#091b25;color:#f7fafc;border:1px solid #658193;border-radius:8px;padding:10px;width:100%;min-width:0}
.barida-admin-student-schedule{background:#0f2632;border:1px solid #385767;border-radius:12px;padding:15px;margin:14px 0}
.barida-admin-student-schedule .ca-schedule-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:6px!important;max-width:100%!important;overflow-x:auto!important}
.barida-admin-student-schedule .ca-schedule-day{min-width:0!important;padding:8px 5px!important;white-space:nowrap!important;font-size:11px!important;color:#edf5fa!important;background:#203d4c!important}
.barida-detail-editbar{display:flex!important;justify-content:flex-end!important;align-items:center!important;width:100%!important}
.barida-student-edit-icon{width:36px!important;min-width:36px!important;height:36px!important;padding:0!important;display:grid!important;place-items:center!important;font-size:20px!important;background:#193742!important;color:#f3dba7!important;border:1px solid #78929b!important;border-radius:9px!important}
@media(max-width:650px){.barida-admin-student-edit{grid-template-columns:1fr}.barida-admin-student-schedule .ca-schedule-days{grid-template-columns:repeat(7,minmax(75px,1fr))!important}}


/* Registration page: prevent inherited white dialog and washed-out labels. */
html body #view .student-registration-page,
html body #view .student-registration-page #studentCreateForm,
html body #view .student-registration-page .register-body,
html body #view .student-registration-page .register-footer,
html body #view .student-registration-page .register-head{
 background:#142a36!important;color:#f4f8fb!important;border-color:#446171!important;
}
html body #view .student-registration-page .register-head{background:linear-gradient(135deg,#132c3b,#214453)!important}
html body #view .student-registration-page .register-step,
html body #view .student-registration-page .register-step span,
html body #view .student-registration-page .register-body>label,
html body #view .student-registration-page .register-hint,
html body #view .student-registration-page .register-eyebrow,
html body #view .student-registration-page .register-body label,
html body #view .student-registration-page .register-body strong{color:#f0f7fa!important}
html body #view .student-registration-page .register-note{background:#203d4e!important;color:#e4f2f7!important}
html body #view .student-registration-page .register-segment label span{background:#244353!important;color:#f5f9fc!important;border:1px solid #78919e!important}
html body #view .student-registration-page .register-segment input:checked+span{background:#12634e!important;color:#fff!important;border-color:#37d7a3!important}
html body #view .student-registration-page .register-body input:not([type=checkbox]):not([type=radio]){background:#0c2532!important;color:#fff!important;border:1px solid #6b8795!important}
html body #view .student-registration-page .register-body input::placeholder{color:#afc6d2!important;opacity:1!important}
html body #view .student-registration-page .register-hidden-select{display:none!important}
html body #view .student-registration-page #studentCreateSchedule.ca-schedule-days{
 display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 gap:9px!important;overflow:visible!important;margin:12px 0 25px!important;
 padding:0!important;box-sizing:border-box!important
}
html body #view .student-registration-page #studentCreateSchedule>label{
 min-width:0!important;width:100%!important;display:flex!important;align-items:center!important;
 justify-content:center!important;gap:5px!important;white-space:normal!important;
 overflow:visible!important;overflow-wrap:anywhere!important;word-break:normal!important;
 padding:10px 5px!important;min-height:44px!important;margin:0!important;
 font-size:clamp(10px,.9vw,12px)!important;line-height:1.2!important;
 background:#234150!important;color:#f5f9fc!important;border:1px solid #64818f!important;
 border-radius:9px!important;box-sizing:border-box!important
}
html body #view .student-registration-page #studentCreateSchedule>label input{
 width:15px!important;height:15px!important;flex:0 0 15px!important;
 margin:0!important;padding:0!important;accent-color:#27c996!important
}
html body #view .student-registration-page #studentCreateSchedule>label:has(input:checked){background:#165c4d!important;border-color:#38dca6!important}
#view .barida-student-detail-card{background:#142c38!important;color:#f1f8fa!important}
#view .barida-student-detail-line{color:#e1eef4!important}
#view .barida-student-detail-line strong{color:#f8f9f5!important}
#view .barida-student-detail-card .barida-detail-editform{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important;margin:12px 0!important}
#view .barida-detail-editform>label{display:grid!important;gap:6px!important;color:#eaf4f8!important}
#view .barida-detail-editform :is(input,select){width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:11px!important;border-radius:9px!important;border:1px solid #688491!important;background:#0b2531!important;color:#f7fbfc!important}
#view .barida-detail-editform .barida-detail-schedule{grid-column:1/-1!important}
#view .barida-detail-editform .barida-detail-edit-actions{grid-column:1/-1!important;display:flex!important;justify-content:flex-end!important;gap:12px!important;margin-top:12px!important}
#view .barida-detail-edit-actions .btn{min-width:145px!important}
#view .barida-detail-schedule .ca-schedule-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:7px!important;overflow:visible!important}
#view .barida-detail-schedule .ca-schedule-day{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:9px 4px!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:11px!important;background:#1b3a49!important;color:#f3f8fa!important}
#view .barida-detail-schedule .ca-schedule-day input{flex:0 0 15px!important;width:15px!important;height:15px!important}
#view .barida-schedule-readonly{color:#e4f1f5!important}
#view .barida-student-detail-bottom{margin-top:22px!important;padding-top:16px!important;border-top:1px solid #466371!important}
@media(max-width:720px){
 html body #view .student-registration-page #studentCreateSchedule.ca-schedule-days{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 #view .barida-detail-schedule .ca-schedule-days{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:460px){
 html body #view .student-registration-page #studentCreateSchedule.ca-schedule-days,
 #view .barida-detail-schedule .ca-schedule-days{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #view .barida-student-detail-card .barida-detail-editform{grid-template-columns:1fr!important}
}

.barida-password-overlay{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;background:rgba(4,12,22,.74);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);padding:20px}
.barida-password-modal{width:min(100%,460px);max-height:min(90vh,680px);overflow-y:auto;border-radius:20px;background:linear-gradient(150deg,#172f3e,#1f263e);color:#f4f8fb;border:1px solid #6a728b;box-shadow:0 25px 80px #000a;padding:26px}
.barida-password-modal h2{margin:0 0 8px;font-size:21px;color:#fff}
.barida-password-modal p{color:#d4e3ec;line-height:1.6}
.barida-password-form{display:grid;gap:15px;margin-top:20px}
.barida-password-form label{display:grid;gap:9px;color:#f2f7fa;font-weight:700}
.barida-password-form input{display:block;width:100%;min-width:0;box-sizing:border-box;border:1px solid #7594a5;border-radius:11px;padding:14px;background:#0b2230;color:#fff;font-size:16px}
.barida-password-form input:focus{outline:2px solid #38cba5;outline-offset:2px}
.barida-password-feedback{min-height:22px;margin:0;color:#ffc4ca!important;font-size:13px}
.barida-password-actions{display:flex;justify-content:flex-end;gap:12px}
.barida-password-actions .btn{min-width:125px}
@media(max-width:460px){.barida-password-modal{padding:20px}.barida-password-actions .btn{min-width:0;flex:1}}

/* BARIDA: student academy and rating readability on dark backgrounds */
#view .stat-grid .stat{background:#162b38!important;border-color:#395666!important;color:#f2f7ff!important}
#view .stat-grid .stat>span{color:#e0eaf3!important;opacity:1!important;font-size:15px!important;font-weight:600!important;text-shadow:none!important}
#view .stat-grid .stat>strong{font-weight:800!important;line-height:1.25}
#view .stat-grid .stat>strong.br-tier-0,#view .stat-grid .stat>strong.br-tier-1{color:#e4ebf3!important}
#view .barida-rating-board h3,#view .barida-rating-board .barida-rating-line{color:#f4f7ff!important}
#view .barida-rating-board .barida-rating-line>strong:first-child{color:#f5f7ff!important}
#view .barida-podium-place strong,#view .barida-podium-place span{opacity:1}
#view .muted{color:#d0dae7!important}
