/* Six approved visual treatments. Layout is owned by studio-portal.css. */
body[data-appearance="motion-glass"]{--studio-bg:#e9e9e1;--studio-surface:#f9faf3df;--studio-subtle:#f0f3e9c9;--studio-text:#293d32;--studio-muted:#617261;--studio-border:#d4ddce;--studio-accent:#3c6a53;--studio-soft:#e0ebde;--appearance-hero:linear-gradient(115deg,#365d4b,#6c8d6c)}
body[data-appearance="liquid-glass"]{--studio-bg:#e5effb;--studio-surface:#ffffffae;--studio-subtle:#f3f9ffc4;--studio-text:#213956;--studio-muted:#617b95;--studio-border:#ffffffd1;--studio-accent:#496fc0;--studio-soft:#dfebff;--appearance-hero:linear-gradient(115deg,#4c72bf,#68a3bc)}
body[data-appearance="dark-glass"]{--studio-bg:#101827;--studio-surface:#1a2638ed;--studio-subtle:#233249d9;--studio-text:#edf3ff;--studio-muted:#a1b3cb;--studio-border:#354961;--studio-accent:#91b5fa;--studio-soft:#2b4162;--appearance-hero:linear-gradient(115deg,#2b4976,#315669);color-scheme:dark}
body[data-appearance="minimal-glass"]{--studio-bg:#f5f7fa;--studio-surface:#ffffffeb;--studio-subtle:#f6f8fa;--studio-text:#203346;--studio-muted:#72818e;--studio-border:#e0e7ed;--studio-accent:#32748c;--studio-soft:#e6f2f5;--appearance-hero:linear-gradient(115deg,#316378,#4e8c9a)}
body[data-appearance="liquid-ui"]{--studio-bg:#e2eff0;--studio-surface:#f9ffffc9;--studio-subtle:#eaf6f4cc;--studio-text:#234b51;--studio-muted:#5c7b80;--studio-border:#c4e2de;--studio-accent:#267e83;--studio-soft:#d8eeeb;--appearance-hero:linear-gradient(115deg,#267e83,#619e9e)}
body[data-appearance="acrylic"]{--studio-bg:#dfe8f0;--studio-surface:#f6f9fceb;--studio-subtle:#eaf1f7;--studio-text:#273c52;--studio-muted:#687f94;--studio-border:#cbd9e6;--studio-accent:#356f9c;--studio-soft:#dfeaf5;--appearance-hero:linear-gradient(115deg,#35658c,#638b9e)}
html[data-color-mode="night"] body[data-appearance]:not([data-appearance="dark-glass"]){--studio-bg:#101c29;--studio-surface:#1a2a3be8;--studio-subtle:#26384ce6;--studio-text:#e8f1fa;--studio-muted:#a7bbce;--studio-border:#395068;--studio-accent:#9bc9ef;--studio-soft:#2c435b;color-scheme:dark}
html body.portal[data-theme="studio"] .welcome-panel{background:var(--appearance-hero)!important}
html body.portal[data-appearance="liquid-glass"] :is(.card,.stat-card){box-shadow:inset 0 2px 1px #ffffffd4,0 8px 24px #46749a0d;backdrop-filter:blur(20px)}
html body.portal[data-appearance="motion-glass"] :is(.card,.stat-card){backdrop-filter:blur(12px);box-shadow:0 7px 24px #49634b08}
html body.portal[data-appearance="liquid-ui"] :is(.card,.stat-card){border-radius:28px}
html body.portal[data-appearance="acrylic"] :is(.card,.stat-card){backdrop-filter:blur(25px);border-radius:17px}
/* Centered video-backed public forms, including OTP and verification. */
html body.auth.auth-modern[data-theme="studio"][data-appearance]{--entry-panel:rgba(10,29,46,.35);--entry-input:rgba(255,255,255,.12);--entry-text:#f2f8ff;--entry-muted:#d2dfed;--entry-line:rgba(255,255,255,.32);--entry-accent:#c1e8ff;--login-text:var(--entry-text);--login-card:var(--entry-panel);--login-accent:var(--entry-accent)}
html body.auth.auth-modern[data-theme="studio"][data-appearance="motion-glass"]{--entry-panel:rgba(25,47,37,.36);--entry-accent:#d5efd7}
html body.auth.auth-modern[data-theme="studio"][data-appearance="liquid-glass"]{--entry-panel:rgba(31,67,109,.25);--entry-line:#ffffff82}
html body.auth.auth-modern[data-theme="studio"][data-appearance="dark-glass"]{--entry-panel:rgba(3,13,29,.65);--entry-input:rgba(13,34,58,.64)}
html body.auth.auth-modern[data-theme="studio"][data-appearance="minimal-glass"]{--entry-panel:rgba(13,33,45,.22);--entry-line:#ffffff49}
html body.auth.auth-modern[data-theme="studio"][data-appearance="liquid-ui"]{--entry-panel:rgba(16,65,68,.28);--entry-accent:#cbf6ee}
html body.auth.auth-modern[data-theme="studio"][data-appearance="acrylic"]{--entry-panel:rgba(31,49,71,.52)}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-layout{display:block!important;width:min(100%,510px)!important;max-width:510px!important;min-height:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-story{display:none!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card{display:block!important;padding:32px!important;border:1px solid var(--entry-line)!important;border-radius:28px!important;background:var(--entry-panel)!important;color:var(--entry-text)!important;box-shadow:0 20px 60px #0003!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .mobile-brand{display:flex!important;align-items:center;justify-content:center;gap:11px;margin-bottom:25px!important;color:var(--entry-text)!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .mobile-brand img{width:46px;height:46px;object-fit:contain;background:#fff;border-radius:50%;padding:3px}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card :is(h1,h2,h3,label,strong,.mobile-brand){color:var(--entry-text)!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card :is(p,small,.muted,.eyebrow){color:var(--entry-muted)!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card :is(input:not([type="checkbox"]),select,textarea){background:var(--entry-input)!important;color:var(--entry-text)!important;border:1px solid var(--entry-line)!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card input::placeholder{color:var(--entry-muted)!important;opacity:.8}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card :is(.button,button[type="submit"]){background:#e2f3ff!important;color:#153549!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card :is(a,.button.secondary,button.secondary){color:var(--entry-accent)!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card :is(.button.secondary,button.secondary){background:var(--entry-input)!important;border:1px solid var(--entry-line)!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance="liquid-glass"] .auth-card{box-shadow:inset 0 2px 2px #ffffff9c,inset 0 -2px 9px #ffffff20,0 20px 55px #0003!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance="acrylic"] .auth-card{backdrop-filter:blur(24px)!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance="minimal-glass"] .auth-card{backdrop-filter:blur(3px)!important;border-radius:18px!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance="liquid-ui"] .auth-card{border-radius:34px 20px 34px 20px!important}
html body.auth.auth-modern[data-theme="studio"][data-appearance]:not(.login-custom){background:radial-gradient(ellipse at 10% 15%,#28748c,transparent 65%),radial-gradient(ellipse at 90% 80%,#435980,transparent 65%),#142d43!important}
html body.portal[data-theme="studio"] .approved-theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.appearance-swatch{height:115px;padding:18px;border-radius:14px;margin-bottom:18px;background:#dce8e0;display:grid;gap:8px;grid-template-columns:1fr 1fr}.appearance-swatch div{grid-column:span 2;background:#ffffff91;border:1px solid #fff9;border-radius:9px;height:32px}.appearance-swatch span{background:#ffffff91;border-radius:7px;height:25px}.appearance-liquid-glass{background:linear-gradient(120deg,#b9dcf7,#d3c3ef)}.appearance-dark-glass{background:#152133}.appearance-dark-glass :is(div,span){background:#ffffff18;border-color:#ffffff38}.appearance-minimal-glass{background:#f1f5f7;border:1px solid #dfe6ed}.appearance-liquid-ui{background:linear-gradient(135deg,#c2e7e0,#dbd9f2)}.appearance-acrylic{background:#bccddf}
.policy-controls{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap}.policy-controls label{flex:1;min-width:180px}.attendance-policy-card details{margin-top:22px}.attendance-policy-card summary{cursor:pointer;padding:10px 0}.attendance-policy-card details p{margin:12px 0;line-height:1.7;font-size:12px}
@media(max-width:850px){html body.portal[data-theme="studio"] .approved-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){html body.portal[data-theme="studio"] .approved-theme-grid{grid-template-columns:1fr}html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card{padding:27px 23px!important}.policy-controls{display:grid;grid-template-columns:1fr}.policy-controls label{min-width:0}}

html body.auth.auth-modern[data-theme="studio"][data-appearance] .auth-card summary{color:var(--entry-accent)!important}html body.portal[data-theme="studio"] .attendance-policy-card .mh-status{padding:7px 12px;border-radius:30px;font-size:11px;background:var(--studio-soft);color:var(--studio-accent);font-weight:650}
/* Attendance control: clear state, compact settings and separated recovery. */
html body.portal[data-theme="studio"] .attendance-policy-card{padding:0;overflow:hidden}
.policy-overview{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border-bottom:1px solid var(--studio-border);background:var(--studio-subtle)}
.policy-intro{display:flex;align-items:center;gap:18px;min-width:0}.policy-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;flex-shrink:0;color:var(--studio-accent);background:var(--studio-soft)}.policy-symbol .icon{width:26px;height:26px}
.policy-eyebrow{display:block;font-size:9px;letter-spacing:1.5px;font-weight:650;color:var(--studio-muted);margin-bottom:8px}.policy-intro h2{font-size:23px;letter-spacing:-.5px;margin:0 0 8px}.policy-intro p{font-size:12px;line-height:1.7;color:var(--studio-muted);margin:0}
.policy-state{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid var(--studio-border);border-radius:30px;background:var(--studio-surface);color:var(--studio-text);font-size:11px;font-weight:650;flex-shrink:0}.policy-state>span{width:7px;height:7px;border-radius:50%;background:#c48f34}.policy-state.is-active>span{background:#339f7e}
.policy-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.85fr)}.policy-state-panel,.policy-settings{padding:28px 30px}.policy-settings{border-left:1px solid var(--studio-border)}.policy-body h3{font-size:14px;margin:0 0 18px}.policy-status-list{list-style:none;margin:0;padding:0;display:grid;gap:22px}.policy-status-list li{display:flex;align-items:flex-start;gap:12px}.policy-list-icon{width:33px;height:33px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:var(--studio-subtle);color:var(--studio-muted)}.policy-list-icon .icon{width:17px;height:17px}.policy-status-list strong{display:block;font-size:12px;font-weight:600;margin-bottom:5px}.policy-status-list small{display:block;font-size:11px;color:var(--studio-muted);line-height:1.6}.policy-date-note{display:flex;align-items:center;gap:9px;color:var(--studio-accent);background:var(--studio-soft);padding:12px 14px;border-radius:12px;font-size:11px;line-height:1.6;margin-top:25px}.policy-date-note .icon{width:15px;height:15px;flex-shrink:0}
.policy-settings form{margin:0;display:grid;gap:17px}.policy-settings form label{display:grid;gap:8px;font-size:12px}.policy-settings .policy-help{font-size:11px;line-height:1.7;color:var(--studio-muted);margin:0 0 18px}.policy-settings form .policy-help{margin:0}.policy-label-note{font-size:10px;color:var(--studio-muted)}.policy-settings .policy-save{justify-self:start;min-width:145px}
html body.portal[data-theme="studio"] .attendance-policy-card .policy-recovery{margin:0;border-top:1px solid var(--studio-border);padding:0}.policy-recovery>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 30px!important;list-style:none}.policy-recovery>summary::-webkit-details-marker{display:none}.policy-recovery>summary>span:first-child{display:flex;align-items:center;gap:9px;color:var(--studio-text);font-size:12px;font-weight:600}.policy-recovery>summary .icon{width:17px;height:17px;color:var(--studio-muted)}.policy-recovery-caption{font-size:10px;color:var(--studio-muted)}.policy-recovery-content{padding:0 30px 24px}.policy-recovery-content p{color:var(--studio-muted)}
@media(max-width:800px){.policy-body{grid-template-columns:1fr}.policy-settings{border-left:0;border-top:1px solid var(--studio-border)}}@media(max-width:540px){.policy-overview{padding:23px 20px;align-items:flex-start;gap:12px}.policy-intro{gap:12px;align-items:flex-start}.policy-symbol{width:40px;height:40px;border-radius:12px}.policy-symbol .icon{width:20px;height:20px}.policy-intro h2{font-size:19px}.policy-eyebrow{font-size:8px;letter-spacing:1px}.policy-state{padding:6px 10px;font-size:10px}.policy-state-panel,.policy-settings{padding:23px 20px}.policy-recovery>summary{padding:17px 20px!important;align-items:flex-start}.policy-recovery-caption{max-width:110px;text-align:right}.policy-recovery-content{padding:0 20px 22px}.policy-settings .policy-save{width:100%}}
