/* Signature visual themes — school-scoped; no dependency on third-party assets.
   Overrides the shared design layer without modifying business workflows. */

/* Theme selection cards and the live appearance preview */
.theme-presets{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.theme-mode-hint{font-size:12px;line-height:1.6;color:var(--ui-muted,#667085);margin:-9px 0 17px}
.theme-preset[data-preset="futuristic"],.theme-preset[data-preset="warm"]{border-width:2px}
.theme-preset[data-preset="futuristic"]{background:#18222c;color:#c6eff6;border-color:#4b7480}
.theme-preset[data-preset="futuristic"] .preset-name{color:#c6eff6}
.theme-preset[data-preset="warm"]{background:#faf2e5;color:#795c3c;border-color:#b79872}
.theme-preset[data-preset="warm"] .preset-name{color:#795c3c}
.preset-tag{display:block;font-size:9px;font-weight:800;letter-spacing:.02em;margin-top:4px;opacity:.73}
.theme-preset[data-preset="futuristic"] .preset-preview{border:1px solid rgba(111,227,248,.43);background:linear-gradient(135deg,#131d28,#354351);box-shadow:inset 0 0 15px rgba(99,223,244,.12)}
.theme-preset[data-preset="futuristic"] .mini-left{background:#1e2a35}
.theme-preset[data-preset="futuristic"] .mini-top{background:linear-gradient(90deg,#5ad2e8,#8197cb);box-shadow:0 0 8px #5ad2e8}
.theme-preset[data-preset="futuristic"] .mini-card{background:#314958;border:1px solid #73cddd;box-shadow:0 0 7px #61d6eb}
.theme-preset[data-preset="warm"] .preset-preview{border:1px solid #cfb794;background:linear-gradient(130deg,#f6ead7,#fcf5e7)}
.theme-preset[data-preset="warm"] .mini-left{background:#e6d4bc}
.theme-preset[data-preset="warm"] .mini-top{background:linear-gradient(90deg,#b08c61,#d9bd96)}
.theme-preset[data-preset="warm"] .mini-card{background:#f2e2cc;border:1px solid #c5a781}
.school-theme-preview[data-preset="futuristic"]{background:#17202a;border-color:#3d6170}
.school-theme-preview[data-preset="futuristic"] .preview-sidebar{background:#151c26}
.school-theme-preview[data-preset="futuristic"] .preview-main{background:radial-gradient(ellipse at 75% 0%,#33424f,#181f29)}
.school-theme-preview[data-preset="futuristic"] .preview-welcome{background:linear-gradient(115deg,#263541,#161e2a);border:1px solid #547b88;box-shadow:0 0 15px #38768855}
.school-theme-preview[data-preset="futuristic"] .preview-stat{background:linear-gradient(140deg,#2a3945,#17202a);color:#b3e8f0;border:1px solid #4a7180}
.school-theme-preview[data-preset="futuristic"] .preview-stat small{color:#9ab8c3}
.school-theme-preview[data-preset="warm"]{background:#f2e6d5;border-color:#c6aa85}
.school-theme-preview[data-preset="warm"] .preview-sidebar{background:#e7d7c1}
.school-theme-preview[data-preset="warm"] .preview-nav-item{background:#ac8860}
.school-theme-preview[data-preset="warm"] .preview-main{background:linear-gradient(#f9f2e7,#eee1cf)}
.school-theme-preview[data-preset="warm"] .preview-welcome{background:linear-gradient(110deg,#f7efe2,#ead6bd);border:1px solid #bc986b;color:#795b3c}
.school-theme-preview[data-preset="warm"] .preview-stat{background:#fdf8ef;color:#705334;border:1px solid #c6ac89}
.school-theme-preview[data-preset="warm"] .preview-stat small{color:#9c8064}
.school-theme-preview[data-preset="futuristic"] .preview-stat-line{background:#48606d}
.school-theme-preview[data-preset="warm"] .preview-stat-line{background:#cbb395}
@media(max-width:1180px){.theme-presets{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.theme-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* DARK FUTURISTIC — restrained neon, dimensional glass, consistent readability. */
html[data-theme-preset="futuristic"]{
 color-scheme:dark;
 --school-bg:#171d25;--bg:#171d25;--surface:#232c36;--surface-2:#2b3641;
 --text:#eaf4f7;--muted:#a7becb;--line:#3d4e5a;
 --brand-soft:#203e49;--ui-ink:#e5f1f5;--ui-muted:#a1b5c1;
 --ui-line:#435361;--ui-shadow:0 12px 32px rgba(0,0,0,.19),0 0 10px rgba(90,210,232,.055);
 --ui-focus:color-mix(in srgb,var(--brand) 35%,transparent);
}
html[data-theme-preset="futuristic"] body{background:#171d25;color:#eaf2f7}
html[data-theme-preset="futuristic"] .app-shell{
 background:radial-gradient(ellipse at 69% -20%,rgba(99,137,173,.24),transparent 61%),
 radial-gradient(ellipse at 25% 90%,rgba(55,94,114,.10),transparent 46%),#171c24
}
html[data-theme-preset="futuristic"] .sidebar,
html[data-theme-preset="futuristic"][data-sidebar-style="light"] .sidebar{
 background:linear-gradient(180deg,#1b222c,#131820 88%)!important;
 border-right:1px solid #354753;box-shadow:inset -2px 0 12px #111b22;color:#d9e8ee
}
html[data-theme-preset="futuristic"] .sidebar .brand,
html[data-theme-preset="futuristic"] .sidebar .tenant-name{color:#eaf7f9}
html[data-theme-preset="futuristic"] .sidebar .brand-sub,
html[data-theme-preset="futuristic"] .sidebar .tenant-label,
html[data-theme-preset="futuristic"] .sidebar .user-chip{color:#a0b9c6}
html[data-theme-preset="futuristic"] .sidebar .nav-title{color:#9bb1bd!important}
html[data-theme-preset="futuristic"] .sidebar .nav-item{color:#c6d6df}
html[data-theme-preset="futuristic"] .sidebar .nav-item:hover{background:#293741}
html[data-theme-preset="futuristic"] .sidebar .nav-item.is-active,
html[data-theme-preset="futuristic"][data-sidebar-style="light"] .sidebar .nav-item.is-active{
 background:linear-gradient(110deg,#243b45,#28333d);color:#d7f9ff;
 border:1px solid #467783;box-shadow:inset 3px 0 var(--brand),0 0 10px rgba(87,211,231,.10)!important
}
html[data-theme-preset="futuristic"] .brand-mark{background:linear-gradient(135deg,#2e5767,#131c28);color:#b0f4ff;box-shadow:inset 0 0 0 1px #507c88,0 0 10px #69d9f933}
html[data-theme-preset="futuristic"] .tenant-card{
 background:linear-gradient(115deg,rgba(53,76,88,.78),rgba(31,39,48,.65));
 border:1px solid #4c6570;box-shadow:0 5px 18px #00000024
}
html[data-theme-preset="futuristic"] .sidebar-search input,
html[data-theme-preset="futuristic"][data-sidebar-style="light"] .sidebar-search input{background:#24313b;border-color:#46626e;color:#edfaff}
html[data-theme-preset="futuristic"] .sidebar-search input::placeholder{color:#9cb4bf}
html[data-theme-preset="futuristic"] .logout-btn{border-color:#465460;color:#d6e9ee}
html[data-theme-preset="futuristic"] .topbar{background:linear-gradient(135deg,rgba(33,42,52,.96),rgba(28,35,44,.97));border-bottom:1px solid #3d4e5b}
html[data-theme-preset="futuristic"] .top-title{color:#eff9fc}
html[data-theme-preset="futuristic"] .top-subtitle,html[data-theme-preset="futuristic"] .top-user small{color:#9bb4c2}
html[data-theme-preset="futuristic"] .top-user strong{color:#e5f3f7}
html[data-theme-preset="futuristic"] .top-user-link:hover{background:#34404b}
html[data-theme-preset="futuristic"] .avatar{background:linear-gradient(135deg,#2b596a,#6a689b);color:#edfeff}
html[data-theme-preset="futuristic"] .top-user .mfa-pending{color:#f4c47d}
html[data-theme-preset="futuristic"] .top-user .mfa-active{color:#8febcc}
html[data-theme-preset="futuristic"] .lang-btn{background:#29343f;border-color:#4a5d69;color:#c8e1e9}
html[data-theme-preset="futuristic"] .lang-btn.active{background:#366075;color:#f1fcff}
html[data-theme-preset="futuristic"] .panel,
html[data-theme-preset="futuristic"] .stat-card,
html[data-theme-preset="futuristic"] .quick-card,
html[data-theme-preset="futuristic"] .class-card,
html[data-theme-preset="futuristic"] .school-header,
html[data-theme-preset="futuristic"] .theme-section,
html[data-theme-preset="futuristic"] .theme-preview-panel,
html[data-theme-preset="futuristic"] .login-card{
 background:linear-gradient(145deg,rgba(58,71,82,.88),rgba(31,39,48,.96))!important;
 border:1px solid #52636e!important;box-shadow:inset 0 1px 1px #cde9f010,0 9px 24px #090e1470,0 0 12px #5ad2e80b!important;
 color:#e5f1f5
}
html[data-theme-preset="futuristic"] .stat-card{min-height:128px}
html[data-theme-preset="futuristic"] .stat-card::before{width:0}
html[data-theme-preset="futuristic"] .stat-card::after{background:radial-gradient(circle,var(--stat-color,var(--brand)),transparent 70%);opacity:.15}
html[data-theme-preset="futuristic"] .stat-value{color:#b5e8f0;text-shadow:0 0 13px #4cd4ef33}
html[data-theme-preset="futuristic"] .stat-label,
html[data-theme-preset="futuristic"] .stat-note{color:#c5d9e1}
html[data-theme-preset="futuristic"] .stat-icon,html[data-theme-preset="futuristic"] .quick-icon,
html[data-theme-preset="futuristic"] .record-row-icon{background:#334753;border:1px solid #4d7882;color:#a5e4f1}
html[data-theme-preset="futuristic"] .panel-head,
html[data-theme-preset="futuristic"] .school-form-heading,
html[data-theme-preset="futuristic"] .attendance-head{
 background:linear-gradient(105deg,#2d3944,#232c35)!important;border-color:#44545f!important
}
html[data-theme-preset="futuristic"] .panel-head h2,
html[data-theme-preset="futuristic"] .school-form-heading h3,
html[data-theme-preset="futuristic"] .theme-section-title h3{color:#f0f9fb}
html[data-theme-preset="futuristic"] .panel-head p,
html[data-theme-preset="futuristic"] .school-form-heading p,
html[data-theme-preset="futuristic"] .theme-section-title p,
html[data-theme-preset="futuristic"] .theme-preview-note{color:#afc2ce}
html[data-theme-preset="futuristic"] .school-welcome{
 min-height:192px;background:linear-gradient(107deg,#2c3742,#1e2631 62%,#222b37);
 border:1px solid #557584;box-shadow:0 12px 32px #050b1452,0 0 20px #56b5d61f
}
html[data-theme-preset="futuristic"] .school-welcome::before{
 border:1px solid #69a5c143;transform:rotate(14deg);width:450px;height:260px;right:0;top:0;
 border-radius:0;background:repeating-linear-gradient(0deg,transparent 0 17px,#74c3d51c 18px),repeating-linear-gradient(90deg,transparent 0 23px,#74c3d515 24px);opacity:.36
}
html[data-theme-preset="futuristic"] .school-welcome::after{background:radial-gradient(circle,#78ceea38,transparent 69%);right:10%;opacity:1}
html[data-theme-preset="futuristic"] .school-welcome h2{color:#eef9fd;font-weight:650;letter-spacing:-.025em}
html[data-theme-preset="futuristic"] .school-welcome p,html[data-theme-preset="futuristic"] .school-welcome-kicker{color:#c5dae4}
html[data-theme-preset="futuristic"] .school-welcome-image{width:min(420px,42%);max-height:205px;filter:drop-shadow(0 0 16px #6dc9eb5e)}
html[data-theme-preset="futuristic"] .school-module-hero,
html[data-theme-preset="futuristic"] .school-module-compact{
 background:linear-gradient(107deg,#293640,#202a34)!important;color:#ebf8fb;
 border:1px solid #54717e;box-shadow:0 6px 22px #080e1766,0 0 10px #5ad2e80a
}
html[data-theme-preset="futuristic"] .school-module-hero::before{border-color:#79b5d00c}
html[data-theme-preset="futuristic"] .school-module-hero h2{color:#eaf7fa}
html[data-theme-preset="futuristic"] .school-module-hero p{color:#a8c5d0}
html[data-theme-preset="futuristic"] .school-module-eyebrow{color:#a9d9e4}
html[data-theme-preset="futuristic"] .school-module-count{background:#30424b;border-color:#577582;color:#d3f2f8}
html[data-theme-preset="futuristic"] .school-module-hero-art{width:205px;height:110px}
html[data-theme-preset="futuristic"] .school-module-hero-art img{max-height:110px;filter:drop-shadow(0 0 11px #5dbdd05e)}
html[data-theme-preset="futuristic"] .btn-primary{background:linear-gradient(180deg,#3d6f80,#2d5363);border:1px solid #8dd6e5;color:#f5fcff;box-shadow:inset 0 1px #bdf1fa66,0 0 11px #5ad2e82e}
html[data-theme-preset="futuristic"] .btn-primary:hover{background:#457f91;box-shadow:0 0 15px #6acbdd55}
html[data-theme-preset="futuristic"] .btn-secondary,
html[data-theme-preset="futuristic"] .btn-ghost,
html[data-theme-preset="futuristic"] .school-welcome .btn{
 background:linear-gradient(180deg,#42535e,#26333c);border:1px solid #698791;color:#e8f8fb;
 box-shadow:inset 0 1px #daeafa30,0 0 9px #5ad2e825
}
html[data-theme-preset="futuristic"] .btn-secondary:hover,
html[data-theme-preset="futuristic"] .btn-ghost:hover{background:#394f5d}
html[data-theme-preset="futuristic"] :is(.form-control,.search-input,.login-card input,textarea,select),
html[data-theme-preset="futuristic"] .record-search-wrap{
 background:#26333e!important;color:#e4f2f8;border:1px solid #526c79
}
html[data-theme-preset="futuristic"] input::placeholder{color:#a1b6c4}
html[data-theme-preset="futuristic"] input:focus,html[data-theme-preset="futuristic"] select:focus{border-color:var(--brand);box-shadow:0 0 0 3px #6ccfe827}
html[data-theme-preset="futuristic"] .field label{color:#d5e5eb}
html[data-theme-preset="futuristic"] .field .help,html[data-theme-preset="futuristic"] .muted{color:#abbfc8}
html[data-theme-preset="futuristic"] .record-toolbar,
html[data-theme-preset="futuristic"] .record-panel .pagination,
html[data-theme-preset="futuristic"] .school-record-form .form-actions{background:#25303a;border-color:#455663;color:#cbdfe5}
html[data-theme-preset="futuristic"] .school-modern-table thead th,
html[data-theme-preset="futuristic"] .data-table thead th{background:#2b3742;color:#b7d4de;border-color:#526572}
html[data-theme-preset="futuristic"] .school-modern-table tbody tr,
html[data-theme-preset="futuristic"] .data-table tbody tr{background:transparent;color:#e3edf4}
html[data-theme-preset="futuristic"] .school-modern-table tbody tr:nth-child(even){background:#29343e}
html[data-theme-preset="futuristic"] .school-modern-table tbody tr:hover{background:#354a54}
html[data-theme-preset="futuristic"] .school-modern-table td,
html[data-theme-preset="futuristic"] .data-table td,
html[data-theme-preset="futuristic"] .school-modern-table .record-first-cell{color:#dceef3;border-color:#435460}
html[data-theme-preset="futuristic"] .table-link,html[data-theme-preset="futuristic"] .panel-footer-link a{color:#a7e8f3}
html[data-theme-preset="futuristic"] .school-modern-table .table-link:hover{background:#334954}
html[data-theme-preset="futuristic"] .activity-row,
html[data-theme-preset="futuristic"] .check-row{border-color:#475864;color:#ecf7fa}
html[data-theme-preset="futuristic"] .activity-row:hover,
html[data-theme-preset="futuristic"] .check-row:hover{background:#30414e}
html[data-theme-preset="futuristic"] .activity-row small,
html[data-theme-preset="futuristic"] .quick-card span,
html[data-theme-preset="futuristic"] .quick-card strong{color:#cbdee6}
html[data-theme-preset="futuristic"] .quick-card:hover{border-color:#83b9ca!important}
html[data-theme-preset="futuristic"] .status-badge,
html[data-theme-preset="futuristic"] .school-type-pill{background:#36505a;color:#d4ecf3}
html[data-theme-preset="futuristic"] .theme-intro{background:linear-gradient(115deg,#273641,#1b242c);border-color:#526673}
html[data-theme-preset="futuristic"] .theme-intro h2{color:#e5f3f7}
html[data-theme-preset="futuristic"] .theme-intro p,html[data-theme-preset="futuristic"] .theme-kicker{color:#bfd5df}
html[data-theme-preset="futuristic"] .theme-color-field{background:#27333d;border-color:#536776;color:#d4e5ee}
html[data-theme-preset="futuristic"] .theme-color-field>span{color:#c7d7df}
html[data-theme-preset="futuristic"] .theme-color-control output{color:#c5e6ef}
html[data-theme-preset="futuristic"] .school-theme-preview{border-color:#557181}
html[data-theme-preset="futuristic"] .pagination{color:#b4cad3}
html[data-theme-preset="futuristic"] :is(.school-empty-state strong,.school-form-heading p,.school-empty-state span){color:#c5d9e4}
html[data-theme-preset="futuristic"] .panel-footer-link,
html[data-theme-preset="futuristic"] .class-bottom,
html[data-theme-preset="futuristic"] .check-list{background:#27343e;border-color:#485969}
html[data-theme-preset="futuristic"] .alert{background:#293741;color:#e4f3fa;border-color:#607686}
html[data-theme-preset="futuristic"] .mobile-nav-toggle{background:#283741;color:#c6eafb;border-color:#5b7380}

/* WARM HERITAGE — parchment surfaces, embossed outlines, bronze/copper controls. */
html[data-theme-preset="warm"]{
 color-scheme:light;
 --school-bg:#f8f3e9;--bg:#f8f3e9;--surface:#fefaf2;--surface-2:#f4ebdf;
 --text:#4b4035;--muted:#88765e;--line:#d6c4ac;
 --brand-soft:#f0e1cd;--ui-ink:#4e4135;--ui-muted:#8c775f;
 --ui-line:#dfcdb7;--ui-shadow:0 6px 16px #7963441a,0 1px 1px #fff9 inset;
 --ui-focus:color-mix(in srgb,var(--brand) 27%,transparent)
}
html[data-theme-preset="warm"] body{background:#f9f3e8;color:#4d4337}
html[data-theme-preset="warm"] .app-shell{
 background:radial-gradient(ellipse at 85% 0%,#fff9ef,#f7f0e5 53%,#f4ebdc);
}
html[data-theme-preset="warm"] .sidebar,
html[data-theme-preset="warm"][data-sidebar-style="light"] .sidebar{
 background:linear-gradient(180deg,#f6f0e5,#e9dfcd)!important;
 border-right:1px solid #cdbb9e;box-shadow:3px 0 16px #76634324;color:#5f513e
}
html[data-theme-preset="warm"] .brand,
html[data-theme-preset="warm"] .tenant-name{color:#514734!important}
html[data-theme-preset="warm"] .brand-sub,
html[data-theme-preset="warm"] .tenant-label,
html[data-theme-preset="warm"] .user-chip{color:#82715e!important}
html[data-theme-preset="warm"] .sidebar .nav-title{color:#817059!important}
html[data-theme-preset="warm"] .sidebar .nav-item{color:#5c5142}
html[data-theme-preset="warm"] .sidebar .nav-item:hover{background:#ece2d0;color:#6e5335}
html[data-theme-preset="warm"] .sidebar .nav-item.is-active,
html[data-theme-preset="warm"][data-sidebar-style="light"] .sidebar .nav-item.is-active{
 background:linear-gradient(#faf4e8,#eadbc5);color:#6d4c2b;border:1px solid #c8a77d;
 box-shadow:inset 3px 0 #a37b4c,0 2px 6px #7b603329!important
}
html[data-theme-preset="warm"] .brand-mark{background:linear-gradient(145deg,#fffaf0,#e5d0b5);border:1px solid #c6ae8b;color:#8b673b;box-shadow:0 2px 6px #70563125}
html[data-theme-preset="warm"] .tenant-card{background:linear-gradient(135deg,#fffaf0,#e8d8c1);border:1px solid #cdb698;box-shadow:0 3px 9px #7e6c4720}
html[data-theme-preset="warm"] .sidebar-search input{background:#fffbf3;border:1px solid #d1bfa6;color:#524637}
html[data-theme-preset="warm"] .sidebar-search input::placeholder{color:#907f69}
html[data-theme-preset="warm"] .sidebar-search svg{color:#927e62}
html[data-theme-preset="warm"] .logout-btn{background:#f4e9d8;color:#654e32;border-color:#ceba9a}
html[data-theme-preset="warm"] .topbar{background:#fbf6ed;border-bottom:1px solid #e0cfb6}
html[data-theme-preset="warm"] .top-title{color:#4b4032;font-weight:650}
html[data-theme-preset="warm"] .top-subtitle,html[data-theme-preset="warm"] .top-user small{color:#8c7962}
html[data-theme-preset="warm"] .top-user strong{color:#534634}
html[data-theme-preset="warm"] .top-user-link:hover{background:#efe3d2;border-color:#dbcaaf}
html[data-theme-preset="warm"] .avatar{background:#e5d2b5;color:#755534}
html[data-theme-preset="warm"] .lang-btn{background:#f6ecdd;border-color:#ddc7a9;color:#795d3e}
html[data-theme-preset="warm"] .lang-btn.active{background:#aa855b;color:#fff9eb}
html[data-theme-preset="warm"] .panel,
html[data-theme-preset="warm"] .stat-card,
html[data-theme-preset="warm"] .quick-card,
html[data-theme-preset="warm"] .class-card,
html[data-theme-preset="warm"] .school-header,
html[data-theme-preset="warm"] .theme-section,
html[data-theme-preset="warm"] .theme-preview-panel,
html[data-theme-preset="warm"] .login-card{
 background:linear-gradient(145deg,#fffaf2,#f5ecde)!important;border:1px solid #dfceb5!important;
 box-shadow:0 5px 14px #67533921,inset 0 1px #fffefa!important;color:#514638
}
html[data-theme-preset="warm"] .panel-head,
html[data-theme-preset="warm"] .school-form-heading,
html[data-theme-preset="warm"] .attendance-head{
 background:linear-gradient(105deg,#f9f1e5,#fdf8f1)!important;border-color:#dfceb8!important
}
html[data-theme-preset="warm"] .panel-head h2,
html[data-theme-preset="warm"] .school-form-heading h3,
html[data-theme-preset="warm"] .theme-section-title h3{color:#5d4a35;font-weight:650}
html[data-theme-preset="warm"] .panel-head p,
html[data-theme-preset="warm"] .school-form-heading p,
html[data-theme-preset="warm"] .theme-section-title p{color:#947d62}
html[data-theme-preset="warm"] .school-welcome{
 background:linear-gradient(110deg,#faf2e4,#e9d5bb 80%,#f5e9d8);
 border:1px solid #c4a885;min-height:190px;
 box-shadow:0 8px 17px #987a5129,inset 0 1px #fffdf4;color:#514535
}
html[data-theme-preset="warm"] .school-welcome::before{
 background:repeating-linear-gradient(45deg,#9f85610a 0 1px,transparent 1px 12px);border:1px solid #b9956c22;opacity:.5
}
html[data-theme-preset="warm"] .school-welcome::after{background:#c3a175;opacity:.12}
html[data-theme-preset="warm"] .school-welcome h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(22px,2vw,30px);color:#5a4836;font-weight:500;letter-spacing:-.025em}
html[data-theme-preset="warm"] .school-welcome-kicker,html[data-theme-preset="warm"] .school-welcome p{color:#755f49}
html[data-theme-preset="warm"] .school-welcome-image{width:min(410px,43%);max-height:205px;filter:drop-shadow(0 7px 6px #836e4e33)}
html[data-theme-preset="warm"] .school-module-hero,
html[data-theme-preset="warm"] .school-module-compact{
 background:linear-gradient(110deg,#fffaf2,#eddcc6)!important;border:1px solid #cfb89b;
 box-shadow:0 5px 14px #94755020;color:#5d4a36
}
html[data-theme-preset="warm"] .school-module-hero h2{font-family:Georgia,"Times New Roman",serif;color:#5f4b37;font-weight:500}
html[data-theme-preset="warm"] .school-module-hero p{color:#867056}
html[data-theme-preset="warm"] .school-module-eyebrow{color:#97734e}
html[data-theme-preset="warm"] .school-module-count{color:#795b3e;background:#fbf2e5;border-color:#d4bd9c}
html[data-theme-preset="warm"] .school-module-hero-art{width:200px;height:115px}
html[data-theme-preset="warm"] .school-module-hero-art img{max-height:115px;filter:drop-shadow(0 5px 4px #7661422b)}
html[data-theme-preset="warm"] .btn-primary{
 background:linear-gradient(180deg,#c3a578,#8e6940);color:#fffaf0;
 border:1px solid #947348;box-shadow:inset 0 1px #fae5bc9e,0 3px 7px #795a3547
}
html[data-theme-preset="warm"] .btn-primary:hover{background:linear-gradient(#ccb089,#926b43)}
html[data-theme-preset="warm"] .btn-secondary,
html[data-theme-preset="warm"] .btn-ghost,
html[data-theme-preset="warm"] .school-welcome .btn{
 background:linear-gradient(180deg,#fff9ea,#e6d4b9);color:#795635;border:1px solid #bb9c73;
 box-shadow:inset 0 1px #fffefa,0 2px 5px #977a5438
}
html[data-theme-preset="warm"] :is(.form-control,.search-input,.login-card input,textarea,select),
html[data-theme-preset="warm"] .record-search-wrap{background:#fffbf4!important;color:#514434;border:1px solid #d7bea0}
html[data-theme-preset="warm"] input::placeholder{color:#a48b6c}
html[data-theme-preset="warm"] .field label{color:#6a563f}
html[data-theme-preset="warm"] .field .help,html[data-theme-preset="warm"] .muted{color:#947f66}
html[data-theme-preset="warm"] .record-toolbar,
html[data-theme-preset="warm"] .record-panel .pagination,
html[data-theme-preset="warm"] .school-record-form .form-actions{background:#f8f0e4;border-color:#e3d1b9;color:#6c5a45}
html[data-theme-preset="warm"] .school-modern-table thead th,
html[data-theme-preset="warm"] .data-table thead th{background:#ede0ce;color:#806748;border-color:#d5bc9a}
html[data-theme-preset="warm"] .school-modern-table tbody tr{background:transparent}
html[data-theme-preset="warm"] .school-modern-table tbody tr:nth-child(even){background:#faf3e8}
html[data-theme-preset="warm"] .school-modern-table tbody tr:hover{background:#efdfc8}
html[data-theme-preset="warm"] .school-modern-table td,
html[data-theme-preset="warm"] .data-table td,
html[data-theme-preset="warm"] .school-modern-table .record-first-cell{color:#5b4b38;border-color:#e5d7c3}
html[data-theme-preset="warm"] .table-link,html[data-theme-preset="warm"] .panel-footer-link a{color:#86613d}
html[data-theme-preset="warm"] .school-modern-table .table-link:hover{background:#ead6b9}
html[data-theme-preset="warm"] .stat-card{min-height:128px}
html[data-theme-preset="warm"] .stat-card::after{background:#ac8050;opacity:.06}
html[data-theme-preset="warm"] .stat-value{font-family:Georgia,"Times New Roman",serif;color:#735535;font-size:31px}
html[data-theme-preset="warm"] .stat-label,html[data-theme-preset="warm"] .stat-note{color:#816b50}
html[data-theme-preset="warm"] .stat-icon,html[data-theme-preset="warm"] .quick-icon,
html[data-theme-preset="warm"] .record-row-icon{background:#efe1cf;border:1px solid #d3b997;color:#906b42}
html[data-theme-preset="warm"] .activity-row,
html[data-theme-preset="warm"] .check-row{border-color:#dfceb6;color:#5c4835}
html[data-theme-preset="warm"] .activity-row:hover,
html[data-theme-preset="warm"] .check-row:hover{background:#f1e4d1}
html[data-theme-preset="warm"] .activity-row small,
html[data-theme-preset="warm"] .quick-card span{color:#91775a}
html[data-theme-preset="warm"] .quick-card strong{color:#785a37}
html[data-theme-preset="warm"] .theme-intro{background:linear-gradient(120deg,#fff7e9,#e9d8c1);border-color:#ceb394}
html[data-theme-preset="warm"] .theme-intro h2{color:#604a33}
html[data-theme-preset="warm"] .theme-intro p,html[data-theme-preset="warm"] .theme-kicker{color:#8c704e}
html[data-theme-preset="warm"] .theme-color-field{background:#faf2e6;border-color:#d9c3a7}
html[data-theme-preset="warm"] .theme-color-field>span{color:#7d6041}
html[data-theme-preset="warm"] .theme-color-control output{color:#72563a}
html[data-theme-preset="warm"] .pagination{color:#857057}
html[data-theme-preset="warm"] :is(.school-empty-state strong,.school-empty-state span){color:#786148}
html[data-theme-preset="warm"] .panel-footer-link,
html[data-theme-preset="warm"] .class-bottom,
html[data-theme-preset="warm"] .check-list{background:#f7ebdd;border-color:#decdb5}
html[data-theme-preset="warm"] .alert{background:#fff9ee;color:#654e33;border-color:#d7bd9b}
html[data-theme-preset="warm"] .mobile-nav-toggle{background:#f5e8d6;color:#7c5b37;border-color:#d6bc98}
@media(max-width:820px){
 html[data-theme-preset="futuristic"] .sidebar{box-shadow:7px 0 27px #0009}
 html[data-theme-preset="warm"] .sidebar{box-shadow:7px 0 27px #604a362e}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme-preset] .btn,html[data-theme-preset] .stat-card{transition:none}
}


/* Readability and navigation corrections — 12 Oct 2026.
   Keep school identity/search in view; scroll the module list, not the whole sidebar. */
.sidebar{
  overflow:hidden!important;
  overscroll-behavior:contain;
}
.sidebar .brand-wrap,
.sidebar .tenant-card,
.sidebar .sidebar-search,
.sidebar .logout-wrap{
  flex-shrink:0;
}
.sidebar .nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  padding:0 3px 7px 0;
  scrollbar-width:auto;
  scrollbar-color:rgba(189,207,231,.56) rgba(255,255,255,.07);
}
.sidebar .nav::-webkit-scrollbar{width:8px}
.sidebar .nav::-webkit-scrollbar-track{background:rgba(255,255,255,.07);border-radius:9px}
.sidebar .nav::-webkit-scrollbar-thumb{background:rgba(189,207,231,.56);border-radius:9px}
.sidebar .nav::-webkit-scrollbar-thumb:hover{background:rgba(225,236,252,.78)}
.sidebar .nav-item,.sidebar .nav-title{flex-shrink:0}
.sidebar .logout-wrap{margin-top:0}
html[dir="rtl"] .sidebar .nav{padding:0 0 7px 3px}

/* Theme-specific module heading colors must outrank the generic page-module styling. */
html[data-theme-preset="futuristic"] .page-content[data-school-module] .panel-head h2,
html[data-theme-preset="futuristic"] .page-content .panel-head h2,
html[data-theme-preset="futuristic"] .page-content .panel h2,
html[data-theme-preset="futuristic"] .school-record-form .school-form-heading h3,
html[data-theme-preset="futuristic"] .school-record-form .field label,
html[data-theme-preset="futuristic"] .page-content .action-head strong,
html[data-theme-preset="futuristic"] .page-content .account-summary strong{
  color:#eaf5f9;
}
html[data-theme-preset="futuristic"] .page-content[data-school-module] .panel-head p,
html[data-theme-preset="futuristic"] .page-content .panel-head p,
html[data-theme-preset="futuristic"] .school-record-form .school-form-heading p,
html[data-theme-preset="futuristic"] .school-record-form .field .help,
html[data-theme-preset="futuristic"] .page-content .stat-note,
html[data-theme-preset="futuristic"] .page-content .account-summary span{
  color:#b8cfda;
}
html[data-theme-preset="futuristic"] .page-content .panel-head h2{
  font-size:16px;
  font-weight:700;
}
html[data-theme-preset="futuristic"] .page-content .panel-head{
  border-bottom-color:#4f626e!important;
}
html[data-theme-preset="futuristic"] .page-content .panel{
  color:#e6f2f7;
}
html[data-theme-preset="futuristic"] .page-content .empty-state,
html[data-theme-preset="futuristic"] .page-content .school-empty-state span,
html[data-theme-preset="futuristic"] .page-content .field{
  color:#c6d7e1;
}
html[data-theme-preset="futuristic"] .page-content .form-errors{color:#ffd1cc}
html[data-theme-preset="futuristic"] .page-content .form-actions{color:#e8f5f8}
html[data-theme-preset="futuristic"] .page-content .quick-card:focus-visible,
html[data-theme-preset="futuristic"] .page-content .table-link:focus-visible{
  outline:2px solid #8ae2f2;
  outline-offset:2px;
}
html[data-theme-preset="futuristic"] .school-modern-table td,
html[data-theme-preset="futuristic"] .data-table td{font-size:13px}
html[data-theme-preset="futuristic"] .panel-head p,
html[data-theme-preset="futuristic"] .stat-note{font-size:12px}
html[data-theme-preset="futuristic"] .sidebar .nav{
  scrollbar-color:rgba(135,203,222,.46) transparent;
}
html[data-theme-preset="warm"] .page-content[data-school-module] .panel-head h2,
html[data-theme-preset="warm"] .page-content .panel-head h2,
html[data-theme-preset="warm"] .page-content .panel h2,
html[data-theme-preset="warm"] .school-record-form .school-form-heading h3,
html[data-theme-preset="warm"] .school-record-form .field label{
  color:#654d35;
}
html[data-theme-preset="warm"] .page-content[data-school-module] .panel-head p,
html[data-theme-preset="warm"] .page-content .panel-head p,
html[data-theme-preset="warm"] .school-record-form .school-form-heading p,
html[data-theme-preset="warm"] .school-record-form .field .help{
  color:#846f56;
}
html[data-theme-preset="warm"] .page-content .panel-head{
  border-bottom-color:#dbc5a8!important;
}


/* Dashboard section rhythm — overview controls belong beside section information.
   Applies across all school presets, without changing the dashboard's data. */
.page-content > .school-overview-panel{
  margin-bottom:20px;
  overflow:hidden;
}
.page-content > .school-overview-panel .panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px 24px;
  padding:17px 21px!important;
  border-bottom:0!important;
}
.page-content > .school-overview-panel .panel-head > div{
  flex:1 1 250px;
  min-width:0;
}
.page-content > .school-overview-panel .panel-head h2{margin:0 0 5px}
.page-content > .school-overview-panel .panel-head p{margin:0}
.page-content > .school-overview-panel .panel-head > .btn{
  flex:none;
  margin-left:auto;
}
.page-content > .grid-2 > .panel > .panel-head:has(> .btn){
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 20px;
  flex-wrap:wrap;
}
.page-content > .grid-2 > .panel > .panel-head > .btn{
  flex:none;
  margin-left:auto;
}
html[dir="rtl"] .page-content > .school-overview-panel .panel-head > .btn,
html[dir="rtl"] .page-content > .grid-2 > .panel > .panel-head > .btn{
  margin-left:0;
  margin-right:auto;
}
@media(max-width:620px){
  .page-content > .school-overview-panel{margin-bottom:15px}
  .page-content > .school-overview-panel .panel-head{padding:17px!important}
  .page-content > .school-overview-panel .panel-head > .btn{
    margin-left:0;
  }
  html[dir="rtl"] .page-content > .school-overview-panel .panel-head > .btn{
    margin-right:0;
  }
}
