body:before{content:'';position:fixed;left:0;top:0;width:var(--page-progress,0%);height:3px;background:#849b56;z-index:10000}.scene{isolation:isolate;translate:0 calc(-1 * var(--scroll-rise,0px));rotate:var(--scroll-turn,0deg)}.catcard{width:310px;background:#e5edce;overflow:hidden;transform-style:preserve-3d;transition:transform .4s,box-shadow .4s;animation:card-hover 7s ease-in-out infinite}.cat{font-size:initial;line-height:0;margin:-15px -10px 18px;height:255px;filter:none;overflow:hidden}.cat img{width:100%;height:100%;object-fit:cover;transition:scale .7s}.catcard:hover .cat img{scale:1.08}.catcard strong{font-size:23px}.catcaption{font-size:11px}.orbit{animation:orbit-spin 22s linear infinite;border-style:dashed;transform:rotateX(55deg);width:440px;height:440px;z-index:-1}.orbit-two{width:470px;height:470px;animation-direction:reverse;transform:rotateY(55deg);background:none;border-style:solid}.orb{position:absolute;border-radius:50%;z-index:3;box-shadow:inset -10px -12px 18px #5b75354d,8px 15px 24px #4d63332b;animation:orb-float 6s ease-in-out infinite;pointer-events:none}.orb-one{width:60px;height:60px;right:20px;top:110px;background:radial-gradient(circle at 30% 25%,#ffffe6,#b4cd79 60%,#71864a)}.orb-two{width:28px;height:28px;bottom:35px;left:100px;background:radial-gradient(circle at 30% 25%,white,#f0ba95 60%,#c47f60);animation-delay:-3s}.tag{backdrop-filter:blur(15px);background:#ffffffdc}.spark{animation:spark-spin 25s linear infinite}.scene .top{left:-15px;top:0}.scene .bottom{bottom:5px}.scene .bubble{right:-20px;bottom:30px}.meme-story{max-width:1180px;margin:35px auto 40px;padding:65px 6%;background:#eeeedd;border-radius:35px;display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center;perspective:1200px;overflow:hidden}.story-copy p{max-width:400px}.flip-scene{height:385px;perspective:1200px;cursor:pointer;transform:rotateZ(var(--story-turn,0deg));transition:transform .3s}.flip-card{width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform 1s cubic-bezier(.2,.8,.2,1)}.flipped .flip-card{transform:rotateY(180deg)}.flip-card figure{position:absolute;inset:0;margin:0;border:10px solid white;border-radius:20px;overflow:hidden;backface-visibility:hidden;background:white;box-shadow:0 24px 30px #29372222;display:flex;flex-direction:column}.flip-card img{height:calc(100% - 57px);width:100%;object-fit:cover}.flip-card figcaption{text-align:center;font-size:13px;padding:17px 5px}.flip-back{transform:rotateY(180deg)}.feature,.lesson{transform-style:preserve-3d;transition:transform .3s,box-shadow .3s}.feature.tilting,.lesson.tilting{transform:perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-7px);box-shadow:0 25px 35px #23372a20}.catcard.tilting{animation:none;transform:perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-4deg) translateZ(45px)}.lessonart{position:relative;overflow:hidden;height:180px}.lessonart img{width:100%;height:100%;object-fit:cover;object-position:center 38%;transition:scale .5s}.lesson:hover .lessonart img{scale:1.06}.lessonart>span{position:absolute;left:15px;bottom:12px;background:#ffffffed;border-radius:20px;padding:5px 12px;font-size:11px}.lesson-meta{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 18px}.lesson-meta span{font-size:10px;background:#edf1e3;border-radius:15px;padding:3px 9px}.workspace-tools{margin-bottom:35px}.stats{display:flex;align-items:center;gap:40px;padding:25px 30px;background:#e8eed9;border:1px solid #dae3c5;border-radius:20px}.stats>div{display:flex;flex-direction:column}.stats strong{font-size:32px;line-height:1.3;font-weight:500}.stats span{font-size:12px;color:#6a776e}.stats>button{margin-left:auto}.library-tools{display:flex;gap:15px;margin-top:25px;align-items:center}.library-tools>input{flex:1;min-width:120px;margin:0}.library-tools>select{width:180px;margin:0}.tabs{display:flex;padding:4px;background:#e9ecdf;border-radius:30px;white-space:nowrap}.tabs button{font-size:12px;padding:10px 15px;border:0}.tabs .active{background:white;box-shadow:0 3px 8px #24382f15}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.editor-dialog{max-width:950px}.question-toolbar{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#6c7a60}.question-toolbar>div{display:flex}.questionEdit{border:1px solid #d8dfca;background:#f0f3e8}.builder-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.builder-heading button{font-size:12px}.sticky-save{position:sticky;bottom:-25px;padding:15px 0;background:var(--paper);border-top:1px solid var(--line);z-index:2}.classroom-dialog{width:calc(100% - 36px);max-width:1400px;padding:25px;max-height:94vh}.classroom-layout{display:grid;grid-template-columns:240px 1fr;gap:40px}.room-sidebar{padding:25px 20px;background:#e9eedc;border-radius:18px;align-self:start;position:sticky;top:0;max-height:80vh;overflow:auto}.room-sidebar h3{font-size:18px;line-height:1.3}.room-sidebar>img{width:100%;height:140px;object-fit:cover;border-radius:13px;transform:rotate(-3deg);box-shadow:4px 8px 15px #283a2520}.room-sidebar>p{font-size:12px}.room-sidebar>a{display:block;padding:9px 0;border-bottom:1px solid #d6dec7;font-size:12px}.room-main{min-width:0;padding:15px 15px 40px 0}.room-main>h2{max-width:800px}.room-main .material{padding:25px;background:#fff;border:1px solid var(--line);border-radius:15px}.exercise{padding:25px;background:white;border:1px solid var(--line);scroll-margin-top:15px}.exercise legend{max-width:100%;font-size:18px;line-height:1.5;overflow-wrap:anywhere}.exercise legend>span{display:inline-grid;place-items:center;background:#dfeaC5;font-size:12px;min-width:30px;height:30px;border-radius:50%;margin-right:8px}.exercise-kind{font-size:11px;color:#7b886e;margin-bottom:20px}.option{padding:13px 17px;border:1px solid #e1e5d8;border-radius:12px;transition:background .2s,translate .2s}.option:hover{background:#f1f5e7;translate:3px 0}.option:has(input:checked){background:#e7efcf;border-color:#9cab7f}.word-bank{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.word{background:#e6edd7;border-radius:10px;font-size:14px;padding:9px 15px}.word:disabled{opacity:.3}.timer{padding-top:25px;display:flex;flex-wrap:wrap;gap:7px}.timer>span{display:block;width:100%;font-size:36px;font-variant-numeric:tabular-nums;letter-spacing:3px}.timer>button{font-size:11px;padding:7px 10px}.live-results{margin-top:25px;font-size:12px}.live-results p{font-size:11px}.score-card{padding:20px;background:#edf3df;display:flex;gap:25px;border-radius:15px;margin-top:25px;align-items:center}.score-card img{width:115px;height:115px;object-fit:cover;border-radius:14px;transform:rotate(-5deg)}.score-card h3{margin:0;font-size:20px}.score-card p{font-size:13px;margin:8px 0}.result-row{align-items:center}.result-row p{font-size:12px;margin:5px 0}.result-row button{font-size:12px;white-space:nowrap}.answer-text{white-space:pre-wrap;overflow-wrap:anywhere}.status-ok,.status-bad,.status-pending{display:inline-block;padding:5px 12px;border-radius:15px;font-size:12px;background:#e6efcf;color:#536638}.status-bad{background:#f8e1da;color:#8b4937}.status-pending{background:#fff0cc;color:#87672b}.dictionary-list{margin-top:25px}.dictionary-list>div{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.dictionary-list span{color:#6a776e}.preview-label{padding:18px;background:#fff0cc;border-radius:12px;font-size:13px}@keyframes card-hover{0%,100%{transform:rotate(-9deg) translateY(0) rotateY(-6deg)}50%{transform:rotate(-5deg) translateY(-15px) rotateY(6deg)}}@keyframes orbit-spin{to{transform:rotateX(55deg) rotateZ(360deg)}}@keyframes orb-float{50%{transform:translate3d(12px,-25px,40px)}}@keyframes spark-spin{to{rotate:360deg}}@media(min-width:1500px){.scene{perspective:1000px}.hero{padding-top:100px;padding-bottom:100px}}@media(max-width:800px){.scene{height:490px;margin-top:30px}.catcard{width:280px}.cat{height:230px}.orbit{width:320px;height:320px}.orbit-two{width:350px;height:350px}.scene .bubble{right:0;bottom:55px}.scene .top{left:0;top:10px}.scene .bottom{bottom:15px}.orb-one{right:0;top:80px;width:45px;height:45px}.meme-story{margin:15px;grid-template-columns:1fr;padding:35px 25px;gap:30px;border-radius:25px}.flip-scene{height:350px;max-width:400px;width:100%;margin:auto}.library-tools{flex-wrap:wrap}.tabs{width:100%;justify-content:center}.library-tools>select{width:145px}.stats{gap:18px;padding:20px;flex-wrap:wrap}.stats>div{flex:1;min-width:80px}.stats>button{margin:0;width:100%}.stats strong{font-size:27px}.stats span{font-size:10px}.form-columns{grid-template-columns:1fr;gap:0}.builder-heading{align-items:start;flex-direction:column}.classroom-layout{grid-template-columns:1fr;gap:20px}.room-sidebar{position:static;max-height:none;padding:20px}.room-sidebar>img,.room-sidebar>a,.room-sidebar>p{display:none}.room-sidebar>h3{margin:10px 0}.timer{padding-top:0;align-items:center}.timer>span{width:auto;font-size:25px;margin-right:15px}.live-results{margin-top:12px}.room-main{padding:0}.classroom-dialog{padding:18px}.exercise{padding:15px}.exercise legend{font-size:16px}.score-card{flex-direction:column;gap:10px;align-items:start}.score-card img{width:85px;height:85px}.dictionary-list>div{flex-direction:column;gap:3px}.result-row{align-items:start}.sticky-save{bottom:-20px}.question-toolbar{letter-spacing:0}.catcard strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){.catcard,.orbit,.orb,.spark{animation:none!important}.scene{translate:none!important;rotate:none!important}.flip-scene{transform:none}.flip-card{transition:none}.feature.tilting,.lesson.tilting,.catcard.tilting{transform:none}}
.study-tools{padding:35px 0 10px}.tools-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.tools-title h3{margin:6px 0;font-size:26px}.tools-title>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tools-grid article{background:white;padding:23px;border:1px solid var(--line);border-radius:18px}.tools-grid article>strong{font-size:17px}.tools-grid article p{font-size:13px}.set-row{display:flex;align-items:center;gap:15px;justify-content:space-between;border-bottom:1px solid var(--line);padding:15px 0}.set-row span{font-size:12px;color:#69766d}.set-row button{font-size:12px;white-space:nowrap}.board-dialog{max-width:1200px;width:calc(100% - 32px)}.board-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.board-top>div:last-child{display:flex;gap:7px;flex-wrap:wrap}.board-top>div:last-child button{font-size:12px;padding:9px 14px}.board-top>div:first-child input{width:min(330px,50vw);font-weight:600;font-size:21px}.board-wrap{position:relative;width:100%;overflow:hidden;background-color:#fff;background-image:linear-gradient(#e8ecdf 1px,transparent 1px),linear-gradient(90deg,#e8ecdf 1px,transparent 1px);background-size:25px 25px;border:1px solid var(--line);border-radius:14px;touch-action:none}.board-wrap canvas{width:100%;height:auto;display:block;touch-action:none}.board-note{position:absolute;max-width:24%;min-width:100px;padding:13px 17px;background:#fff0b8;border-radius:7px;box-shadow:2px 6px 12px #24382f20;font-size:14px;overflow-wrap:anywhere;transform:rotate(-2deg);pointer-events:none}.flashcard{min-height:235px;padding:35px 22px;background:linear-gradient(140deg,#eaf0da,#f6e8dd);border:1px solid var(--line);border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;gap:20px;box-shadow:0 15px 35px #283a2515;transition:transform .25s,box-shadow .25s}.flashcard:hover{transform:perspective(800px) rotateX(4deg) rotateY(-4deg) translateY(-5px);box-shadow:0 24px 40px #283a2520}.flashcard strong{text-align:center;font-size:clamp(24px,4vw,40px);overflow-wrap:anywhere}.flashcard span{font-size:12px;color:#6a776e}.card-progress{display:flex;gap:5px;margin-top:20px}.card-progress i{height:4px;flex:1;border-radius:3px;background:#879961}.board-top+ p{font-size:12px}@media(max-width:800px){.tools-title{align-items:start;flex-direction:column}.tools-title>div:last-child{width:100%}.tools-title button{flex:1}.tools-grid{grid-template-columns:1fr}.set-row{align-items:start;flex-wrap:wrap;gap:8px}.set-row>b{width:100%}.set-row span{flex:1}.board-top{align-items:start;flex-direction:column}.board-top>div:last-child{width:100%;justify-content:start}.board-top>div:last-child button{padding:8px 10px}.board-note{min-width:70px;padding:6px;font-size:11px}}

.card-progress i{opacity:.25}.card-progress i.current{opacity:1}
.card-entry{margin:20px 0}.card-entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.card-entry-head b{font-size:16px}.card-entry-head button,.remove-card-row{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 13px}.card-entry-row{display:grid;grid-template-columns:34px minmax(0,1fr) minmax(0,1fr) 38px;gap:10px;align-items:end;padding:12px;margin:9px 0;background:#fff;border:1px solid var(--line);border-radius:14px}.card-entry-row label{font-size:12px}.card-entry-row input{width:100%;margin-top:6px}.card-row-number{align-self:center;color:#879961;font-weight:700}.remove-card-row{font-size:20px;padding:5px;color:#875347}.file-import{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;background:#f2f5eb;border:1px dashed #aeb99d;border-radius:12px}.quiz-prompt{font-size:20px;margin:25px 0}.quiz-options,.match-grid>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.quiz-options button,.match-grid button{min-height:55px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:12px}.quiz-options button:hover,.match-grid button:hover,.match-grid button.selected{background:#eaf0da;border-color:#879961}.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.match-grid button{width:100%;height:100%;}.match-grid button:disabled{opacity:.35}
@media(max-width:650px){.card-entry-row{grid-template-columns:25px 1fr 35px}.card-entry-row label:nth-of-type(2){grid-column:2}.remove-card-row{grid-column:3;grid-row:1}.card-entry-head{align-items:start}.file-import{align-items:start;flex-direction:column}.quiz-options{grid-template-columns:1fr}.set-row button{flex:1}}
.study-score{display:flex;justify-content:space-between;gap:12px;margin:0 0 14px;color:#6a776e;font-size:13px}.study-score b{color:var(--ink);margin-left:5px}.study-flashcard{position:relative;min-height:300px;overflow:hidden;padding:0;perspective:1100px;touch-action:pan-y;user-select:none;transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .2s ease,box-shadow .25s;box-shadow:0 18px 40px #283a2520}.study-flashcard:hover{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-4px);box-shadow:0 25px 50px #283a2528}.study-flash-inner{position:relative;z-index:1;min-height:300px;display:grid;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.75,.2,1)}.study-flashcard.is-flipped .study-flash-inner{transform:rotateY(180deg)}.study-face{grid-area:1/1;min-height:300px;padding:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;backface-visibility:hidden;text-align:center;background:radial-gradient(circle at var(--mx,50%) var(--my,35%),#ffffffc9,transparent 42%),linear-gradient(140deg,#eaf0da,#f6e8dd)}.study-back{transform:rotateY(180deg);background:radial-gradient(circle at var(--mx,50%) var(--my,35%),#ffffffc9,transparent 42%),linear-gradient(140deg,#f5e6d9,#e4edd0)}.study-face small{font-size:10px;font-weight:800;letter-spacing:2px;color:#79875c}.study-face strong{max-width:100%;font-size:clamp(28px,5vw,48px);line-height:1.2;overflow-wrap:anywhere}.study-face span{font-size:12px;color:#6a776e}.study-glow{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at var(--mx,50%) var(--my,35%),#ffffff55,transparent 43%);z-index:2}.study-grade{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.study-grade button{min-height:52px}.study-result{font-size:17px}.study-exit{display:block;margin:15px auto 0;font-size:12px}.card-progress i.done{opacity:.6;background:#c2cfaa}.study-flashcard:focus-visible{outline:3px solid #809b57;outline-offset:4px}
@media(max-width:650px){.study-flashcard,.study-flash-inner,.study-face{min-height:260px}.study-face{padding:22px}.study-grade button{padding:11px 8px;font-size:13px}}
/* Clear, touch friendly learning workspace */
button{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease}button:active{transform:translateY(1px) scale(.98)}button:focus-visible{outline:3px solid #88a65e;outline-offset:3px}.primary,.action-primary{background:#30483a;color:#fff;border:1px solid #30483a;box-shadow:0 5px 14px #30483a22}.primary:hover,.action-primary:hover{background:#45634e;box-shadow:0 8px 18px #30483a30}.secondary-button,.quiet-button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:10px 16px;border:1px solid #ccd5c5;border-radius:12px;background:#fff;color:#30483a;text-decoration:none;font-weight:650}.secondary-button:hover,.quiet-button:hover{border-color:#809b57;background:#f1f5e9}.danger{border:1px solid #e3b7ab!important;background:#fff7f4!important;color:#943f35!important}.danger:hover{background:#fae9e4!important}.field-hint{font-size:13px;margin:8px 0;color:#6a776e}.form-error{padding:12px 14px;border:1px solid #e7b9ad;border-radius:12px;background:#fff3ef;color:#943f35;line-height:1.45}.completion-message{padding:12px 15px;border-radius:12px;background:#edf4df;color:#425b3d}.learning-dialog{width:min(900px,calc(100% - 28px));max-width:900px;max-height:min(92vh,980px);padding:clamp(20px,4vw,42px);overflow-y:auto;overscroll-behavior:contain}.learning-form,.learning-library{max-width:790px;margin:0 auto;min-width:0}.learning-form h2,.learning-library h2{margin:12px 0 10px}.form-intro{margin:0 0 24px;line-height:1.55}.form-label{display:block;margin:16px 0;font-weight:700}.form-label input{margin-top:7px}.card-entry{margin:24px 0;padding:18px;border:1px solid #d8dfd1;border-radius:18px;background:#fff}.card-entry-head,.learning-set-top,.assignment-heading,.import-card{display:flex;justify-content:space-between;align-items:center;gap:15px}.card-entry-head>div,.import-card>div{display:grid;gap:3px}.card-entry-head small,.import-card small,.assignment-heading small,.assignment-copy small,.homework-toggle small{display:block;font-size:12px;color:#69776b;font-weight:450;line-height:1.4}.card-entry-head>button{white-space:nowrap;border-radius:12px;border:1px solid #c8d5b7;background:#f4f8ee;color:#344c36}.learning-card-row{display:grid;grid-template-columns:34px minmax(0,1fr) 24px minmax(0,1fr) 40px;gap:8px;align-items:end;margin:12px 0;padding:13px;border:1px solid #e1e6dc;border-radius:14px;background:#fbfcf8}.learning-card-row label{min-width:0;margin:0;font-size:12px}.learning-card-row input{min-width:0;margin-top:6px;padding:11px 12px}.learning-row-number{align-self:center;color:#708455;font-weight:750}.pair-arrow{align-self:center;text-align:center;color:#7c8e68}.remove-learning-row{width:38px;height:42px;padding:0;border-radius:11px;background:#fff7f4;border:1px solid #ead0c9;color:#943f35;font-size:23px}.import-card{margin:18px 0;padding:15px 17px;border:1px solid #d9e1d2;border-radius:15px;background:#f4f7ef}.import-card>div{min-width:0}.import-card label{margin:0}.secondary-button input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.assignment-panel{margin:24px 0;padding:20px;border:2px solid #d8e2ce;border-radius:18px;background:linear-gradient(145deg,#f7f9f2,#fff);box-shadow:0 7px 22px #25382a0b}.assignment-heading{justify-content:flex-start}.assignment-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e4edcf;color:#3a543c;font-size:21px;font-weight:800}.assignment-heading b{display:block;font-size:16px}.assignment-subtitle{margin:19px 0 9px;font-size:10px;font-weight:800;letter-spacing:1.2px;color:#68765e}.assignment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.assignment-choice{position:relative;display:flex;align-items:center;gap:11px;min-width:0;min-height:68px;margin:0;padding:12px;border:1.5px solid #dbe2d6;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .18s,background .18s,box-shadow .18s,transform .18s}.assignment-choice:hover{border-color:#a8bb8b;transform:translateY(-1px)}.assignment-choice:has(input:checked){border-color:#607d45;background:#f0f6e4;box-shadow:0 0 0 2px #dce8c9}.assignment-choice input{position:absolute;width:1px;height:1px;opacity:0}.assignment-choice input:focus-visible+.assignment-check{outline:3px solid #88a65e;outline-offset:3px}.assignment-check{display:grid;place-items:center;flex:none;width:22px;height:22px;border:1.5px solid #b9c4b2;border-radius:7px;background:#fff;color:transparent;font-weight:900}.assignment-choice input:checked+.assignment-check{border-color:#607d45;background:#607d45;color:white}.assignment-copy{min-width:0;overflow-wrap:anywhere}.assignment-copy strong{display:block;font-size:14px;line-height:1.25;overflow-wrap:anywhere}.empty-hint{margin:12px 0;padding:14px;border-radius:13px;background:#f3f5ee;color:#657164;line-height:1.5}.homework-panel{margin:20px 0;padding:17px;border:1px solid #ead8a7;border-radius:16px;background:#fffbef}.homework-toggle{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;margin:0;cursor:pointer}.homework-toggle input{position:absolute;width:1px;height:1px;opacity:0}.toggle-mark{display:grid;place-items:center;width:22px;height:22px;margin-top:1px;border:1.5px solid #9f9a71;border-radius:7px;background:white;color:transparent}.homework-toggle input:checked+.toggle-mark{background:#667b45;border-color:#667b45;color:#fff}.homework-toggle input:checked+.toggle-mark:before{content:'✓';font-weight:900}.homework-toggle strong{display:block;line-height:1.35}.homework-toggle small{margin-top:4px}.homework-panel #homeworkDueWrap{padding-left:34px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:17px;border-top:1px solid #e0e4da}.action-primary{min-width:190px;min-height:48px;border-radius:13px}.learning-set-card{min-width:0;margin:16px 0;padding:20px;border:1px solid #dce2d7;border-radius:18px;background:white;box-shadow:0 6px 20px #26382f0a;transition:transform .2s,box-shadow .2s,border-color .2s}.learning-set-card:hover{transform:translateY(-2px);border-color:#c5d4b4;box-shadow:0 12px 26px #26382f12}.learning-set-card.is-assigned{border-left:5px solid #c2a349}.learning-set-top{align-items:flex-start}.learning-set-top>div{min-width:0}.learning-set-top h3{margin:6px 0 0;font-size:20px;line-height:1.3;overflow-wrap:anywhere}.set-type{font-size:10px;font-weight:800;letter-spacing:1.2px;color:#77845e}.homework-badge{flex:none;max-width:45%;padding:8px 11px;border-radius:999px;background:#fff3d2;color:#775d19;font-size:12px;font-weight:750;text-align:center;overflow-wrap:anywhere}.homework-badge.is-done{background:#eaf3df;color:#4f6a3d}.set-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.set-meta span{padding:6px 10px;border-radius:9px;background:#f3f5ef;color:#697569;font-size:12px;line-height:1.3;overflow-wrap:anywhere}.submission-list{display:grid;gap:6px;margin-top:13px;padding-top:12px;border-top:1px solid #e7ebe3}.submission-list span{font-size:12px;line-height:1.45;overflow-wrap:anywhere}.learning-set-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}.learning-set-actions .primary{min-height:44px;border-radius:12px}.learning-set-actions .secondary-button{min-height:44px;padding:9px 13px}.study-session h2{margin-bottom:12px}.study-session .study-flashcard{margin-top:6px}.study-session .study-grade button{border-radius:14px;font-weight:750}.study-session #dontKnow{background:#fff4ef;border-color:#e8c8ba;color:#874b39}.study-session #knowIt{background:#344f3e;border-color:#344f3e}.workspace-tools,.stats,.library-tools,.tools-grid,.tools-grid article,.dashhead,.dashhead>div{min-width:0}.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tools-grid article{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:23px;border:1px solid #dce2d7;border-radius:18px;background:#fff;box-shadow:0 7px 22px #26382f09}.tools-grid article strong,.tools-grid article p{max-width:100%;overflow-wrap:anywhere}.tools-grid article>button{margin-top:auto;min-height:44px;border-radius:12px;background:#edf3e5;border:1px solid #cfdbc2;color:#30483a}.tools-grid article>button:hover{background:#e1ecd4;border-color:#a8bc91}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:center}.stats>div{min-width:0;padding:13px;border-radius:13px;background:#f4f6ef}.stats span{overflow-wrap:anywhere}.library-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,240px);gap:12px}.library-tools>input,.library-tools>select{min-width:0}.managed-board{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:17px;margin:12px 0;border:1px solid #dce2d7;border-radius:16px;background:#fff}.managed-board b,.managed-board span{overflow-wrap:anywhere}.board-controls{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}.board-controls>*{min-width:0}.board-controls label{margin:0;font-size:12px}.board-controls select{margin-top:6px}.set-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}.set-row>b,.set-row>span{min-width:0;overflow-wrap:anywhere}.result-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center}.result-row>div{min-width:0;overflow-wrap:anywhere}@media(max-width:800px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats>button{grid-column:1/-1;width:100%}.library-tools{grid-template-columns:1fr}.tools-grid{grid-template-columns:1fr}.board-controls{grid-template-columns:1fr 1fr}.board-controls label{grid-column:1/-1}.set-row,.result-row{grid-template-columns:minmax(0,1fr) auto}.set-row>b,.result-row>div{grid-column:1/-1}}@media(max-width:560px){.learning-dialog{width:calc(100% - 16px);max-height:94vh;padding:20px 15px;border-radius:18px}.learning-form h2,.learning-library h2{font-size:30px}.card-entry,.assignment-panel{padding:14px}.learning-card-row{grid-template-columns:26px minmax(0,1fr) 35px;gap:8px;padding:10px}.learning-card-row label:nth-of-type(2){grid-column:2}.learning-card-row .pair-arrow{display:none}.learning-card-row .remove-learning-row{grid-column:3;grid-row:1}.card-entry-head{align-items:flex-start}.card-entry-head>button{padding:9px 10px;font-size:12px}.assignment-options{grid-template-columns:1fr}.assignment-choice{min-height:60px}.assignment-heading small{max-width:235px}.form-actions{display:grid;grid-template-columns:1fr 1fr}.action-primary{min-width:0}.learning-set-card{padding:15px}.learning-set-top{flex-direction:column}.homework-badge{max-width:100%}.learning-set-actions>*{flex:1 1 42%}.tools-grid{grid-template-columns:1fr}.managed-board{grid-template-columns:1fr}.board-controls{grid-template-columns:1fr}.board-controls label{grid-column:auto}.set-row,.result-row{grid-template-columns:1fr}.set-row>b,.result-row>div{grid-column:auto}.study-score{font-size:12px}.stats{gap:8px}.stats>div{padding:10px}}
@media(prefers-reduced-motion:reduce){button,.learning-set-card,.assignment-choice{transition:none!important}.learning-set-card:hover,.assignment-choice:hover{transform:none}}
.assignment-choice.is-empty{background:#f6f7f4;color:#738071;border-style:dashed}.assignment-choice.is-empty:hover{transform:none;border-color:#dbe2d6}
/* Existing board settings */
.managed-board{grid-template-columns:minmax(0,1fr);gap:10px;padding:20px;border-radius:18px;box-shadow:0 6px 20px #26382f0a}
.managed-board-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.managed-board-head .primary{min-height:42px;border-radius:12px}
.managed-board .form-label{margin:8px 0;font-size:13px}
.managed-board .form-label input,.managed-board .form-label select{margin-top:7px}
.managed-board .field-hint{margin:0}
.managed-board .board-controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.managed-board .board-controls button{min-height:44px;border-radius:12px}
.managed-board .board-controls .primary{min-width:190px}
@media(max-width:560px){.managed-board{padding:15px}.managed-board-head{align-items:stretch}.managed-board-head .primary{width:100%}.managed-board .board-controls{display:grid;grid-template-columns:1fr}.managed-board .board-controls button{width:100%}}
.study-flashcard{will-change:transform,opacity;cursor:grab;touch-action:pan-y;transition:transform .2s ease,box-shadow .25s,opacity .2s}
.study-flashcard:active{cursor:grabbing}
.study-flashcard.is-flipped .swipe-feedback{transform:rotateY(180deg)}
.swipe-feedback{position:absolute;z-index:3;inset:20px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;transition:transform .55s cubic-bezier(.2,.75,.2,1);backface-visibility:hidden}
.swipe-label{padding:9px 12px;border:2px solid currentColor;border-radius:12px;background:#fffdf2e8;font-size:12px;font-weight:900;letter-spacing:.7px;opacity:0;transform:scale(.92);transition:opacity .08s,transform .08s}
.swipe-label.know{color:#477b3f;opacity:var(--swipe-know,0);transform:rotate(7deg) scale(.98)}
.swipe-label.repeat{color:#a94b3b;opacity:var(--swipe-repeat,0);transform:rotate(-7deg) scale(.98)}
@media(prefers-reduced-motion:reduce){.swipe-feedback,.swipe-label{transition:none}}
.dashboard-tabs,.settings-tabs{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:8px;margin:0 0 28px;border:1px solid #dce2d7;border-radius:16px;background:#f2f4ed}
.dashboard-tabs button,.settings-tabs button{flex:none;min-height:44px;border:0;border-radius:11px;padding:10px 18px;color:#667268;background:transparent;font-weight:700}
.dashboard-tabs button.active,.settings-tabs button.active{color:#fff;background:#30483a;box-shadow:0 4px 12px #30483a24}
.dashboard-page{min-width:0;animation:pageIn .22s ease both}
@keyframes pageIn{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.dashboard-page>h3{margin-top:20px}
.materials-toolbar,.settings-heading,.settings-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:8px 0 22px}
.materials-toolbar h2,.settings-heading h2{margin:6px 0;font-size:clamp(27px,3vw,38px)}
.materials-toolbar p,.settings-heading p,.settings-section-head p{margin:0;line-height:1.45}
.materials-toolbar .primary,.settings-heading .primary,.settings-section-head .primary{flex:none;min-height:46px;border-radius:13px}
.settings-heading{padding:8px 0 22px;border-bottom:1px solid #e1e6dc}
.settings-tabs{margin:0 0 24px;background:#f4f6ef}
.settings-tabs button{font-size:13px}
.settings-section-head{margin:0 0 18px;align-items:flex-end}
.settings-section-head h3{margin:0 0 5px;font-size:21px}
.settings-section-head p{max-width:690px;font-size:13px}
.settings-records{display:grid;gap:10px}
.settings-record{display:flex;align-items:center;gap:14px;min-width:0;padding:15px 17px;border:1px solid #dce2d7;border-radius:15px;background:#fff;box-shadow:0 5px 16px #26382f08}
.record-avatar{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:13px;background:#eaf0dc;color:#43583e;font-weight:800;font-size:18px}
.record-main{display:grid;gap:3px;min-width:0;flex:1}
.record-main b{overflow-wrap:anywhere}.record-main span{font-size:12px;color:#6a776e;overflow-wrap:anywhere}
.record-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.record-actions button{min-height:40px;padding:8px 13px;border-radius:11px;font-size:12px}
.self-label{padding:8px 10px;border-radius:9px;background:#f0f4e9;color:#64745a;font-size:11px}
.access-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.access-overview article{display:grid;grid-template-columns:46px minmax(0,1fr);gap:13px;padding:19px;border:1px solid #dce2d7;border-radius:16px;background:#fff;box-shadow:0 5px 18px #26382f08}
.access-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#edf2e5;font-size:21px}
.access-overview article b{display:block;margin:1px 0 3px}.access-overview article p{margin:0 0 12px;font-size:12px;line-height:1.45}
.access-overview article button{min-height:39px;padding:8px 11px;border-radius:10px;background:#f4f7ef;border-color:#dce5d2;font-size:12px}
.access-fieldset{margin:16px 0;padding:16px;border:1.5px solid #dce4d3;border-radius:15px;background:#f8faf5}
.access-fieldset legend{padding:0 7px;font-size:13px;font-weight:750}
.access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.access-grid .assignment-choice{min-height:58px;padding:10px}
.lesson-pick{display:flex;justify-content:space-between;align-items:center;gap:13px;width:100%;margin:8px 0;padding:13px 15px;border:1px solid #dce2d7;border-radius:13px;background:white;text-align:left}
.lesson-pick span:first-child{display:grid;gap:3px;min-width:0}.lesson-pick b{overflow-wrap:anywhere}.lesson-pick small{font-size:12px;color:#6a776e}.lesson-pick span:last-child{flex:none;color:#526947;font-size:12px;font-weight:700}
.settings-loading{padding:20px;border-radius:14px;background:#f4f6ef;color:#69766b}
.group-record .record-avatar{font-size:20px}
@media(max-width:700px){.access-overview{grid-template-columns:1fr}.settings-section-head{align-items:stretch;flex-direction:column}.settings-section-head>.primary{width:100%}}
@media(max-width:560px){.dashboard-tabs{gap:3px;padding:5px}.dashboard-tabs button,.settings-tabs button{padding:9px 13px;min-height:42px;font-size:12px}.settings-tabs{gap:2px}.settings-heading,.materials-toolbar{align-items:stretch;flex-direction:column}.settings-heading>.primary,.materials-toolbar>.primary{width:100%}.settings-record{align-items:flex-start;flex-wrap:wrap;padding:13px}.record-main{flex-basis:calc(100% - 58px)}.record-actions{width:100%;justify-content:flex-start;padding-left:56px}.record-actions button{flex:1}.access-grid{grid-template-columns:1fr}.lesson-pick{align-items:flex-start;flex-direction:column}.lesson-pick span:last-child{align-self:flex-end}}

.assignment-list{display:grid;gap:12px;margin-top:22px}.assignment-record{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:20px;border:1px solid #dce2d7;border-radius:16px;background:white;box-shadow:0 6px 20px #26382f08}.assignment-record>div:first-child{min-width:0}.assignment-record h3{margin:6px 0;font-size:19px;overflow-wrap:anywhere}.assignment-record p{margin:5px 0 0;color:#718073;font-size:13px}.assignment-record-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.assignment-record-actions span{max-width:280px;color:#687569;font-size:12px;overflow-wrap:anywhere}.assignment-record-actions button{min-height:40px}.collaborator-cursors{z-index:9}@media(max-width:620px){.assignment-record{align-items:flex-start;flex-direction:column}.assignment-record-actions{justify-content:flex-start;width:100%}}

/* Separate board library: previews represent the saved scene; settings stay per card. */
.board-gallery-page{padding:30px 0 60px}.board-gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.board-gallery-heading h2{margin:7px 0;font-size:clamp(28px,4vw,42px);letter-spacing:-.04em}.board-gallery-heading p{margin:0;color:#6b7c70}.board-gallery-heading>button{flex:none}.board-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px}.board-gallery-card{position:relative;min-width:0;background:#fff;border:1px solid #e2e9df;border-radius:20px;box-shadow:0 12px 34px #293c2b0b;transition:transform .2s,box-shadow .2s}.board-gallery-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px #293c2b16}.board-preview-button{display:block;position:relative;width:100%;height:auto;padding:0;border:0;border-radius:19px 19px 0 0;overflow:hidden;background:#f7f8f3;cursor:pointer}.board-preview-button canvas{display:block;width:100%;aspect-ratio:480/264;object-fit:cover}.board-open-label{position:absolute;left:14px;bottom:12px;padding:8px 11px;border-radius:9px;color:#fff;background:#334e42ed;font-size:11px;font-weight:700;opacity:0;transform:translateY(4px);transition:opacity .18s,transform .18s}.board-preview-button:hover .board-open-label,.board-preview-button:focus-visible .board-open-label{opacity:1;transform:translateY(0)}.board-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 15px 16px;min-height:76px}.board-card-copy{min-width:0}.board-card-copy strong,.board-card-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.board-card-copy strong{font-size:14px;color:#253c30}.board-card-copy small{margin-top:6px;color:#819086;font-size:11px}.board-card-menu{position:relative;flex:none}.board-card-menu summary{width:35px;height:35px;display:grid;place-items:center;list-style:none;border-radius:10px;color:#4f6758;font-size:22px;line-height:1;cursor:pointer}.board-card-menu summary::-webkit-details-marker{display:none}.board-card-menu[open] summary,.board-card-menu summary:hover{background:#eef4e9}.board-card-menu-popover{position:absolute;z-index:20;right:0;top:40px;min-width:185px;padding:5px;border:1px solid #e2e8df;border-radius:12px;background:#fff;box-shadow:0 12px 26px #233a2b24}.board-card-menu-popover button{display:block;width:100%;padding:10px 11px;border:0;border-radius:8px;background:transparent;text-align:left;color:#344c3e;font-size:12px;white-space:nowrap}.board-card-menu-popover button:hover{background:#f0f5ed}.board-card-menu-popover button.danger{color:#a14337}.board-settings-panel h2{margin:8px 0}.board-settings-panel .access-grid{max-height:230px;overflow:auto}.board-settings-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.board-settings-error{padding:10px;border-radius:10px;background:#fff0ec;color:#9a4437}.board-settings-dialog{width:min(700px,calc(100vw - 24px))}@media(max-width:700px){.board-gallery-heading{align-items:flex-start;flex-direction:column}.board-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.board-gallery-page{padding-top:20px}.board-card-footer{padding:12px}.board-card-menu-popover{right:-6px}}@media(max-width:420px){.board-gallery-grid{grid-template-columns:1fr 1fr}.board-card-copy strong{font-size:12px}.board-card-copy small{font-size:10px}.board-card-footer{padding:10px}.board-card-menu summary{width:30px;height:30px}}
.board-gallery-card:has(.board-card-menu[open]),.board-gallery-card.menu-open{z-index:30;transform:none}

/* Виэлло: светлый стеклянный интерфейс и мягкая глубина. */
:root{--ink:#202f3d;--paper:#f5f7fb;--accent:#696ee9;--line:#dfe5ef}
body{background:#f5f7fb;color:#202f3d;font-family:'Segoe UI',Arial,sans-serif}body:before{display:none}button,input,textarea,select{font-family:inherit}button:focus-visible,a:focus-visible{outline:3px solid #8793ff;outline-offset:3px}
.site-header{height:86px;max-width:1510px;margin:0 auto;padding:0 5%;display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative;z-index:10;background:transparent;border:0}.site-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:24px;letter-spacing:-.06em;color:#202f3d;line-height:1;font-weight:750}.site-brand .brand-symbol{display:grid;place-items:center;width:37px;height:37px;border-radius:13px;background:linear-gradient(145deg,#aaaaff,#6e78e9);color:white;font-size:22px;box-shadow:0 7px 18px #7b83df55}.site-brand small{display:block;font-size:8px;letter-spacing:.16em;color:#8b98a7;margin-top:5px}.site-header nav{display:flex;align-items:center;gap:32px}.site-header nav a{font-size:13px;font-weight:600;text-decoration:none;color:#68788b}.site-header nav a:hover{color:#606ce1}.site-header nav button{border:1px solid #dbe1ec;border-radius:13px;padding:12px 17px;background:#ffffffb8;color:#35445a;font-weight:700;font-size:13px;box-shadow:0 5px 20px #64758a10}.site-header nav button span{margin-left:10px;color:#7c80e8}
.platform-landing{overflow:hidden}.platform-hero{max-width:1510px;min-height:640px;margin:0 auto;padding:30px 5% 80px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:40px}.hero-copy{position:relative;z-index:2;max-width:610px}.hero-pill,.section-kicker{font-size:10px;font-weight:800;letter-spacing:.15em;color:#7a82ad}.hero-pill{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;background:#ffffffa8;border:1px solid #fff;border-radius:100px;box-shadow:0 4px 18px #8c9bb313}.live-dot{width:7px;height:7px;border-radius:50%;background:#81d6c1;box-shadow:0 0 0 4px #b7ecdd70}.hero-copy h1,.platform-section h2{color:#243448;letter-spacing:-.065em;font-weight:740;line-height:1.06}.hero-copy h1{font-size:clamp(54px,6.6vw,98px);margin:27px 0 23px}.hero-copy h1 em,.platform-section h2 em{font-style:normal;color:#7a80df}.hero-copy>p{font-size:clamp(16px,1.25vw,19px);line-height:1.7;color:#748296;max-width:510px;margin:0}.hero-actions{display:flex;align-items:center;gap:25px;margin-top:32px}.platform-landing .primary{display:inline-flex;align-items:center;justify-content:center;gap:25px;padding:16px 21px;border:0;border-radius:15px;background:#5966d9;color:white;font-weight:700;box-shadow:0 12px 25px #6d78d946}.platform-landing .primary:hover{background:#4c59cc;transform:translateY(-2px);box-shadow:0 16px 30px #6d78d954}.hero-secondary{color:#68798e;text-decoration:none;font-weight:700;font-size:13px}.hero-secondary span{padding-left:8px}.hero-note{display:flex;align-items:center;gap:13px;margin-top:53px;font-size:12px;line-height:1.5;color:#97a2b0}.hero-note strong{color:#6e7d8e;font-weight:650}.note-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;color:#8a8be6;background:#e7e9fc;font-size:20px}
.platform-scene{height:560px;position:relative;isolation:isolate;perspective:1200px;--rx:0deg;--ry:0deg}.scene-halo{position:absolute;border-radius:50%;filter:blur(42px);pointer-events:none}.halo-a{width:410px;height:410px;left:12%;top:12%;background:#cbd4ff9c}.halo-b{width:310px;height:310px;right:1%;bottom:8%;background:#d4f1e8a8}.glass-orb{position:absolute;border-radius:50%;background:radial-gradient(circle at 30% 22%,#ffffffed,#c6d3fa90 35%,#9faeea90 70%,#e9eaffae);box-shadow:inset 8px 10px 20px #fff9,inset -10px -14px 24px #7586b932,0 18px 38px #7489b43d;animation:glass-float 7s ease-in-out infinite}.orb-a{width:120px;height:120px;right:6%;top:8%;z-index:3}.orb-b{width:55px;height:55px;left:5%;bottom:18%;animation-delay:-2s}.glass-stage{position:absolute;inset:9% 10% 12% 12%;padding:19px;border:1px solid #ffffffd9;border-radius:29px;background:linear-gradient(140deg,#ffffffd6,#ffffff7d 60%,#dfeaf2a6);box-shadow:0 30px 70px #6a7d9a2b,inset 0 1px 0 #fff;backdrop-filter:blur(20px);transform:rotateX(calc(var(--rx) + 3deg)) rotateY(calc(var(--ry) - 7deg)) rotateZ(-2deg);transform-style:preserve-3d;transition:transform .25s ease;overflow:hidden}.stage-top{display:flex;align-items:center;gap:10px;height:46px;color:#58687c}.stage-logo{width:31px;height:31px;display:grid;place-items:center;border-radius:11px;background:#e5e8ff;color:#7a7fea}.stage-top strong,.stage-top small{display:block;font-size:11px;line-height:1.4}.stage-top small{font-size:9px;color:#a6b0be}.stage-dots{margin-left:auto;letter-spacing:3px;color:#aeb9c7}.stage-canvas{position:relative;height:calc(100% - 70px);border-radius:20px;background:radial-gradient(#b7c4d557 1px,transparent 1px),linear-gradient(145deg,#f8fbfff2,#eaf0f9db);background-size:12px 12px,auto;overflow:hidden}.stage-heading{position:absolute;top:17%;left:9%;font-size:clamp(13px,1.5vw,20px);line-height:1.35;color:#6e7b8f}.stage-heading strong{color:#32465c}.stage-scribble{position:absolute;right:18%;top:11%;font-size:40px;color:#a1a8ee}.stage-lines{position:absolute;left:9%;top:44%;display:grid;gap:9px;width:32%}.stage-lines i{height:5px;border-radius:10px;background:#c6d1e4}.stage-lines i:nth-child(2){width:80%}.stage-lines i:nth-child(3){width:60%}.stage-card-one,.stage-card-two{position:absolute;display:flex;flex-direction:column;border:1px solid #fff9;box-shadow:0 12px 28px #7a84a82b}.stage-card-one{right:8%;top:25%;width:42%;height:39%;padding:15px;border-radius:16px;background:linear-gradient(135deg,#d4d9ff,#bfc8f5);transform:rotate(5deg);color:#49567b}.stage-card-one small,.stage-card-two strong{font-size:clamp(8px,.85vw,11px)}.stage-card-one strong{margin-top:auto;font-size:clamp(11px,1.2vw,16px);line-height:1.3}.stage-card-one span{position:absolute;right:12px;bottom:10px}.stage-card-two{bottom:10%;left:33%;width:38%;height:23%;padding:12px;border-radius:14px;background:#e3f5ec;transform:rotate(-5deg);color:#5e8174}.stage-card-two span{font-size:20px}.stage-toolbar{position:absolute;left:50%;bottom:4%;transform:translateX(-50%);display:flex;gap:4px;padding:5px;border:1px solid #fff;border-radius:13px;background:#ffffffcf;box-shadow:0 7px 20px #52698825}.stage-toolbar span{display:grid;place-items:center;width:29px;height:29px;color:#6b788b;font-size:15px}.stage-toolbar span:first-child{background:#ececff;border-radius:8px;color:#7779df}.float-chip{position:absolute;display:flex;gap:10px;align-items:center;padding:12px 16px;border:1px solid #ffffffde;border-radius:16px;background:#ffffffd4;box-shadow:0 14px 30px #8795b32b;backdrop-filter:blur(18px);animation:glass-float 6s ease-in-out infinite;z-index:4}.float-chip>span{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:#ecedff;color:#8185e8}.float-chip strong,.float-chip small{display:block;line-height:1.4}.float-chip strong{font-size:11px;color:#4d5d73}.float-chip small{font-size:9px;color:#9ba6b5}.chip-one{left:0;top:20%}.chip-two{right:0;bottom:19%;animation-delay:-3s}.scene-label{position:absolute;right:8%;bottom:2%;font-size:9px;letter-spacing:.16em;color:#a4aec1}.scene-label span{color:#9196e8}@keyframes glass-float{50%{translate:0 -9px}}
.platform-section{max-width:1510px;margin:auto;padding:100px 5%}.features-section{border-top:1px solid #e6eaf1}.section-intro{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:40px}.platform-section h2{font-size:clamp(38px,4vw,60px);margin:15px 0 0}.section-intro>p,.workflow-copy>p{max-width:360px;color:#8995a6;font-size:14px;line-height:1.8;margin:0}.feature-bento{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:18px}.bento-card{position:relative;min-height:300px;padding:28px;border:1px solid #fff;border-radius:25px;background:#ffffffbd;box-shadow:0 12px 32px #7789a312;overflow:hidden;transform:perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .25s ease,box-shadow .25s ease}.bento-card:hover{box-shadow:0 22px 45px #7789a321}.bento-card:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at var(--light-x,50%) var(--light-y,0%),#ffffffa6,transparent 46%);pointer-events:none}.feature-number{position:relative;font-size:10px;letter-spacing:.14em;font-weight:800;color:#9b9fe0}.bento-card h3{position:relative;font-size:23px;line-height:1.2;letter-spacing:-.035em;margin:22px 0 12px;max-width:260px}.bento-card p{position:relative;max-width:320px;font-size:13px;line-height:1.7;color:#8693a4;margin:0}.bento-board{grid-row:span 2;min-height:620px;background:linear-gradient(150deg,#f3f2ff,#ebf3fa)}.bento-board-art{position:absolute;left:8%;right:8%;bottom:7%;height:45%;border:1px solid #ffffffc9;border-radius:18px;background:radial-gradient(#bbc8d957 1px,transparent 1px),#ffffff8c;background-size:11px 11px;box-shadow:0 18px 35px #7f90af1c;transform:rotate(-3deg)}.mini-note{position:absolute;left:14%;top:18%;padding:16px;background:#d7dafb;border-radius:12px;font-size:11px;color:#66749b;line-height:1.6;transform:rotate(-5deg)}.mini-note strong{font-size:14px;color:#495777}.mini-circle{position:absolute;right:16%;top:18%;display:grid;place-items:center;width:74px;height:74px;border-radius:50%;background:#cceddf;color:#72aa94;font-size:32px;box-shadow:inset 0 3px 8px #ffffffa8}.mini-line{position:absolute;bottom:14%;left:30%;padding:8px 18px;background:#fff;border-radius:10px;color:#9b9fe1}.bento-cards{background:linear-gradient(145deg,#fff,#f3f4ff)}.card-stack{position:absolute;right:8%;bottom:-13%;width:145px;height:165px;transform:rotate(-9deg)}.card-stack div{position:absolute;inset:0;border-radius:16px;background:#dce2f7;box-shadow:0 10px 22px #737da827;padding:17px;color:#8590a5}.card-stack div:last-child{transform:rotate(15deg) translate(24px,-12px);background:#fff;border:1px solid #edf0f5;display:flex;flex-direction:column}.card-stack small{font-size:9px;letter-spacing:.12em;color:#a3add0}.card-stack strong{font-size:16px;color:#55647a;margin-top:15px}.card-stack span{margin-top:auto;color:#9a9ee4}.bento-words{background:linear-gradient(145deg,#f6fcfb,#ecf8f4)}.word-preview{display:flex;align-items:center;gap:11px;margin-top:25px;padding:12px;border-radius:12px;background:#fff;border:1px solid #edf2ef;font-size:11px;color:#7e8e9c;box-shadow:0 8px 16px #769b8e0e}.word-preview strong{color:#4f7669}.word-preview b{color:#a7b9ae}.word-preview.muted{margin-top:7px;opacity:.7}.bento-work{grid-column:span 2;min-height:300px;background:linear-gradient(120deg,#fff,#f8f7ff)}.progress-art{position:absolute;right:6%;top:16%;width:36%;display:grid;gap:8px;transform:rotate(3deg)}.progress-art div{display:flex;justify-content:space-between;gap:8px;padding:13px;border:1px solid #edf0f5;border-radius:12px;background:#fff;font-size:10px;color:#8491a2;box-shadow:0 8px 20px #7585a71a}.progress-art b{color:#8292df}
.workflow-section{display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:start;padding-top:80px;padding-bottom:120px}.workflow-copy>p{margin-top:23px}.workflow-copy button{margin-top:30px}.workflow-steps{display:grid;gap:12px}.workflow-steps>div{display:flex;gap:20px;padding:22px;border:1px solid #fff;border-radius:18px;background:#ffffffa8;box-shadow:0 8px 22px #6b819211}.workflow-steps>div>span{color:#a7a9e4;font-size:11px;font-weight:800}.workflow-steps h3{margin:0 0 5px;font-size:16px;color:#3f5063}.workflow-steps p{margin:0;color:#909cad;font-size:12px;line-height:1.6}.platform-footer{display:flex;align-items:center;justify-content:space-between;max-width:1510px;margin:auto;padding:35px 5% 45px;border-top:1px solid #e3e9f2;background:transparent;color:#96a2b2;text-align:left}.platform-footer a{color:#68798f;text-decoration:none;font-size:13px}.platform-footer .footer-brand{font-weight:800;letter-spacing:-.04em;font-size:20px;color:#6977cb}.platform-footer p{margin:5px 0 0;font-size:12px}
/* Cabin surfaces share the same visual language without changing their structure. */
#dashboard{max-width:1420px;padding:48px 5% 90px}.dashhead h2{letter-spacing:-.045em;color:#26374a}.dashboard-tabs,.settings-tabs{background:#ffffffa6;border-color:#fff;box-shadow:0 8px 25px #778ca912;backdrop-filter:blur(16px)}.dashboard-tabs button.active,.settings-tabs button.active{background:#6370db;box-shadow:0 5px 14px #6d78d94a}.stats>div,.settings-record,.board-gallery-card,.lesson,.access-overview>*,.assignment-card{border-color:#ffffffc9;background:#ffffffd9;box-shadow:0 10px 30px #7286a515}.settings-heading h2,.materials-toolbar h2,.board-gallery-heading h2{letter-spacing:-.045em;color:#2b3c50}.primary,.action-primary{background:#5d6bd7;border-color:#5d6bd7;box-shadow:0 6px 18px #7781d52c}.primary:hover,.action-primary:hover{background:#505fc9}dialog{border:1px solid #ffffffd9;background:#fafcffed;box-shadow:0 25px 80px #293b5840;backdrop-filter:blur(22px)}dialog::backdrop{background:#263a5280;backdrop-filter:blur(9px)}
/* Dictionary uses explicit columns instead of inherited generic list rows. */
dialog.lexicon-dialog{width:min(850px,calc(100vw - 28px));max-width:850px;padding:clamp(22px,4vw,40px);border-radius:25px}.lexicon-head{display:flex;gap:16px;align-items:center;padding-right:40px}.lexicon-mark,.lexicon-row-icon{display:grid;place-items:center;flex:none;border-radius:16px;background:linear-gradient(145deg,#e2e6ff,#d8f0e8);color:#777fcb;font-weight:800}.lexicon-mark{width:56px;height:56px;font-size:19px}.lexicon-head h2{margin:3px 0;font-size:clamp(27px,4vw,38px);letter-spacing:-.05em}.lexicon-head p,.lexicon-list-head p{margin:0;color:#8a98a7;font-size:13px}.lexicon-form{margin-top:28px;padding:20px;background:#f1f4fa;border:1px solid #fff;border-radius:19px}.lexicon-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.lexicon-fields label,.lexicon-list-head label{display:block;margin:0;font-size:12px;font-weight:700;color:#617287}.lexicon-fields label small{font-weight:400;color:#a1aab5}.lexicon-fields input,.lexicon-list-head input{display:block;width:100%;margin:7px 0 0;padding:12px;border:1px solid #e0e6f0;border-radius:11px;background:#ffffffde;color:#2e4052;min-width:0}.lexicon-form button{margin-top:14px;border-radius:11px;padding:11px 16px;font-size:12px}.lexicon-list-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:28px 0 12px}.lexicon-list-head h3{margin:0 0 2px;font-size:17px}.lexicon-list-head h3 span{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:8px;background:#e9edff;color:#7b83d3;font-size:11px}.lexicon-list-head label{width:175px;flex:none}.lexicon-rows{display:grid;gap:9px}.lexicon-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:center;padding:15px;border:1px solid #edf0f5;border-radius:15px;background:#fff;box-shadow:0 5px 14px #788ca20c}.lexicon-term{display:flex;align-items:center;gap:11px;min-width:0}.lexicon-row-icon{width:38px;height:38px;border-radius:12px;font-size:12px}.lexicon-term strong,.lexicon-term small{display:block;overflow-wrap:anywhere}.lexicon-term strong{font-size:14px;color:#34475b}.lexicon-term small{font-size:10px;color:#9ca9b6;margin-top:3px}.lexicon-translation{min-width:0;border-left:1px solid #edf0f4;padding-left:18px}.lexicon-translation span{font-size:9px;letter-spacing:.12em;color:#a8b2be;font-weight:700}.lexicon-translation p{margin:3px 0 0;font-size:13px;line-height:1.4;color:#64758a;overflow-wrap:anywhere}.lexicon-empty{display:grid;justify-items:center;gap:5px;padding:35px 15px;text-align:center;border:1px dashed #dfe5ef;border-radius:15px;color:#8c99a8;font-size:13px}.lexicon-empty span{font-size:25px;color:#a0a5e7}.lexicon-empty strong{color:#607188}.lexicon-empty p{margin:0}
@media(max-width:1000px){.platform-hero{grid-template-columns:1fr 1fr;gap:10px}.platform-scene{height:480px}.feature-bento{grid-template-columns:1fr 1fr}.bento-board{grid-row:span 2}.bento-work{grid-column:auto}.progress-art{width:37%}}
@media(max-width:700px){.site-header{height:72px;padding:0 5%}.site-header nav{gap:10px}.site-header nav a{display:none}.site-header nav button{padding:10px 12px}.platform-hero{padding-top:25px;grid-template-columns:1fr;gap:0}.hero-copy h1{font-size:clamp(50px,12vw,76px)}.hero-note{margin-top:28px}.platform-scene{height:410px;margin-top:15px}.glass-stage{inset:8% 8% 12% 8%}.orb-a{width:75px;height:75px}.float-chip{padding:8px 10px}.chip-one{left:0}.chip-two{right:0}.platform-section{padding:70px 5%}.section-intro{align-items:start;flex-direction:column}.feature-bento{grid-template-columns:1fr}.bento-board{min-height:480px;grid-row:auto}.bento-card{min-height:270px}.bento-work{grid-column:auto}.workflow-section{grid-template-columns:1fr;gap:35px}.platform-footer{gap:15px}.lexicon-fields{grid-template-columns:1fr}.lexicon-list-head{align-items:start;flex-direction:column}.lexicon-list-head label{width:100%}.lexicon-row{grid-template-columns:1fr;gap:8px}.lexicon-translation{padding:0 0 0 49px;border:0}.hero-actions{gap:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.glass-orb,.float-chip{animation:none}.glass-stage,.bento-card{transition:none;transform:none!important}}
.platform-landing .bento-cards{background:linear-gradient(145deg,#fff,#f3f4ff)}.platform-landing .bento-words{background:linear-gradient(145deg,#f6fcfb,#ecf8f4)}.platform-landing .bento-card:hover{transform:perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));box-shadow:0 22px 45px #7789a321}.lessonart{position:relative;background:radial-gradient(circle at 60% 25%,#ffffffaa,transparent 35%),linear-gradient(145deg,#cbd6fc,#d4efe7)!important}.lessonart .lesson-art-symbol{position:absolute;top:10%;left:10%;display:grid;place-items:center;width:72px;height:72px;border-radius:25px;background:linear-gradient(145deg,#ffffffc9,#e4e8ff94);box-shadow:0 12px 28px #7b8ebd35;color:#8290db;font-size:36px;transform:rotate(-12deg)}.room-abstract,.result-abstract{display:grid;place-items:center;width:100%;min-height:130px;border-radius:18px;background:radial-gradient(circle at 35% 25%,#fff9,transparent 38%),linear-gradient(135deg,#d3dbfa,#d4f0e5);color:#8291db;font-size:48px}.result-abstract{width:110px;min-height:110px;flex:none}.lexicon-dialog .eyebrow{color:#949bd8}.site-brand span:last-child{font-weight:750}.platform-landing [class*=bento-] h3{color:#304257}
/* Keep the header compact on narrow screens. */
.site-header nav button{display:inline-flex;align-items:center;white-space:nowrap}.site-brand small{white-space:nowrap}@media(max-width:400px){.site-header{gap:8px}.site-brand{font-size:22px}.site-brand small{font-size:7px;letter-spacing:.09em}.site-header nav button{font-size:11px}.site-header nav button span{margin-left:4px}}
.motion-ready .bento-card,.motion-ready .workflow-steps>div{opacity:0;translate:0 24px;transition:opacity .6s ease,translate .6s ease,transform .25s ease,box-shadow .25s ease}.motion-ready .bento-card.in-view,.motion-ready .workflow-steps>div.in-view{opacity:1;translate:0 0}@media(prefers-reduced-motion:reduce){.motion-ready .bento-card,.motion-ready .workflow-steps>div{opacity:1;translate:none;transition:none}}
.platform-landing .bento-card .feature-number{font-size:10px;letter-spacing:.14em;font-weight:800;color:#9b9fe0}@media(max-width:700px){.platform-landing .feature-bento .bento-board{min-height:480px}.platform-landing .bento-cards{min-height:370px;padding-bottom:160px}.platform-landing .bento-work{min-height:0}.platform-landing .bento-work .progress-art{position:relative;right:auto;top:auto;width:100%;margin-top:24px;transform:none}}
/* Shared form and lesson surfaces. */
.access-fieldset,.card-entry,.exercise,.questionEdit,.learning-form,.assignment-choice{border-color:#e3e9f3;background:#f7f9fd}.assignment-choice:has(input:checked){border-color:#a7afe9;background:#f0f1ff}.classroom-dialog .room-sidebar{background:linear-gradient(155deg,#eff1ff,#eaf6f3);border-color:#e4eaf3}.classroom-dialog .room-main,.learning-dialog,.editor-dialog{background:#fafcff}.classroom-dialog .exercise,.editor-dialog .questionEdit{background:#fff;border:1px solid #e6ebf3;border-radius:16px}.room-sidebar a{color:#617491}.room-abstract,.result-abstract{box-shadow:inset 0 1px #fff,0 10px 25px #8497b51a}.lexicon input:focus,.classroom-dialog input:focus,.editor-dialog input:focus,.editor-dialog textarea:focus{outline:2px solid #a8b4ff;outline-offset:1px}
/* Единая спокойная система поверхностей: лёгкое стекло, читаемый контраст. */
:root{--paper:#f5f5f7;--ink:#1d2530;--line:#e6e7ec;--accent:#626ad2}body{background:#f5f5f7;color:#1d2530}.site-header{position:sticky;top:12px;width:calc(100% - 8%);max-width:1390px;height:68px;padding:0 20px;border:1px solid #ffffffdc;border-radius:22px;background:#ffffffb8;box-shadow:0 8px 30px #28334a10;backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%)}.site-brand .brand-symbol{background:linear-gradient(145deg,#a1aaf1,#707bd7);box-shadow:0 6px 16px #7884c632}.site-header nav button{background:#1f2937;color:#fff;border-color:#1f2937;box-shadow:none}.site-header nav button span{color:#c5cafa}.platform-hero{padding-top:50px}.hero-copy h1,.platform-section h2{color:#1d2530;letter-spacing:-.065em}.hero-copy h1 em,.platform-section h2 em{color:#7984cf}.hero-pill{background:#ffffffa8;border-color:#fff;color:#7b8295}.hero-copy>p,.section-intro>p,.workflow-copy>p{color:#737e8d}.platform-landing .primary{background:#27354a;box-shadow:0 9px 25px #29384f29}.platform-landing .primary:hover{background:#364b68;box-shadow:0 13px 30px #29384f38}.hero-secondary{color:#53637a}.glass-stage{background:linear-gradient(145deg,#ffffffeb,#f6f7fbd0);border-color:#fff;box-shadow:0 30px 75px #46577122,inset 0 1px #fff}.stage-canvas{background-color:#f8f9fc}.bento-card{border-color:#ffffffed;box-shadow:0 12px 38px #35445f0d;background:#ffffffbd;backdrop-filter:blur(14px)}.platform-landing .bento-cards{background:linear-gradient(145deg,#fff,#f5f6fd)}.platform-landing .bento-words{background:linear-gradient(145deg,#fbfdfd,#eff7f4)}.bento-board{background:linear-gradient(145deg,#f9f9ff,#edf1f9)}.dashboard-tabs,.settings-tabs{border-radius:19px;background:#ffffffb8;border-color:#fff;box-shadow:0 7px 26px #3d4c6310}.dashboard-tabs button,.settings-tabs button{color:#677383}.dashboard-tabs button.active,.settings-tabs button.active{background:#26384c;color:#fff;box-shadow:0 5px 14px #34455f30}.settings-record,.board-gallery-card,.lesson,.card-entry,.assignment-choice{border-color:#e9ebf1;background:#ffffffde;box-shadow:0 9px 28px #35445c0d}.primary,.action-primary{background:#344761;border-color:#344761;box-shadow:0 6px 18px #34476126}.primary:hover,.action-primary:hover{background:#455c7b}.secondary-button,.quiet-button{border-color:#e2e6ee;color:#45566c;background:#fff}.secondary-button:hover,.quiet-button:hover{border-color:#bdc9dc;background:#f5f7fb}dialog{border:1px solid #fff;background:#fbfcfef5;border-radius:24px;box-shadow:0 25px 75px #25364b36;backdrop-filter:blur(24px) saturate(135%)}dialog::backdrop{background:#18273872;backdrop-filter:blur(10px)}dialog[open]{animation:glass-dialog-in .32s cubic-bezier(.2,.8,.2,1) both}dialog[open]::backdrop{animation:glass-backdrop-in .3s ease both}@keyframes glass-dialog-in{from{opacity:0;transform:translateY(12px) scale(.985);filter:blur(4px)}to{opacity:1;transform:none;filter:blur(0)}}@keyframes glass-backdrop-in{from{opacity:0}to{opacity:1}}.dashboard-page{animation:pageIn .3s cubic-bezier(.2,.75,.2,1) both}.board-gallery-card{transition:transform .35s cubic-bezier(.2,.75,.2,1),box-shadow .35s}.board-gallery-card:hover{box-shadow:0 18px 38px #52617b1f}.lexicon-form{background:#f5f7fb}.lexicon-mark,.lexicon-row-icon{background:linear-gradient(145deg,#edf0fc,#e5f1ed);color:#7782c8}@media(max-width:700px){.site-header{top:8px;width:calc(100% - 24px);height:60px;padding:0 12px}.platform-hero{padding-top:35px}}
@media(prefers-reduced-motion:reduce){dialog[open],dialog[open]::backdrop,.dashboard-page{animation:none!important}.board-gallery-card{transition:none!important}}
/* Расписание и учёт оплаты: те же панели, что и в кабинете. */
.schedule-page{padding:12px 0 50px}.schedule-heading{margin-bottom:24px}.schedule-heading h2{margin:8px 0;font-size:clamp(29px,4vw,42px);letter-spacing:-.045em}.schedule-heading p,.schedule-list-heading p{color:#748396;font-size:14px;margin:0}.schedule-setup{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:30px}.schedule-panel{padding:18px 20px;border:1px solid #fff;border-radius:20px;background:#ffffffe3;box-shadow:0 10px 32px #34465b0d}.schedule-panel summary{cursor:pointer;font-weight:750;color:#31465d;list-style:none}.schedule-panel summary::-webkit-details-marker{display:none}.schedule-panel summary::after{content:'＋';float:right;color:#7d8ba1}.schedule-panel[open] summary::after{content:'−'}.schedule-form{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:18px}.schedule-form label,.schedule-list-heading label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#607286}.schedule-form input:not([type=checkbox]),.schedule-list-heading input,.schedule-actions select{min-width:0;width:100%;padding:10px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;color:#35475a;font:inherit}.schedule-form .schedule-check{grid-column:1/-1;display:flex;align-items:flex-start;gap:9px;font-weight:500;line-height:1.4}.schedule-form .schedule-check input{margin-top:3px}.schedule-form p{grid-column:1/-1;margin:0;color:#8b99aa;font-size:12px}.schedule-form button{justify-self:start}.schedule-list-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:24px 0 12px}.schedule-list-heading h3{margin:0 0 4px;font-size:21px}.schedule-list-heading label{min-width:165px}.schedule-rows{display:grid;gap:9px}.schedule-row{display:grid;grid-template-columns:150px minmax(160px,1fr) auto;gap:20px;align-items:center;padding:15px 18px;border:1px solid #edf0f5;border-radius:16px;background:#ffffffeb;box-shadow:0 6px 18px #34465b0a}.schedule-date strong,.schedule-date span,.schedule-summary b,.schedule-summary small{display:block}.schedule-date strong,.schedule-summary b{font-size:14px;color:#30465c}.schedule-date span,.schedule-summary small{font-size:12px;color:#8392a2;margin-top:4px}.schedule-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.schedule-actions button{padding:9px 11px;border:1px solid #e1e7ef;border-radius:10px;background:white;color:#465c72;font-size:12px;font-weight:650}.schedule-actions button.primary{background:#344761;color:white;border-color:#344761}.schedule-actions select{width:135px;font-size:12px}.schedule-occupied{font-size:12px;color:#9aa5af}.schedule-empty{padding:30px;border:1px dashed #dce4ef;border-radius:16px;text-align:center;color:#8493a5}.schedule-error{padding:12px 15px;border:1px solid #edc3be;border-radius:12px;background:#fff2f0;color:#a1423b;margin:12px 0}.payment-alert{margin:0 0 20px;padding:18px;border:1px solid #efc9c5;border-radius:18px;background:#fff1ef;color:#923f39}.payment-alert>div{display:flex;align-items:flex-start;gap:12px}.payment-alert-icon{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:10px;background:#f4d1cc;font-weight:800}.payment-alert p{margin:3px 0 0;font-size:13px}.payment-alert ul{display:grid;gap:8px;margin:14px 0 0;padding:0;list-style:none}.payment-alert li{display:grid;gap:3px;padding:11px 12px;border-radius:11px;background:#fff9;font-size:12px}.payment-alert li span,.payment-alert li small{overflow-wrap:anywhere;color:#95635d}.schedule-check input{accent-color:#6072d3}@media(max-width:800px){.schedule-setup{grid-template-columns:1fr}.schedule-row{grid-template-columns:1fr 1fr;gap:12px}.schedule-actions{grid-column:1/-1}}@media(max-width:480px){.schedule-form{grid-template-columns:1fr}.schedule-list-heading{align-items:start;flex-direction:column}.schedule-list-heading label{width:100%}.schedule-actions select{width:auto;flex:1}.schedule-row{grid-template-columns:1fr 1fr;padding:14px}}
.schedule-list-heading select{min-width:0;width:100%;padding:10px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;color:#35475a;font:inherit}.schedule-list-heading label{max-width:220px}.schedule-form .schedule-error{grid-column:1/-1;margin:0}
.payment-recipient{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:14px}.payment-recipient small{display:block}.payment-qr{width:164px;max-width:100%;padding:6px;background:#fff;border-radius:12px}.payment-qr svg{display:block;width:100%;height:auto}
/* Weekly planner: the day details stay in a readable dialog on small screens. */
.schedule-page-header{display:flex;align-items:end;justify-content:space-between;gap:20px}.schedule-publish{flex:none}.week-calendar{padding:26px;border:1px solid #fff;border-radius:26px;background:linear-gradient(150deg,#ffffffed,#f4f7fff2);box-shadow:0 16px 42px #526b8b12}.week-calendar-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.week-caption{font-size:10px;letter-spacing:.16em;color:#8595aa;font-weight:800}.week-calendar-heading h3{margin:6px 0;font-size:24px;color:#263c52;letter-spacing:-.035em}.week-calendar-heading p{margin:0;color:#8593a4;font-size:13px}.week-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.week-controls button,.week-jump{min-height:38px;padding:9px 12px;border:1px solid #e3e9f2;border-radius:11px;background:#fff;color:#40536c;font-weight:700;cursor:pointer}.week-controls button:hover,.week-jump:hover{background:#f0f3ff;border-color:#ccd6f2}.week-jump{display:flex;align-items:center;gap:7px;font-size:12px}.week-jump input{width:20px;padding:0;border:0;color:transparent;background:transparent;cursor:pointer}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.week-day{min-width:0;min-height:205px;padding:14px 12px 11px;display:flex;flex-direction:column;align-items:stretch;text-align:left;border:1px solid #e8edf5;border-radius:17px;background:#fff;color:#334b62;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s}.week-day:hover,.week-day:focus-visible{transform:translateY(-3px);border-color:#aebce9;box-shadow:0 10px 24px #6a7fac1c}.week-day.is-today{border-color:#8999eb;background:linear-gradient(145deg,#f9faff,#f0f2ff)}.week-day-name{text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:800;color:#8999aa}.week-day-number{display:flex;align-items:baseline;gap:5px;margin:4px 0 10px;font-size:25px;line-height:1.1;font-weight:750}.week-day-number small{font-size:9px;color:#6e7fd8;font-weight:700}.week-day-items{display:grid;align-content:start;gap:5px;flex:1;min-height:70px}.week-entry{display:flex;min-width:0;gap:4px;padding:5px;border-radius:7px;background:#eaf7f1;color:#36816b;font-size:10px;line-height:1.2}.week-entry.mine{background:#eceeff;color:#5868b5}.week-entry.other{background:#f1f3f5;color:#8d9aa9}.week-entry span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.week-day-empty,.week-more{font-size:11px;color:#a1adba}.week-day-bottom{display:flex;justify-content:space-between;gap:4px;margin-top:10px;color:#8492a4;font-size:10px;font-weight:700}.week-legend{display:flex;flex-wrap:wrap;gap:16px;margin-top:18px;color:#8090a3;font-size:11px}.week-legend span{display:flex;align-items:center;gap:6px}.week-legend i{width:8px;height:8px;border-radius:50%;background:#8bdbb7}.week-legend .legend-booked{background:#9aa8ed}.week-legend .legend-other{background:#c8d0d8}
.schedule-dialog{width:min(760px,calc(100vw - 32px));max-width:760px;max-height:calc(100dvh - 36px);padding:26px;border:1px solid #ffffff;border-radius:24px;background:#fbfcff;color:#30465c;box-shadow:0 24px 80px #172c4a40;overflow:auto}.schedule-dialog::backdrop{background:#1d2a3d80;backdrop-filter:blur(5px)}.schedule-dialog-header{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:22px}.schedule-dialog-header h2{margin:7px 0;font-size:27px;letter-spacing:-.035em;text-transform:capitalize}.schedule-dialog-header p{margin:0;font-size:13px;color:#8290a1}.schedule-dialog-close{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid #e1e8f1;border-radius:50%;background:#fff;color:#4a5c70;font-size:24px;cursor:pointer}.schedule-dialog .schedule-row{grid-template-columns:100px minmax(120px,1fr) auto;gap:12px}.schedule-day-add{margin-top:18px}.publish-days{grid-column:1/-1;min-width:0;padding:0;border:0}.publish-days legend{margin-bottom:9px;font-size:12px;font-weight:700;color:#607286}.publish-days>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.publish-day input{position:absolute;opacity:0;pointer-events:none}.publish-day span{display:grid;place-items:center;gap:4px;min-height:62px;border:1px solid #e1e8f1;border-radius:12px;background:white;color:#8a9aab;font-size:11px;text-transform:uppercase;cursor:pointer}.publish-day span b{font-size:19px;color:#40566d}.publish-day input:checked+span{border-color:#7488e3;background:#edf0ff;color:#6578ce;box-shadow:inset 0 0 0 1px #7488e3}.publish-day input:focus-visible+span{outline:2px solid #5068df;outline-offset:2px}.publish-day input:disabled+span{opacity:.4;cursor:not-allowed}.schedule-form select{min-width:0;width:100%;padding:10px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;color:#35475a;font:inherit}
@media(max-width:1050px){.week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.week-day{min-height:160px}}@media(max-width:600px){.schedule-page-header,.week-calendar-heading{align-items:stretch;flex-direction:column}.schedule-publish{align-self:start}.week-calendar{padding:17px;border-radius:20px}.week-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.week-day{min-height:150px;padding:12px}.week-controls{justify-content:start}.schedule-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px;border-radius:19px}.schedule-dialog .schedule-row{grid-template-columns:1fr 1fr}.schedule-dialog .schedule-actions{grid-column:1/-1}.schedule-dialog-header h2{font-size:23px}.schedule-form{grid-template-columns:1fr 1fr}.publish-days>div{gap:4px}.publish-day span{min-height:54px}.publish-day span b{font-size:16px}}
@media(prefers-reduced-motion:reduce){.week-day{transition:none}}
.schedule-reminders{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:12px 14px;border:1px solid #dce5ff;border-radius:14px;background:linear-gradient(100deg,#f3f6ff,#fafbff);color:#5065af;font-size:12px}.schedule-reminders b{margin-right:4px}.schedule-reminders span{padding:6px 9px;border-radius:9px;background:#fff;color:#5f6e84}
.schedule-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;grid-column:1/-1}.profile-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.profile-cards>div{padding:14px;border:1px solid #e7ebf1;border-radius:14px;background:#f8faff}.profile-cards b,.profile-cards strong{display:block}.profile-cards b{font-size:11px;color:#77869a}.profile-cards strong{margin-top:4px;font-size:25px;color:#30465c}.profile-lesson-list{display:grid;gap:7px;margin-bottom:18px}.profile-lesson-list>div{display:flex;justify-content:space-between;gap:12px;padding:9px 11px;border-bottom:1px solid #edf0f5;font-size:12px}.profile-lesson-list span{color:#7f8da0}.payment-lesson-picks{grid-column:1/-1;display:grid;gap:7px;max-height:180px;overflow:auto}.payment-lesson-picks label{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e4e9f0;border-radius:10px;background:#fff;font-size:12px}.publish-days input[type=checkbox]{accent-color:#6174da}@media(max-width:650px){.schedule-form-grid,.profile-cards{grid-template-columns:1fr 1fr}.profile-lesson-list>div{display:grid}}
.profile-lesson-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.profile-lesson-actions button{padding:6px 8px;border:1px solid #dfe5ed;border-radius:8px;background:#fff;color:#50647a;font-size:11px;font-weight:700}.profile-lesson-actions button:last-child{background:#e9edff;border-color:#cbd4ff;color:#5265bf}
/* Teacher finances and subscription coverage. */
.teacher-finance{margin:0 0 24px;padding:24px;border:1px solid #fff;border-radius:24px;background:#ffffffed;box-shadow:0 12px 34px #34465b09}
.finance-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.finance-heading h3{margin:6px 0 16px;font-size:23px;color:#30465c}.finance-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.finance-filters label{display:grid;gap:5px;font-size:11px;color:#607286;font-weight:700}.finance-filters input,.finance-filters select{min-width:0;max-width:210px;padding:9px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;color:#35475a;font:inherit}.finance-filters button{padding:10px;border:1px solid #dfe5ed;border-radius:10px;background:#f5f7ff;color:#5265bf}.finance-filters button[aria-pressed=true]{background:#e4e9ff;border-color:#a5b2ef}
.finance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.finance-metrics>div{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid #e7ebf2;border-radius:16px;background:#f7f9fe}.finance-metrics span{font-size:12px;color:#607286}.finance-metrics strong{font-size:clamp(18px,2.1vw,28px);color:#30465c;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.finance-metrics small{font-size:10px;color:#7a889b;line-height:1.5}.finance-note{font-size:12px;color:#7c8b9d;line-height:1.6;margin:12px 0}.finance-subscriptions{border-top:1px solid #e9edf4;margin-top:18px;padding-top:16px}.finance-subscriptions summary{cursor:pointer;font-size:14px;font-weight:700;color:#425870}.subscription-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0 20px}.subscription-cards>article{padding:14px;background:#f6f7ff;border:1px solid #e3e7fa;border-radius:16px;min-width:0}.subscription-cards>article>button{padding:0 0 10px;border:0;background:none;color:#5265bf;text-align:left;font-weight:750}.subscription-card{padding:14px;background:#f5f7ff;border:1px solid #e1e6f7;border-radius:12px;min-width:0}.subscription-card b,.subscription-card span{display:block;overflow-wrap:anywhere}.subscription-card b{font-size:13px;color:#394f6b}.subscription-card span,.subscription-card small{font-size:11px;line-height:1.6;color:#71829b}.subscription-card progress{display:block;width:100%;height:9px;margin:12px 0 7px;accent-color:#7281d4;border:0;border-radius:10px;overflow:hidden}.subscription-card progress::-webkit-progress-bar{background:#e0e5f4;border-radius:10px}.subscription-card progress::-webkit-progress-value{background:#7281d4;border-radius:10px}.subscription-card progress::-moz-progress-bar{background:#7281d4}
.finance-students{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-top:16px;max-height:300px;overflow:auto}.finance-students>button{display:grid;gap:7px;padding:13px 15px;text-align:left;border:1px solid #e6eaf2;border-radius:12px;background:#fff;color:#4c6076}.finance-students b{font-size:13px}.finance-students span,.finance-students small{font-size:11px;color:#7b8a9d}.finance-students .has-debt{color:#ac6550}
.subscription-timeline{margin-top:20px;padding-top:18px;border-top:1px solid #e2e7f2}.subscription-timeline-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#4c607b;font-size:13px}.subscription-timeline-heading small{color:#7b88a1;font-size:11px}.subscription-track{margin-top:12px;padding:12px;border:1px solid #e0e5f6;border-radius:14px;background:#f1f3ff}.subscription-track>button{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 10px;padding:0;background:none;border:0;text-align:left;color:#5265a1;font-size:12px}.subscription-track>button span{color:#7b88a1;overflow-wrap:anywhere}.subscription-track-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;background:linear-gradient(transparent 60%,#d6ddf0 60%,#d6ddf0 65%,transparent 65%)}.subscription-track-day{display:flex;flex-direction:column;align-items:center;gap:5px;padding:5px 2px;color:#a1acc2;min-width:0}.subscription-track-day small{font-size:10px}.subscription-track-day span{background:#f1f3ff;border-radius:8px;padding:3px;font-size:11px;white-space:nowrap}.subscription-track-day.is-used span{background:#6d7bc3;color:#fff}.subscription-track-day.is-planned span{background:#e8ecff;color:#6376b9;border:1px dashed #9aa9d9}
.profile-lesson-list>.profile-lesson{padding:15px;border:1px solid #e6ebf3;border-radius:14px;background:#fafbff;align-items:center;gap:16px}.profile-lesson-info{display:grid;gap:8px;min-width:0}.profile-lesson-info>b{display:block;line-height:1.6;font-size:13px;color:#344c68}.profile-lesson-meta{display:block;font-size:12px;line-height:1.6}.profile-lesson-actions{flex-shrink:0}.profile-lesson-list{gap:10px}.schedule-form>h3{grid-column:1/-1;margin:8px 0 0}
@media(max-width:850px){.finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-heading{align-items:start}.finance-filters{width:100%}.finance-students{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.teacher-finance{padding:16px}.finance-filters{display:grid;grid-template-columns:1fr 1fr}.finance-filters input,.finance-filters select{width:100%;max-width:100%}.finance-filters label:last-child{grid-column:1/-1}.finance-metrics{gap:8px}.finance-metrics>div{padding:12px}.finance-students{grid-template-columns:1fr}.profile-lesson-list>.profile-lesson{display:grid;padding:12px}.subscription-cards{grid-template-columns:1fr}.subscription-track{padding:9px}.subscription-timeline-heading{line-height:1.6}}
.subject-rate-list,.payment-history-list{display:grid;gap:9px;margin:12px 0 18px}.subject-rate-card,.payment-history-card{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;padding:13px 15px;border:1px solid #e4eaf0;border-radius:14px;background:linear-gradient(135deg,#fff,#f8faf7)}.subject-rate-card>div:first-child,.payment-history-card>div:first-child{display:grid;gap:5px;min-width:0}.subject-rate-card b,.payment-history-card b{color:#30465c;font-size:13px}.subject-rate-card span,.payment-history-card span,.payment-history-card small{color:#7b8a9d;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.subject-rate-card>div:last-child,.payment-history-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.subject-rate-card button,.payment-history-links button{padding:7px 9px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;color:#50647a;font-size:11px;font-weight:700;cursor:pointer}.subject-rate-card button:first-child{color:#5368c7}.subject-rate-card.is-archived{opacity:.68}.subject-form{padding:16px;border:1px solid #e4eaf0;border-radius:15px;background:#f8faf7}.subject-form>h4,.schedule-form>h4{grid-column:1/-1;margin:0;color:#344a61}.subject-form-actions{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1}.subject-form-actions button:not(.primary){padding:9px 12px;border:1px solid #dfe5ed;border-radius:10px;background:white;color:#50647a}.schedule-subject-needed{max-width:250px;color:#8a6c55;font-size:11px;line-height:1.4}.schedule-actions select[data-book-subject],.schedule-actions select[data-assign-subject]{min-width:160px;width:auto;max-width:220px}.payment-history-card.is-reversed{background:#fff8f7;border-color:#f0d5d1}.payment-history-card.is-reversed b{text-decoration:line-through;color:#9c7773}.payment-history-links button[data-profile-open]{background:#eef3e9;border-color:#d9e4cf;color:#4e6d50}.payment-history-links button[data-reverse-payment]{border-color:#efd2cf;color:#a34d47}.subscription-card.is-reversed{opacity:.62;border-style:dashed}.profile-cards{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}#profileSubjects,#profileSubscriptions,#profilePayments,#profileLessons{scroll-margin-top:28px}#modalBody>section>h3{margin-top:24px}
@media(max-width:650px){.subject-rate-card,.payment-history-card{align-items:flex-start;flex-direction:column}.subject-rate-card>div:last-child,.payment-history-links{justify-content:flex-start}.schedule-actions select[data-book-subject],.schedule-actions select[data-assign-subject]{width:100%;max-width:none}.schedule-subject-needed{max-width:none}}
.student-finance{margin:0 0 22px;padding:22px;border:1px solid #fff;border-radius:22px;background:linear-gradient(135deg,#f8faf4,#fff);box-shadow:0 10px 28px #34465b0a}.student-finance h3{margin:5px 0 14px;color:#30465c}.student-finance .profile-cards{margin:12px 0 18px}.student-finance .finance-subscriptions{padding:12px 0;border-top:1px solid #e9edf4}.student-finance .subscription-cards{margin-bottom:8px}.student-finance .payment-history-card{background:#fff}.schedule-paid-state{display:inline-flex;align-items:center;padding:7px 10px;border-radius:9px;background:#e8f4ea;color:#4e7b55;font-size:11px;font-weight:750}
.profile-lesson-meta{display:flex;flex-wrap:wrap;gap:7px}.profile-lesson-meta>span{padding:3px 8px;border-radius:7px;background:#eef1f7;color:#6c7d93;font-size:11px}.profile-lesson-meta>.is-paid{background:#e7f4ee;color:#4c856c}.profile-lesson-meta>.is-due{background:#fff0e9;color:#af7459}
.payment-history-links button[data-refund-payment]{border-color:#e9d9b3;color:#88631e;background:#fffaf0}.payment-history-links button[data-reverse-payment]{font-size:10px}.payment-refund-note{display:block;margin-top:5px;color:#a26240!important}
/* Make the date field and close button large, stable touch targets. */
.week-controls .week-jump{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:4px 5px 4px 12px;border:1px solid #dfe5f1;border-radius:12px;background:#fff;box-sizing:border-box}.week-jump label{margin:0;color:#65758b;font-size:12px;white-space:nowrap}.week-jump input{display:block;width:150px;min-width:0;margin:0;padding:6px 2px;border:0;outline:0;background:transparent;color:#344b63;font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;cursor:pointer}.week-jump input::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.7}.week-controls .week-jump button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:9px;background:#eef1fb;color:#6476c9;font-size:20px;line-height:1}.schedule-dialog-header{align-items:flex-start}.schedule-dialog-header>div{min-width:0}.schedule-dialog .schedule-dialog-close{box-sizing:border-box;display:grid;place-items:center;flex:0 0 42px;width:42px;min-width:42px;height:42px;min-height:42px;margin:0;padding:0;border:1px solid #e1e8f1;border-radius:50%;background:#fff;color:#4a5c70;font-size:25px;line-height:1;transform:none}.schedule-dialog .schedule-dialog-close:hover{background:#f0f3fa;transform:none}.schedule-actions .history-price{display:flex;align-items:center;gap:6px;margin:0;color:#657589;font-size:11px;white-space:nowrap}.schedule-actions .history-price input{box-sizing:border-box;width:145px;min-width:0;margin:0;padding:9px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;font:inherit}.schedule-actions .history-paid{display:flex;align-items:center;gap:6px;margin:0;color:#657589;font-size:11px;white-space:nowrap}.schedule-actions .history-paid input{width:auto;margin:0;accent-color:#6072d3}@media(max-width:600px){.week-controls .week-jump{width:100%;max-width:260px}.week-jump input{flex:1;width:auto}.schedule-dialog .schedule-dialog-close{width:42px;height:42px}.schedule-actions .history-price{flex-basis:100%}}
.shared-card-game{box-sizing:border-box;width:100%;height:100%;padding:7%;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:1em;border:1px solid #dce4d8;border-radius:24px;background:linear-gradient(145deg,#fffdf7,#f1f5eb);box-shadow:0 16px 38px #24382f18;color:#30483a;font:inherit;overflow:hidden}.shared-card-title{font-size:clamp(16px,5cqw,28px);text-align:center;overflow-wrap:anywhere}.shared-card-prompt{flex:1;min-height:0;width:100%;padding:1em;border:1px solid #e4e8dc;border-radius:18px;background:linear-gradient(135deg,#edf3e4,#faeee4);color:#30483a;font:inherit;font-size:clamp(16px,4cqw,25px);font-weight:750;overflow:auto;overflow-wrap:anywhere;cursor:pointer}.shared-card-controls{display:flex;justify-content:center;gap:.55em;flex-wrap:wrap;max-height:35%;overflow:auto}.shared-card-controls button{max-width:100%;padding:.65em .85em;border:1px solid #d7e0d2;border-radius:12px;background:#fff;color:#30483a;font:inherit;font-size:clamp(12px,2.8cqw,16px);overflow-wrap:anywhere;cursor:pointer}.shared-card-controls button:hover{background:#eaf1df;border-color:#abbc9c}.shared-card-progress{text-align:center;font-size:clamp(11px,2.5cqw,14px);color:#788473}.shared-card-prompt:disabled{cursor:default}
.interactive-page{max-width:1100px;margin:0 auto;padding:32px 0}.interactive-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.interactive-heading h2{margin:7px 0;font-size:34px;color:#334a3e}.interactive-heading p{max-width:680px;color:#718076;line-height:1.6}.interactive-list{display:grid;gap:12px}.interactive-card{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;border:1px solid #e0e6dc;border-radius:18px;background:#fff;box-shadow:0 8px 24px #26382f08}.interactive-card-info{min-width:0}.interactive-card h3{margin:5px 0;font-size:19px;overflow-wrap:anywhere}.interactive-card p{margin:5px 0;color:#728076;font-size:13px;overflow-wrap:anywhere}.interactive-card-actions{display:flex;flex:0 0 auto;gap:8px}.interactive-card-actions button{padding:9px 13px;border:1px solid #dbe4d7;border-radius:11px;background:#f8faf5;color:#344f40;cursor:pointer}.interactive-card-actions button:hover{background:#eaf1df}.interactive-form .import-card{margin-top:14px}.interactive-form [hidden]{display:none!important}@media(max-width:650px){.interactive-page{padding:22px 0}.interactive-heading{align-items:flex-start;flex-direction:column}.interactive-heading button{width:100%}.interactive-card{align-items:flex-start;flex-direction:column}.interactive-card-actions{width:100%}.interactive-card-actions button{flex:1}}

/* Interactive editor: the form has two fields and a remove button (no arrow column). */
.interactive-form .learning-card-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;gap:12px;align-items:end}
.interactive-form .learning-card-row label{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0;align-self:stretch;font-size:13px;line-height:1.4}
.interactive-form .learning-card-row label:nth-of-type(2){grid-column:auto}
.interactive-form .learning-card-row input{width:100%;min-width:0;margin:0}
.interactive-form .learning-card-row .remove-learning-row{grid-column:3;grid-row:1;align-self:end;width:40px;height:42px;padding:0}
@media(max-width:700px){
 .interactive-form .learning-card-row{grid-template-columns:minmax(0,1fr) 40px;gap:10px;align-items:start}
 .interactive-form .learning-card-row label,.interactive-form .learning-card-row label:nth-of-type(2){grid-column:1}
 .interactive-form .learning-card-row .remove-learning-row{grid-column:2;grid-row:1;align-self:start}
 .interactive-form .card-entry-head{align-items:center}
}

.interactive-settings{margin:18px 0;padding:20px;border:1px solid #e1e6ee;border-radius:18px;background:#fff}.interactive-settings h3{margin:0 0 14px}.interactive-settings-grid,.interactive-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.interactive-settings-grid>label,.interactive-extra-grid>label{display:grid;gap:6px;min-width:0;font-size:13px;color:#536154}.interactive-settings input,.interactive-settings select,.interactive-extra input{width:100%;min-width:0}.interactive-extra{grid-column:1/-1;padding:8px 2px 0}.interactive-extra summary{cursor:pointer;font-size:12px;color:#60715f}.interactive-extra-grid{padding:10px 0}.interactive-item-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px!important}.interactive-item-row .interactive-extra{grid-column:1/-1}.bulk-entry{display:grid;gap:9px;margin:16px 0;padding:15px;border:1px dashed #b8c4ad;border-radius:14px;background:#f7f9f3}.bulk-entry textarea{width:100%;resize:vertical;border:1px solid #d8dfd2;border-radius:10px;padding:11px;font:inherit}.bulk-entry button{justify-self:start;border:1px solid #cbd8c0;border-radius:10px;padding:9px 13px;background:#edf3e4;color:#364d3b}.bulk-entry small{color:#718076}@media(max-width:650px){.interactive-settings-grid,.interactive-extra-grid{grid-template-columns:1fr}.interactive-item-row{grid-template-columns:minmax(0,1fr) 40px!important}.interactive-item-row label{grid-column:1}.interactive-item-row .remove-learning-row{grid-column:2;grid-row:1}.interactive-item-row .interactive-extra{grid-column:1/-1}.bulk-entry button{width:100%}}

.interactive-item-row{grid-template-columns:32px minmax(0,1fr) minmax(0,1fr) 40px!important}.interactive-item-row .card-row-number{grid-column:1;align-self:center}.interactive-item-row>label:nth-child(2){grid-column:2}.interactive-item-row>label:nth-child(3){grid-column:3}.interactive-item-row>.remove-learning-row{grid-column:4;grid-row:1;align-self:end}.interactive-item-row .interactive-extra{grid-column:2/-1}.interactive-item-row .interactive-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.interactive-item-row:has(>label:nth-child(3)>.interactive-order){grid-template-columns:32px minmax(0,1fr) minmax(0,1fr) 40px!important}.interactive-item-row>label:only-of-type{grid-column:2/4}.interactive-item-row .interactive-truth,.interactive-item-row .interactive-category{width:100%;margin-top:6px}@media(max-width:650px){.interactive-item-row{grid-template-columns:25px minmax(0,1fr) 38px!important}.interactive-item-row>label:nth-child(2),.interactive-item-row>label:nth-child(3){grid-column:2}.interactive-item-row>label:nth-child(3){grid-row:2}.interactive-item-row>.remove-learning-row{grid-column:3;grid-row:1}.interactive-item-row .interactive-extra{grid-column:2/-1}.interactive-item-row .interactive-extra-grid{grid-template-columns:1fr}}

/* Keep every template's content fields inside their own grid tracks. */
.interactive-form .interactive-item-row{grid-template-columns:30px minmax(180px,1.2fr) minmax(150px,.9fr) 40px!important;column-gap:10px;align-items:end}
.interactive-form .interactive-item-row>.card-row-number{grid-column:1;grid-row:1;align-self:center}
.interactive-form .interactive-item-row>label:nth-child(2){grid-column:2;grid-row:1;min-width:0}
.interactive-form .interactive-item-row>label:nth-child(3){grid-column:3;grid-row:1;min-width:0}
.interactive-form .interactive-item-row>label:only-of-type{grid-column:2/4;grid-row:1;min-width:0}
.interactive-form .interactive-item-row>.remove-learning-row{grid-column:4;grid-row:1;align-self:end}
.interactive-form .interactive-item-row label input,.interactive-form .interactive-item-row label select{box-sizing:border-box;width:100%;min-width:0}
.interactive-form .interactive-item-row>.interactive-extra{grid-column:2/-1;grid-row:2;min-width:0}
@media(max-width:700px){.interactive-form .interactive-item-row{grid-template-columns:25px minmax(0,1fr) 38px!important;align-items:start}.interactive-form .interactive-item-row>label:nth-child(2){grid-column:2;grid-row:1}.interactive-form .interactive-item-row>label:nth-child(3){grid-column:2;grid-row:2}.interactive-form .interactive-item-row>label:only-of-type{grid-column:2;grid-row:1}.interactive-form .interactive-item-row>.remove-learning-row{grid-column:3;grid-row:1;align-self:start}.interactive-form .interactive-item-row>.interactive-extra{grid-column:2/-1;grid-row:3}.interactive-form .interactive-item-row>.card-row-number{grid-row:1}}
.interactive-settings{box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow:visible}.interactive-settings-grid{box-sizing:border-box;width:100%;max-width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.interactive-settings-grid>label{box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:anywhere}.interactive-settings-grid>.check{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;justify-content:start;gap:11px;min-height:52px;margin:0;padding:11px 13px;border:1px solid #e0e5ed;border-radius:13px;background:#fff;color:#46546a;line-height:1.35;cursor:pointer;transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}.interactive-settings-grid>.check:hover{border-color:#b8c1ee;background:#f9f9ff}.interactive-settings-grid>.check:has(input:checked){border-color:#929de9;background:#f0f2ff;box-shadow:0 0 0 2px #dfe2ff;transform:translateY(-1px)}.interactive-settings-grid>.check input[type="checkbox"]{appearance:none;-webkit-appearance:none;box-sizing:border-box;display:grid;place-content:center;flex:none;width:21px;height:21px;min-width:21px;margin:0;padding:0;border:1.5px solid #aab4c3;border-radius:6px;background:#fff;cursor:pointer;transition:background-color .16s,border-color .16s,transform .16s,box-shadow .16s}.interactive-settings-grid>.check input[type="checkbox"]::after{content:"";width:5px;height:9px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(45deg) scale(0);transition:transform .16s cubic-bezier(.2,.8,.2,1)}.interactive-settings-grid>.check input[type="checkbox"]:checked{border-color:#6571dc;background:#6571dc;box-shadow:0 3px 8px #6571dc44;animation:interactive-check-pop .2s ease-out}.interactive-settings-grid>.check input[type="checkbox"]:checked::after{transform:translateY(-1px) rotate(45deg) scale(1)}.interactive-settings-grid>.check input[type="checkbox"]:focus-visible{outline:3px solid #aab2ff;outline-offset:3px}.interactive-settings-grid>.check input[type="checkbox"]:disabled{opacity:.55;cursor:not-allowed}@keyframes interactive-check-pop{50%{transform:scale(1.16)}}@media(max-width:650px){.interactive-settings-grid{grid-template-columns:minmax(0,1fr)}.interactive-settings-grid>.check{min-height:48px}}
.interactive-option-group{box-sizing:border-box;margin:14px 0;padding:15px;border:1px solid #e0e5ed;border-radius:16px;background:#fff}.interactive-option-group h4{margin:0 0 12px;color:#263448;font-size:14px;font-weight:750}.interactive-option-group .interactive-settings-grid{display:grid;gap:10px}.interactive-settings .timer-seconds-field[hidden]{display:none}.shared-game-answer-review{max-height:30%;overflow:auto;text-align:left}.shared-game-answer-review summary{cursor:pointer;font-weight:700}.shared-card-media{display:grid;justify-items:center;gap:.5em;max-height:24%;overflow:auto}.shared-card-media img{max-width:min(100%,420px);max-height:180px;object-fit:contain;border-radius:12px}.shared-card-media audio{max-width:100%}

/* Gap-text editor: give each field a deliberate track instead of relying on auto-placement. */
.interactive-form .interactive-item-row.interactive-gap-row{grid-template-columns:30px minmax(0,1.25fr) minmax(220px,.95fr) 40px!important;grid-template-areas:"number passage answers remove" "number passage distractors remove";column-gap:12px;row-gap:14px;align-items:start}
.interactive-form .interactive-gap-row>.card-row-number{grid-area:number;align-self:center}
.interactive-form .interactive-gap-row>.interactive-gap-passage{grid-area:passage;min-width:0}
.interactive-form .interactive-gap-row>.interactive-gap-answers-field{grid-area:answers;min-width:0}
.interactive-form .interactive-gap-row>.interactive-gap-distractors-field{grid-area:distractors;min-width:0}
.interactive-form .interactive-gap-row>.interactive-gap-remove{grid-area:remove;justify-self:end;align-self:start}
.interactive-form .interactive-gap-row label{box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:normal;word-break:normal}
.interactive-form .interactive-gap-row label small{display:block;max-width:100%;line-height:1.45;overflow-wrap:anywhere}
.interactive-form .interactive-gap-row textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;resize:vertical}
.interactive-form .interactive-gap-row .interactive-gap-passage textarea{min-height:230px}
.interactive-form .interactive-gap-row .interactive-gap-answers-field textarea{min-height:130px}
.interactive-form .interactive-gap-row .interactive-gap-distractors-field textarea{min-height:96px}
@media(max-width:700px){.interactive-form .interactive-item-row.interactive-gap-row{grid-template-columns:25px minmax(0,1fr) 38px!important;grid-template-areas:"number passage remove" "number answers ." "number distractors .";column-gap:10px;row-gap:12px}.interactive-form .interactive-gap-row>.interactive-gap-remove{grid-area:remove}.interactive-form .interactive-gap-row>.interactive-gap-passage{grid-area:passage}.interactive-form .interactive-gap-row>.interactive-gap-answers-field{grid-area:answers}.interactive-form .interactive-gap-row>.interactive-gap-distractors-field{grid-area:distractors}.interactive-form .interactive-gap-row .interactive-gap-passage textarea{min-height:170px}}
.interactive-form .interactive-gap-passage{display:grid;align-content:start;gap:9px;min-width:0}.interactive-form .interactive-gap-passage>label{display:grid;gap:7px;min-width:0}.interactive-form .interactive-gap-passage>.interactive-gap-insert{justify-self:start;padding:8px 12px;border:1px solid #ccd8c3;border-radius:10px;background:#edf3e6;color:#405b44;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background-color .16s,border-color .16s,transform .16s}.interactive-form .interactive-gap-passage>.interactive-gap-insert:hover{border-color:#a9bd9a;background:#e3edd9;transform:translateY(-1px)}.interactive-form .interactive-gap-passage>small{color:#718076;font-size:11px;line-height:1.45}

.subscription-use-control{display:grid;gap:8px;margin:-6px 0 18px}.subscription-use-control>[data-subscription-toggle]{justify-self:start}.subscription-use-panel{display:grid;gap:8px;padding:12px;border:1px solid #dfe5ed;border-radius:13px;background:#f8faf7}.subscription-use-panel[hidden]{display:none}.subscription-use-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid #e5eaf0;border-radius:10px;background:#fff}.subscription-use-row span{font-size:12px;color:#52647a;line-height:1.5}.subscription-use-row button{flex:0 0 auto;padding:8px 10px;border:1px solid #d2ddc5;border-radius:9px;background:#edf4e6;color:#36513d;font-size:12px;font-weight:750;cursor:pointer}@media(max-width:600px){.subscription-use-row{align-items:stretch;flex-direction:column}.subscription-use-row button{width:100%}}
.subscription-date-form{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:10px;align-items:end;padding:12px 14px;margin:10px 0 18px;border:1px solid #e4eaf0;border-radius:13px;background:#f8faf7}.subscription-date-form label{display:grid;gap:6px;color:#607286;font-size:12px;font-weight:700}.subscription-date-form input{min-width:0;padding:9px 10px;border:1px solid #dfe5ed;border-radius:9px;background:#fff;color:#35475a;font:inherit}.subscription-date-form button{padding:9px 12px;border:1px solid #d2ddc5;border-radius:10px;background:#edf4e6;color:#36513d;font-size:12px;font-weight:750;cursor:pointer}.subscription-date-form .schedule-error{grid-column:1/-1}@media(max-width:560px){.subscription-date-form{grid-template-columns:1fr}.subscription-date-form button{width:100%}}.archived-account-section{margin-top:30px;padding:20px;border:1px solid #dde4ed;border-radius:18px;background:#f7f9fc}.archived-account-section>div:first-child p{max-width:760px;color:#6b7b8e;line-height:1.6}.archived-account-section h3{margin:0 0 6px}.archived-account-record{background:#f9fafc;opacity:.92}.archived-student-note{display:grid;gap:4px;margin:12px 0;padding:12px 14px;border:1px solid #dfe5ed;border-radius:12px;background:#f4f6fa;color:#52647a}.archived-student-note span{font-size:13px}.profile-cancellation-note{display:block;margin-top:7px;color:#8b5c48;line-height:1.5}.cancel-lesson-form{display:grid;gap:14px}.cancel-lesson-form label{display:grid;gap:7px;color:#52647a;font-size:13px;font-weight:700}.cancel-lesson-form textarea,.cancel-lesson-form select{box-sizing:border-box;width:100%;min-width:0;padding:11px 12px;border:1px solid #d7dfeb;border-radius:11px;background:#fff;color:#29384a;font:inherit}.cancel-lesson-form textarea{resize:vertical}.cancel-lesson-form [hidden]{display:none!important}.cancel-lesson-note{margin:0;padding:11px 13px;border-radius:11px;background:#f5f7f2;color:#647362;font-size:12px;line-height:1.55}.schedule-row .schedule-summary small{overflow-wrap:anywhere}


/* Keep balances for individual payments visually separate from subscription packages. */
.finance-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
.finance-cash-balances{margin-top:10px;border-top:1px solid #e9edf4;padding-top:12px}
.finance-cash-balances>summary{cursor:pointer;color:#425870;font-size:13px;font-weight:700}
.payment-allocation-link{display:flex;flex-wrap:wrap;gap:5px}
.payment-allocation-link>button[data-unapply-payment]{border-color:#e9d9b3;color:#88631e;background:#fffaf0}
.payment-reallocate{flex:1 1 100%;min-width:min(310px,100%);padding:10px 12px;border:1px solid #e5eaf0;border-radius:12px;background:#f8faf7}
.payment-reallocate>summary{cursor:pointer;color:#465c72;font-size:11px;font-weight:750}
.payment-reallocate form{display:grid;gap:7px;margin-top:9px}
.payment-reallocate form label{display:flex;align-items:flex-start;gap:8px;padding:7px 8px;border:1px solid #e5eaf0;border-radius:8px;background:#fff;color:#56687d;font-size:11px;line-height:1.45}
.payment-reallocate form input{flex:0 0 auto;margin-top:2px;accent-color:#6576cf}
.payment-reallocate form button{justify-self:start;padding:8px 10px;border:1px solid #cfdcc4;border-radius:9px;background:#edf4e6;color:#405a44;font-size:11px;font-weight:750;cursor:pointer}
.payment-source-note{color:#8b6b3f;font-size:11px;line-height:1.4}
@media(max-width:1050px){.finance-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:500px){.finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-reallocate{min-width:100%}}
/* Contextual links between student, lesson and finance views. */
.finance-student-card,.finance-package-card,.student-profile-links>article,.student-package-link,.profile-package-card{display:grid;gap:9px;min-width:0;padding:12px;border:1px solid #e2e8ef;border-radius:14px;background:#fff;color:#465c72}
.finance-students>.finance-student-card{align-content:start}
.finance-student-card>b{font-size:13px;color:#30465c}
.finance-student-card>span{font-size:11px;color:#7b8a9d}
.finance-student-card .has-debt{color:#ac514a}
.finance-package-card .subscription-card,.student-package-link .subscription-card,.profile-package-card .subscription-card{margin:0}
.profile-nav-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.profile-nav-actions button,.student-profile-links button,.profile-package-card>button{padding:7px 9px;border:1px solid #dfe6ef;border-radius:9px;background:#f9fbfd;color:#5267a3;font-size:11px;font-weight:700;cursor:pointer}
.profile-nav-actions button:hover,.student-profile-links button:hover,.profile-package-card>button:hover{background:#eef2ff;border-color:#cbd5f1}
.student-profile-links{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.student-profile-links>article>b{font-size:12px;color:#30465c}
.profile-cards>button{display:grid;gap:3px;min-width:0;padding:14px;text-align:left;border:1px solid #e7ebf1;border-radius:14px;background:#f8faff;color:#30465c;cursor:pointer}
.profile-cards>button:hover{border-color:#b8c6e6;background:#f1f4ff}
.profile-cards>button>b{font-size:11px;color:#77869a}
.profile-cards>button>strong{margin-top:4px;font-size:25px;color:#30465c}
.profile-cards>button>small{font-size:10px;color:#697da9}
.profile-quick-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px 11px}
.profile-quick-nav a{color:#5368b4;text-decoration:none;font-size:12px;font-weight:700}
.profile-quick-nav a:hover{text-decoration:underline}
.subscription-track-day.is-link{width:100%;padding:5px 2px;border:0;background:transparent;cursor:pointer;color:inherit;font:inherit}
.subscription-track-day.is-link:hover span{outline:2px solid #aab8e8;transform:translateY(-1px)}
.subscription-track-day.is-link:focus-visible,.profile-nav-actions button:focus-visible,.schedule-actions button:focus-visible{outline:3px solid #8da1e8;outline-offset:2px}
.subscription-use-row .profile-nav-actions{justify-content:flex-end}
@media(max-width:650px){.student-profile-links{grid-template-columns:1fr}.profile-quick-nav{align-items:flex-start}.profile-cards>button{padding:11px}.subscription-use-row{align-items:flex-start;flex-direction:column}.subscription-use-row .profile-nav-actions{justify-content:flex-start}}

/* iOS-inspired visual system: frosted surfaces, clear action colors and calm depth. */
:root{--ui-ink:#243247;--ui-brand:#5869dc;--ui-brand-deep:#4557c3;--ui-brand-glow:#8a77f1;--ui-positive:#21845e;--ui-positive-light:#e9f7ef;--ui-danger:#b84c53;--ui-danger-light:#fff0ef;--ui-glass:rgba(255,255,255,.76);--ui-glass-border:rgba(255,255,255,.92);--ui-shadow:0 18px 46px rgba(47,62,103,.10),inset 0 1px 0 rgba(255,255,255,.86)}
#dashboard{background:radial-gradient(ellipse at 8% 0%,rgba(181,192,255,.17),transparent 32rem),radial-gradient(ellipse at 96% 18%,rgba(175,230,215,.16),transparent 30rem)}
.dashboard-tabs,.settings-tabs,.student-sections{position:sticky;top:8px;z-index:20;gap:6px;padding:6px;border:1px solid var(--ui-glass-border);border-radius:18px;background:rgba(255,255,255,.68);box-shadow:0 9px 28px rgba(48,65,103,.08),inset 0 1px 0 #fff;backdrop-filter:blur(20px) saturate(1.35);-webkit-backdrop-filter:blur(20px) saturate(1.35);scrollbar-width:none}
.dashboard-tabs::-webkit-scrollbar,.settings-tabs::-webkit-scrollbar,.student-sections::-webkit-scrollbar{display:none}
.dashboard-tabs button,.settings-tabs button,.student-sections button{min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:13px;color:#68748b;background:transparent;font-size:13px;font-weight:720;transition:color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
.dashboard-tabs button:hover,.settings-tabs button:hover,.student-sections button:hover{color:#394a70;background:rgba(241,244,255,.9);transform:translateY(-1px)}
.dashboard-tabs button.active,.settings-tabs button.active,.student-sections button.active{color:#fff;background:linear-gradient(118deg,#4b60cf,#6c70df 55%,#8974e9);border-color:rgba(255,255,255,.5);box-shadow:0 7px 16px rgba(83,94,199,.27),inset 0 1px 0 rgba(255,255,255,.3)}
.settings-heading,.students-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin:12px 0 22px}
.students-heading h2{margin:5px 0;color:var(--ui-ink);font-size:clamp(28px,4vw,40px);letter-spacing:-.045em}
.students-heading p,.student-section-heading p{margin:0;color:#738097;font-size:13px;line-height:1.5}
.student-overview-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.student-overview-cards>article,.student-record,.settings-record,.assignment-record,.access-overview>article,.schedule-panel,.teacher-finance,.student-finance,.week-calendar{border:1px solid var(--ui-glass-border);background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(248,250,255,.72));box-shadow:var(--ui-shadow);backdrop-filter:blur(16px) saturate(1.2);-webkit-backdrop-filter:blur(16px) saturate(1.2)}
.student-overview-cards>article{display:grid;gap:5px;min-width:0;padding:17px 18px;border-radius:18px;color:#738097}
.student-overview-cards b{font-size:12px;font-weight:720}.student-overview-cards strong{color:var(--ui-ink);font-size:27px;line-height:1.15}.student-overview-cards small{font-size:10px;color:#8994a8}
.student-sections{position:static;display:flex;width:max-content;max-width:100%;margin:22px 0 14px;overflow:auto}
.student-sections button span{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;padding:0 5px;border-radius:999px;background:#e9edff;color:#5668ce;font-size:10px}
.student-sections button.active span{background:rgba(255,255,255,.23);color:#fff}
.student-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,.42fr) auto;align-items:end;gap:12px;margin:12px 0 16px}
.student-toolbar label{display:grid;gap:6px;color:#748198;font-size:11px;font-weight:720}
.student-toolbar input,.student-toolbar select,#dashboard select,#modal select,#modalBody select{box-sizing:border-box;min-width:0;min-height:44px;padding:10px 42px 10px 13px;border:1px solid #dfe4ef;border-radius:13px;background-color:rgba(255,255,255,.88);box-shadow:inset 0 1px 2px rgba(44,61,93,.035);color:#34445d;font:inherit;font-size:13px;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
#dashboard select,#modal select,#modalBody select{-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23616f91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat;background-size:17px 17px}
.student-toolbar input{padding-right:13px}
#dashboard select:focus,#modal select:focus,#modalBody select:focus,.student-toolbar input:focus{border-color:#8493ed;background-color:#fff;box-shadow:0 0 0 4px rgba(112,126,226,.14);outline:0}
.student-record-grid{display:grid;gap:10px}
.student-record{display:grid;grid-template-columns:46px minmax(140px,1fr) minmax(0,2fr);align-items:center;gap:12px;padding:14px 16px;border-radius:17px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.student-record:hover,.settings-record:hover,.assignment-record:hover{transform:translateY(-2px);border-color:#d8def7;box-shadow:0 21px 44px rgba(47,62,103,.13),inset 0 1px 0 #fff}
.student-record[hidden]{display:none!important}
.student-avatar{display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.95);border-radius:15px;background:linear-gradient(140deg,#e5e8ff,#f2e8ff 55%,#e1f5ed);box-shadow:0 5px 13px rgba(81,89,161,.12);color:#5364ca;font-size:18px;font-weight:800}
.student-record-main{display:grid;gap:4px;min-width:0}.student-record-main b{overflow-wrap:anywhere;color:#2d3b52;font-size:14px}.student-record-main span,.student-record-main small{overflow-wrap:anywhere;color:#7e8ba0;font-size:11px;line-height:1.45}
.student-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.student-actions button,.record-actions button,.profile-lesson-actions button,.profile-nav-actions button,.student-profile-links button{min-height:34px;padding:7px 10px;border:1px solid #e1e6f1;border-radius:11px;background:rgba(255,255,255,.9);color:#5265b9;font-size:11px;font-weight:730;box-shadow:0 2px 5px rgba(45,62,92,.04);transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.student-actions button:hover,.record-actions button:hover,.profile-lesson-actions button:hover,.profile-nav-actions button:hover{background:#f0f2ff;border-color:#cdd4f4;box-shadow:0 5px 12px rgba(77,91,172,.1);transform:translateY(-1px)}
.student-actions .student-primary-link{border-color:#cfd7ff;background:linear-gradient(135deg,#eef0ff,#f5efff);color:#4e5fc5}
.student-actions .student-archive-action{border-color:#f0d8d5;background:#fff8f7;color:#ae514b}
.student-record.archived{grid-template-columns:46px minmax(160px,1fr) auto}
.student-filter-empty,.student-section-heading{margin:14px 0;color:#78869b;font-size:13px}
.student-section-heading h3{margin:0 0 4px;color:var(--ui-ink)}
.student-actions .danger,.record-actions .danger,#dashboard .danger,#modal .danger{border-color:#efcfcc;background:linear-gradient(135deg,#fff3f1,#ffeae9);color:var(--ui-danger)}
.primary,.action-primary,#dashboard .primary,#modal .primary,#modalBody .primary{border-color:#5665d1;background:linear-gradient(125deg,#435ac9,#646fe0 58%,#7b6cde);box-shadow:0 9px 20px rgba(77,89,196,.24),inset 0 1px 0 rgba(255,255,255,.32);color:#fff;font-weight:780;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.primary:hover,.action-primary:hover,#dashboard .primary:hover,#modal .primary:hover,#modalBody .primary:hover{border-color:#5262ce;background:linear-gradient(125deg,#354eb9,#5662d3 58%,#715fd1);box-shadow:0 12px 25px rgba(72,84,189,.32),inset 0 1px 0 rgba(255,255,255,.32);filter:saturate(1.12);transform:translateY(-2px)}
#dashboard .schedule-actions button[data-action="payment"],#dashboard button[data-profile-pay],#dashboard button[data-profile-use-subscription],#dashboard button[data-profile-complete-subscription]{border-color:#9bd2b6;background:linear-gradient(130deg,#ebf8ef,#dff4e8);color:#23724f}
#dashboard .schedule-actions button[data-action="use-subscription"]{border-color:#94cdb0;background:linear-gradient(130deg,#e9f8ed,#dcf3e5);color:#26764f}
#dashboard .schedule-actions button[data-action="cancel"],#dashboard button[data-archive-student]{border-color:#efcecb;background:linear-gradient(130deg,#fff4f2,#ffebe9);color:#ad4c49}
.dashboard-page>section,.settings-page,.students-page{min-width:0}
.settings-page .settings-heading{margin-bottom:25px}
.settings-record,.assignment-record{border-radius:17px}
.settings-tabs{position:static}
.subscription-track-day.is-link:hover span{background:#e6ebff;box-shadow:0 4px 10px rgba(69,86,177,.16)}
@media(max-width:820px){.student-record{grid-template-columns:44px minmax(0,1fr)}.student-actions{grid-column:1/-1;justify-content:flex-start}.student-toolbar{grid-template-columns:1fr 1fr}.student-toolbar .quiet-button{grid-column:1/-1;justify-self:start}}
@media(max-width:560px){.dashboard-tabs{top:4px;margin:0 -4px 18px;border-radius:16px}.dashboard-tabs button{min-height:40px;padding:9px 12px;font-size:12px}.students-heading{align-items:flex-start;flex-direction:column;margin-bottom:15px}.students-heading>.primary{width:100%}.student-overview-cards{grid-template-columns:1fr 1fr;gap:8px}.student-overview-cards>article{padding:13px;border-radius:15px}.student-overview-cards strong{font-size:23px}.student-sections{width:100%;justify-content:flex-start}.student-sections button{flex:none;padding:9px 11px;font-size:11px}.student-toolbar{grid-template-columns:1fr}.student-toolbar .quiet-button{grid-column:auto}.student-record{grid-template-columns:40px minmax(0,1fr);padding:12px;border-radius:15px}.student-avatar{width:38px;height:38px;border-radius:13px}.student-actions button{min-height:36px;padding:8px 9px}.student-record.archived{grid-template-columns:40px minmax(0,1fr)}.student-record.archived .student-actions{grid-column:1/-1}.settings-heading{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.dashboard-tabs button,.student-record,.settings-record,.assignment-record,.student-actions button,.primary,#dashboard .primary{transition:none!important}.student-record:hover,.settings-record:hover,.assignment-record:hover,#dashboard .primary:hover{transform:none}}
/* Mobile hint for the horizontally scrollable dashboard menu. */
@media(max-width:560px){.dashboard-tabs{scroll-padding-inline:8px;overscroll-behavior-x:contain;scroll-behavior:smooth}.dashboard-tabs::after{content:'›';position:sticky;right:0;z-index:2;display:grid;flex:0 0 24px;place-items:center;height:40px;margin-left:-24px;color:#6b78bd;font-size:24px;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.96) 68%)}}
/* Keep the student profile compact: the overview is short and each longer workflow has its own tab. */
#modal.student-profile-dialog{width:min(1080px,calc(100vw - 32px));max-width:1080px;max-height:min(92dvh,1000px);padding:clamp(18px,3vw,34px);overflow:auto;overscroll-behavior:contain}
.student-profile{min-width:0;color:var(--ui-ink)}
.student-profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;max-width:none;margin:4px 42px 10px 0;padding:0 0 9px;border:0;border-bottom:1px solid #e8ebf2}
.student-profile-head h2{margin:7px 0 3px;font-size:clamp(27px,4vw,40px);letter-spacing:-.045em;font-weight:760;color:var(--ui-ink);overflow-wrap:anywhere}
.student-profile-identity{margin:0;color:#7a879a;font-size:13px}
.student-profile .archived-student-note{display:grid;gap:4px;margin:12px 0;padding:12px 15px;border:1px solid #ebd8b5;border-radius:14px;background:linear-gradient(130deg,#fff9ea,#fffdf7);color:#795b2c;font-size:12px}
.student-profile-tabs{position:sticky;top:40px;z-index:4;display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin:16px 0 17px;padding:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;border:1px solid rgba(255,255,255,.9);border-radius:16px;background:rgba(250,251,255,.82);box-shadow:0 8px 24px rgba(45,61,97,.09),inset 0 1px #fff;backdrop-filter:blur(20px) saturate(1.3);-webkit-backdrop-filter:blur(20px) saturate(1.3)}
.student-profile-tabs::-webkit-scrollbar{display:none}
.student-profile-tabs button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:41px;padding:8px 14px;border:1px solid transparent;border-radius:12px;background:transparent;color:#68758a;font-size:12px;font-weight:730;white-space:nowrap;transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.student-profile-tabs button:hover{background:#eef1ff;color:#4b5fc2;transform:translateY(-1px)}
.student-profile-tabs button[aria-selected="true"]{background:linear-gradient(120deg,#4b60cf,#6c70df 58%,#8875e8);border-color:rgba(255,255,255,.5);box-shadow:0 6px 15px rgba(83,94,199,.25),inset 0 1px rgba(255,255,255,.28);color:#fff}
.student-profile-panels,.student-profile-panel{min-width:0}
.student-profile-panel[hidden]{display:none!important}
.student-profile-panel>h3{margin:7px 0 10px;color:#26354a;font-size:clamp(20px,2.4vw,26px);letter-spacing:-.025em}
.student-profile .profile-cards{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin:10px 0 17px}
.student-profile .profile-cards>button{min-height:106px;padding:14px;border-color:#e6e9f3;border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(246,248,255,.87));box-shadow:0 8px 24px rgba(53,68,100,.07),inset 0 1px #fff}
.student-profile .profile-cards>button:hover{border-color:#cbd4f3;background:linear-gradient(145deg,#fff,#f0f2ff);box-shadow:0 12px 26px rgba(75,91,178,.12);transform:translateY(-2px)}
.student-profile .profile-cards>button>b{color:#77839a;font-size:11px;line-height:1.45}
.student-profile .profile-cards>button>strong{color:#28384f;font-size:25px;line-height:1.2}
.student-profile .profile-cards>button>small{color:#6174c5;font-size:10px;line-height:1.4}
.profile-overview-agenda{padding:16px;border:1px solid rgba(255,255,255,.95);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(246,248,253,.78));box-shadow:0 10px 28px rgba(52,70,100,.07)}
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.profile-section-heading h3{margin:0;color:#2e4058;font-size:17px}
.profile-section-heading p{margin:2px 0 0;color:#8490a1;font-size:11px}
.profile-section-heading button,.profile-next-lesson button{min-height:36px;padding:7px 10px;border:1px solid #dce3f2;border-radius:11px;background:#fff;color:#5266bf;font-size:11px;font-weight:720;white-space:nowrap}
.profile-next-list{display:grid;gap:8px}
.profile-next-lesson{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #e8ebf2;border-radius:13px;background:rgba(255,255,255,.86)}
.profile-next-lesson>div{display:grid;gap:3px;min-width:0}
.profile-next-lesson b{color:#33465d;font-size:12px}
.profile-next-lesson span{color:#79879a;font-size:11px;overflow-wrap:anywhere}
.profile-empty-state{margin:0;padding:13px;border:1px dashed #dce2ec;border-radius:12px;color:#8995a4;text-align:center;font-size:12px}
.student-profile-panel .finance-note{line-height:1.55}
.student-profile .profile-lesson-list>.profile-lesson{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.9fr);align-items:center;gap:12px;padding:13px;border-color:#e8ebf2;border-radius:15px;background:linear-gradient(145deg,#fff,#fafbff)}
.student-profile .profile-lesson-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;min-width:0;max-width:100%}
.student-profile .profile-lesson-actions button,.student-profile .subject-rate-card button,.student-profile .payment-history-links button{min-height:36px;max-width:100%;padding:8px 10px;border-radius:10px;font-size:11px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.student-profile .profile-lesson-actions [data-profile-pay],.student-profile .profile-lesson-actions [data-profile-use-subscription],.student-profile .profile-lesson-actions [data-profile-complete-subscription]{border-color:#abd8bd;background:linear-gradient(130deg,#effaf2,#e1f5e8);color:#28744e}
.student-profile .profile-lesson-actions [data-profile-move],.student-profile .profile-lesson-actions [data-profile-open]{border-color:#dce3f2;background:#fff;color:#5368b7}
.student-profile .payment-history-links [data-reverse-payment]{border-color:#efd0cd;background:#fff5f3;color:#a64d48}
.student-profile .profile-package-card>button{justify-self:start;max-width:100%;min-height:36px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:720px){#modal.student-profile-dialog{width:calc(100vw - 18px);max-height:96dvh;padding:16px}.student-profile-head{margin-right:40px}.student-profile-tabs{top:39px;width:100%;scroll-padding-inline:8px}.profile-section-heading{align-items:flex-start;flex-direction:column}.profile-section-heading button{align-self:flex-start}.profile-next-lesson{grid-template-columns:minmax(0,1fr)}.profile-next-lesson button{justify-self:start}.student-profile .profile-lesson-list>.profile-lesson{grid-template-columns:minmax(0,1fr)}.student-profile .profile-lesson-actions{justify-content:flex-start}}
@media(max-width:480px){.student-profile .profile-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.student-profile .profile-cards>button{min-height:98px;padding:10px}.student-profile .profile-cards>button>strong{font-size:22px}.student-profile-tabs{gap:3px;padding:4px}.student-profile-tabs button{min-height:39px;padding:8px 11px;font-size:11px}.profile-overview-agenda{padding:12px}.student-profile .profile-lesson-actions button{flex:1 1 130px}}
@media(max-width:560px){.student-profile-tabs::after{content:'›';position:sticky;right:0;z-index:2;display:grid;flex:0 0 24px;place-items:center;height:39px;margin-left:-24px;color:#6b78bd;font-size:23px;pointer-events:none;background:linear-gradient(90deg,rgba(250,251,255,0),#fafbff 45%)}}
@media(prefers-reduced-motion:reduce){.student-profile-tabs button,.student-profile .profile-cards>button{transition:none!important}.student-profile-tabs button:hover,.student-profile .profile-cards>button:hover{transform:none}}
