:root{--ink:#0f172a;--muted:#64748b;--border:#e2e8f0;--soft:#f8fafc;--brand:#0f766e;--brand-dark:#115e59;--brand-light:#ccfbf1;--brand-glow:0 8px 24px -4px rgba(15,118,110,0.3);--purple:#6366f1;--blue:#0284c7;--orange:#f59e0b;--rose:#e11d48;--radius:16px;--shadow-sm:0 2px 4px rgba(15,23,42,0.03);--shadow-md:0 10px 30px -5px rgba(15,23,42,0.05),0 4px 6px -2px rgba(15,23,42,0.02);--shadow-lg:0 20px 40px -10px rgba(15,118,110,0.12)}*{box-sizing:border-box}body{margin:0;background:#f1f5f9;color:var(--ink);font-family:Plus Jakarta Sans,Outfit,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;letter-spacing:-.01em;-webkit-font-smoothing:antialiased}button{cursor:pointer;font-family:inherit}button *{pointer-events:none}.app-shell{min-height:100vh;display:flex}.sidebar{width:268px;background:linear-gradient(180deg,#0b1917,#112a27);color:#cbd5e1;position:fixed;inset:0 auto 0 0;z-index:20;padding:24px 16px 16px;display:flex;flex-direction:column;box-shadow:4px 0 25px rgba(0,0,0,.15)}.brand{height:44px;margin:0 8px 24px;display:flex;align-items:center;gap:12px;color:#fff;font-family:Outfit,sans-serif;font-size:21px;font-weight:800;letter-spacing:-.5px}.brand-mark{height:32px;width:32px;border-radius:10px;background:linear-gradient(135deg,#2dd4bf,#0d9488);color:#042f2e;display:grid;place-items:center;font-weight:800;font-size:20px;box-shadow:0 4px 14px rgba(45,212,191,.4)}.brand>span span{color:#5eead4}.menu-button,.mobile-close{display:none}.workspace{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:12px;display:flex;gap:10px;align-items:center;margin:0 2px 20px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.school-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;font-size:14px;font-weight:800;box-shadow:0 3px 10px rgba(245,158,11,.3)}.workspace div:nth-child(2){display:grid;grid-gap:2px;gap:2px;flex:1 1;min-width:0}.workspace b{font-size:12px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}.workspace small{color:#94a3b8;font-size:11px}nav{overflow-y:auto;flex:1 1;padding-bottom:16px;padding-right:4px}nav::-webkit-scrollbar{width:4px}nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:4px}nav button{border:0;background:transparent;color:#94a3b8;height:42px;width:100%;border-radius:10px;display:flex;align-items:center;padding:0 12px;gap:12px;font-size:13px;font-weight:600;text-align:left;cursor:pointer;margin:2px 0;transition:all .18s cubic-bezier(.4,0,.2,1)}nav button svg{width:18px;color:#64748b;transition:color .18s ease}nav button span{flex:1 1}nav button.active{background:linear-gradient(135deg,rgba(20,125,112,.9),rgba(13,97,87,.9));color:#fff;box-shadow:0 4px 14px rgba(20,125,112,.35)}nav button.active svg{color:#5eead4}nav button:hover:not(.active){background:rgba(255,255,255,.06);color:#f1f5f9}nav button:hover:not(.active) svg{color:#94a3b8}nav em{background:#f59e0b;border-radius:6px;color:#0f172a;font-style:normal;padding:2px 7px}.nav-section,nav em{font-size:10px;font-weight:800}.nav-section{font-family:Outfit,sans-serif;letter-spacing:1.2px;text-transform:uppercase;color:#2dd4bf;margin:22px 12px 8px;opacity:.9}.nav-section.first{margin-top:8px}.sidebar-footer{margin-top:auto;border-radius:12px;padding:12px;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);color:#94a3b8}.sidebar-footer b{font-size:11px;color:#f1f5f9}.sidebar-footer small{font-size:10px}.help-icon{width:26px;height:26px;border-radius:8px;background:rgba(45,212,191,.15);color:#2dd4bf;display:grid;place-items:center;font-weight:800}.content-area{margin-left:268px;min-height:100vh;width:calc(100% - 268px)}.topbar{height:72px;background:rgba(255,255,255,.85);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);justify-content:space-between;padding:0 36px;position:-webkit-sticky;position:sticky;top:0;z-index:15}.crumb,.topbar{display:flex;align-items:center}.crumb{gap:8px;color:var(--muted);font-size:13px;font-weight:500}.crumb b{color:var(--ink);font-weight:700}.top-actions{display:flex;gap:12px;align-items:center}.top-generate{height:38px;background:linear-gradient(135deg,#0f766e,#0d9488);color:#fff;border:0;border-radius:10px;padding:0 16px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:8px;box-shadow:var(--brand-glow);transition:all .2s cubic-bezier(.4,0,.2,1)}.top-generate:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 28px -4px rgba(15,118,110,.45)}.top-generate:disabled{opacity:.7;cursor:wait}.search{width:160px;background:var(--soft);font-size:12px;font-weight:500;text-align:left;padding:0 12px}.icon-button,.search{height:38px;border:1px solid var(--border);color:var(--muted);border-radius:10px}.icon-button{background:#fff;position:relative;width:38px;display:grid;place-items:center;transition:all .15s ease}.icon-button:hover{background:var(--soft);color:var(--ink)}.icon-button i{position:absolute;width:7px;height:7px;background:var(--rose);border-radius:50%;top:8px;right:8px;border:2px solid #fff}.profile{display:flex;gap:10px;align-items:center;border:1px solid var(--border);background:#fff;font-weight:700;font-size:13px;color:var(--ink);padding:4px 12px 4px 4px;border-radius:12px}.profile>span{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#ccfbf1;color:#0f766e;font-weight:800}.page-content{padding:32px 36px 48px;max-width:1600px;margin:auto}.page-heading,.welcome{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--brand)}.eyebrow,.page-heading h1,.welcome h1{font-family:Outfit,sans-serif;font-weight:800}.page-heading h1,.welcome h1{font-size:30px;letter-spacing:-.8px;margin:6px 0 4px;color:var(--ink)}.page-heading p,.welcome p{margin:0;color:var(--muted);font-size:14px;font-weight:500}.step-wizard-bar{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px;justify-content:space-between;margin-bottom:24px;box-shadow:var(--shadow-sm);overflow-x:auto;max-width:100%;min-width:0;gap:12px}.step-item,.step-wizard-bar{display:flex;align-items:center}.step-item{gap:8px;color:var(--muted);font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;padding:6px 12px;border-radius:8px;transition:all .18s ease}.step-item:hover{background:var(--soft);color:var(--ink)}.step-number{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;color:#64748b;font-weight:800;font-size:11px}.step-item.active{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}.step-item.active .step-number{background:#16a34a;color:#fff;box-shadow:0 2px 8px rgba(22,163,74,.3)}.step-item.completed .step-number{background:#0f766e;color:#fff}.primary,.secondary{border:0;border-radius:10px;padding:0 18px;height:42px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1)}.primary{background:linear-gradient(135deg,#0f766e,#115e59);color:#fff;box-shadow:var(--brand-glow)}.primary:hover{background:linear-gradient(135deg,#115e59,#0f766e);transform:translateY(-1px);box-shadow:0 10px 28px -4px rgba(15,118,110,.45)}.secondary{background:#fff;color:#475569;border:1px solid var(--border);box-shadow:var(--shadow-sm)}.secondary:hover{background:var(--soft);color:var(--ink)}.stats{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:18px;gap:18px;margin-bottom:24px}.stat-card{height:120px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:20px;display:flex;justify-content:space-between;box-shadow:var(--shadow-md);transition:all .2s ease}.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.stat-card>div:first-child{display:grid;align-content:space-between}.stat-card span{font-size:12px;font-weight:600;color:var(--muted)}.stat-card strong{font-family:Outfit,sans-serif;font-weight:800;font-size:28px;color:var(--ink);letter-spacing:-.5px}.stat-card small{font-size:11px;font-weight:700}.stat-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center}.mint{color:#0f766e}.stat-icon.mint{background:#ccfbf1}.purple{color:#6366f1}.stat-icon.purple{background:#e0e7ff}.blue{color:#0284c7}.stat-icon.blue{background:#e0f2fe}.orange{color:#d97706}.stat-icon.orange{background:#fef3c7}.dashboard-grid{display:grid;grid-template-columns:1.52fr 1fr;grid-gap:20px;gap:20px;margin-bottom:24px}.card,.table-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md)}.card{padding:24px}.card-head{display:flex;justify-content:space-between;align-items:flex-start}.card h2{font-family:Outfit,sans-serif;font-weight:800;font-size:18px;margin:6px 0;color:var(--ink)}.ghost{background:transparent;border:0;color:var(--brand);font-weight:700;font-size:12px;display:flex;align-items:center;gap:6px;padding:4px;cursor:pointer}.class-select,.input-like,input,select,textarea{height:42px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--ink);font-family:inherit;font-size:13px;font-weight:600;padding:0 14px;outline:0;transition:all .18s ease}.class-select:focus,input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,118,110,.15)}.class-select{cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%20%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px;padding-right:32px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.filter-row{display:flex;gap:12px;align-items:center;margin-bottom:20px}.table-card{overflow:hidden}table{border-collapse:collapse;width:100%;text-align:left}th{height:46px;background:#f8fafc;border-bottom:1px solid var(--border);color:var(--muted);font-family:Outfit,sans-serif;font-weight:800;font-size:11px;letter-spacing:.8px;text-transform:uppercase}td,th{padding:0 20px}td{height:64px;border-bottom:1px solid #f1f5f9;color:#334155;font-size:13px;font-weight:600}tr:last-child td{border-bottom:0}.status{border-radius:8px;background:#f1f5f9;color:#475569;padding:4px 10px;font-family:Outfit,sans-serif;font-weight:800;font-size:10px;text-transform:uppercase}.status.orange{background:#fef3c7;color:#b45309}.status.green{background:#dcfce7;color:#15803d}.school-day-chooser{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));grid-gap:6px;gap:6px}.school-day-chip{height:30px;display:inline-flex;align-items:center;gap:6px;border:1px solid #dbe3ed;border-radius:7px;background:#f8fafc;color:#64748b;cursor:pointer;font-size:11.5px;font-weight:800;padding:0 9px;white-space:nowrap}.school-day-chip.active{border-color:#86efac;background:#dcfce7;color:#166534}.school-day-chip input{width:14px;height:14px;min-width:14px;margin:0;padding:0;accent-color:#16a34a}.period-count-panel{border-top:1px dashed #e2e8f0;padding-top:12px}.period-count-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.period-count-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.period-count-actions .secondary{height:28px;border-radius:7px}.period-count-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(116px,1fr));grid-gap:6px;gap:6px}.period-count-chip{height:34px;display:grid;grid-template-columns:minmax(62px,1fr) 48px;align-items:center;grid-gap:6px;gap:6px;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc;padding:4px 7px;color:#94a3b8}.period-count-chip.active{border-color:#bbf7d0;background:#f0fdf4;color:#0f172a}.period-count-chip>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:800}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.period-count-chip input{width:52px;height:28px;border-radius:6px;padding:0 4px;text-align:center;font-size:14px;font-weight:800;color:#0f172a;border:1.5px solid #cbd5e1;background:#ffffff;-webkit-appearance:none;-moz-appearance:textfield}.period-count-chip input:disabled{background:#eef2f7;color:#94a3b8;cursor:not-allowed}.course-top-grid{display:grid;grid-template-columns:minmax(390px,1.08fr) minmax(340px,.92fr);grid-gap:12px;gap:12px;margin-bottom:12px}.course-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px!important}.course-manual-panel,.course-package-panel,.elective-pool-panel{background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 2px 10px rgba(15,23,42,.05);padding:12px}.course-package-panel{border-color:rgba(245,158,11,.5);border-left:4px solid #f59e0b;background:linear-gradient(180deg,#fff,#fffaf0)}.course-panel-title{display:flex;align-items:center;gap:8px;margin-bottom:8px}.course-panel-title span{background:#f59e0b;color:#fff;font-weight:800;font-size:10px;padding:3px 7px;border-radius:7px;letter-spacing:0}.course-panel-title.manual span{background:#0f766e}.course-panel-title h3{margin:0;color:#0f172a;font-size:14px;line-height:1.2}.course-package-controls,.course-table-tools,.manual-course-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.course-package-controls .class-select{flex:1 1;min-width:220px;height:38px;border-radius:8px;border-color:#f59e0b;font-size:12px;background:#fff}.course-apply-btn{height:38px;border:0;border-radius:8px;padding:0 14px;background:#f59e0b;color:#fff;font-weight:800;font-size:12px;display:inline-flex;align-items:center;gap:7px;cursor:pointer;box-shadow:0 4px 12px rgba(245,158,11,.35)}.course-apply-btn:disabled{opacity:.6;cursor:not-allowed}.package-summary-strip{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 6px}.package-summary-strip span{border:1px solid rgba(245,158,11,.38);background:#fff;border-radius:999px;color:#92400e;font-size:11px;font-weight:800;padding:4px 8px}.course-package-panel p,.course-package-panel small{display:block;color:#92400e;font-size:11px;line-height:1.38;margin:5px 0 0}.course-manual-panel{background:linear-gradient(180deg,#fff,#f0fdf4);border-color:rgba(134,239,172,.9);border-left:4px solid #0f766e}.manual-course-form{display:grid;grid-template-columns:minmax(150px,1fr) 70px 94px 86px;align-items:center;grid-column-gap:6px;column-gap:6px;grid-row-gap:8px;row-gap:8px}.manual-course-form input:first-child{min-width:150px;height:38px;border-radius:8px}.manual-course-form input[type=number]{width:70px;height:38px;border-radius:8px}.manual-course-form input:not(:first-child):not([type=checkbox]){width:94px;height:38px;border-radius:8px}.manual-course-form .compact-check:first-of-type{grid-column:1}.manual-course-form .compact-check:nth-of-type(2){grid-column:2/span 2}.manual-course-form .primary{grid-column:4;grid-row:1;height:38px;padding:0 12px;justify-content:center}.compact-check,.split-check{display:inline-flex;align-items:center;gap:6px;color:#475569;font-size:11.5px;font-weight:800;white-space:nowrap}.compact-check{height:38px;padding:0 9px;border:1px solid #d1fae5;border-radius:8px;background:rgba(255,255,255,.82)}.compact-check input,.split-check input{width:16px;height:16px;min-width:16px;margin:0;accent-color:#16a34a;flex:0 0 auto}.manual-course-form .compact-check input[type=checkbox]{width:16px;height:16px;min-width:16px;padding:0;border-radius:4px}.danger-text{color:#e11d48;margin-top:8px}.elective-pool-panel{margin-bottom:12px;display:none}.elective-pool-panel.is-active{display:block}.elective-pool-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}.elective-group h3,.elective-pool-head h2{margin:0;color:#0f172a}.elective-pool-head h2{font-size:15px;line-height:1.2}.elective-pool-head p{margin:4px 0 0;color:#64748b;font-size:11.5px}.elective-pool-head>span{background:#dcfce7;color:#15803d;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.elective-group{margin-top:9px}.elective-group h3{font-size:12px;margin-bottom:6px;color:#0f172a;border-left:3px solid #0f766e;padding:3px 0 3px 8px;background:linear-gradient(90deg,rgba(15,118,110,.08),rgba(15,118,110,0));border-radius:4px}.elective-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));grid-gap:6px;gap:6px}.elective-card{border:1px solid #e2e8f0;background:#fff;color:#334155;border-radius:8px;min-height:36px;padding:7px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-size:11.5px;font-weight:700;text-align:left;box-shadow:0 1px 2px rgba(15,23,42,.03);transition:background .12s ease,border-color .12s ease,color .12s ease,transform .12s ease,box-shadow .12s ease}.elective-card:hover{border-color:#0f766e;color:#0f766e;transform:translateY(-1px);box-shadow:0 4px 10px rgba(15,118,110,.12)}.elective-card.selected{border-color:#15803d;background:linear-gradient(135deg,#16a34a,#15803d);color:#fff;box-shadow:0 5px 14px rgba(22,163,74,.22)}.elective-card.selected:before{content:"✓";width:18px;height:18px;border-radius:999px;background:rgba(255,255,255,.2);display:grid;place-items:center;flex:0 0 auto;font-size:12px;font-weight:900}.elective-card b{font-size:10.5px;white-space:nowrap;opacity:.82}.course-table-tools .class-select{width:118px;height:34px;border-radius:8px}.course-table-tools .input-like{width:190px;height:34px;border-radius:8px}.table-input{width:100%;height:32px;border-radius:8px;font-weight:700;padding:0 10px}.table-input.small{width:82px}.course-meta-line{margin-top:4px;color:#94a3b8;font-size:11px;font-weight:700;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-kind-toggle{border:0;border-radius:8px;padding:6px 9px;color:#fff;font-size:11px;font-weight:900;cursor:pointer}.course-kind-toggle.mandatory{background:#0f766e}.course-kind-toggle.elective{background:#f59e0b}.course-badges{display:inline-flex;gap:5px;flex-wrap:wrap}.course-badge{border-radius:999px;padding:3px 7px;font-size:9.5px;font-weight:900;text-transform:uppercase}.course-badge.mandatory{background:#ccfbf1;color:#0f766e}.course-badge.elective{background:#fef3c7;color:#b45309}.course-badge.imported{background:#e0f2fe;color:#0369a1}.course-badge.manual{background:#f1f5f9;color:#475569}.course-table-card{padding:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.06)}.course-table-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #f1f5f9;background:#f8fafc}.course-table-head h2{font-size:14px!important;line-height:1.2}.course-table-head span{font-size:11px!important}.course-table-scroll{overflow-x:auto;max-width:100%;min-width:0}.course-data-table{width:100%;min-width:960px;border-collapse:collapse;text-align:left;font-size:12px}.course-code-input{width:78px!important;text-align:center;font-weight:800;letter-spacing:.4px}.course-data-table th{height:36px;padding:0 12px;background:#f1f5f9;border-bottom:1px solid #e2e8f0;color:#475569;font-size:10px;font-weight:800;letter-spacing:0;text-transform:uppercase}.course-data-table td:last-child,.course-data-table th:last-child{text-align:right}.course-data-table td{height:54px;padding:8px 12px;border-bottom:1px solid #f1f5f9;vertical-align:middle}.course-data-table tr:last-child td{border-bottom:0}.course-row-mandatory{border-left:4px solid #0f766e}.course-row-elective{border-left:4px solid #f59e0b;background:#fff8ec}.course-empty-cell{padding:20px!important;text-align:center;color:#94a3b8}.course-delete-btn{color:#e11d48;padding:4px 8px;font-size:11px;margin-left:auto}.modal-layer{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(15,23,42,.52);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.modal{position:relative;width:min(540px,100%);border:1px solid rgba(226,232,240,.9);border-radius:12px;background:#fff;box-shadow:0 24px 60px rgba(15,23,42,.24);padding:20px}.modal-close{position:absolute;top:12px;right:12px;width:32px;height:32px;display:grid;place-items:center;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#64748b}.modal h2{margin:5px 36px 7px 0;color:#0f172a;font-size:21px;font-weight:800;line-height:1.2}.modal p{margin:0 0 14px;color:#64748b;font-size:13px;line-height:1.5}.package-modal{width:min(620px,100%);border-left:4px solid #0f766e}.package-impact-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px;margin-bottom:12px}.package-impact-grid span{min-height:52px;display:grid;align-content:center;grid-gap:2px;gap:2px;border:1px solid #dbe3ed;border-radius:8px;background:#f8fafc;color:#64748b;padding:9px 10px;font-size:11px;font-weight:800}.package-impact-grid b{color:#0f766e;font-size:18px;line-height:1}.package-choice-list{display:grid;grid-gap:8px;gap:8px}.package-choice{width:100%;min-height:72px;display:grid;grid-gap:4px;gap:4px;border:1px solid #dbe3ed;border-radius:9px;background:#fff;padding:12px 14px;text-align:left;color:#334155}.package-choice b{color:#0f172a;font-size:13px;font-weight:900}.package-choice span{color:#64748b;font-size:12px;line-height:1.4}.package-choice.recommended{border-color:#86efac;background:#f0fdf4}.package-choice.danger{border-color:#fecdd3;background:#fff1f2}.package-choice.neutral{min-height:42px;align-content:center;background:#f8fafc}.package-reset-confirm{display:grid;justify-items:start}.package-warning-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#fff1f2;color:#e11d48;font-size:20px;font-weight:900;margin-bottom:10px}.package-reset-summary{width:100%;display:grid;grid-gap:6px;gap:6px;margin:2px 0 14px}.package-reset-summary span{border:1px solid #ffe4e6;border-radius:8px;background:#fff7f8;color:#9f1239;padding:8px 10px;font-size:12px;font-weight:800}.package-modal-actions{width:100%;display:flex;justify-content:flex-end;gap:8px}.primary.danger{background:linear-gradient(135deg,#e11d48,#be123c);box-shadow:0 8px 24px -6px rgba(225,29,72,.45)}@media (max-width:980px){.course-top-grid{grid-template-columns:1fr}.course-table-head{align-items:stretch;flex-direction:column}.course-table-tools .class-select,.course-table-tools .input-like{width:100%}}.schedule-toolbar{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--border);border-radius:14px 14px 0 0;padding:0 20px;height:60px}.tabs{display:flex;gap:24px;height:100%}.tabs button{border:0;background:transparent;position:relative;font-weight:700;font-size:13px;color:var(--muted);cursor:pointer}.tabs button.active{color:var(--brand)}.tabs button.active:after{content:"";position:absolute;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--brand);left:0;right:0}.schedule-layout{display:grid;grid-template-columns:minmax(600px,1fr) 260px;grid-gap:20px;gap:20px;margin-top:20px}.lesson{position:relative;width:100%;height:48px;border-radius:8px;background:#edf7f4;border:1px solid #ccfbf1;text-align:left;padding:6px 10px;display:grid;grid-gap:2px;gap:2px;cursor:pointer;transition:all .15s ease}.lesson:hover{transform:scale(1.02);box-shadow:0 4px 12px rgba(15,118,110,.15);border-color:#2dd4bf}.lesson b{font-size:11px;color:#0f766e;font-weight:800}.lesson small{font-size:10px;color:#115e59;font-weight:600}.empty-slot{background:#f8fafc;border:1px dashed #cbd5e1}.empty-slot b,.empty-slot small{color:#94a3b8}.toast{position:fixed;right:28px;bottom:28px;background:#0f2926;color:#fff;border-radius:12px;padding:14px 20px;display:flex;align-items:center;gap:12px;box-shadow:0 16px 36px rgba(15,41,38,.4);font-size:13px;font-weight:600;z-index:50;animation:slide .25s ease-out}.toast span{color:#2dd4bf}.progress-layout{display:flex;gap:24px;align-items:center;margin:20px 0}.ring{width:90px;height:90px;position:relative;display:grid;place-items:center;flex:0 0 auto}.ring svg{width:100%;height:100%;transform:rotate(-90deg)}.ring circle{fill:none;stroke:#e2e8f0;stroke-width:3.5}.ring .ring-value{stroke:#0f766e;stroke-linecap:round;stroke-dasharray:100 100;stroke-dashoffset:0;transition:stroke-dashoffset .5s ease}.ring b{position:absolute;font-family:Outfit,sans-serif;font-weight:800;font-size:22px;color:var(--ink)}.ring b small{font-size:11px;color:var(--muted)}.check-list{flex:1 1;display:grid;grid-gap:12px;gap:12px}.check-list>div{display:flex;gap:10px;align-items:center}.check-list span.done{height:20px;width:20px;border-radius:6px;display:grid;place-items:center;color:#fff;background:#0f766e}.check-list p{margin:0;display:grid;grid-gap:2px;gap:2px}.check-list b{font-size:12px;color:var(--ink)}.check-list small{font-size:11px;color:var(--muted)}.card-foot{border-top:1px solid var(--border);padding-top:16px;margin-top:12px;justify-content:space-between}.alert-row,.card-foot{display:flex;align-items:center}.alert-row{gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.alert-row p{display:grid;grid-gap:2px;gap:2px;flex:1 1;margin:0}.alert-row b{font-size:13px;color:var(--ink)}.alert-row small{font-size:11px;color:var(--muted)}.warning-icon{width:28px;height:28px;border-radius:8px;background:#fef3c7;color:#d97706;display:grid;place-items:center;font-weight:800;font-size:13px}.warning-icon.violet{background:#e0e7ff;color:#6366f1}@keyframes slide{0%{transform:translateY(15px);opacity:0}to{transform:translateY(0);opacity:1}}.teacher-page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.teacher-page-heading h1{margin:0 0 3px;color:var(--ink);font-size:24px;font-weight:800}.teacher-page-heading p{margin:0;color:var(--muted);font-size:13px}.teacher-heading-actions,.teacher-html-actions{display:flex;align-items:center;gap:8px}.teacher-heading-actions>button,.teacher-html-actions>button,.teacher-quick-panel>button{min-height:38px;white-space:nowrap}.teacher-html-panel,.teacher-list-panel,.teacher-quick-panel{border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:var(--shadow-sm)}.teacher-quick-panel{display:grid;grid-template-columns:auto minmax(240px,2fr) minmax(170px,1fr) auto;align-items:center;grid-gap:10px;gap:10px;padding:11px 12px;margin-bottom:10px;border-color:#a5b4fc;background:#eef2ff}.teacher-html-panel h3,.teacher-quick-panel h3{margin:0;font-size:14px;font-weight:800}.teacher-quick-panel h3{color:#3730a3;white-space:nowrap}.teacher-quick-panel .input-like{width:100%;height:38px;min-width:0;background:#fff}.teacher-html-panel{padding:12px;margin-bottom:10px;background:#f8fafc}.teacher-html-panel h3{color:var(--ink);margin-bottom:3px}.teacher-html-panel p{margin:0 0 8px;color:var(--muted);font-size:11.5px;line-height:1.5}.teacher-html-panel code{padding:1px 4px;border-radius:4px;background:#e2e8f0;color:#334155}.teacher-html-panel textarea{display:block;width:100%;height:100px;min-height:78px;resize:vertical;padding:9px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.teacher-html-actions{min-height:38px;margin-top:8px;flex-wrap:wrap}.teacher-import-status{font-size:11.5px;font-weight:700}.teacher-import-status.success{color:#15803d}.teacher-import-status.danger{color:#be123c}.teacher-import-status.info{color:#92400e}.teacher-list-panel{padding:12px}.teacher-list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.teacher-list-head h2{margin:0;color:var(--ink);font-size:15px;font-weight:800}.teacher-list-head>span{color:var(--muted);font-size:11px}.teacher-list{display:grid;grid-gap:6px;gap:6px}.teacher-empty{padding:26px;text-align:center;color:#94a3b8;font-size:13px}.teacher-card{position:relative;width:100%;min-width:0;overflow:visible;border:1px solid #dbe3ed;border-radius:8px;background:#fff}.teacher-card.expanded{border-color:#a5b4fc;box-shadow:0 5px 18px rgba(79,70,229,.08)}.teacher-row{min-height:56px;padding:7px 9px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-radius:8px;background:#fff}.teacher-card.expanded .teacher-row{border-radius:8px 8px 0 0;background:#f8fafc}.teacher-identity,.teacher-order-buttons,.teacher-row-actions,.teacher-row-main{display:flex;align-items:center}.teacher-row-main{gap:8px;min-width:0;flex:1 1}.teacher-row-actions{gap:7px;min-width:0;flex:0 0 auto}.teacher-order-buttons{gap:3px}.teacher-more,.teacher-order-buttons button{width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#475569;font-size:10px}.teacher-more:hover,.teacher-order-buttons button:hover:not(:disabled){border-color:#818cf8;color:#4338ca}.teacher-order-buttons button:disabled{cursor:not-allowed;opacity:.35}.teacher-principal-badge{padding:3px 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:10px;font-weight:800;white-space:nowrap}.teacher-identity{gap:7px;min-width:0}.teacher-branch,.teacher-name{border:0;padding:2px 0;background:transparent;text-align:left}.teacher-name{color:var(--ink);font-size:14px;font-weight:800}.teacher-branch{color:var(--muted);font-size:12px}.teacher-branch.missing{color:#d97706;font-style:italic}.teacher-branch:hover,.teacher-name:hover{color:#4338ca;text-decoration:underline}.teacher-identity>input{height:30px;max-width:190px;padding:3px 7px;border:1px solid #6366f1;border-radius:5px;outline:none;font:inherit}.teacher-adviser-select{display:flex;align-items:center;gap:5px;margin:0;color:#475569;font-size:11px;white-space:nowrap}.teacher-adviser-select select{height:30px;max-width:135px;padding:2px 6px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#334155;font:inherit}.teacher-delete-button,.teacher-detail-button{height:30px;border:0;border-radius:6px;background:transparent;font-size:11px;font-weight:750}.teacher-detail-button{color:#4338ca}.teacher-detail-button:hover{background:#eef2ff}.teacher-delete-button{color:#e11d48}.teacher-delete-button:hover{background:#fff1f2}.teacher-more-wrap{position:relative}.teacher-more{font-size:18px;line-height:1}.teacher-more-menu{position:absolute;z-index:12;top:33px;right:0;min-width:140px;padding:4px;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.16)}.teacher-more-menu button{display:block;width:100%;padding:7px 9px;border:0;border-radius:5px;background:transparent;color:#334155;text-align:left;font-size:11px}.teacher-more-menu button:hover{background:#f1f5f9}.teacher-details{padding:12px;border-top:1px solid #dbe3ed;border-radius:0 0 8px 8px;background:#f8fafc}.teacher-detail-fields{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(180px,1fr) 140px;grid-gap:9px;gap:9px;align-items:end}.teacher-detail-fields>label:not(.teacher-check-field)>span{display:block;margin-bottom:3px;color:#64748b;font-size:9.5px;font-weight:800}.teacher-detail-fields .input-like{width:100%;height:34px;font-size:11px}.teacher-check-field{min-height:34px;display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#475569;font-size:11px;font-weight:700}.teacher-check-field input,.teacher-free-days input{accent-color:#4f46e5}.teacher-check-field.wide{grid-column:1/-1;justify-self:start;border-color:#a5b4fc;background:#eef2ff;color:#3730a3}.teacher-free-days{display:flex;align-items:center;gap:10px;margin:9px 0}.teacher-free-days>strong,.teacher-slot-legend>strong{color:#334155;font-size:11px}.teacher-free-days>div{display:flex;flex-wrap:wrap;gap:5px}.teacher-free-days label{display:flex;align-items:center;gap:4px;padding:4px 7px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#475569;font-size:10px;cursor:pointer}.teacher-free-days label.selected{border-color:#f59e0b;background:#fffbeb;color:#92400e;font-weight:700}.teacher-slot-legend{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:6px}.teacher-slot-legend>span{padding:3px 6px;border-radius:5px;font-size:9.5px;font-weight:800}.teacher-slot-legend .available{background:#dcfce7;color:#166534}.teacher-slot-legend .discouraged{background:#fef3c7;color:#92400e}.teacher-slot-legend .unavailable{background:#fee2e2;color:#b91c1c}.teacher-slot-legend small{color:#64748b;font-size:10px}.teacher-slot-table-wrap{overflow-x:auto;border:1px solid #cbd5e1;border-radius:7px;background:#fff}.teacher-slot-table{width:100%;min-width:640px;border-collapse:collapse;text-align:center}.teacher-slot-table th{height:28px;padding:4px 6px;background:#f1f5f9;color:#475569;font-size:10px}.teacher-slot-table td{height:30px;padding:2px 3px;border-top:1px solid #f1f5f9;color:#475569;font-size:10px;font-weight:700}.teacher-slot-table td:first-child{width:76px;background:#fafafa}.teacher-slot{width:100%;min-width:78px;height:24px;display:grid;place-items:center;border:0;border-radius:4px;font-size:9.5px;font-weight:800}.teacher-slot.available{background:#dcfce7;color:#166534}.teacher-slot.discouraged{background:#fef3c7;color:#92400e}.teacher-slot.unavailable{background:#fee2e2;color:#b91c1c}.teacher-slot.disabled{background:#e2e8f0;color:#94a3b8}.duty-heading{align-items:flex-start;margin-bottom:14px!important}.duty-actions,.duty-heading-actions,.duty-report-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.duty-actions .primary,.duty-actions .secondary,.duty-heading-actions .primary,.duty-heading-actions .secondary,.duty-report-actions .primary,.duty-report-actions .secondary{height:38px}.duty-card,.duty-mode-card{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 2px 12px rgba(15,23,42,.05)}.duty-mode-card{display:grid;grid-template-columns:minmax(260px,1fr) 220px 220px;grid-gap:10px;gap:10px;align-items:stretch;padding:12px;margin-bottom:10px}.duty-mode-card>div{display:grid;grid-gap:3px;gap:3px;align-content:center}.duty-mode-card b{font-size:14px;color:#0f172a}.duty-card-head span,.duty-mode-card small,.duty-mode-card span{color:#64748b;font-size:12px;font-weight:700}.duty-mode-card button{min-height:58px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#0f172a;display:grid;grid-gap:3px;gap:3px;place-content:center;font-size:13px;font-weight:800}.duty-mode-card button.active{border-color:#0f766e;background:#f0fdfa;color:#115e59;box-shadow:inset 0 0 0 1px rgba(15,118,110,.14)}.duty-shift-tabs{display:flex;align-items:center;gap:8px;margin:0 0 10px}.duty-shift-tabs span{color:#64748b;font-size:12px;font-weight:800}.duty-shift-tabs button{height:32px;padding:0 14px;border:1px solid #dbe3ed;border-radius:9px;background:#fff;color:#475569;font-size:12px;font-weight:800}.duty-shift-tabs button.active.morning{border-color:#f59e0b;background:#fffbeb;color:#b45309}.duty-shift-tabs button.active.afternoon{border-color:#8b5cf6;background:#f5f3ff;color:#6d28d9}.duty-source-grid{display:grid;grid-template-columns:minmax(360px,1fr) minmax(360px,1fr);grid-gap:12px;gap:12px;margin-bottom:12px}.duty-card{padding:14px}.duty-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.duty-card-head h2{margin:0;color:#0f172a;font-size:15px;font-weight:800}.duty-inline-form{display:grid;grid-template-columns:auto minmax(160px,1fr) auto;grid-gap:8px;gap:8px;align-items:center}.duty-inline-form .input-like,.duty-inline-form .primary,.duty-inline-form .secondary{height:38px}.duty-area-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.duty-area-chips span,.duty-teacher-tag,.duty-uchip{display:inline-flex;align-items:center;gap:5px;min-height:26px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#334155;padding:4px 8px;font-size:11px;font-weight:800}.duty-area-chips button,.duty-teacher-tag button{width:18px;height:18px;border:0;border-radius:50%;background:rgba(15,23,42,.08);color:#475569;font-weight:900;line-height:1}.duty-main-grid{grid-template-columns:290px minmax(0,1fr);align-items:start}.duty-main-grid,.duty-right-stack{display:grid;grid-gap:12px;gap:12px}.duty-search{width:100%;height:38px;margin-bottom:8px}.duty-teacher-list{display:grid;grid-gap:6px;gap:6px;max-height:620px;overflow:auto;padding-right:3px}.duty-teacher-row{min-height:56px;width:100%;display:grid;grid-template-columns:34px 1fr auto;grid-gap:9px;gap:9px;align-items:center;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#0f172a;padding:8px 9px;text-align:left}.duty-teacher-row.selected{border-color:#0f766e;background:#f0fdfa}.duty-teacher-row.muted{opacity:.55}.duty-avatar{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#ccfbf1;color:#0f766e;font-size:11px;font-weight:900}.duty-teacher-row b{display:block;overflow:hidden;color:#0f172a;font-size:12px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.duty-teacher-row small{display:block;margin-top:2px;color:#64748b;font-size:11px;font-weight:700}.duty-teacher-row em{border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:10px;font-style:normal;font-weight:900;padding:3px 6px}.duty-table-head{align-items:flex-start}.duty-check{display:flex;align-items:center;gap:8px;margin:-2px 0 10px;color:#475569;font-size:12px;font-weight:800}.duty-check input{width:16px;height:16px;padding:0;accent-color:#0f766e}.duty-mini-scroll,.duty-table-scroll{overflow-x:auto;border:1px solid #e2e8f0;border-radius:10px}.duty-table{min-width:760px;border-collapse:separate;border-spacing:0}.duty-table td,.duty-table th{height:auto;border-bottom:1px solid #e2e8f0;border-right:1px solid #eef2f7;padding:8px;vertical-align:top}.duty-table th{height:36px;background:#f8fafc;color:#64748b;font-size:10px;text-align:center}.duty-table td:first-child,.duty-table th:first-child{min-width:126px;text-align:left;color:#0f172a;font-weight:900}.duty-cell{position:relative;display:flex;min-height:40px;flex-direction:column;gap:5px}.duty-teacher-tag{justify-content:space-between;border-color:#99f6e4;background:#ccfbf1;color:#115e59;border-radius:8px}.duty-teacher-tag.admin{border-color:#a5b4fc;background:#eef2ff;color:#3730a3}.duty-picker-wrap{position:relative}.duty-assign-btn{height:25px;border:1px dashed #cbd5e1;border-radius:7px;background:#fff;color:#64748b;padding:0 8px;font-size:11px;font-weight:900}.duty-picker{position:absolute;top:30px;left:0;z-index:12;width:210px;max-height:240px;overflow:auto;border:1px solid #dbe3ed;border-radius:10px;background:#fff;box-shadow:0 18px 40px rgba(15,23,42,.16);padding:6px}.duty-picker button,.duty-picker span{display:block;width:100%;border:0;border-radius:7px;background:#fff;color:#0f172a;padding:8px;font-size:12px;font-weight:800;text-align:left}.duty-picker button:hover{background:#f0fdfa;color:#115e59}.duty-picker span{color:#94a3b8}.duty-admin-row td{background:#f5f7ff;color:#3730a3}.duty-unassigned{margin-top:10px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb;padding:10px}.duty-unassigned div{display:flex;align-items:center;justify-content:space-between;gap:8px}.duty-unassigned .secondary{height:28px}.duty-unassigned p{margin:8px 0 0;color:#92400e;font-size:12px;font-weight:700}.duty-detail-card{border-left:4px solid #0f766e}.duty-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));grid-gap:12px;gap:12px}.duty-settings-grid strong{display:block;margin-bottom:7px;color:#0f172a;font-size:12px;font-weight:900}.duty-area-toggle-list,.duty-count-grid,.duty-day-grid,.duty-role-grid{display:flex;gap:6px;flex-wrap:wrap}.duty-day{width:55px;min-height:50px;display:grid;place-items:center;grid-gap:2px;gap:2px;border:1px solid #dbe3ed;border-radius:9px;background:#fff;color:#64748b}.duty-day.on{border-color:#86efac;background:#dcfce7;color:#166534}.duty-day.off{border-color:#fecaca;background:#fff5f5;color:#b91c1c}.duty-day.locked{opacity:.45;cursor:not-allowed}.duty-day b{font-size:11px}.duty-area-toggle,.duty-count-grid button,.duty-role-grid button{min-height:32px;border:1px solid #dbe3ed;border-radius:8px;background:#fff;color:#475569;padding:0 10px;font-size:12px;font-weight:900}.duty-area-toggle.banned{border-color:#fecaca;background:#fee2e2;color:#b91c1c}.duty-area-toggle.fixed{border-color:#f59e0b;background:#fef3c7;color:#92400e}.duty-count-grid button.active,.duty-role-grid button.active{border-color:#0f766e;background:#ccfbf1;color:#115e59}.duty-role-grid.two button{min-width:110px}.duty-count-grid button{width:34px;padding:0}.duty-count-grid button:disabled{opacity:.4;cursor:not-allowed}.duty-schedule-preview{grid-column:1/-1}.duty-schedule-preview p{margin:0;color:#94a3b8;font-size:12px;font-weight:700}.duty-mini-schedule{min-width:640px}.duty-mini-schedule td,.duty-mini-schedule th{height:auto;border-bottom:1px solid #e2e8f0;border-right:1px solid #eef2f7;padding:5px;font-size:10px;text-align:center}.duty-mini-schedule td:first-child,.duty-mini-schedule th{background:#f8fafc;color:#64748b;font-weight:900}.duty-mini-schedule td.busy{background:#eef2ff;color:#3730a3;font-weight:800}.duty-report-grid{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));grid-gap:8px;gap:8px}.duty-report-grid label{display:grid;grid-gap:5px;gap:5px}.duty-report-grid span{color:#64748b;font-size:11px;font-weight:900}.duty-report-grid input,.duty-report-grid select{width:100%;height:36px;font-size:12px}.duty-report-actions{justify-content:flex-end;margin-top:10px}.duty-preview-modal{max-width:980px;width:min(980px,calc(100vw - 28px))}.duty-preview-body{max-height:68vh;overflow:auto}.duty-preview-body h3{color:#0f766e;margin:12px 0 8px}.duty-preview-body .duty-print-week{margin-bottom:14px}.duty-preview-body .duty-print-week-title{display:inline-block;border-radius:6px;background:#f1f5f9;padding:4px 8px;margin-bottom:6px;color:#0f172a;font-size:11px;font-weight:900}.duty-preview-body table{border-collapse:collapse;font-size:11px}.duty-preview-body td,.duty-preview-body th{height:auto;border:1px solid #dbe3ed;padding:6px;text-align:center}.duty-preview-body th{background:#f8fafc;color:#64748b}.duty-preview-body td:first-child,.duty-preview-body th:first-child{text-align:left;font-weight:900}.duty-preview-more{color:#94a3b8;font-size:12px;font-weight:800;text-align:center}.live-duty-table{min-width:420px}@media (max-width:1120px){.teacher-row{align-items:flex-start;flex-direction:column}.teacher-row-actions{width:100%;justify-content:flex-end}.teacher-detail-fields{grid-template-columns:repeat(2,minmax(160px,1fr))}.duty-main-grid,.duty-source-grid{grid-template-columns:1fr}.duty-report-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}}@media (max-width:760px){body,html{overflow-x:hidden}.sidebar{transform:translateX(-100%);transition:transform .2s ease}.sidebar.open{transform:translateX(0)}.content-area{width:100%;margin-left:0}.menu-button,.mobile-close{display:grid;place-items:center}.topbar{padding:0 14px}.page-content{padding:20px 14px 36px}.course-manual-panel,.course-package-panel,.course-table-card,.course-top-grid,.elective-pool-panel{min-width:0;width:100%}.course-heading,.page-heading{align-items:stretch!important;flex-direction:column;gap:10px}.course-package-controls{display:grid;grid-template-columns:1fr}.course-apply-btn,.course-package-controls .class-select{width:100%;min-width:0;justify-content:center}.manual-course-form{grid-template-columns:minmax(0,1fr) 62px 78px;width:100%}.manual-course-form input:first-child{min-width:0;width:100%}.manual-course-form input[type=number]{width:62px}.manual-course-form input:not(:first-child):not([type=checkbox]){width:78px}.manual-course-form .compact-check:first-of-type{grid-column:1}.manual-course-form .compact-check:nth-of-type(2){grid-column:2/span 2}.manual-course-form .primary{grid-column:1/-1;grid-row:auto;width:100%}.elective-pool-head{align-items:flex-start;flex-direction:column}.elective-grid{grid-template-columns:minmax(0,1fr)}.top-actions .profile b,.top-actions .search{display:none}.teacher-free-days,.teacher-heading-actions,.teacher-page-heading,.teacher-row-actions{align-items:stretch;flex-direction:column}.teacher-heading-actions{width:100%}.teacher-quick-panel{grid-template-columns:1fr}.teacher-quick-panel h3{white-space:normal}.teacher-list-head{gap:3px;flex-direction:column}.teacher-list-head,.teacher-row-actions{align-items:flex-start}.teacher-adviser-select{width:100%;min-width:0;white-space:normal}.teacher-adviser-select select{flex:1 1;width:100%;min-width:0;max-width:none}.teacher-detail-fields{grid-template-columns:1fr}.teacher-check-field.wide{grid-column:auto}.teacher-identity{align-items:flex-start;flex-direction:column;gap:1px}.teacher-principal-badge{display:none}.duty-actions,.duty-heading-actions,.duty-report-actions,.duty-shift-tabs{align-items:stretch;flex-direction:column;width:100%}.duty-actions .primary,.duty-actions .secondary,.duty-heading-actions .primary,.duty-heading-actions .secondary,.duty-report-actions .primary,.duty-report-actions .secondary,.duty-shift-tabs button{justify-content:center;width:100%}.duty-inline-form,.duty-mode-card,.duty-report-grid,.duty-settings-grid{grid-template-columns:1fr}.duty-teacher-list{max-height:360px}}