:root{--brand:#0c9b91;--brand-dark:#087f78;--teal:#12a89b;--bs-primary:#0c9b91;--bs-link-color:#087f78;--bs-link-hover-color:#075f5b;--dars-aqua:#e3f6f3;--dars-deep:#123c44;--dars-line:#dcecea}
.btn-brand,.btn-primary{background:#0c9b91;border-color:#0c9b91}.btn-brand:hover,.btn-primary:hover{background:#087f78;border-color:#087f78;color:#fff}
.btn-outline-primary{--bs-btn-color:#087f78;--bs-btn-border-color:#3eb8ad;--bs-btn-hover-bg:#0c9b91;--bs-btn-hover-border-color:#0c9b91;--bs-btn-active-bg:#087f78;--bs-btn-active-border-color:#087f78;--bs-btn-focus-shadow-rgb:18,168,155}
.text-primary,.link-primary{color:#087f78!important}.bg-primary{background-color:#0c9b91!important}.border-primary{border-color:#55c3b8!important}.form-control:focus,.form-select:focus{border-color:#54c2b7;box-shadow:0 0 0 .2rem #12a89b25}
.dars-icon-library{position:absolute;width:0;height:0;overflow:hidden}.nav-icon{width:20px;height:20px;display:inline-grid;place-items:center;flex:0 0 20px;color:#559d99}.nav-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.side-link.active .nav-icon{color:#087f78}.side-link.active{background:#e4f6f3;color:#087f78}.side-link:hover{background:#edf8f7}.brand-mark{background:linear-gradient(145deg,#32cabb,#087f78);box-shadow:0 7px 15px #12a89b30}.school-avatar,.user-avatar{background:#e0f7f4;color:#087f78}.btn-brand{box-shadow:0 5px 12px #12a89b25}.login-page{background:radial-gradient(ellipse at 50% 0%,#dff7f4 0,transparent 56%),#f3f8f8}.login-form .form-control:focus{border-color:#56c6ba;box-shadow:0 0 0 .18rem #12a89b1d}
.phase-stat,.phase-card,.phase-banner,.assignment-card{border-color:#dcecea}.phase-stat{background:linear-gradient(135deg,#fff 0%,#f5fbfa 100%)}.phase-stat:before{background:#12a89b}.phase-bars .phase-bar i,.phase-bar i{background:linear-gradient(90deg,#18b5a7,#087f78)}.phase-card h2,.phase-card h3{color:#173f46}.phase-table thead th{color:#58817f}.status-pill.primary,.observation-tag{background:#e3f6f3;color:#087f78}.page-content{background-image:radial-gradient(circle at 100% 0%,#e8f6f4 0,transparent 21%);background-repeat:no-repeat}
.stat-icon.primary{background:#e0f7f4;color:#087f78}.hint-dot.primary{background:#0c9b91}.text-action,.quick-item:hover{color:#087f78}.quick-plus{background:#e3f6f3;border-color:#c5eae4;color:#087f78}.stat-card,.panel-card{border-color:#deebe9}.dashboard-table tbody tr:hover{background:#f2faf8}.row-mark.primary{background:#0c9b91}.status-pill.success{background:#e6f7f2;color:#07866f}.nav-unread{background:#0c9b91}
/* Deep Iranian turquoise surfaces: dark teal backgrounds across every panel */
html[data-theme="dark"]{color-scheme:dark;--ink:#e5f2ef;--muted:#a8c2be;--line:#28595c;--canvas:#0a2528;--navy:#10383b;--brand:#10a99c;--brand-dark:#087f78;--teal:#18b8aa;--dars-aqua:#16494b;--dars-deep:#092326;--dars-line:#28595c;--bs-body-color:#e3f0ed;--bs-body-bg:#0a2528;--bs-border-color:#28595c;--bs-secondary-color:#aac4c0;--bs-tertiary-bg:#123b3e;--bs-secondary-bg:#123b3e}
html[data-theme="dark"],html[data-theme="dark"] body{background:#0a2528!important;color:#e3f0ed!important}
html[data-theme="dark"] body{background:radial-gradient(ellipse at 80% -5%,#145254 0,transparent 34%),linear-gradient(145deg,#0a2528,#0d3033 58%,#0b292c)!important;color:#e3f0ed!important}
html[data-theme="dark"] .app-shell,html[data-theme="dark"] .main-area,html[data-theme="dark"] .page-content{background-color:transparent!important;color:#e3f0ed}
html[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#103b3e,#0d3033)!important;border-left-color:#28595c!important;color:#e5f2ef}
html[data-theme="dark"] .topbar{background:rgba(16,56,59,.96)!important;border-bottom-color:#28595c!important;color:#e5f2ef}
html[data-theme="dark"] .breadcrumb-line{color:#a8c2be}
html[data-theme="dark"] .breadcrumb-line strong,html[data-theme="dark"] .user-meta strong,html[data-theme="dark"] .welcome-row h1{color:#edf8f6}
html[data-theme="dark"] .user-meta small,html[data-theme="dark"] .brand-lockup small,html[data-theme="dark"] .sidebar-version,html[data-theme="dark"] .school-switch small,html[data-theme="dark"] .nav-caption{color:#9cbab6}
html[data-theme="dark"] .school-switch,html[data-theme="dark"] .help-card{background:#153f42!important;border-color:#2b6061!important;color:#e5f2ef}
html[data-theme="dark"] .school-switch strong,html[data-theme="dark"] .help-card strong{color:#e5f2ef}
html[data-theme="dark"] .help-card small{color:#a8c2be}
html[data-theme="dark"] .help-symbol{background:#1d6261;color:#b4f1e9}
html[data-theme="dark"] .side-link{color:#afc8c4}
html[data-theme="dark"] .side-link:hover{background:#18484a!important;color:#effbf8}
html[data-theme="dark"] .side-link.active{background:linear-gradient(100deg,#185c5d,#1a4e50)!important;color:#c9f8f0!important}
html[data-theme="dark"] .side-link.active .nav-icon{color:#43d1c1}
html[data-theme="dark"] .brand-mark{background:linear-gradient(145deg,#20c8b7,#087f78)}
html[data-theme="dark"] .school-avatar,html[data-theme="dark"] .user-avatar{background:#1a5556;color:#b9f5ec}
html[data-theme="dark"] .stat-card,html[data-theme="dark"] .panel-card,html[data-theme="dark"] .phase-card,html[data-theme="dark"] .phase-stat,html[data-theme="dark"] .catalog-card,html[data-theme="dark"] .class-management-card,html[data-theme="dark"] .resource-upload-card,html[data-theme="dark"] .resource-library-card,html[data-theme="dark"] .teacher-resource-card{background:#123b3e!important;border-color:#28595c!important;color:#dcebe8!important;box-shadow:0 8px 24px #04171940}
html[data-theme="dark"] .phase-stat{background:linear-gradient(135deg,#174648,#12383b)!important}
html[data-theme="dark"] .stat-value,html[data-theme="dark"] .card-heading h2,html[data-theme="dark"] .phase-card h2,html[data-theme="dark"] .phase-card h3,html[data-theme="dark"] .resource-section-heading h2,html[data-theme="dark"] .teacher-resource-info strong,html[data-theme="dark"] .row-title{color:#e7f4f1!important}
html[data-theme="dark"] .stat-top,html[data-theme="dark"] .stat-hint,html[data-theme="dark"] .card-heading p,html[data-theme="dark"] .phase-muted,html[data-theme="dark"] .phase-stat span,html[data-theme="dark"] .teacher-resource-info small{color:#a7c2be!important}
html[data-theme="dark"] .stat-icon.primary,html[data-theme="dark"] .stat-icon.teal,html[data-theme="dark"] .quick-plus,html[data-theme="dark"] .resource-heading-icon,html[data-theme="dark"] .resource-type-icon{background:#1b5657!important;color:#62d9cb!important}
html[data-theme="dark"] .quick-item,html[data-theme="dark"] .dashboard-table tbody td,html[data-theme="dark"] .phase-table tbody td,html[data-theme="dark"] .message-row p{color:#c4d9d5!important}
html[data-theme="dark"] .dashboard-table thead th,html[data-theme="dark"] .phase-table thead th{color:#91b4af!important;border-color:#28595c!important}
html[data-theme="dark"] .dashboard-table tbody td,html[data-theme="dark"] .dashboard-table tbody tr,html[data-theme="dark"] .phase-table tbody td,html[data-theme="dark"] .phase-table tbody tr,html[data-theme="dark"] .message-row{border-color:#28595c!important}
html[data-theme="dark"] .dashboard-table tbody tr:hover{background:#174648!important}
html[data-theme="dark"] .row-mark.primary,html[data-theme="dark"] .hint-dot.primary{background:#28c4b4}
html[data-theme="dark"] .status-pill.primary,html[data-theme="dark"] .observation-tag{background:#1c5657!important;color:#a8f0e6!important}
html[data-theme="dark"] .status-pill.success{background:#174c42!important;color:#9ce8ce!important}
html[data-theme="dark"] .status-pill.warning{background:#594722!important;color:#f5d28a!important}
html[data-theme="dark"] .phase-banner,html[data-theme="dark"] .assignment-card,html[data-theme="dark"] .school-live-row,html[data-theme="dark"] .classroom-asset-picker{background:#153f42!important;border-color:#28595c!important;color:#d7e9e5!important}
html[data-theme="dark"] .assignment-card h3,html[data-theme="dark"] .assignment-card strong,html[data-theme="dark"] .message-row strong{color:#e4f2ef!important}
html[data-theme="dark"] .assignment-card p,html[data-theme="dark"] .phase-banner small{color:#b1c9c4!important}
html[data-theme="dark"] .phase-bar{background:#244e50!important}
html[data-theme="dark"] .phase-bar i{background:linear-gradient(90deg,#27c7b7,#0d827a)!important}
html[data-theme="dark"] .phase-bar-row{color:#bed5d1!important}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,html[data-theme="dark"] .form-control:disabled,html[data-theme="dark"] .form-select:disabled{background-color:#0e3033!important;border-color:#326467!important;color:#e5f2ef!important}
html[data-theme="dark"] .form-control::placeholder{color:#86a9a5!important}
html[data-theme="dark"] .form-control:focus,html[data-theme="dark"] .form-select:focus{background-color:#10383b!important;border-color:#38c6b7!important;color:#f4fbf9!important;box-shadow:0 0 0 .2rem #14a99c35!important}
html[data-theme="dark"] .form-select option{background:#10383b;color:#e5f2ef}
html[data-theme="dark"] .form-label,html[data-theme="dark"] label{color:#c7dbd7}
html[data-theme="dark"] .btn-outline-secondary{--bs-btn-color:#b9cfcb;--bs-btn-border-color:#4b7778;--bs-btn-hover-bg:#1b5355;--bs-btn-hover-color:#effbf8;--bs-btn-hover-border-color:#48b9ad;--bs-btn-active-bg:#164749;--bs-btn-active-color:#effbf8;--bs-btn-active-border-color:#48b9ad}
html[data-theme="dark"] .btn-outline-danger{--bs-btn-color:#ef9da3;--bs-btn-border-color:#92545b;--bs-btn-hover-bg:#713940;--bs-btn-hover-color:#fff;--bs-btn-hover-border-color:#b86770}
html[data-theme="dark"] .btn-brand,html[data-theme="dark"] .btn-primary{background:#0c9b91!important;border-color:#20b9ac!important;color:#fff!important}
html[data-theme="dark"] .btn-brand:hover,html[data-theme="dark"] .btn-primary:hover{background:#087f78!important;border-color:#35c8b9!important}
html[data-theme="dark"] .alert-success{background:#174a40!important;border-color:#287b68!important;color:#b4efdc!important}
html[data-theme="dark"] .alert-info{background:#16464b!important;border-color:#2d7475!important;color:#bdece8!important}
html[data-theme="dark"] .alert-warning{background:#554a2b!important;border-color:#8b713a!important;color:#f3dfab!important}
html[data-theme="dark"] .alert-danger{background:#542f36!important;border-color:#8b4651!important;color:#ffd7da!important}
html[data-theme="dark"] .empty-state,html[data-theme="dark"] .catalog-empty{color:#a9c4bf!important}
html[data-theme="dark"] .page-footer,html[data-theme="dark"] .page-footer a{color:#98b8b2!important}
html[data-theme="dark"] .login-page{background:radial-gradient(ellipse at 50% 0%,#145254 0,transparent 46%),linear-gradient(145deg,#0a2528,#0f3538)!important}
html[data-theme="dark"] .login-card{background:#123b3e!important;border-color:#28595c!important;color:#e4f1ee!important}
html[data-theme="dark"] .login-card h1,html[data-theme="dark"] .login-form .form-label{color:#e7f4f1!important}
html[data-theme="dark"] .login-form .form-control{background:#0d3033!important;color:#e8f5f2!important;border-color:#326467!important}
html[data-theme="dark"] .login-form .form-control::placeholder{color:#86a9a5!important}
html[data-theme="dark"] .login-note,html[data-theme="dark"] .muted-text,html[data-theme="dark"] .brand-subtitle{color:#a6c1bc!important}
html[data-theme="dark"] .table{--bs-table-color:#d3e4e0;--bs-table-bg:transparent;--bs-table-border-color:#28595c;--bs-table-hover-color:#f0faf8;--bs-table-hover-bg:#174648;color:#d3e4e0}
html[data-theme="dark"] .table-light,html[data-theme="dark"] .table-light>td,html[data-theme="dark"] .table-light>th{--bs-table-bg:#174648;--bs-table-color:#e6f4f1;--bs-table-border-color:#28595c}
html[data-theme="dark"] .resource-page-mark{background:linear-gradient(145deg,#164b4d,#103538)!important;color:#64dfd0!important;box-shadow:inset 0 0 0 1px #327b79}
html[data-theme="dark"] .resource-drop-area{background:linear-gradient(145deg,#123b3e,#164447)!important;border-color:#357875!important;color:#d7e9e5}
html[data-theme="dark"] .resource-drop-area:hover{background:#174a4c!important;border-color:#36c7b8!important}
html[data-theme="dark"] .resource-upload-icon{background:#1b5b5c!important;color:#a5f2e8!important}
html[data-theme="dark"] .resource-upload-submit,html[data-theme="dark"] .resource-section-heading p{color:#a6c1bd!important}
html[data-theme="dark"] .teacher-resource-card:hover{border-color:#3bb9ac!important;box-shadow:0 8px 22px #061d1e88!important}
html[data-theme="dark"] .teacher-resource-type{background:#1b5557!important;color:#a7ede5!important}
html[data-theme="dark"] .teacher-resource-type.is-image{background:#1c4a50!important;color:#acdbea!important}
html[data-theme="dark"] .teacher-resource-type.is-video{background:#30445b!important;color:#c5ccf3!important}
html[data-theme="dark"] .teacher-resource-type.is-pdf{background:#56383a!important;color:#ffc2b7!important}
html[data-theme="dark"] .teacher-resource-actions{border-top-color:#28595c!important}
html[data-theme="dark"] .classroom-page{background:linear-gradient(150deg,#0b2b2e,#0e3538 62%,#0b292c)!important;color:#e7f4f1}
html[data-theme="dark"] .classroom-header{background:linear-gradient(120deg,#0e383b,#105052 62%,#087f78)!important;border-color:#286b69!important}
html[data-theme="dark"] .classroom-surface,html[data-theme="dark"] .classroom-side .room-panel,html[data-theme="dark"] .room-panel,html[data-theme="dark"] .classroom-chat-panel{background:#123b3e!important;border-color:#286064!important;color:#e0efec!important}
html[data-theme="dark"] .room-panel-title h2,html[data-theme="dark"] .room-panel-title h3,html[data-theme="dark"] .classroom-chat-panel h2{color:#e4f2ef!important}
html[data-theme="dark"] .room-panel-title small,html[data-theme="dark"] .room-panel small{color:#9dbbb6!important}
html[data-theme="dark"] .classroom-stage-switch{background:#103639!important;border-color:#286064!important}
html[data-theme="dark"] .stage-switch-button{background:#164548!important;border-color:#2b6768!important;color:#c3dad6!important}
html[data-theme="dark"] .stage-switch-button.active{background:#18aa9e!important;border-color:#39cabe!important;color:#062b2e!important}
html[data-theme="dark"] .camera-stage-view,html[data-theme="dark"] .video-grid,html[data-theme="dark"] .student-video-rail{background:#0d3033!important}
html[data-theme="dark"] .participant-tile,html[data-theme="dark"] .participant-list,html[data-theme="dark"] .shared-file-card,html[data-theme="dark"] .attendance-row{background:#153f42!important;border-color:#2a6264!important;color:#dcebe8}
html[data-theme="dark"] .participant-label,html[data-theme="dark"] .shared-file-info strong,html[data-theme="dark"] .attendance-row strong{color:#e2f0ed!important}
html[data-theme="dark"] .participant-label small,html[data-theme="dark"] .shared-file-info small,html[data-theme="dark"] .attendance-row small{color:#a3bfba!important}
html[data-theme="dark"] .shared-file-icon{background:#1a5355!important;color:#9fe9df!important}
html[data-theme="dark"] .participant-search input,html[data-theme="dark"] .classroom-chat-form input,html[data-theme="dark"] .classroom-asset-picker-row .form-select{background:#0e3033!important;border-color:#326467!important;color:#e6f3f0!important}
html[data-theme="dark"] .classroom-notice,html[data-theme="dark"] .media-request-banner{background:#194748!important;border-color:#367c79!important;color:#d4efeb!important}
html[data-theme="dark"] .media-consent-card{background:#123b3e!important;border-color:#347573!important;color:#e5f2ef!important}
html[data-theme="dark"] .media-consent-card h2{color:#e8f6f3}
html[data-theme="dark"] .media-consent-card p{color:#afc9c4}
html[data-theme="dark"] .media-consent-icon{background:#1b5758!important;color:#6fe0d2!important}
html[data-theme="dark"] .classroom-chat-messages{background:#103639!important}
html[data-theme="dark"] .class-chat-message{background:#164447!important;border-color:#2d6668!important}
html[data-theme="dark"] .class-chat-message strong{color:#75d9cd!important}
html[data-theme="dark"] .class-chat-message p{color:#deeeeb!important}
html[data-theme="dark"] .classroom-chat-form input{color:#eff9f7!important}
html[data-theme="dark"] .whiteboard-panel{background:#123b3e!important;border-color:#2b6363!important;color:#e1efec!important}
html[data-theme="dark"] .whiteboard-heading h2,html[data-theme="dark"] .whiteboard-heading small,html[data-theme="dark"] .board-setting,html[data-theme="dark"] .board-student-permission,html[data-theme="dark"] .whiteboard-page-nav>span{color:#d0e4df!important}
html[data-theme="dark"] .whiteboard-toolbar{background:#153f42!important;border-color:#2c6062!important}
html[data-theme="dark"] .board-action,html[data-theme="dark"] .board-tool,html[data-theme="dark"] .board-import{background:#103639!important;border-color:#32696a!important;color:#d2e6e2!important}
html[data-theme="dark"] .board-tool.active{background:#0c9b91!important;border-color:#46d0c2!important;color:#fff!important}
html[data-theme="dark"] .board-width-setting input{accent-color:#24c7b7!important}
html[data-theme="dark"] .board-canvas-wrap{background-color:#f9fffe!important;border-color:#65bdb5!important}
html[data-theme="dark"] .board-mobile-hint{color:#a8c3bf!important}
html[data-theme="dark"] .catalog-count,html[data-theme="dark"] .year-count,html[data-theme="dark"] .class-card-icon,html[data-theme="dark"] .class-card-icon.schedule-icon{background:#1b5557!important;color:#86e7dc!important}
html[data-theme="dark"] .catalog-create-form,html[data-theme="dark"] .year-create-form{background:#123b3e!important;border-color:#28595c!important;color:#dcebe8!important}
html[data-theme="dark"] .catalog-create-form .form-label,html[data-theme="dark"] .year-create-form .form-label{color:#b8d0cc!important}
html[data-theme="dark"] .catalog-edit-table thead th,html[data-theme="dark"] .class-roster-table thead th{background:#174648!important;color:#b9d4cf!important;border-color:#28595c!important}
html[data-theme="dark"] .catalog-table-wrap,html[data-theme="dark"] .catalog-edit-table,html[data-theme="dark"] .class-roster-table{border-color:#28595c!important}
html[data-theme="dark"] .time-picker-toggle,html[data-theme="dark"] .time-picker-popover{background:#123b3e!important;border-color:#326467!important;color:#dcebe8!important}
html[data-theme="dark"] .time-picker-toggle:hover,html[data-theme="dark"] .time-picker-toggle[aria-expanded=true]{background:#174b4d!important;border-color:#37b9ae!important;color:#eafffb!important}
html[data-theme="dark"] .time-picker-popover button,html[data-theme="dark"] .time-picker-popover [role=option]{background:#164447!important;border-color:#326467!important;color:#d9eae6!important}
html[data-theme="dark"] .time-picker-popover button:hover,html[data-theme="dark"] .time-picker-popover [aria-selected=true]{background:#0c7772!important;color:#fff!important}
html[data-theme="dark"] .roster-toolbar .btn-outline-secondary,html[data-theme="dark"] .roster-file-pick{background:#153f42!important;border-color:#326467!important;color:#c5dad6!important}
html[data-theme="dark"] .roster-import-hint{background:#164447!important;border-color:#326467!important;color:#c4e2dd!important}
html[data-theme="dark"] .roster-avatar,html[data-theme="dark"] .roster-candidate-avatar{background:#1b5557!important;color:#c3f5ee!important}
html[data-theme="dark"] .roster-candidate:hover{background:#174648!important}
html[data-theme="dark"] .assignment-image-shell,html[data-theme="dark"] .assignment-image-header,html[data-theme="dark"] .assignment-image-tools,html[data-theme="dark"] .assignment-image-status{background:#123b3e!important;color:#dcebe8!important;border-color:#28595c!important}
html[data-theme="dark"] .assignment-image-viewport{background:#0d3033!important}
html[data-theme="dark"] .assignment-image-tools label{color:#bdd4cf!important}
html[data-theme="dark"] .assignment-image-tools input[type=color]{background:#10383b!important}
html[data-theme="dark"] .assignment-image-tools [data-draw-mode].active{background:#0c9b91!important;color:#fff!important}
html[data-theme="dark"] .assignment-image-modal{background:#123b3e!important;color:#e5f2ef!important}
html[data-theme="dark"] .assignment-image-modal::backdrop{background:#041618d9!important}
html[data-theme="dark"] .card,html[data-theme="dark"] .modal-content,html[data-theme="dark"] .dropdown-menu,html[data-theme="dark"] .list-group-item,html[data-theme="dark"] .accordion-item{background:#123b3e!important;border-color:#28595c!important;color:#deece9!important}
html[data-theme="dark"] .dropdown-item{color:#c9ded9!important}
html[data-theme="dark"] .dropdown-item:hover,html[data-theme="dark"] .dropdown-item:focus{background:#185254!important;color:#f0fbf8!important}
html[data-theme="dark"] .modal-header,html[data-theme="dark"] .modal-footer{border-color:#28595c!important}
html[data-theme="dark"] .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}
html[data-theme="dark"] .alert{box-shadow:0 5px 18px #04171930}
html[data-theme="dark"] .template-download,html[data-theme="dark"] .roster-file-pick{background:#153f42!important;border-color:#326467!important;color:#d9ebe7!important}
html[data-theme="dark"] .page-content{background-image:radial-gradient(circle at 100% 0%,#12494a55 0,transparent 24%)!important}
html[data-theme="dark"] .breadcrumb-line b{color:#4e7976!important}
html[data-theme="dark"] .topbar-divider{border-color:#28595c!important}
html[data-theme="dark"] .logout-button{background:#174648!important;border-color:#35696a!important;color:#cde1dd!important}
html[data-theme="dark"] .logout-button:hover{background:#1d5758!important;border-color:#48b8ae!important;color:#fff!important}
html[data-theme="dark"] .welcome-row p,html[data-theme="dark"] .eyebrow{color:#a2bfba!important}
html[data-theme="dark"] .resource-drop-area small{color:#a2bfba!important}
html[data-theme="dark"] .btn-link{color:#72d5ca!important}
/* Persistent light turquoise theme */
html[data-theme="light"]{color-scheme:light;--ink:#193b3e;--muted:#627d7b;--line:#d5e7e4;--canvas:#edf5f4;--navy:#123c44;--brand:#0b9189;--brand-dark:#08756f;--teal:#129f95;--dars-aqua:#e2f3f0;--dars-deep:#123c44;--dars-line:#d5e7e4;--bs-body-color:#233f41;--bs-body-bg:#edf5f4;--bs-border-color:#d5e7e4;--bs-secondary-color:#6c8582;--bs-tertiary-bg:#f0f7f6;--bs-secondary-bg:#f0f7f6}
html[data-theme="light"],html[data-theme="light"] body{background:#edf5f4!important;color:#233f41!important}
html[data-theme="light"] body{background:radial-gradient(ellipse at 82% -5%,#d6eeea 0,transparent 35%),linear-gradient(145deg,#edf5f4,#f5faf9 58%,#e9f3f1)!important}
html[data-theme="light"] .app-shell,html[data-theme="light"] .main-area,html[data-theme="light"] .page-content{background-color:transparent!important;color:#233f41}
html[data-theme="light"] .sidebar{background:linear-gradient(180deg,#f8fcfb,#eaf4f2)!important;border-left-color:#d1e5e1!important;color:#193b3e}
html[data-theme="light"] .topbar{background:rgba(250,253,252,.96)!important;border-bottom-color:#d5e7e4!important;color:#193b3e}
html[data-theme="light"] .breadcrumb-line{color:#718b88}html[data-theme="light"] .breadcrumb-line strong,html[data-theme="light"] .user-meta strong,html[data-theme="light"] .welcome-row h1{color:#193b3e}
html[data-theme="light"] .user-meta small,html[data-theme="light"] .brand-lockup small,html[data-theme="light"] .sidebar-version,html[data-theme="light"] .school-switch small,html[data-theme="light"] .nav-caption{color:#718b88}
html[data-theme="light"] .school-switch,html[data-theme="light"] .help-card{background:#f4faf8!important;border-color:#d4e7e3!important;color:#193b3e}
html[data-theme="light"] .school-switch strong,html[data-theme="light"] .help-card strong{color:#193b3e}html[data-theme="light"] .help-card small{color:#6e8784}
html[data-theme="light"] .help-symbol{background:#d9efeb;color:#08756f}html[data-theme="light"] .side-link{color:#557471}
html[data-theme="light"] .side-link:hover{background:#e3f2ef!important;color:#173f40}html[data-theme="light"] .side-link.active{background:linear-gradient(100deg,#d7efeb,#e3f4f1)!important;color:#08756f!important}
html[data-theme="light"] .side-link.active .nav-icon{color:#087f78}html[data-theme="light"] .brand-mark{background:linear-gradient(145deg,#25b9ad,#087f78)}
html[data-theme="light"] .school-avatar,html[data-theme="light"] .user-avatar{background:#d9efeb;color:#08756f}
html[data-theme="light"] .stat-card,html[data-theme="light"] .panel-card,html[data-theme="light"] .phase-card,html[data-theme="light"] .phase-stat,html[data-theme="light"] .catalog-card,html[data-theme="light"] .class-management-card,html[data-theme="light"] .resource-upload-card,html[data-theme="light"] .resource-library-card,html[data-theme="light"] .teacher-resource-card{background:#fbfdfd!important;border-color:#d5e7e4!important;color:#244446!important;box-shadow:0 8px 24px #275c5710}
html[data-theme="light"] .phase-stat{background:linear-gradient(135deg,#fff,#eff8f6)!important}
html[data-theme="light"] .stat-value,html[data-theme="light"] .card-heading h2,html[data-theme="light"] .phase-card h2,html[data-theme="light"] .phase-card h3,html[data-theme="light"] .resource-section-heading h2,html[data-theme="light"] .teacher-resource-info strong,html[data-theme="light"] .row-title{color:#193b3e!important}
html[data-theme="light"] .stat-top,html[data-theme="light"] .stat-hint,html[data-theme="light"] .card-heading p,html[data-theme="light"] .phase-muted,html[data-theme="light"] .phase-stat span,html[data-theme="light"] .teacher-resource-info small{color:#718b88!important}
html[data-theme="light"] .stat-icon.primary,html[data-theme="light"] .stat-icon.teal,html[data-theme="light"] .quick-plus,html[data-theme="light"] .resource-heading-icon,html[data-theme="light"] .resource-type-icon{background:#e0f2ef!important;color:#087f78!important}
html[data-theme="light"] .quick-item,html[data-theme="light"] .dashboard-table tbody td,html[data-theme="light"] .phase-table tbody td,html[data-theme="light"] .message-row p{color:#526e6b!important}
html[data-theme="light"] .dashboard-table thead th,html[data-theme="light"] .phase-table thead th{color:#698581!important;border-color:#d9e8e5!important}
html[data-theme="light"] .dashboard-table tbody td,html[data-theme="light"] .dashboard-table tbody tr,html[data-theme="light"] .phase-table tbody td,html[data-theme="light"] .phase-table tbody tr,html[data-theme="light"] .message-row{border-color:#d9e8e5!important}
html[data-theme="light"] .dashboard-table tbody tr:hover{background:#edf7f5!important}html[data-theme="light"] .row-mark.primary,html[data-theme="light"] .hint-dot.primary{background:#0b9189}
html[data-theme="light"] .status-pill.primary,html[data-theme="light"] .observation-tag{background:#e0f2ef!important;color:#08756f!important}html[data-theme="light"] .status-pill.success{background:#e7f5ef!important;color:#248060!important}html[data-theme="light"] .status-pill.warning{background:#fff4df!important;color:#9a6a1c!important}
html[data-theme="light"] .phase-banner,html[data-theme="light"] .assignment-card,html[data-theme="light"] .school-live-row,html[data-theme="light"] .classroom-asset-picker{background:#f2f9f7!important;border-color:#d5e7e4!important;color:#29494a!important}
html[data-theme="light"] .assignment-card h3,html[data-theme="light"] .assignment-card strong,html[data-theme="light"] .message-row strong{color:#193b3e!important}html[data-theme="light"] .assignment-card p,html[data-theme="light"] .phase-banner small{color:#637f7c!important}
html[data-theme="light"] .phase-bar{background:#d9eae7!important}html[data-theme="light"] .phase-bar i{background:linear-gradient(90deg,#18aa9e,#087f78)!important}html[data-theme="light"] .phase-bar-row{color:#526e6b!important}
html[data-theme="light"] .form-control,html[data-theme="light"] .form-select,html[data-theme="light"] .form-control:disabled,html[data-theme="light"] .form-select:disabled{background-color:#fff!important;border-color:#cbdedb!important;color:#233f41!important}
html[data-theme="light"] .form-control::placeholder{color:#8ca3a0!important}html[data-theme="light"] .form-control:focus,html[data-theme="light"] .form-select:focus{background-color:#fff!important;border-color:#32a99f!important;color:#193b3e!important;box-shadow:0 0 0 .2rem #12a89b25!important}
html[data-theme="light"] .form-select option{background:#fff;color:#233f41}html[data-theme="light"] .form-label,html[data-theme="light"] label{color:#405e5c}
html[data-theme="light"] .btn-outline-secondary{--bs-btn-color:#496663;--bs-btn-border-color:#9ab9b4;--bs-btn-hover-bg:#e0f2ef;--bs-btn-hover-color:#173f40;--bs-btn-hover-border-color:#55aaa1;--bs-btn-active-bg:#d5ebe7;--bs-btn-active-color:#173f40;--bs-btn-active-border-color:#55aaa1}
html[data-theme="light"] .btn-outline-danger{--bs-btn-color:#a6404c;--bs-btn-border-color:#d99ba1;--bs-btn-hover-bg:#fbe7e8;--bs-btn-hover-color:#8d2632;--bs-btn-hover-border-color:#c97881}
html[data-theme="light"] .btn-brand,html[data-theme="light"] .btn-primary{background:#0b9189!important;border-color:#0b9189!important;color:#fff!important}html[data-theme="light"] .btn-brand:hover,html[data-theme="light"] .btn-primary:hover{background:#08756f!important;border-color:#08756f!important}
html[data-theme="light"] .alert-success{background:#e8f6ef!important;border-color:#b7dfcc!important;color:#27684f!important}html[data-theme="light"] .alert-info{background:#e5f3f4!important;border-color:#b7dcdd!important;color:#2c696d!important}html[data-theme="light"] .alert-warning{background:#fff6e6!important;border-color:#ead7a8!important;color:#795b1f!important}html[data-theme="light"] .alert-danger{background:#fff0f1!important;border-color:#e9b8bd!important;color:#8d3842!important}
html[data-theme="light"] .empty-state,html[data-theme="light"] .catalog-empty{color:#718b88!important}html[data-theme="light"] .page-footer,html[data-theme="light"] .page-footer a{color:#718b88!important}
html[data-theme="light"] .login-page{background:radial-gradient(ellipse at 50% 0%,#d6eeea 0,transparent 52%),linear-gradient(145deg,#edf5f4,#f8fbfa)!important}html[data-theme="light"] .login-card{background:#fff!important;border-color:#d5e7e4!important;color:#233f41!important}
html[data-theme="light"] .login-card h1,html[data-theme="light"] .login-form .form-label{color:#193b3e!important}html[data-theme="light"] .login-form .form-control{background:#fff!important;color:#233f41!important;border-color:#cbdedb!important}html[data-theme="light"] .login-form .form-control::placeholder{color:#8ca3a0!important}
html[data-theme="light"] .login-note,html[data-theme="light"] .muted-text,html[data-theme="light"] .brand-subtitle{color:#718b88!important}
html[data-theme="light"] .table{--bs-table-color:#355553;--bs-table-bg:transparent;--bs-table-border-color:#d5e7e4;--bs-table-hover-color:#193b3e;--bs-table-hover-bg:#edf7f5;color:#355553}
html[data-theme="light"] .table-light,html[data-theme="light"] .table-light>td,html[data-theme="light"] .table-light>th{--bs-table-bg:#eaf4f2;--bs-table-color:#29494a;--bs-table-border-color:#d5e7e4}
html[data-theme="light"] .resource-page-mark{background:linear-gradient(145deg,#e3f3f0,#d4ebe7)!important;color:#087f78!important;box-shadow:inset 0 0 0 1px #b7dcd6}
html[data-theme="light"] .resource-drop-area{background:linear-gradient(145deg,#f7fbfa,#eaf5f3)!important;border-color:#8abdb6!important;color:#345755}html[data-theme="light"] .resource-drop-area:hover{background:#e4f3f0!important;border-color:#38a99f!important}
html[data-theme="light"] .resource-upload-icon{background:#dcefeb!important;color:#087f78!important}html[data-theme="light"] .resource-upload-submit,html[data-theme="light"] .resource-section-heading p{color:#6c8582!important}
html[data-theme="light"] .teacher-resource-card:hover{border-color:#42aaa1!important;box-shadow:0 8px 22px #275c571b!important}html[data-theme="light"] .teacher-resource-type{background:#e1f1ee!important;color:#08756f!important}
html[data-theme="light"] .teacher-resource-type.is-image{background:#e5f2f5!important;color:#397386!important}html[data-theme="light"] .teacher-resource-type.is-video{background:#eceafa!important;color:#6154a0!important}html[data-theme="light"] .teacher-resource-type.is-pdf{background:#fbecea!important;color:#a34f47!important}html[data-theme="light"] .teacher-resource-actions{border-top-color:#d5e7e4!important}
/* Keep the classroom readable with bright, paper-like teaching surfaces. */
html[data-theme="light"] .classroom-page{background:linear-gradient(150deg,#e8f3f1,#f4f9f8 62%,#e7f2f0)!important;color:#244446!important}
html[data-theme="light"] .classroom-header{background:linear-gradient(120deg,#15585a,#147b77 62%,#0b9189)!important;border-color:#277b76!important;color:#f2fbf9!important}html[data-theme="light"] .classroom-header h1,html[data-theme="light"] .classroom-header p,html[data-theme="light"] .classroom-header .eyebrow{color:#f2fbf9!important}
html[data-theme="light"] .classroom-surface,html[data-theme="light"] .classroom-side .room-panel,html[data-theme="light"] .room-panel,html[data-theme="light"] .classroom-chat-panel{background:#fbfdfd!important;border-color:#cfe3df!important;color:#29494a!important}
html[data-theme="light"] .room-panel-title h2,html[data-theme="light"] .room-panel-title h3,html[data-theme="light"] .classroom-chat-panel h2{color:#193b3e!important}html[data-theme="light"] .room-panel-title small,html[data-theme="light"] .room-panel small{color:#718b88!important}
html[data-theme="light"] .classroom-stage-switch{background:#e7f3f1!important;border-color:#c9dfdb!important}html[data-theme="light"] .stage-switch-button{background:#f7fbfa!important;border-color:#c9dfdb!important;color:#476562!important}html[data-theme="light"] .stage-switch-button.active{background:#0b9189!important;border-color:#0b9189!important;color:#fff!important}
html[data-theme="light"] .camera-stage-view,html[data-theme="light"] .video-grid,html[data-theme="light"] .student-video-rail{background:#e5efed!important}
html[data-theme="light"] .participant-tile,html[data-theme="light"] .participant-list,html[data-theme="light"] .shared-file-card,html[data-theme="light"] .attendance-row{background:#f3f9f8!important;border-color:#cfe3df!important;color:#29494a!important}
html[data-theme="light"] .participant-label,html[data-theme="light"] .shared-file-info strong,html[data-theme="light"] .attendance-row strong{color:#193b3e!important}html[data-theme="light"] .participant-label small,html[data-theme="light"] .shared-file-info small,html[data-theme="light"] .attendance-row small{color:#718b88!important}
html[data-theme="light"] .shared-file-icon{background:#dcefeb!important;color:#087f78!important}html[data-theme="light"] .participant-search input,html[data-theme="light"] .classroom-chat-form input,html[data-theme="light"] .classroom-asset-picker-row .form-select{background:#fff!important;border-color:#bfd8d3!important;color:#29494a!important}
html[data-theme="light"] .classroom-notice,html[data-theme="light"] .media-request-banner{background:#e2f2ef!important;border-color:#b8dad4!important;color:#355c59!important}html[data-theme="light"] .media-consent-card{background:#fff!important;border-color:#afd3cd!important;color:#29494a!important}
html[data-theme="light"] .media-consent-card h2{color:#193b3e!important}html[data-theme="light"] .media-consent-card p{color:#607b78!important}html[data-theme="light"] .media-consent-icon{background:#dcefeb!important;color:#087f78!important}
html[data-theme="light"] .classroom-chat-messages{background:#edf6f4!important}html[data-theme="light"] .class-chat-message{background:#fff!important;border-color:#d1e4e0!important}html[data-theme="light"] .class-chat-message strong{color:#087f78!important}html[data-theme="light"] .class-chat-message p{color:#355553!important}
html[data-theme="light"] .classroom-chat-form input{color:#29494a!important}html[data-theme="light"] .whiteboard-panel{background:#fbfdfd!important;border-color:#cfe3df!important;color:#29494a!important}
html[data-theme="light"] .whiteboard-heading h2,html[data-theme="light"] .whiteboard-heading small,html[data-theme="light"] .board-setting,html[data-theme="light"] .board-student-permission,html[data-theme="light"] .whiteboard-page-nav>span{color:#466461!important}
html[data-theme="light"] .whiteboard-toolbar{background:#edf6f4!important;border-color:#cfe3df!important}html[data-theme="light"] .board-action,html[data-theme="light"] .board-tool,html[data-theme="light"] .board-import{background:#fff!important;border-color:#c7ddd8!important;color:#466461!important}
html[data-theme="light"] .board-tool.active{background:#0b9189!important;border-color:#37b9ae!important;color:#fff!important}html[data-theme="light"] .board-width-setting input{accent-color:#0b9189!important}html[data-theme="light"] .board-canvas-wrap{background-color:#fff!important;border-color:#71b8b0!important}html[data-theme="light"] .board-mobile-hint{color:#718b88!important}
html[data-theme="light"] .catalog-count,html[data-theme="light"] .year-count,html[data-theme="light"] .class-card-icon,html[data-theme="light"] .class-card-icon.schedule-icon{background:#dcefeb!important;color:#087f78!important}
html[data-theme="light"] .catalog-create-form,html[data-theme="light"] .year-create-form{background:#f8fcfb!important;border-color:#d5e7e4!important;color:#29494a!important}html[data-theme="light"] .catalog-create-form .form-label,html[data-theme="light"] .year-create-form .form-label{color:#526e6b!important}
html[data-theme="light"] .catalog-edit-table thead th,html[data-theme="light"] .class-roster-table thead th{background:#e8f3f1!important;color:#496663!important;border-color:#d5e7e4!important}html[data-theme="light"] .catalog-table-wrap,html[data-theme="light"] .catalog-edit-table,html[data-theme="light"] .class-roster-table{border-color:#d5e7e4!important}
html[data-theme="light"] .time-picker-toggle,html[data-theme="light"] .time-picker-popover{background:#fff!important;border-color:#bfd8d3!important;color:#355553!important}html[data-theme="light"] .time-picker-toggle:hover,html[data-theme="light"] .time-picker-toggle[aria-expanded=true]{background:#e7f3f1!important;border-color:#55aaa1!important;color:#193b3e!important}
html[data-theme="light"] .time-picker-popover button,html[data-theme="light"] .time-picker-popover [role=option]{background:#f3f9f8!important;border-color:#cbdedb!important;color:#355553!important}html[data-theme="light"] .time-picker-popover button:hover,html[data-theme="light"] .time-picker-popover [aria-selected=true]{background:#0b9189!important;color:#fff!important}
html[data-theme="light"] .roster-toolbar .btn-outline-secondary,html[data-theme="light"] .roster-file-pick{background:#f3f9f8!important;border-color:#cbdedb!important;color:#496663!important}html[data-theme="light"] .roster-import-hint{background:#eaf5f3!important;border-color:#cbdedb!important;color:#496663!important}
html[data-theme="light"] .roster-avatar,html[data-theme="light"] .roster-candidate-avatar{background:#dcefeb!important;color:#087f78!important}html[data-theme="light"] .roster-candidate:hover{background:#edf7f5!important}
html[data-theme="light"] .assignment-image-shell,html[data-theme="light"] .assignment-image-header,html[data-theme="light"] .assignment-image-tools,html[data-theme="light"] .assignment-image-status{background:#fbfdfd!important;color:#355553!important;border-color:#d5e7e4!important}
html[data-theme="light"] .assignment-image-viewport{background:#edf5f4!important}html[data-theme="light"] .assignment-image-tools label{color:#526e6b!important}html[data-theme="light"] .assignment-image-tools input[type=color]{background:#fff!important}html[data-theme="light"] .assignment-image-tools [data-draw-mode].active{background:#0b9189!important;color:#fff!important}
html[data-theme="light"] .assignment-image-modal{background:#fff!important;color:#29494a!important}html[data-theme="light"] .assignment-image-modal::backdrop{background:#143a38a8!important}
html[data-theme="light"] .card,html[data-theme="light"] .modal-content,html[data-theme="light"] .dropdown-menu,html[data-theme="light"] .list-group-item,html[data-theme="light"] .accordion-item{background:#fff!important;border-color:#d5e7e4!important;color:#29494a!important}
html[data-theme="light"] .dropdown-item{color:#42615e!important}html[data-theme="light"] .dropdown-item:hover,html[data-theme="light"] .dropdown-item:focus{background:#eaf5f3!important;color:#193b3e!important}html[data-theme="light"] .modal-header,html[data-theme="light"] .modal-footer{border-color:#d5e7e4!important}
html[data-theme="light"] .btn-close{filter:none}html[data-theme="light"] .alert{box-shadow:0 5px 18px #275c5710}
html[data-theme="light"] .template-download,html[data-theme="light"] .roster-file-pick{background:#f3f9f8!important;border-color:#cbdedb!important;color:#42615e!important}
html[data-theme="light"] .page-content{background-image:radial-gradient(circle at 100% 0%,#dff0ed 0,transparent 24%)!important}html[data-theme="light"] .breadcrumb-line b{color:#9ab2ae!important}html[data-theme="light"] .topbar-divider{border-color:#d5e7e4!important}
html[data-theme="light"] .logout-button{background:#e5f2f0!important;border-color:#c6ddd8!important;color:#42615e!important}html[data-theme="light"] .logout-button:hover{background:#d8eeea!important;border-color:#7bb9b1!important;color:#193b3e!important}
html[data-theme="light"] .welcome-row p,html[data-theme="light"] .eyebrow{color:#718b88!important}html[data-theme="light"] .resource-drop-area small{color:#718b88!important}html[data-theme="light"] .btn-link{color:#087f78!important}
html[data-theme="light"] .theme-toggle{background:#fff;color:#315653;border-color:#cbdedb;box-shadow:0 8px 24px #275c5718}

/* Global theme switch, available on login, panels, and the live classroom. */
.theme-toggle{position:fixed;left:16px;bottom:16px;z-index:1040;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 13px;border:1px solid #326467;border-radius:999px;background:#123b3e;color:#d9efeb;font:600 11px IRANSansMobileFa,Tahoma,sans-serif;box-shadow:0 8px 24px #04171955;cursor:pointer;transition:transform .16s ease,background .16s ease,border-color .16s ease}
.theme-toggle:hover{transform:translateY(-2px);border-color:#42b9ae;background:#17494b}
.theme-toggle:focus-visible{outline:3px solid #31bbae;outline-offset:3px}
.theme-toggle-icon{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#1b5557;color:#7ce0d4;font-size:17px;line-height:1}
@media(max-width:760px){.theme-toggle{left:12px;bottom:86px;min-height:38px;padding:7px 11px}}
@media(max-width:380px){.theme-toggle-label{font-size:10px}}
html[data-theme="light"] .theme-toggle-icon{background:#e0f2ef;color:#087f78}
