:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#1c2b44;background:#f4f6fa;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}input,select{min-height:40px;padding:9px 11px;border:1px solid #d9e1ed;border-radius:8px;background:#fff;color:#213451;width:100%}input:focus,select:focus,button:focus-visible{outline:3px solid #89b9f7;outline-offset:2px}button{border:0;border-radius:9px;padding:11px 16px;cursor:pointer;font-weight:650}button:disabled{opacity:.55;cursor:not-allowed}.primary{background:#365ed9;color:white}.primary:hover{background:#244fc9}.secondary{background:#edf1fc;color:#234397}.ghost{background:#22334e;color:#c4d1e4}label{display:grid;gap:6px;font-size:12px;font-weight:650;color:#64758f;min-width:160px}.muted{color:#8090a5}.error{color:#ad2e3c;font-weight:600;min-height:1.2em}.error:empty,.notice:empty{display:none}.notice{color:#087e64;background:#dff8ed;border-radius:7px;padding:11px}.hint{font-size:12px;color:#8090a5}.login-shell{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 10%,#e1ebff,#f5f8fd 55%)}.login-card{background:white;border:1px solid #e0e7f0;border-radius:17px;box-shadow:0 25px 70px #16244120;width:min(430px,100%);padding:38px}.login-card h1{font-size:24px;line-height:1.2;margin:37px 0 10px}.login-card form{display:grid;gap:17px;margin-top:27px}.login-card label{font-size:13px}.wide{width:100%;margin-top:3px}.brand{display:flex;align-items:center;gap:12px}.mark{display:grid;place-items:center;background:linear-gradient(135deg,#4666e8,#29b1ac);border-radius:12px;color:white;font-size:24px;font-weight:900;width:43px;height:43px}.brand strong{display:block;font-size:23px;letter-spacing:2px;line-height:1.1;color:inherit}.brand small{display:block;font-size:9px;letter-spacing:1.6px;margin-top:4px;color:#889bb4}.shell{display:flex;min-height:100vh}.shell[hidden],.login-shell[hidden],.tab[hidden],#owner-settings[hidden]{display:none!important}.side{width:247px;flex:none;background:#0e1a2c;color:#b9c6d8;display:flex;flex-direction:column;padding:26px 15px;position:sticky;top:0;height:100vh}.side .brand{color:white;padding:0 12px 40px}.side nav{display:grid;gap:6px}.side nav button{background:transparent;color:#b3c4dc;text-align:left;padding:13px 15px;font-size:13px}.side nav button.active,.side nav button:hover{color:white;background:#1f3451}.nav-caption{font-size:10px;letter-spacing:1.4px;padding:0 15px 10px;color:#7890b1}.side-bottom{margin-top:auto;border-top:1px solid #30415d;padding-top:17px;display:grid;gap:10px;font-size:12px}.main{flex:1;min-width:0}.top{background:white;border-bottom:1px solid #e3eaf3;padding:17px 33px;display:flex;justify-content:space-between;align-items:center;gap:16px}.crumb{flex:1;color:#7b8ca3}.crumb b{color:#263750}.selector{display:flex;align-items:center;gap:10px}.selector select{min-width:180px}.selector label{min-width:0}.contents{padding:30px 35px;max-width:1500px;margin:auto}.page-intro{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:20px}.eyebrow{letter-spacing:1.5px;color:#7290b5;font-size:10px;font-weight:800;margin:0 0 7px}.page-intro h1{margin:0 0 6px;font-size:29px}.page-intro .muted{margin:0}.status{background:#e4f9f1;color:#148767;font-weight:800;padding:8px 13px;border-radius:30px;font-size:10px;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:19px}.stat{background:white;border:1px solid #e3eaf2;border-radius:13px;padding:19px}.stat label{font-size:11px;color:#7a8da6}.stat strong{font-size:29px;display:block;margin-top:11px;color:#1c2f50}.panel{background:white;border:1px solid #e1e7f1;border-radius:13px;box-shadow:0 5px 18px #182b4907;padding:20px;margin-bottom:19px}.panel h2{margin:0 0 18px;font-size:17px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.grid-two{display:grid;grid-template-columns:2fr 1fr;gap:18px}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;min-width:450px;font-size:12px}th{background:#f4f7fb;color:#687d99;font-weight:750;padding:13px}td{border-top:1px solid #eaf0f7;padding:12px 13px}td button{padding:7px 12px}.form-row{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:18px}.form-row label{flex:1 1 160px}.form-row button{flex:none;min-height:40px}.table-wrap select{width:auto;min-width:115px}.badge{border-radius:5px;padding:5px 8px;background:#e2f6ee;color:#157c64;font-size:11px}.subheading{margin-top:26px!important;padding-top:20px;border-top:1px solid #e6ecf4}footer{color:#98a8bc;padding:20px 0;font-size:11px}.menu{display:none;background:transparent;color:#1b3356}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}.contents{padding:24px}.top{padding:13px 23px}}@media(max-width:750px){.side{position:fixed;left:-252px;z-index:20;transition:left .2s}.side.open{left:0;box-shadow:0 0 0 100vmax #0a192a87}.menu{display:block}.top{padding:12px 15px}.selector label{display:none}.selector select{min-width:135px}.contents{padding:20px 12px}.page-intro h1{font-size:23px}.status{display:none}.panel{padding:14px}.stat strong{font-size:24px}}
/* Local speaker bell: clear control state and touch-friendly volume setting. */
.bell-state{display:inline-block;padding:8px 12px;border-radius:999px;background:#eef1f5;color:#4b5c73;font-size:12px;font-weight:750}
.bell-state.enabled{background:#dff8ed;color:#067451}
.bell-controls{display:flex;gap:11px;flex-wrap:wrap;align-items:end;margin:18px 0}
.bell-controls button{min-height:43px}
.bell-volume-label{display:grid;gap:7px;min-width:165px;max-width:240px;flex:1}
.bell-volume-label input{min-height:24px;padding:0;accent-color:#365ed9}
.bell-next{font-size:15px;font-weight:750;color:#25457f;padding:12px 15px;background:#f2f6ff;border-radius:9px}
@media(max-width:750px){.bell-controls button{flex:1 1 42%}.bell-volume-label{max-width:none;flex:1 1 100%}}

/* Toddler-friendly spoken announcements: MP3 stays on the bell computer. */
.bell-announcements{display:grid;gap:12px}
.bell-announce-item{background:#f7f9fd;border:1px solid #e6ecf4;padding:15px;border-radius:11px}
.bell-announce-item>label{font-size:13px}
.bell-announcement-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:12px}
.bell-announcement-actions button{min-height:40px}
.bell-mp3-label{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:auto;padding:11px 16px;min-height:40px;background:#edf1fc;color:#234397;border-radius:9px;font-size:13px;cursor:pointer}
.bell-mp3-label:focus-within{outline:3px solid #89b9f7;outline-offset:2px}
.bell-mp3-label input{position:absolute;width:1px;height:1px;padding:0;opacity:0;pointer-events:none}
.bell-announce-item .hint{margin:8px 0 0;overflow-wrap:anywhere}

/* Owner-only update center: readable build hashes and GitHub workflow link. */
.update-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.update-metrics .stat strong{font-size:18px;overflow-wrap:anywhere}
.update-link{background:#365ed9;color:#fff;padding:12px 17px;border-radius:9px;display:inline-flex;align-items:center;min-height:42px;font-size:13px;font-weight:650;text-decoration:none}
.update-link:hover{background:#244fc9}
@media(max-width:750px){.update-metrics{grid-template-columns:1fr}.update-link{width:100%;justify-content:center}}


/* Legacy student card: responsive read-only detail view; hide sensitive sections via DOM/role. */
#student-profile-card[hidden],#student-profile-finance[hidden],#student-edit-card[hidden]{display:none!important}
.student-profile{border-top:1px solid #e2e9f2;margin-top:24px;padding-top:20px}
.student-profile .profile-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px;margin-bottom:16px}
.student-profile .profile-summary .stat{padding:13px;min-width:0}
.student-profile .profile-summary .stat strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.student-profile h2.subheading{margin-top:20px!important}


.student-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:12px 0 24px}
.student-pagination .hint{min-width:110px;text-align:center}
.student-pagination button{min-height:34px}
.student-profile .profile-actions{display:flex;gap:8px;flex-wrap:wrap}
#student-search-form label{min-width:160px}
@media print{
  @page{size:A4;margin:15mm}
  body{background:white!important}
  body *{visibility:hidden!important}
  #student-profile-card,#student-profile-card *{visibility:visible!important}
  #student-profile-card{
    position:absolute!important;top:0!important;left:0!important;
    width:100%!important;max-width:none!important;background:#fff!important;
    margin:0!important;padding:0!important;border:0!important;box-shadow:none!important
  }
  #student-profile-card .profile-actions{display:none!important}
  #student-profile-card .table-wrap{overflow:visible!important}
  #student-profile-card table{min-width:0!important;font-size:10pt!important}
  #student-profile-card th,#student-profile-card td{padding:6px!important}
  #student-profile-card .profile-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #student-profile-card .profile-summary .stat strong{font-size:11pt!important}
  #student-profile-card h2{break-after:avoid}
  #student-profile-card tr{break-inside:avoid}
  #student-profile-finance[hidden]{display:none!important}
}


#student-profile-course-warning:not(:empty){color:#9b5100;font-weight:700}
.student-profile tr.low-sessions td,#course-enrollments-list tr.low-sessions td{background:#fff4dc;color:#704500}

/* Single-branch mode: explicit hiding overrides .selector display:flex. */
#branch-picker[hidden],#branch-create-panel[hidden]{display:none!important}


/* MIERA PREMIUM — self-hosted responsive SaaS UI (no external assets). */
:root{
  --miera-ink:#142544;--miera-muted:#71829e;--miera-blue:#2879ee;--miera-navy:#0b1d3c;
  --miera-border:#e2eaf5;--miera-shadow:0 9px 30px rgba(24,58,111,.055)
}
body{background:#f3f7fc;color:var(--miera-ink);-webkit-font-smoothing:antialiased}
button{transition:background-color .2s ease,transform .2s ease,box-shadow .2s ease}
button:focus-visible,a:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
button[hidden],#nav-updates[hidden],#owner-settings[hidden],#branch-picker[hidden],
#branch-create-panel[hidden],.tab[hidden],.shell[hidden],.login-shell[hidden]{display:none!important}
.mi-icon{display:inline-block;flex:none;vertical-align:middle;overflow:visible}
.brand .mark{width:46px;height:46px;background:linear-gradient(145deg,#45c6ff,#2974f4 55%,#6554f2);
  border-radius:15px;box-shadow:inset 0 1px 1px #ffffff82,0 8px 25px #2757ca50;
  font-size:28px;font-weight:900;letter-spacing:-2px}
.brand strong{font-size:25px;font-weight:850;letter-spacing:1.8px}
.brand small{font-size:9px;font-weight:800;letter-spacing:1.45px;color:#91a5c7}
.shell{background:#f3f7fc;min-height:100vh}
.side{
  position:sticky;top:0;z-index:18;width:258px;flex:none;height:100vh;
  background:linear-gradient(165deg,#0d2855 0%,#091c3d 48%,#09172e 100%);
  color:#bdcbe6;padding:27px 14px 21px;box-shadow:6px 0 34px #09172e1a;
  overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4f6284 transparent
}
.side:before{content:"";position:absolute;inset:0 0 auto;height:170px;
  background:radial-gradient(ellipse at 96% -16%,#3978ec6b,transparent 70%);pointer-events:none}
.sidebar-brand{position:relative;padding:5px 13px 39px;gap:12px;color:#fff}
.sidebar-brand strong{font-size:23px}
.sidebar-brand small{color:#96aed1}
.side .nav-caption{position:relative;padding:0 16px 12px;font-size:10px;
  letter-spacing:1.8px;color:#7e98c0;font-weight:800}
.side .nav-caption-secondary{padding-top:26px;padding-bottom:11px}
.side nav{position:relative;display:grid;gap:6px}
.side nav button{
  display:flex;align-items:center;gap:13px;width:100%;min-height:45px;padding:11px 14px;
  border:1px solid transparent;border-radius:11px;background:transparent;
  color:#b6c7e2;font-size:13px;font-weight:650;text-align:left
}
.side nav button .nav-icon{display:grid;place-items:center;width:23px;height:23px;color:#93afd9}
.side nav button .nav-icon .mi-icon{width:20px;height:20px}
.side nav button:hover{background:#234677;color:#fff;transform:translateX(2px)}
.side nav button.active{
  background:linear-gradient(105deg,#2b8cff,#3962e7);
  color:#fff;box-shadow:0 8px 22px #07163878,inset 0 1px 0 #ffffff2b;
}
.side nav button.active .nav-icon,.side nav button:hover .nav-icon{color:#fff}
.side-bottom{position:relative;margin-top:28px;padding:17px 5px 0;border-top:1px solid #7692bf36;gap:10px}
.sidebar-account{display:flex;align-items:center;gap:10px;padding:4px 6px;min-width:0}
.sidebar-account-avatar{display:grid;place-items:center;background:#29477c;color:#cfe5ff;
  width:39px;height:39px;flex:none;border-radius:12px;border:1px solid #ffffff20}
.sidebar-account #user-label{overflow-wrap:anywhere;font-size:11px;line-height:1.55;color:#cfddf4}
.side-bottom .ghost{display:flex;align-items:center;gap:10px;width:100%;
  background:#1a3155;border:1px solid #4762884a;color:#e0ecff;
  text-align:left;min-height:43px;font-size:12px;padding:10px 13px}
.side-bottom .ghost:hover{background:#264876}
.side-bottom .ghost .mi-icon{width:18px;height:18px}
.menu-overlay{display:none}
.main{min-width:0;flex:1}
.top{
  position:sticky;top:0;z-index:10;min-height:78px;
  display:flex;align-items:center;gap:22px;padding:13px 34px;
  background:#ffffffed;backdrop-filter:blur(14px);border-bottom:1px solid #e4ebf6
}
.crumb{flex:0 0 auto;min-width:170px;color:#7d8ca5;font-size:13px;white-space:nowrap}
.crumb b{color:#1b3358;font-weight:800}
.top-breadcrumb-home{font-weight:750;color:#98abc6}
.crumb-divider{color:#c2cee0;margin:0 10px}
.global-search{
  display:flex;align-items:center;gap:8px;max-width:490px;min-width:200px;flex:1;
  border:1px solid #dbe6f6;border-radius:12px;background:#f7faff;
  padding:0 9px 0 13px;transition:border-color .2s ease,box-shadow .2s ease
}
.global-search:focus-within{border-color:#81aefa;box-shadow:0 0 0 3px #b7d2ff5c}
.global-search-icon{color:#90a4bf;display:grid;place-items:center}
.global-search input{border:0;background:transparent;min-height:43px;padding:7px 4px;font-size:12px;min-width:0;box-shadow:none!important;outline:none!important}
.global-search input::placeholder{color:#9badc5}
.global-search button{display:grid;place-items:center;border-radius:9px;background:transparent;
  color:#7399d0;padding:7px}
.global-search button:hover{background:#e5effd;color:#285bcc}
.global-search button .mi-icon{width:18px;height:18px}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:14px}
.top-icon-button{display:grid;place-items:center;width:43px;height:43px;
  border:1px solid #e6edf8;background:#f8faff;color:#466fa9;border-radius:13px;padding:0}
.top-icon-button:hover{background:#e9f2ff;color:#276deb}
.top-user{display:flex;gap:10px;align-items:center;border-left:1px solid #e5ecf6;padding-left:14px}
.top-user-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;
  color:#fff;font-size:14px;font-weight:800;background:linear-gradient(140deg,#318cfa,#6357e9);
  box-shadow:0 4px 12px #3566ca40}
.top-user-role{font-size:12px;font-weight:760;color:#263f69}
.contents{padding:30px 34px 20px;max-width:1580px;margin:auto}
.page-intro{align-items:center;margin:3px 0 24px}
.page-intro h1{font-size:29px;font-weight:810;letter-spacing:-.7px}
.page-intro .eyebrow,.dashboard-section-head .eyebrow{color:#4173bf}
.contents[data-active-tab="dashboard"]>.page-intro{display:none}
.status{box-shadow:inset 0 0 0 1px #badfcc;background:#e7f8ef;color:#17805d}
.dashboard-hero{
  position:relative;isolation:isolate;min-height:228px;overflow:hidden;
  border-radius:21px;padding:32px 36px;
  background:linear-gradient(112deg,#153e86 0%,#266dea 56%,#51b0fc 100%);
  box-shadow:0 17px 44px #315fba32;color:#fff;margin-bottom:32px;
}
.dashboard-hero:before{content:"";position:absolute;inset:auto -8% -190px 38%;height:300px;
  border-radius:50%;border:2px solid #ffffff40;transform:rotate(-16deg);pointer-events:none}
.dashboard-hero:after{content:"";position:absolute;inset:-210px -190px auto auto;width:590px;height:390px;
  border-radius:50%;background:radial-gradient(ellipse,#c9f1ff54,transparent 63%);z-index:-1;pointer-events:none}
.dashboard-hero-copy{position:relative;z-index:2;max-width:670px}
.hero-kicker{display:flex;align-items:center;gap:7px;margin:0 0 13px;font-size:10px;font-weight:850;
  letter-spacing:1.3px;color:#d6e9ff}
.hero-kicker .mi-icon{width:17px;height:17px}
.hero-kicker .hero-dot{margin:0 4px;color:#b7d7ff}
.dashboard-hero h1{margin:0;font-size:clamp(25px,2.7vw,35px);font-weight:860;letter-spacing:-1px;line-height:1.18}
.dashboard-hero-copy>p:not(.hero-kicker){font-size:13px;line-height:1.7;color:#e0edff;margin:14px 0 22px}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
.hero-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:#fff;color:#1e56c1;padding:11px 15px;min-height:43px;border-radius:11px;
  box-shadow:0 10px 26px #12387930;font-weight:800;font-size:12px}
.hero-cta:hover{transform:translateY(-2px);background:#eff7ff}
.hero-cta .mi-icon{width:17px;height:17px}
.hero-branch{display:inline-flex;align-items:center;gap:7px;color:#e5f2ff;font-size:12px;font-weight:750}
.hero-branch .mi-icon{width:17px;height:17px}
.hero-decoration{position:absolute;right:24px;top:0;height:100%;width:35%;z-index:0;pointer-events:none}
.hero-m{position:absolute;right:14%;top:15px;font-size:188px;font-weight:1000;letter-spacing:-28px;
  line-height:1;color:#ffffff13;transform:rotate(-9deg)}
.hero-orbit{position:absolute;border-radius:50%;border:1px solid #d8f2ff60;transform:rotate(-22deg)}
.orbit-one{right:-5%;top:27%;width:340px;height:170px}
.orbit-two{right:8%;top:36%;width:330px;height:150px}
.dashboard-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 16px}
.dashboard-section-head .eyebrow{font-size:10px;font-weight:860;letter-spacing:1.8px;margin:0 0 7px}
.dashboard-section-head h2{margin:0;color:#162e53;font-size:20px;letter-spacing:-.45px;font-weight:840}
.section-note{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#90a0b7;text-align:right}
.section-note .mi-icon{width:16px;height:16px;color:#42a88c}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:32px}
.stats>.stat{position:relative;min-width:0;min-height:128px;background:#fff;border:1px solid var(--miera-border);
  box-shadow:var(--miera-shadow);border-radius:16px;padding:20px;overflow:hidden;display:flex;flex-direction:column;gap:12px}
.stats>.stat:before{content:"";position:absolute;inset:0 0 auto;height:3px;
  background:linear-gradient(90deg,#53a6ff,transparent);opacity:.75}
.stats>.stat .stat-top{display:flex;align-items:center;gap:12px}
.stats>.stat .stat-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;flex:none;
  color:#2376eb;background:#e8f3ff}
.stats>.stat .stat-icon .mi-icon{width:21px;height:21px}
.stats>.stat label{font-size:11px;font-weight:740;color:#7488a5;min-width:0}
.stats>.stat strong{display:block;font-size:26px;line-height:1.1;font-weight:850;letter-spacing:-.9px;
  color:#152b51;margin:0;overflow-wrap:anywhere}
.stats>.stat .stat-subtext{font-size:10px;color:#97a7bd}
.stats>.stat.tone-indigo .stat-icon{color:#705bf1;background:#f0edff}
.stats>.stat.tone-cyan .stat-icon{color:#009bc6;background:#e5f9ff}
.stats>.stat.tone-violet .stat-icon{color:#7659dc;background:#f2effe}
.stats>.stat.tone-indigo:before{background:linear-gradient(90deg,#8264ed,transparent)}
.stats>.stat.tone-cyan:before{background:linear-gradient(90deg,#36cee3,transparent)}
.stats>.stat.tone-violet:before{background:linear-gradient(90deg,#a089f2,transparent)}
.modules-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:27px}
.module-card{--tile-color:#257bed;--tile-bg:#e8f3ff;position:relative;isolation:isolate;display:flex;
  flex-direction:column;align-items:flex-start;gap:8px;min-width:0;min-height:159px;
  background:#fff;border:1px solid var(--miera-border);border-radius:17px;
  padding:19px;box-shadow:var(--miera-shadow);text-align:left;overflow:hidden;color:#193459}
.module-card:before{content:"";position:absolute;right:-36px;top:-38px;width:122px;height:122px;
  border-radius:50%;background:var(--tile-bg);opacity:.33;z-index:-1;transition:transform .2s ease}
.module-card:hover{transform:translateY(-4px);border-color:#b7cdf2;box-shadow:0 16px 31px #294f981c}
.module-card:hover:before{transform:scale(1.25)}
.module-card .module-accent{position:absolute;inset:0 auto 0 0;width:3px;background:var(--tile-color);opacity:.8}
.module-icon{display:grid;place-items:center;width:53px;height:53px;border-radius:14px;
  background:linear-gradient(145deg,#fff,var(--tile-bg));color:var(--tile-color);
  border:1px solid #ffffffc9;box-shadow:inset 0 1px 1px #fff,0 7px 15px color-mix(in srgb,var(--tile-color) 13%,transparent)}
.module-icon .mi-icon{filter:drop-shadow(0 2px 2px color-mix(in srgb,var(--tile-color) 12%,transparent))}
.module-title{display:block;font-size:14px;font-weight:840;color:#1a3257;letter-spacing:-.2px;margin-top:4px}
.module-description{font-size:11px;line-height:1.4;color:#91a0b6}
.module-arrow{position:absolute;right:15px;top:16px;display:grid;place-items:center;
  color:#a3b2c9;transition:color .2s ease,transform .2s ease}
.module-card:hover .module-arrow{color:var(--tile-color);transform:translate(2px,-2px)}
.module-tone-indigo{--tile-color:#7152e7;--tile-bg:#eeeaff}
.module-tone-cyan{--tile-color:#138fd5;--tile-bg:#e3f7ff}
.module-tone-green{--tile-color:#17a483;--tile-bg:#dff9ef}
.module-tone-amber{--tile-color:#e69727;--tile-bg:#fff2dc}
.module-tone-violet{--tile-color:#8c56db;--tile-bg:#f2e9ff}
.module-tone-slate{--tile-color:#55749d;--tile-bg:#e8eff7}
.module-tone-pink{--tile-color:#cf5ea0;--tile-bg:#ffecf5}
.dashboard-bottom{grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);gap:17px}
.panel{border:1px solid var(--miera-border);border-radius:16px;box-shadow:var(--miera-shadow);padding:22px}
.panel h2{color:#193459;font-weight:820;letter-spacing:-.25px}
.panel-head{gap:14px;margin-bottom:17px}
.panel-head h2{display:flex;align-items:center;gap:10px;margin:0}
.panel-heading-icon{display:grid;place-items:center;width:31px;height:31px;
  border-radius:9px;background:#eaf3ff;color:#3079eb}
.panel-heading-icon .mi-icon{width:18px;height:18px}
.panel-link{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;background:#f3f7fd;
  color:#3b68a2;font-size:11px;font-weight:800}
.panel-link:hover{background:#e5effc}
.panel-link .mi-icon{width:15px;height:15px}
.panel table{border-collapse:collapse}
.panel th{background:#f7f9fd;color:#7890b0;font-size:11px;letter-spacing:.15px}
.panel td{color:#334866}
.panel th,.panel td{padding:13px 12px}
.panel .muted{color:#8191a9;line-height:1.65}
.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0 19px}
.quick-action{display:flex;align-items:center;gap:9px;min-width:0;padding:12px 11px;text-align:left;
  background:#f7faff;border:1px solid #e5edfa;border-radius:11px;
  color:#36577f;font-size:11px;font-weight:720}
.quick-action:hover{background:#edf5ff;border-color:#bad2f5;transform:translateY(-2px)}
.quick-action .mi-icon{width:18px;height:18px;color:#4487da}
.quick-action .mi-icon:last-child{width:14px;height:14px;margin-left:auto;color:#91a6c4}
.branch-info{display:flex;align-items:center;gap:9px;border-top:1px solid #edf1f6;padding:14px 0 0;color:#8b9bb2;font-size:11px}
.branch-info .mi-icon{color:#5b8edf}
.primary{background:linear-gradient(110deg,#277df4,#3c61de);box-shadow:0 6px 14px #2f6ce426}
.primary:hover{background:linear-gradient(110deg,#1d68d8,#3253c8);transform:translateY(-1px)}
.secondary{background:#edf3fc;color:#365d9d}
.secondary:hover{background:#e0ecfa}
input,select{border-color:#dae5f2;border-radius:10px}
input:focus,select:focus{border-color:#72a9f3}
.login-shell{background:radial-gradient(ellipse at 18% 8%,#cce3ff,#edf5ff 45%,#f7f9fe 87%)}
.login-card{border:1px solid #e1eafa;border-radius:22px;box-shadow:0 30px 85px #18387222}
.login-card h1{color:#18345f;font-weight:830;letter-spacing:-.5px}
.login-card .wide{min-height:46px}
.mobile-nav{display:none}
footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e6edf7;margin-top:13px}
footer span{color:#a3b0c4}
@media(max-width:1280px){
  .side{width:231px}
  .top{gap:14px;padding:13px 24px}
  .crumb{min-width:155px}
  .contents{padding:25px 25px 18px}
  .stats{gap:12px}
  .modules-grid{gap:12px}
  .module-card{padding:17px}
}
@media(max-width:1050px){
  .top{gap:12px}
  .global-search{max-width:330px}
  .top-user-role{display:none}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .modules-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dashboard-hero{min-height:215px}
  .dashboard-bottom{grid-template-columns:1fr}
}
@media(max-width:750px){
  .side{width:min(285px,82vw);left:-100%;position:fixed;transition:left .24s ease;z-index:31;
    height:100dvh;padding-top:26px;box-shadow:none}
  .side.open{left:0;box-shadow:9px 0 30px #09173047}
  .menu-overlay:not([hidden]){display:block;position:fixed;inset:0;background:#0b173a90;z-index:30;padding:0;border-radius:0}
  .top{min-height:67px;padding:11px 15px;gap:11px;z-index:20}
  .top .menu{display:grid;place-items:center;background:#edf4ff;color:#356cae;padding:8px;
    width:39px;height:39px;border-radius:11px}
  .top .menu .mi-icon{width:21px;height:21px}
  .crumb{min-width:0;flex:1;font-size:12px}
  .top-breadcrumb-home,.crumb-divider{display:none}
  .global-search{display:none}
  .top-actions{margin-left:0;gap:10px}
  .top-icon-button{width:37px;height:37px;border-radius:11px}
  .top-icon-button .mi-icon{width:19px;height:19px}
  .top-user{padding-left:0;border:0}
  .top-user-avatar{width:36px;height:36px;border-radius:11px}
  .contents{padding:18px 14px 94px}
  .page-intro h1{font-size:24px}
  .dashboard-hero{padding:25px 22px;min-height:241px;border-radius:18px;margin-bottom:27px}
  .dashboard-hero h1{font-size:29px;max-width:330px}
  .dashboard-hero-copy>p:not(.hero-kicker){font-size:12px;max-width:290px}
  .hero-orbit{opacity:.38}.hero-m{opacity:.6;right:20%;top:70px}
  .dashboard-section-head{align-items:start}
  .dashboard-section-head h2{font-size:18px}
  .section-note{display:none}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:27px}
  .stats>.stat{min-height:122px;padding:14px;border-radius:14px}
  .stats>.stat .stat-icon{width:35px;height:35px}
  .stats>.stat strong{font-size:22px}
  .stats>.stat label{font-size:10px}
  .modules-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .module-card{min-height:152px;padding:15px;border-radius:15px}
  .module-icon{width:47px;height:47px}
  .module-icon .mi-icon{width:25px;height:25px}
  .module-title{font-size:13px}
  .module-description{font-size:10px}
  .module-arrow{right:12px;top:12px}
  .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel{padding:17px}
  .mobile-nav{
    position:fixed;inset:auto 0 0;z-index:19;display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
    background:#fffffffa;border-top:1px solid #e0e9f5;
    box-shadow:0 -7px 25px #14326017;padding:8px 7px max(8px,env(safe-area-inset-bottom));
    backdrop-filter:blur(16px)
  }
  .mobile-nav button{display:grid;justify-items:center;align-content:center;gap:5px;
    min-height:52px;padding:4px 2px;color:#90a2bb;background:transparent;border-radius:10px;
    font-size:10px;font-weight:720}
  .mobile-nav button .mi-icon{width:21px;height:21px}
  .mobile-nav button.active{color:#2878e6;background:#edf5ff}
  .mobile-nav button:hover{color:#2878e6;background:#f1f6ff}
  footer{display:block;line-height:1.7}
  footer span{display:block}
}
@media(max-width:390px){
  .dashboard-hero{padding:22px 17px}
  .hero-kicker{font-size:9px}
  .stats>.stat{padding:12px}
  .stats>.stat strong{font-size:20px}
  .module-card{min-height:145px;padding:13px}
  .module-description{font-size:9px}
  .quick-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
@media print{.mobile-nav,.top,.side,.menu-overlay{display:none!important}}


/* PREMIUM COMPACT V2 — laptop showcase proportions: six small icon tiles per row.
   Explicitly last in the cascade; no dependency on display resolution hacks. */
.dashboard-hero{min-height:172px;padding:23px 30px;margin-bottom:22px;border-radius:17px}
.dashboard-hero h1{font-size:clamp(22px,2.3vw,31px)}
.dashboard-hero-copy>p:not(.hero-kicker){margin:10px 0 14px}
.hero-m{font-size:147px;right:17%;top:7px}
.dashboard-section-head{margin-bottom:12px}
.dashboard-section-head h2{font-size:18px}
.stats{gap:10px;margin-bottom:23px}
.stats>.stat{min-height:100px;padding:13px 14px;gap:9px;border-radius:13px}
.stats>.stat .stat-icon{width:34px;height:34px;border-radius:10px}
.stats>.stat .stat-icon .mi-icon{width:19px;height:19px}
.stats>.stat .stat-top{gap:8px}
.stats>.stat strong{font-size:23px}
.modules-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:21px}
.module-card{
  min-width:0;min-height:114px;padding:12px 9px 11px;border-radius:13px;
  align-items:center;justify-content:center;text-align:center;gap:7px;
  box-shadow:0 5px 16px #254c8c12
}
.module-card:before{right:-22px;top:-29px;width:76px;height:76px}
.module-card .module-accent,.module-card .module-arrow,.module-card .module-description{display:none}
.module-icon{
  width:44px;height:44px;border-radius:12px;
  box-shadow:inset 0 1px 2px #fff,0 4px 12px color-mix(in srgb,var(--tile-color) 12%,transparent)
}
.module-icon .mi-icon{width:25px;height:25px}
.module-title{font-size:12px;font-weight:820;margin-top:1px}
.module-card:hover{transform:translateY(-2px);box-shadow:0 9px 22px #244a8a19}
.module-coming-soon{border-style:dashed;box-shadow:none;cursor:default;opacity:.73}
.module-coming-soon:hover{transform:none;border-color:var(--miera-border);box-shadow:none}
.module-coming-soon .module-icon{width:38px;height:38px;background:#f5f7fb;color:#8b9bb5;box-shadow:none}
.module-coming-soon .module-icon .mi-icon{width:22px;height:22px}
.module-coming-soon .module-title{color:#64748e}
.module-soon-label{display:block;font-size:9px;line-height:1;color:#7e8ea8;font-weight:700;
  padding:3px 6px;border-radius:5px;background:#eef1f7}
@media(min-width:1200px){
  .modules-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(min-width:900px) and (max-width:1199px){
  .modules-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:601px) and (max-width:899px){
  .modules-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:750px){
  .dashboard-hero{min-height:191px;padding:22px 19px;margin-bottom:22px}
  .dashboard-hero h1{font-size:clamp(23px,6.5vw,28px)}
  .hero-m{font-size:124px;right:10%;top:50px}
  .stats{margin-bottom:21px}
  .stats>.stat{min-height:102px;padding:12px}
  .stats>.stat strong{font-size:21px}
}
@media(max-width:600px){
  .modules-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .module-card{min-height:108px;padding:10px 5px;gap:6px;border-radius:12px}
  .module-icon{width:41px;height:41px}
  .module-icon .mi-icon{width:22px;height:22px}
  .module-title{font-size:11px}
  .module-soon-label{font-size:8px}
}
@media(max-width:380px){
  .modules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .module-card{min-height:103px}
}
