/* Studio Glass — progressive enhancement over the existing PHP portal. */
body[data-theme="motion-glass"]{--t-bg:#d9d6ca;--t-panel:rgba(250,249,243,.66);--t-input:rgba(255,255,250,.7);--t-text:#25362f;--t-muted:#5d6d63;--t-line:rgba(255,255,248,.76);--t-accent:#285c49;--ink:#25362f;--muted:#5d6d63;--line:#d3d8cb;--accent:#285c49;color:var(--t-text);background:#dedbd0!important;background-image:linear-gradient(112deg,#edece7b0,#c7c9b340 45%,#baa58b50),url('asset.php?file=studio-room.svg')!important;background-size:cover!important;background-attachment:fixed!important}
body[data-theme="motion-glass"] *,body[data-theme="motion-glass"] *::before,body[data-theme="motion-glass"] *::after{box-sizing:border-box}
body.portal[data-theme="motion-glass"] :is(.card,.stat-card,.course-card,.notice-card,.welcome-panel,.topbar,.form-help,.record-summary,.fee-stats section){background:linear-gradient(128deg,#ffffffe0,#f5f4eb8c 55%,#fff9)!important;border:1px solid #ffffffe0!important;border-radius:23px!important;box-shadow:0 14px 38px #293b2d10,inset 0 1px 0 #fff,inset 0 -1px 0 #9caa9926!important;backdrop-filter:blur(22px) saturate(120%);-webkit-backdrop-filter:blur(22px) saturate(120%);color:var(--t-text)}
body.portal[data-theme="motion-glass"] #sidebar{background:linear-gradient(150deg,#f8f9f1d6,#f0f0e7aa)!important;border:1px solid #ffffffe0!important;box-shadow:0 20px 55px #283c2b16,inset 0 1px #fff!important;backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px)}
body.portal[data-theme="motion-glass"] #sidebar nav a{color:#40564a!important;border-radius:14px;transition:background .2s,transform .2s,color .2s}
body.portal[data-theme="motion-glass"] #sidebar nav a.selected{color:#fff!important;background:linear-gradient(125deg,#38654f,#284f42)!important;box-shadow:0 7px 16px #2a52422b!important}
body.portal[data-theme="motion-glass"] :is(h1,h2,h3,h4,.stat-card>strong,.card h2,.card h3,.profile-person h2,.course-card h2){color:#233b30!important;letter-spacing:-.035em}
body.portal[data-theme="motion-glass"] :is(.eyebrow,.crystal-label,.nav-label,.stat-top,.muted,.card-heading p,.help-step span,.help-footer){color:#596d5e!important}
body.portal[data-theme="motion-glass"] .welcome-panel{position:relative;overflow:hidden;padding:30px!important;isolation:isolate}
body.portal[data-theme="motion-glass"] .welcome-panel::after{content:"";position:absolute;z-index:-1;width:230px;height:230px;right:-70px;top:-90px;border-radius:50%;background:radial-gradient(circle,#e8d8acaa,#c7d6bc55 60%,transparent 70%);filter:blur(5px)}
body.portal[data-theme="motion-glass"] .welcome-panel h2{font-size:clamp(27px,3vw,39px);font-weight:600;line-height:1.2}
body.portal[data-theme="motion-glass"] .welcome-mark{background:#ffffff73!important;color:#46634f!important;border:1px solid #fff;box-shadow:inset 1px 1px 0 #fff,0 12px 22px #5e644310;transform:rotate(-9deg)}
body.portal[data-theme="motion-glass"] :is(.button,.small-button){border-radius:13px!important;min-height:42px;transition:transform .18s,box-shadow .18s,background .18s}
body.portal[data-theme="motion-glass"] .button:not(.secondary){background:linear-gradient(135deg,#376b54,#234d3c)!important;border:1px solid #28583f!important;color:#fff!important;box-shadow:0 7px 15px #234c3921,inset 0 1px #ffffff30}
body.portal[data-theme="motion-glass"] :is(.button.secondary,.small-button,.quick-action,.tabs a,.list-toolbar select){background:#ffffffe0!important;color:#2e4d3a!important;border:1px solid #ffffffee!important}
body.portal[data-theme="motion-glass"] :is(.quick-action,.payment-row,.attendance-history,.enrollment-card,.notice){border-radius:16px;border-color:#c2cabc5c!important}
body.portal[data-theme="motion-glass"] .quick-icon,body.portal[data-theme="motion-glass"] .stat-icon{background:#d9e5d48f!important;color:#3c6850!important;border:1px solid #ffffffbf;box-shadow:inset 0 1px #fff}
body.portal[data-theme="motion-glass"] :is(input,select,textarea){background:#fffdf9c9!important;border:1px solid #b6c2b57a!important;border-radius:13px!important;color:#233c2d!important;box-shadow:inset 0 1px 4px #46634805}
body[data-theme="motion-glass"] :is(input,select,textarea):focus-visible{outline:3px solid #64927955!important;outline-offset:2px;border-color:#568467!important}
body.portal[data-theme="motion-glass"] table{border-collapse:separate;border-spacing:0 5px}
body.portal[data-theme="motion-glass"] th{background:#e3e8dc9c!important;color:#47614d!important}
body.portal[data-theme="motion-glass"] td{background:#ffffff64;border-color:#bcc7b73b!important}
body.portal[data-theme="motion-glass"] .mobile-nav{background:#f5f6edeb!important;border:1px solid #fff!important;box-shadow:0 0 24px #334b3020!important;backdrop-filter:blur(20px)}
body.portal[data-theme="motion-glass"] .mobile-nav a{color:#496050!important}
body.portal[data-theme="motion-glass"] .mobile-nav a.selected{color:#24503a!important;background:#d7e4d2!important}
body.auth.auth-modern[data-theme="motion-glass"] .auth-layout{border-radius:30px!important}
body.auth.auth-modern[data-theme="motion-glass"] .auth-card{border:1px solid #ffffffe0!important;background:color-mix(in srgb,var(--login-card,#f3f4ea) 72%,transparent)!important;box-shadow:0 30px 90px #1c2e2526,inset 0 1px 0 #fff!important;backdrop-filter:blur(28px) saturate(125%)!important;-webkit-backdrop-filter:blur(28px) saturate(125%)!important;border-radius:28px!important;position:relative}
body.auth.auth-modern[data-theme="motion-glass"] :is(.auth-card h2,.auth-card label,.auth-sub){color:var(--login-text,#263c2f)!important}
body.auth.auth-modern[data-theme="motion-glass"] .auth-card :is(input,select){background:color-mix(in srgb,var(--login-input,#fffdf5) 78%,transparent)!important;border-color:#a5b29e85!important;border-radius:14px!important;min-height:52px}
body.auth.auth-modern[data-theme="motion-glass"] .auth-card .button:not(.secondary){background:linear-gradient(135deg,#3e7257,#214936)!important;border:1px solid #6a8d746e!important;box-shadow:0 9px 22px #29574026,inset 0 1px #ffffff40!important;border-radius:14px!important;color:#fff!important;transition:transform .2s,box-shadow .2s}
body.auth.auth-modern[data-theme="motion-glass"] .auth-card .otp-resend{background:#ffffffa6!important;color:var(--login-text,#294b35)!important;border:1px solid #bbc9b5!important;box-shadow:inset 0 1px #fff!important;border-radius:14px!important}
body.auth.auth-modern[data-theme="motion-glass"] .auth-icon{background:linear-gradient(145deg,#ffffffe0,#d4e1c8a1)!important;border:1px solid #fff!important;box-shadow:0 12px 24px #23492916,inset 0 1px #fff!important;color:#325d43!important;transform:rotate(-6deg)}
body.auth.auth-modern[data-theme="motion-glass"] .auth-icon svg{color:#325d43!important}
body.auth.auth-modern[data-theme="motion-glass"] .otp-digits{gap:clamp(5px,1.7vw,10px);perspective:600px}
body.auth.auth-modern[data-theme="motion-glass"] .otp-digits span{background:linear-gradient(145deg,#fffffff0,#edf1e3a3)!important;border:1px solid #fff!important;box-shadow:0 6px 12px #3554320c,inset 0 1px #fff!important;border-radius:14px!important;color:#2b4f39!important;transition:transform .22s,background .22s,border-color .22s,box-shadow .22s}
body.auth.auth-modern[data-theme="motion-glass"] .otp-digits span.filled{background:#e5efdcdf!important;transform:translateY(-3px);border-color:#8ba37c!important}
body.auth.auth-modern[data-theme="motion-glass"] .otp-entry.focused .otp-digits .current{box-shadow:0 0 0 3px #75956533,0 8px 15px #345b3120!important;border-color:#507745!important}
.motion-submit-status{font-size:12px;line-height:1.6;text-align:center;margin:10px 0;color:inherit}.motion-submitting .button[type=submit],.motion-submitting button:not([type]){opacity:.8;cursor:progress}.motion-submitting .button::after{content:"";display:inline-block;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:studio-spin .7s linear infinite}
.motion-verified{display:flex;align-items:center;gap:12px;background:#eff7eae8;border:1px solid #fff;border-radius:18px;padding:16px 20px;margin:0 0 22px;color:#274d35;box-shadow:0 10px 25px #31552d12}.motion-verified svg{width:28px;height:28px;flex:none;stroke:#3c7049;stroke-dasharray:65;animation:studio-check .65s ease-out both}.motion-verified p{margin:0;font-size:13px}.motion-verified strong{display:block;font-size:15px}
body[data-theme="motion-glass"] .studio-reveal{animation:studio-enter .65s cubic-bezier(.2,.7,.2,1) both}body[data-theme="motion-glass"] .studio-step-1{animation-delay:60ms}body[data-theme="motion-glass"] .studio-step-2{animation-delay:120ms}body[data-theme="motion-glass"] .studio-step-3{animation-delay:180ms}body[data-theme="motion-glass"] .studio-step-4{animation-delay:240ms}
body[data-theme="motion-glass"] .studio-chart{animation:studio-chart .8s ease-out both;transform-origin:center bottom}.swatch-motion-glass{background:linear-gradient(120deg,#dfded1,#bcac94)!important}.swatch-motion-glass .swatch-nav{background:#eff4e9c7!important}.swatch-motion-glass .swatch-content b,.swatch-motion-glass .swatch-content em{background:#ffffffe0!important}
@keyframes studio-enter{from{opacity:0;transform:translateY(14px) scale(.987);filter:blur(5px)}to{opacity:1;transform:none;filter:blur(0)}}@keyframes studio-spin{to{transform:rotate(360deg)}}@keyframes studio-check{from{stroke-dashoffset:65;opacity:0;transform:scale(.8)}to{stroke-dashoffset:0;opacity:1;transform:scale(1)}}@keyframes studio-chart{from{opacity:.2;transform:scaleY(.86)}to{opacity:1;transform:scaleY(1)}}
@media(hover:hover) and (pointer:fine){body[data-theme="motion-glass"] :is(.quick-action,.stat-card,.course-card){transition:transform .22s,box-shadow .22s}body[data-theme="motion-glass"] :is(.quick-action,.stat-card,.course-card):hover{transform:translateY(-3px);box-shadow:0 18px 35px #2b3b291c!important}body[data-theme="motion-glass"] .button:hover{transform:translateY(-1px)}body.portal[data-theme="motion-glass"] #sidebar nav a:hover{transform:translateX(2px)}}
@media(max-width:760px){body[data-theme="motion-glass"]{background-attachment:scroll!important;background-position:50% 0!important}body.portal[data-theme="motion-glass"] .welcome-panel{padding:22px!important}body.portal[data-theme="motion-glass"] :is(.card,.stat-card,.course-card){border-radius:19px!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}body.auth.auth-modern[data-theme="motion-glass"] .auth-card{padding:26px 22px!important;backdrop-filter:blur(18px)!important}body.auth.auth-modern[data-theme="motion-glass"] .otp-digits span{border-radius:11px!important}body.portal[data-theme="motion-glass"] #sidebar{background:#f4f5ecee!important}body[data-theme="motion-glass"] .studio-reveal{animation-duration:.4s}}
@media(prefers-reduced-motion:reduce){body[data-theme="motion-glass"] *,body[data-theme="motion-glass"] *::before,body[data-theme="motion-glass"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body[data-theme="motion-glass"]{background:white!important}body[data-theme="motion-glass"] :is(.card,.stat-card,.course-card){background:white!important;box-shadow:none!important;backdrop-filter:none!important}.motion-verified{display:none}}
body.auth.auth-modern[data-theme="motion-glass"] .auth-card form>.button:not(.secondary){background:linear-gradient(135deg,#3e7257,#214936)!important;color:#fff!important;border-color:#7b9a7966!important}
.daily-attendance{margin-top:22px}.daily-attendance-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.daily-attendance-stat{padding:18px 14px;border:1px solid var(--t-line,#d4dfcf);border-radius:16px;background:var(--t-input,#f7faf6)}.daily-attendance-stat span{display:block;font-size:12px;color:var(--t-muted,#5b6f60)}.daily-attendance-stat strong{display:block;margin-top:9px;font-size:26px;color:var(--t-text,#25462e)}.donut-segment.chart-blue{stroke:#678fa8}.legend-dot.chart-blue{background:#678fa8}.donut-segment.chart-slate{stroke:#898e95}.legend-dot.chart-slate{background:#898e95}@media(max-width:900px){.daily-attendance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:440px){.daily-attendance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
