/* Whole-school UI: shared module headers, colorful navigation, forms and registers. */
:root { --edu-blue:#247ce5; --edu-radius:16px; }
body { background-image:radial-gradient(ellipse at 95% 0,#cceaff55,transparent 55%); }
.e-ic.edu-icon { stroke:none; stroke-width:0; overflow:visible; }
.edu-icon path[stroke] { stroke-linecap:round; stroke-linejoin:round; }
.nav [data-ic],.edu-nav-icon { display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 38px; width:38px; height:38px; border-radius:12px;
  background:linear-gradient(145deg,#fffffffa,#e3efffff); box-shadow:0 3px 9px #020d3326; }
.nav [data-ic] .edu-icon,.nav button .edu-icon,.nav .navlink .edu-icon,
.nav a .edu-icon,#nav button .edu-icon { width:29px; height:29px; opacity:1; }
.nav button,.nav a,#nav button { gap:11px; min-height:52px; border-radius:12px;
  font-size:13px; font-weight:600; line-height:1.65; padding:7px 10px; }
.nav .txt { min-width:0; overflow-wrap:normal; word-break:normal; }
.navgroup,.group { font-size:10px; letter-spacing:.06em; color:#a9c8ed; padding-top:21px; }
.nav button.active,.nav a.active,#nav button.active { background:linear-gradient(110deg,#207def,#39a2ff);
  color:#fff; box-shadow:0 6px 17px #0065df3d; }
.nav button:hover,.nav a:hover,#nav button:hover { background-color:#ffffff12; color:white; }
#nav button { display:flex; align-items:center; text-align:left; width:100%; color:#e3edff; }
.side,aside { scrollbar-width:thin; scrollbar-color:#476b9a transparent; }
.side .brand { border-bottom:1px solid #ffffff14; margin-bottom:14px; }
.side .brand b { font-size:15px; line-height:1.6; }
.side .brand small { font-size:11px; line-height:1.5; }
.top { padding:15px 24px; backdrop-filter:blur(12px); }
.top h1 { font-size:21px; font-weight:700; }
.top .pill { font-weight:600; }
.content { padding:22px 24px; }
.panel,.card,.session,.tdetail,.tablewrap,.e-stat { border-radius:var(--edu-radius); }
.panel { box-shadow:0 4px 18px #1c427408; }
.panel > h3 { font-size:15px; line-height:1.65; font-weight:700; margin-bottom:8px; }
.desc { font-size:12px; line-height:1.7; }
.edu-page-banner,.rolepage > .sectionhead,#title {
  border-radius:18px; border:1px solid #d6e7f9;
  background:#e5f2ff url('/ui/brand/learning-lab.png') right center / auto 100% no-repeat;
  min-height:128px; padding:24px; margin:0 0 20px;
  display:flex; align-items:center; gap:18px; color:#163668;
  box-shadow:0 5px 20px #1c5a8f0a;
}
.edu-page-banner,.rolepage > .sectionhead,#title {
  background-image:linear-gradient(90deg,#e5f2ff 30%,#e5f2ff00 85%),url('/ui/brand/learning-lab.png');
  background-size:auto,auto 100%;
}
.edu-page-banner h2 { font-size:26px; line-height:1.4; margin:0; max-width:60%; font-weight:700; }
.edu-banner-icon { width:62px; height:62px; border-radius:18px; flex:none; display:grid; place-items:center;
  background:#ffffffd9; border:1px solid #fff; box-shadow:0 6px 15px #42689515; }
.edu-banner-icon .edu-icon { width:44px; height:44px; }
.rolepage > .sectionhead { justify-content:space-between; }
.rolepage > .sectionhead > div { max-width:65%; }
.rolepage > .sectionhead h2 { font-size:24px; line-height:1.5; }
.rolepage > .sectionhead p { color:#405f83; max-width:600px; }
.rolepage > .sectionhead > button { align-self:flex-end; }
.page > .edu-page-banner + .sectionhead { margin-top:-4px; }
#title { font-size:27px; padding-right:35%; }
.wrap main { min-width:0; }
.wrap #table { overflow:auto; max-width:100%; border-radius:14px; border:1px solid var(--e-line); }
.wrap #table table { min-width:640px; }
.edu-menu-toggle,.edu-mobile-bar,.edu-nav-scrim { display:none; }
#subtitle { margin-top:-10px; padding:0 4px 8px; }
#mdOverview { border-top:3px solid #50b6ed; }
.roombar { padding:18px 20px; border:1px solid var(--e-line); border-radius:16px;
  background:linear-gradient(110deg,var(--e-surface),var(--e-surface-2)); box-shadow:0 4px 16px #1c427409; }
.roombar .here { font-size:20px; }
.roomhall { gap:14px; }
.roomcard { --room-tint:#e8f3ff; --room-accent:#3e91ef; padding:20px; min-height:190px;
  border-radius:18px; border:1px solid var(--e-line); border-top:4px solid var(--room-accent);
  background:linear-gradient(145deg,var(--e-surface) 35%,var(--room-tint));
  box-shadow:0 5px 20px #193a7009; position:relative; overflow:hidden; }
.roomcard:nth-child(5n+2) { --room-tint:#f0eaff; --room-accent:#a583ed; }
.roomcard:nth-child(5n+3) { --room-tint:#e0faf2; --room-accent:#35b69d; }
.roomcard:nth-child(5n+4) { --room-tint:#fff0df; --room-accent:#f5b65f; }
.roomcard:nth-child(5n) { --room-tint:#ffeaf3; --room-accent:#ee85ac; }
.roomcard::after { content:''; position:absolute; width:110px; height:110px; right:-25px; bottom:-45px;
  border:14px solid var(--room-accent); opacity:.10; border-radius:50%; pointer-events:none; }
.roomcard .ic { width:53px; height:53px; display:grid; place-items:center; background:var(--e-surface);
  border-radius:15px; margin-bottom:10px; box-shadow:0 4px 12px #1639690a; }
.roomcard .ic .edu-icon { width:39px; height:39px; }
.roomcard .lb { font-size:16px; font-weight:700; }
.roomcard .bl { font-size:12px; line-height:1.7; margin-top:8px; }
.roomcard .cnt { position:relative; z-index:1; font-size:11px; margin-top:12px; }
.roomcard:hover { transform:translateY(-3px); box-shadow:0 10px 25px #1b54891a; border-color:var(--room-accent); }
.secnav,.e-tabs { padding:6px; gap:6px; border:1px solid var(--e-line); border-radius:14px; background:var(--e-surface-2); }
.secnav button,.e-tabs button { border:0; border-radius:10px; background:transparent;
  font-size:12px; padding:10px 14px; line-height:1.6; }
.secnav button.on,.e-tabs button.active,.e-tabs button.on {
  background:linear-gradient(110deg,#226fe0,#188dd7); color:#fff; box-shadow:0 4px 10px #267bdd22; }
.secnav button.on .n { color:#e5f1ff; }
.hallhead { margin-bottom:12px; }
.cards { gap:14px; }
.cards > .card { border-top:3px solid #6faef6; padding:18px; }
.cards > .card:nth-child(4n+2) { border-top-color:#5fcdb6; }
.cards > .card:nth-child(4n+3) { border-top-color:#af91ef; }
.cards > .card:nth-child(4n) { border-top-color:#f2b965; }
.card .label,.e-stat-label { font-size:11px; line-height:1.6; letter-spacing:0; }
.card .value { font-size:26px; font-weight:700; }
.field label { font-size:12px; line-height:1.6; letter-spacing:0; color:var(--e-ink-2); }
.field input,.field select,.field textarea,input.dt-search,input.tsearch {
  border:1px solid var(--e-line); border-radius:10px; min-height:42px; padding:10px 12px;
  box-shadow:inset 0 1px 3px #16386804; }
.field input:focus,.field select:focus,.field textarea:focus {
  outline:2px solid #66b0f480; outline-offset:1px; border-color:#5e9fe8; box-shadow:0 0 0 4px #4a9ae512; }
.formgrid { gap:14px; }
.grid2 > *,.grid3 > *,.formgrid > *,.cards > *,.panel { min-width:0; }
.btn { min-height:38px; padding:9px 15px; font-weight:650; border-radius:10px; }
.btn.sm { min-height:30px; padding:5px 10px; }
.btn:not(.soft):not(.red):not(.green):not(.amber) { background:linear-gradient(110deg,#256bdb,#238de8); }
.btn.soft { background:var(--e-surface-3); color:var(--e-brand-600); }
.tablewrap { border:1px solid var(--e-line); box-shadow:0 3px 12px #1f437306; }
table th { background:var(--e-surface-2); color:var(--e-ink-2); font-size:11px; font-weight:650; padding:12px; }
table td { padding:12px; line-height:1.65; }
table tbody tr:nth-child(even):not(.loss):not(.thin) { background:var(--e-surface-2); }
.dt-bar,.bar { gap:10px; padding:8px 0; }
.homelink .ic { background:var(--e-surface-2); width:43px; height:43px; border-radius:12px; }
.homelink .ic .edu-icon,.e-stat-icon .edu-icon { width:30px; height:30px; }
#homeCards > .e-stat .e-stat-icon { background:#ffffffb3; }
#homeCards > .e-stat .e-stat-icon .edu-icon { width:31px; height:31px; }
.e-hero { border:1px solid var(--e-line); background:linear-gradient(110deg,var(--e-surface),var(--e-surface-2)); }
.e-hero::after { opacity:.3; }
:root[data-theme="dark"] .edu-page-banner,
:root[data-theme="dark"] .rolepage > .sectionhead,
:root[data-theme="dark"] #title { color:#eef6ff; border-color:#325476;
  background-color:#162941;
  background-image:linear-gradient(90deg,#162941fa,#162941e8 55%,#16294180),url('/ui/brand/learning-lab.png');
  background-size:auto,auto 100%; }
:root[data-theme="dark"] .rolepage > .sectionhead p { color:#becfe7; }
:root[data-theme="dark"] .edu-banner-icon { background:#233d61; border-color:#406184; }
:root[data-theme="dark"] .nav [data-ic],:root[data-theme="dark"] .edu-nav-icon { background:linear-gradient(140deg,#334d70,#244063); }
:root[data-theme="dark"] .roomcard { background:linear-gradient(145deg,var(--e-surface),#202c4d); }
:root[data-theme="dark"] .btn.soft { color:#b9d8ff; }
:root[data-theme="dark"] #createHost summary { color:#bedaff!important; }
:root[data-theme="dark"] .secnav button.on,:root[data-theme="dark"] .e-tabs button.on,
:root[data-theme="dark"] .e-tabs button.active { background:linear-gradient(110deg,#255fb5,#16739d); color:#fff; }
:root[data-theme="dark"] #homeCards > .e-stat .e-stat-icon { background:#233e61; }
@media(min-width:1101px) {
  .app { grid-template-columns:270px minmax(0,1fr); }
  .wrap { display:grid; grid-template-columns:270px minmax(0,1fr); }
  .wrap > aside { width:auto; }
  .side .brand { flex-direction:row; text-align:left; gap:12px; padding:8px 4px 18px; }
  .side .brand .logo { width:59px; height:59px; padding:5px; border-radius:15px; }
  .side .brand b { font-size:14px; }
}
@media(max-width:1100px) and (min-width:651px) {
  .nav button,.nav a { padding:8px 3px; }
  .nav [data-ic] { flex-basis:36px; width:36px; height:36px; }
  .edu-page-banner h2 { font-size:23px; }
  .edu-page-banner,.rolepage > .sectionhead,#title { background-size:auto 100%; }
}
@media(max-width:760px) {
  .app,.wrap { display:block; }
  .app > aside,.wrap > aside { display:none; }
  .wrap main { padding:14px; width:100%; }
  .edu-menu-toggle { display:inline-grid; place-items:center; flex:none; width:38px; height:38px;
    background:var(--e-surface-2); color:var(--e-ink); border:1px solid var(--e-line); border-radius:10px; font-size:22px; cursor:pointer; }
  .edu-mobile-bar { display:flex; margin-bottom:12px; }
  .edu-nav-open .app > aside,.edu-nav-open .wrap > aside { display:block; position:fixed; z-index:1002;
    left:0; top:var(--erp-bars,0px); bottom:0; width:min(300px,85vw); height:calc(100dvh - var(--erp-bars,0px)); overflow:auto; }
  .edu-nav-open .brand div:last-child,.edu-nav-open .nav .txt,.edu-nav-open .group,.edu-nav-open .navgroup { display:block; }
  .edu-nav-open .nav button,.edu-nav-open .nav a { justify-content:flex-start; }
  .edu-nav-open .edu-nav-scrim { display:block; position:fixed; z-index:1001; inset:0; background:#03122a99; border:0; }
  .edu-nav-open body { overflow:hidden; }
  .content { padding:14px; }
  .edu-page-banner,.rolepage > .sectionhead,#title { min-height:108px; padding:18px;
    background-image:linear-gradient(90deg,#e5f2ffff,#e5f2ffdc),url('/ui/brand/learning-lab.png'); }
  .edu-page-banner h2,.rolepage > .sectionhead h2,#title { font-size:21px; max-width:100%; }
  .rolepage > .sectionhead > div { max-width:100%; }
  .rolepage > .sectionhead { flex-wrap:wrap; }
  .edu-banner-icon { width:46px; height:46px; border-radius:13px; }
  .edu-banner-icon .edu-icon { width:34px; height:34px; }
  .roomhall { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .roomcard { padding:15px; min-height:180px; }
  .roomcard .lb { font-size:14px; }
  .secnav,.e-tabs { gap:4px; }
  .secnav button,.e-tabs button { padding:8px 10px; }
  .top { padding:12px 14px; position:relative; top:0; display:grid; grid-template-columns:38px minmax(0,1fr); gap:10px; }
  .top .loginbar,.top .topbar-right { grid-column:1/-1; justify-content:flex-start; flex-wrap:wrap; }
  .top h1 { font-size:19px; }
  .tablewrap { max-width:100%; }
}
@media(prefers-reduced-motion:reduce) { .roomcard:hover { transform:none; } }
@media print {
  .edu-page-banner,.rolepage > .sectionhead,#title { background:none!important; box-shadow:none; min-height:0; padding:8px; }
  .edu-banner-icon { display:none; }
}
