/* V3.12.97 · Studio UI — visual-only layer, no business logic changes */
:root{
 color-scheme:light;
 --font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
 --canvas:#edf2f9;--surface:#fff;--ink:#17243b;--muted:#54647b;--line:#d5dfec;--soft:#edf3fd;
 --accent:#1464ed;--accent-soft:#e5efff;--teal:#087f7e;--teal-soft:#dcf8f5;
 --amber:#a85d0e;--amber-soft:#fff0d9;--purple:#7048d6;--purple-soft:#f0eaff;
 --rose:#ba365a;--rose-soft:#ffe9f0;--navy:#17243b;--blue:#1464ed;
 --mint:#087f7e;--mint-bg:#def6f3;--gold:#a05c12;--gold-bg:#fff0d9;
 --red:#c6284b;--red-bg:#ffedf1;--card:#fff;
 --radius-sm:14px;--radius:21px;--radius-lg:26px;
 --shadow:0 2px 5px rgba(22,44,89,.035),0 10px 30px rgba(23,49,93,.07);
 --shadow-lift:0 15px 34px rgba(18,54,107,.14);
}
html{scroll-behavior:auto}body{background:linear-gradient(145deg,#f5f8fd 0%,#edf3fb 52%,#f7f9fc 100%);color:var(--ink);-webkit-font-smoothing:antialiased}
::selection{background:#bed6ff;color:#102e64}
:where(.shell){max-width:1210px}
:where(.card,.login-card,.modal-card,.task-card,.wzcard,.adm-card,.adm-entry,.hw-module-entry,.hw-entry,.hwi,.stat,.hero){border-color:var(--line);box-shadow:var(--shadow)}
.card,.login-card,.modal-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);}
.card h2,.detailhead h2{letter-spacing:-.025em;color:#14253f}
#app>header.top{background:#fbfdfc;color:#213f49;box-shadow:none}
#app>header.top :where(.sub,.umeta){color:#46646d}
:where(.primary,.btn-mint,.btn-danger,.ghost,button){-webkit-tap-highlight-color:transparent}
.primary,.btn-mint{background:#1464ed;color:#fff;border-color:transparent;box-shadow:0 4px 13px rgba(20,100,237,.18);font-weight:700}
.btn-mint{background:#087f7e;box-shadow:0 4px 13px rgba(8,127,126,.17)}
.ghost{background:#fff;border-color:#cad7e9;color:#274466}
.btn-danger{background:#ffedf1;border-color:#ffd1db;color:#bb2247}
:where(.primary,.btn-mint,.ghost,.btn-danger,button,.tab,.ltab,.nchip){transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease,color .14s ease,filter .14s ease}
:where(button,.primary,.btn-mint,.ghost,.btn-danger):focus-visible{outline:3px solid #5192ff;outline-offset:3px}
:where(.primary,.btn-mint,button):disabled{filter:saturate(.65);opacity:.58}
@media(hover:hover){.primary:hover,.btn-mint:hover{filter:brightness(1.07)}.card[role=button]:hover,.adm-entry:hover,.hw-entry:hover,.hw-module-entry:hover{box-shadow:var(--shadow-lift)}}
.field input,.field textarea,.field select,input:not([type=checkbox]):not([type=radio]),textarea,select{accent-color:var(--accent)}
:where(.field input,.field textarea,.field select):focus{border-color:#4d8cf6;box-shadow:0 0 0 3px rgba(34,112,246,.11)}
/* Functional cards: clear colorful identity without oversaturating reading surfaces. */
.hw-module-entry,.hw-entry,.adm-entry{background:#fff;border:1px solid #d5dfed;border-radius:20px;position:relative;overflow:hidden}
.hw-module-entry:before,.hw-entry:before,.adm-entry:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#1464ed;pointer-events:none}
.hw-module-entry .hw-entry-icon,.hw-entry .hw-entry-icon,.adm-entry .adm-entry-icon{background:#e6efff;color:#155fda;border-radius:15px}
.hw-entry.practice-entry,.adm-entry.teacher-hw-entry{background:linear-gradient(115deg,#f4fffc,#e7f9f5);border-color:#a8ddd2}
.hw-entry.practice-entry:before,.adm-entry.teacher-hw-entry:before{background:#09988c}
.hw-entry.practice-entry .hw-entry-icon,.adm-entry.teacher-hw-entry .adm-entry-icon{background:#c9f3e9;color:#087d74}
:is(.hw-module-entry,.adm-entry,.hw-entry):nth-of-type(4n + 2):not(.practice-entry):not(.teacher-hw-entry):before{background:#7653d6}
:is(.hw-module-entry,.adm-entry,.hw-entry):nth-of-type(4n + 3):not(.practice-entry):not(.teacher-hw-entry):before{background:#ed8a22}
:is(.hw-module-entry,.adm-entry,.hw-entry):nth-of-type(4n + 4):not(.practice-entry):not(.teacher-hw-entry):before{background:#0a989e}
:is(.hw-module-entry,.adm-entry,.hw-entry):nth-of-type(4n + 2) .hw-entry-icon{background:#f0eaff;color:#7048d6}
:is(.hw-module-entry,.adm-entry,.hw-entry):nth-of-type(4n + 3) .hw-entry-icon{background:#fff0df;color:#b16a13}
:is(.hw-module-entry,.adm-entry,.hw-entry):nth-of-type(4n + 4) .hw-entry-icon{background:#def7f6;color:#0b8189}
.task-card{border:1px solid #d8e1ef;background:#fff;border-radius:18px}
.task-type-icon{background:#eaf1ff;color:#155fdb}
.tab.active,.ltab.on,.hw-module-tabs .on{background:#1464ed;color:#fff;border-color:#1464ed}
.tabs,.ltabs{border-color:#dbe5f3}
.nchip.on,.clsbtn.on{border-color:#1464ed;box-shadow:0 0 0 2px rgba(20,100,237,.11)}
/* Preserve contrast in dark and media controls; do not restyle embedded iframes. */
:where(.song115-page,.song115-root) :where(.card,button){font-family:var(--font)}
:where(.toast){border-radius:15px;box-shadow:var(--shadow-lift)}
/* Avoid backdrop-filter: it is expensive on long mobile dashboards. */
@media(max-width:600px){.card{border-radius:18px}.shell{padding-left:14px;padding-right:14px}.hw-module-entry,.adm-entry,.hw-entry{border-radius:17px}}
@media(prefers-reduced-motion:reduce){:where(.primary,.btn-mint,.ghost,.btn-danger,button,.tab,.ltab,.nchip){transition:none!important}html{scroll-behavior:auto!important}}
