:root {
    --ink: #142033;
    --muted: #687993;
    --line: #dbe6f4;
    --panel: rgba(255,255,255,.88);
    --bg: #eef4fb;
    --soft-blue: #eaf3ff;
    --soft-green: #eaf9f0;
    --soft-amber: #fff4df;
    --shadow: 0 14px 34px rgba(35,49,77,.14);
    --shadow-soft: 0 8px 22px rgba(21,94,239,.08);
    --primary: #2864f0;
    --primary-dark: #173ea8;
    --accent: #7c3aed;
    --cyan: #0891b2;
    --success: #15945f;
    --danger: #d83b49;
    --warning: #c36d00;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.analyzer-actions {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto auto;
}

@media (max-width: 900px) {
    .analyzer-actions {
        grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .analyzer-actions {
        grid-template-columns: 1fr;
    }
}

.analyzer-head {
    grid-template-columns: auto minmax(0, .7fr) auto auto minmax(0, 2.1fr);
    gap: 4px;
}

.analyzer-actions {
    grid-template-columns: minmax(116px, .82fr) minmax(116px, .82fr) auto auto auto auto;
    gap: 4px;
}

.analyzer-actions .demo-fill-form,
.analyzer-actions .copy-card-form {
    grid-template-columns: minmax(70px, 1fr) auto;
}

.analyzer-actions .demo-fill-form select,
.analyzer-actions .copy-card-form select {
    min-width: 0;
    max-width: 132px;
    padding-inline: 6px;
}

.clear-card-form {
    display: grid;
    min-width: 0;
}

.clear-card-btn {
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: .62rem;
    line-height: 1;
    color: #991b1b;
    border-color: rgba(220, 38, 38, .24);
    background: linear-gradient(135deg, #fff, #fee2e2);
}

.clear-card-btn:hover {
    color: #fff;
    border-color: #dc2626;
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 900px) {
    .analyzer-head {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .analyzer-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        white-space: normal;
    }

    .analyzer-actions .demo-fill-form select,
    .analyzer-actions .copy-card-form select {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .analyzer-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .analyzer-actions {
        grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .analyzer-actions {
        grid-template-columns: 1fr;
    }
}

.excel-fill-btn,
.institute-data-link {
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: .62rem;
    line-height: 1;
}

.excel-fill-modal-card {
    width: min(760px, calc(100vw - 24px));
    overflow: hidden;
}

.excel-fill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.excel-fill-grid section,
.excel-fill-grid form {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(124, 58, 237, .22);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f7f9ff);
}

.excel-fill-grid h3 {
    margin: 0;
    color: #173a76;
    font-size: .88rem;
}

.excel-fill-grid p {
    margin: 0;
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.35;
}

.excel-fill-grid input[type="file"] {
    width: 100%;
    min-height: 33px;
    padding: 5px;
    border: 1px solid rgba(124, 58, 237, .35);
    border-radius: 10px;
    background: #fff;
    font-size: .72rem;
}

.excel-prompt-box {
    background: linear-gradient(180deg, #fff, #f4efff) !important;
}

.copy-prompt-btn {
    justify-self: start;
    color: #4c1d95;
    border-color: rgba(124, 58, 237, .3);
    background: linear-gradient(135deg, #fff, #ede9fe);
}

.copy-prompt-btn:hover {
    color: #fff;
    border-color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

@media (max-width: 900px) {
    .excel-fill-grid {
        grid-template-columns: 1fr;
    }
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
}
a { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 80; min-height: 40px; padding: 4px clamp(12px, 1.5vw, 22px); display: flex; align-items: center; justify-content: space-between; overflow: visible; background: linear-gradient(115deg, #09142f, #173a8a 48%, #6d35df); color: white; border-bottom: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 22px rgba(9,22,52,.18); }
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); opacity: .18; pointer-events: none; }
.site-header::after { content: ""; position: absolute; right: 10%; top: -42px; width: 180px; height: 90px; border-radius: 999px; background: radial-gradient(circle, rgba(72,169,255,.32), transparent 64%); filter: blur(2px); pointer-events: none; }
.brand { position: relative; z-index: 1; min-height: 29px; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 7px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: .95rem; font-weight: 950; text-decoration: none; letter-spacing: .1em; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px rgba(9,22,52,.2); animation: logoFloat 3.2s ease-in-out infinite; }
.brand-mark { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; background: linear-gradient(135deg, #7dd3fc, #8b5cf6); color: white; font-size: .7rem; line-height: 1; box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 18px rgba(125,211,252,.55); animation: logoSpark 2.2s linear infinite; }
.brand b { display: block; line-height: 1; }
.brand small { display: none; }
.site-header nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; font-size: .74rem; }
.site-header nav a, .site-header nav summary, .link-button { color: #edf4ff; text-decoration: none; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; cursor: pointer; font: inherit; padding: 2px 7px; transition: .18s ease; backdrop-filter: blur(8px); }
.site-header nav a:hover, .site-header nav summary:hover, .link-button:hover { color: white; background: rgba(255,255,255,.18); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.14); }
.site-header nav a.active { color: #fff; background: rgba(255,255,255,.2); }
.active-card-pill { max-width: min(260px, 26vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0f2350; background: linear-gradient(135deg, #fef3c7, #dbeafe); border: 1px solid rgba(255,255,255,.72); border-radius: 999px; padding: 2px 9px; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 8px 16px rgba(15,35,80,.18); }
.nav-dropdown { position: relative; display: inline-flex; }
.nav-dropdown summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; user-select: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: "v"; font-size: .58rem; opacity: .82; }
.nav-dropdown[open] summary { color: #fff; background: rgba(255,255,255,.2); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 190px; display: grid; gap: 5px; padding: 7px; border: 1px solid rgba(255,255,255,.26); border-radius: 14px; background: linear-gradient(145deg, rgba(15,23,42,.98), rgba(49,46,129,.98)); box-shadow: 0 18px 38px rgba(9,22,52,.32); }
.site-header .nav-dropdown-menu a { display: flex; justify-content: flex-start; width: 100%; padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.08); white-space: nowrap; }
.inline-form { display: inline; }
.page-shell { width: min(1920px, 98.5vw); margin: 4px auto 18px; padding: 0; background: #fff; }
.site-footer { padding: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; color: var(--muted); font-size: .7rem; }
.site-footer a { color: #2864f0; font-weight: 900; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.hero { min-height: 330px; padding: clamp(35px, 7vw, 90px); display: flex; align-items: center; color: white; border-radius: 24px; background: linear-gradient(125deg, #102044, #155eef 70%, #48a9ff); box-shadow: 0 20px 50px #10204428; }
.hero h1 { max-width: 760px; margin: 8px 0 14px; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; }
.hero p { max-width: 700px; color: #e4edff; font-size: 1.08rem; }
.eyebrow { color: #5f8fff; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: #b9d2ff; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.role-card { min-height: 150px; padding: 26px; display: flex; flex-direction: column; justify-content: end; gap: 8px; border-radius: 18px; color: white; text-decoration: none; box-shadow: 0 12px 28px #23314d1c; transition: transform .2s; }
.role-card:hover { transform: translateY(-4px); }
.role-card strong { font-size: 1.35rem; }.role-card span { opacity: .88; }
.role-card.admin { background: #1a56db; }.role-card.teacher { background: #13795b; }.role-card.student { background: #9a4d0b; }
.view-home { background: #f7f9ff; }
.view-home .site-header { position: relative; min-height: 96px; padding: 18px clamp(20px, 3vw, 44px); background: radial-gradient(circle at 82% 0%, rgba(91,33,182,.42), transparent 28%), linear-gradient(90deg, #08091f, #0b0b28 52%, #170c46); border: 0; box-shadow: none; }
.view-home .site-header::before { opacity: .07; }
.view-home .site-header::after { right: 42%; top: -80px; width: 300px; height: 150px; background: radial-gradient(circle, rgba(124,58,237,.34), transparent 66%); }
.view-home .brand { min-height: 58px; gap: 13px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; letter-spacing: 0; animation: none; }
.view-home .brand-mark { width: 52px; height: 52px; border-radius: 12px; font-size: 1.35rem; background: linear-gradient(145deg, #5b7cfa, #7c3aed); box-shadow: 0 14px 32px rgba(91,124,250,.28), inset 0 1px 0 rgba(255,255,255,.24); }
.view-home .brand b { color: white; font-size: clamp(1.55rem, 2.1vw, 2rem); font-weight: 950; letter-spacing: .04em; }
.view-home .brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 800; letter-spacing: 0; }
.view-home .site-header nav { gap: clamp(10px, 2vw, 28px); font-size: .94rem; }
.view-home .site-header nav a, .view-home .site-header nav summary, .view-home .link-button { position: relative; min-height: 36px; display: inline-flex; align-items: center; color: rgba(255,255,255,.9); background: transparent; border: 0; border-radius: 14px; padding: 7px 8px; font-weight: 850; backdrop-filter: none; }
.view-home .site-header nav a:hover, .view-home .site-header nav summary:hover, .view-home .link-button:hover { background: rgba(255,255,255,.08); box-shadow: none; transform: translateY(-1px); }
.view-home .site-header nav a.active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -7px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #60a5fa); box-shadow: 0 0 18px rgba(139,92,246,.75); }
.view-home .active-card-pill { color: white; background: rgba(255,255,255,.1); border-color: rgba(139,92,246,.34); padding: 9px 24px; font-size: .95rem; }
.view-home .page-shell { width: 100%; margin: 0; padding: 0; background: #f7f9ff; }
.view-home .site-footer { padding: 14px 16px 18px; background: #f7f9ff; font-size: .9rem; }
.home-landing { display: grid; gap: clamp(10px, 1.35vh, 16px); padding: 10px clamp(18px, 3vw, 36px) 6px; }
.home-hero { position: relative; min-height: clamp(330px, 47vh, 470px); display: grid; grid-template-columns: minmax(360px, .85fr) minmax(420px, 1.15fr); gap: clamp(18px, 3vw, 52px); align-items: center; overflow: hidden; padding: clamp(26px, 4vw, 52px); border-radius: 28px; color: white; background: radial-gradient(circle at 77% 12%, rgba(193,64,255,.68), transparent 24%), radial-gradient(circle at 70% 86%, rgba(124,58,237,.56), transparent 24%), linear-gradient(135deg, #142c92 0%, #111b67 46%, #5b13aa 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 22px 46px rgba(39,25,106,.24); }
.home-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 37% 52%, rgba(255,255,255,.08), transparent 4px), repeating-radial-gradient(ellipse at 42% 18%, rgba(255,255,255,.13) 0 1px, transparent 1px 9px); opacity: .34; mask-image: linear-gradient(90deg, transparent 12%, black 32%, transparent 72%); pointer-events: none; }
.home-hero::after { content: ""; position: absolute; right: 5%; top: 16%; width: 280px; height: 280px; border-radius: 50%; background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1px); background-size: 18px 18px; opacity: .22; pointer-events: none; }
.home-hero-copy, .home-hero-visual { position: relative; z-index: 1; }
.home-hero-copy { display: grid; justify-items: start; gap: 18px; }
.home-badge { padding: 9px 22px; border-radius: 999px; color: #e9ddff; background: rgba(124,58,237,.46); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); font-size: .82rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.home-hero h1 { max-width: 570px; margin: 0; color: #fff; font-size: clamp(3.1rem, 5.8vw, 5.85rem); line-height: .94; letter-spacing: -.06em; text-shadow: 0 14px 38px rgba(0,0,0,.18); }
.home-hero p { max-width: 610px; margin: 0; color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.48; font-weight: 780; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 6px; }
.home-btn { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 27px; border-radius: 10px; text-decoration: none; font-weight: 950; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.home-btn.primary { color: #4d1ac4; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.home-btn.ghost { color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.34); }
.home-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.home-hero-visual { min-height: 360px; display: grid; place-items: center; }
.home-schedule-board { width: min(500px, 62vw); min-width: 360px; padding: 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); box-shadow: 18px 20px 0 rgba(255,255,255,.06), 0 34px 70px rgba(31,7,88,.45), inset 0 1px 0 rgba(255,255,255,.22); transform: perspective(900px) rotateY(-8deg) rotateX(2deg); backdrop-filter: blur(10px); }
.board-head, .board-row { display: grid; grid-template-columns: 45px repeat(6, minmax(0, 1fr)); gap: 3px; }
.board-head b { min-height: 28px; display: grid; place-items: center; color: #eef2ff; background: rgba(124,58,237,.56); font-size: .68rem; }
.board-row b, .board-row span { min-height: 32px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.52); }
.board-row b { display: grid; place-items: center; color: #5b5aa8; font-size: .68rem; font-weight: 950; }
.board-row span { box-shadow: inset 0 1px 0 rgba(255,255,255,.76); }
.board-row .tone-0 { background: linear-gradient(180deg, #f3e8ff, #c4b5fd); }
.board-row .tone-1 { background: linear-gradient(180deg, #eff6ff, #bfdbfe); }
.board-row .tone-2 { background: linear-gradient(180deg, #fdf2f8, #fbcfe8); }
.board-row .tone-3 { background: linear-gradient(180deg, #ecfdf5, #99f6e4); }
.board-row .tone-4 { background: linear-gradient(180deg, #fff7ed, #fde68a); }
.home-float-stack { position: absolute; display: grid; gap: 24px; }
.home-float-stack.left { left: 4%; top: 14%; }
.home-float-stack.right { right: 2%; top: 26%; }
.home-float-stack span { width: 112px; height: 78px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 16px; color: white; background: linear-gradient(145deg, rgba(255,255,255,.24), rgba(255,255,255,.08)); box-shadow: 0 18px 36px rgba(10,10,40,.2), inset 0 1px 0 rgba(255,255,255,.18); font-weight: 950; letter-spacing: .08em; backdrop-filter: blur(12px); }
.home-float-stack.left span:nth-child(2) { margin-left: 24px; color: #dcfce7; border-color: rgba(16,185,129,.36); }
.home-float-stack.left span:nth-child(3) { margin-left: 50px; color: #bfdbfe; border-color: rgba(59,130,246,.36); }
.home-float-stack.right span:nth-child(1) { color: #fce7f3; border-color: rgba(236,72,153,.36); }
.home-float-stack.right span:nth-child(2) { margin-top: 8px; color: #fed7aa; border-color: rgba(249,115,22,.4); }
.home-glow-ring { position: absolute; bottom: 2%; left: 50%; width: 470px; height: 58px; border-radius: 50%; background: radial-gradient(ellipse, rgba(168,85,247,.7), rgba(168,85,247,.18) 46%, transparent 70%); transform: translateX(-38%); filter: blur(2px); }
.home-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.home-kpi { --tone: #7c3aed; min-height: 112px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 14px; border: 1px solid rgba(148,163,184,.18); border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 14px 32px rgba(15,23,42,.07); }
.home-kpi.purple { --tone: #9b5cf6; }.home-kpi.green { --tone: #22c55e; }.home-kpi.blue { --tone: #3b82f6; }.home-kpi.orange { --tone: #f97316; }.home-kpi.pink { --tone: #ec4899; }.home-kpi.violet { --tone: #8b5cf6; }
.home-kpi-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 13px; color: var(--tone); background: color-mix(in srgb, var(--tone), #fff 84%); font-weight: 950; box-shadow: inset 0 1px 0 rgba(255,255,255,.86); }
.home-kpi div { display: grid; gap: 2px; min-width: 0; }
.home-kpi div b { color: color-mix(in srgb, var(--tone), #111827 22%); font-size: 1.85rem; line-height: 1; }
.home-kpi div strong { color: #1f2937; font-size: .92rem; }
.home-kpi div small { color: #334155; font-size: .78rem; font-weight: 850; }
.home-ring { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--tone) calc(var(--pct) * 1%), #eef2f7 0); position: relative; }
.home-ring::before { content: ""; position: absolute; inset: 5px; border-radius: inherit; background: white; box-shadow: inset 0 1px 0 rgba(15,23,42,.06); }
.home-ring b, .home-ring small { position: relative; z-index: 1; display: block; text-align: center; line-height: 1.05; }
.home-ring b { color: #172554; font-size: .8rem; }
.home-ring small { max-width: 48px; color: #334155; font-size: .52rem; font-weight: 850; }
.home-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-role-card { position: relative; min-height: 152px; display: grid; grid-template-columns: 78px minmax(0, 1fr) 50px; gap: 18px; align-items: center; overflow: hidden; padding: 26px; border-radius: 12px; color: white; text-decoration: none; box-shadow: 0 20px 36px rgba(15,23,42,.13); transition: transform .18s ease, box-shadow .18s ease; }
.home-role-card::before { content: ""; position: absolute; inset: auto -8% -46% -8%; height: 130px; background: repeating-radial-gradient(ellipse at center, rgba(255,255,255,.16) 0 1px, transparent 1px 7px); opacity: .32; transform: rotate(-3deg); pointer-events: none; }
.home-role-card:hover { transform: translateY(-4px); box-shadow: 0 30px 56px rgba(15,23,42,.2); }
.home-role-card.admin { background: linear-gradient(135deg, #1136a6, #071b64); }
.home-role-card.incharge { background: linear-gradient(135deg, #047857, #064e3b); }
.home-role-card.viewer { background: linear-gradient(135deg, #c05606, #8a3300); }
.home-role-icon { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.16); font-size: 1.05rem; font-weight: 950; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.home-role-card div { position: relative; z-index: 1; display: grid; gap: 8px; }
.home-role-card strong { font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1; }
.home-role-card small { max-width: 420px; color: rgba(255,255,255,.88); font-size: .92rem; font-weight: 780; line-height: 1.45; }
.home-role-card em { position: relative; z-index: 1; width: 56px; height: 40px; display: grid; place-items: center; justify-self: end; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; color: white; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); font-style: normal; font-size: 1.45rem; }
.about-page { min-height: calc(100vh - 120px); display: grid; gap: 18px; padding: clamp(10px, 2vw, 24px); background: radial-gradient(circle at top left, rgba(99,102,241,.12), transparent 30%), radial-gradient(circle at bottom right, rgba(14,165,233,.12), transparent 28%), #fff; }
.about-hero-card { position: relative; overflow: hidden; min-height: 270px; display: grid; align-content: center; gap: 10px; padding: clamp(28px, 6vw, 72px); border: 1px solid rgba(99,102,241,.22); border-radius: 30px; color: #fff; background: linear-gradient(135deg, #0f172a, #312e81 52%, #2563eb); box-shadow: 0 24px 70px rgba(15,23,42,.18); }
.about-hero-card h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(2.2rem, 6vw, 5.5rem); line-height: .95; letter-spacing: -.07em; }
.about-hero-card p { position: relative; z-index: 1; max-width: 820px; margin: 0; color: rgba(255,255,255,.82); font-size: clamp(.92rem, 1.4vw, 1.18rem); font-weight: 750; }
.about-badge { position: relative; z-index: 1; width: max-content; padding: 6px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #dbeafe; background: rgba(255,255,255,.1); font-size: .72rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; backdrop-filter: blur(10px); }
.about-glow { position: absolute; border-radius: 999px; filter: blur(1px); opacity: .62; pointer-events: none; }
.about-glow.one { width: 260px; height: 260px; right: -70px; top: -95px; background: radial-gradient(circle, rgba(125,211,252,.6), transparent 65%); }
.about-glow.two { width: 220px; height: 220px; left: -65px; bottom: -80px; background: radial-gradient(circle, rgba(196,181,253,.55), transparent 68%); }
.about-grid { display: grid; grid-template-columns: 1.25fr repeat(2, minmax(210px, .65fr)); gap: 14px; }
.about-owner-card, .about-info-card, .about-footer-card { border: 1px solid rgba(148,163,184,.28); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 18px 46px rgba(15,23,42,.08); backdrop-filter: blur(14px); }
.about-owner-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px; }
.about-photo-frame { width: clamp(112px, 11vw, 156px); aspect-ratio: 1; display: grid; place-items: center; margin: 0; padding: 8px; border: 1px solid rgba(37,99,235,.22); border-radius: 26px; background: linear-gradient(135deg, #eff6ff, #f8fafc 48%, #f5f3ff); box-shadow: 0 18px 36px rgba(37,99,235,.18), inset 0 1px 0 rgba(255,255,255,.82); }
.about-photo-frame img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; border-radius: 18px; background: #fff; }
.about-label { color: #7c3aed; font-size: .7rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.about-owner-card h2 { margin: 3px 0 4px; color: #0f172a; font-size: clamp(1.35rem, 2.2vw, 2.1rem); line-height: 1; }
.about-owner-card p { margin: 0; color: #64748b; font-weight: 800; }
.about-info-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 18px; }
.about-info-card.wide { grid-column: 2 / -1; }
.about-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 16px; color: #1d4ed8; background: linear-gradient(135deg, #eff6ff, #eef2ff); border: 1px solid rgba(37,99,235,.16); font-weight: 950; }
.about-info-card small { display: block; color: #64748b; font-size: .7rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.about-info-card strong { display: block; overflow-wrap: anywhere; color: #172554; font-size: clamp(.92rem, 1.2vw, 1.08rem); }
.about-footer-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #334155; }
.about-footer-card strong { color: #172554; font-size: 1rem; }
.about-footer-card span { color: #64748b; font-weight: 750; }
.tutorial-home-strip { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px; border: 1px solid rgba(124,58,237,.18); border-radius: 22px; background: linear-gradient(135deg, #ffffff, #f4f0ff 48%, #eef7ff); box-shadow: 0 18px 42px rgba(15,23,42,.08); }
.tutorial-home-strip div { display: grid; gap: 3px; }
.tutorial-home-strip strong { color: #172554; font-size: clamp(1rem, 1.5vw, 1.28rem); }
.tutorial-home-strip small { color: #64748b; font-weight: 800; }
.tutorial-page { display: grid; gap: 18px; padding: clamp(8px, 1.5vw, 18px); background: radial-gradient(circle at 8% 0%, rgba(124,58,237,.12), transparent 28%), radial-gradient(circle at 92% 18%, rgba(8,145,178,.1), transparent 30%), #fff; }
.tutorial-hero { position: relative; min-height: 360px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .72fr); gap: clamp(18px, 4vw, 52px); align-items: center; overflow: hidden; padding: clamp(26px, 6vw, 74px); border: 1px solid rgba(255,255,255,.32); border-radius: 30px; color: white; background: radial-gradient(circle at 70% 30%, rgba(139,92,246,.72), transparent 26%), radial-gradient(circle at 88% 72%, rgba(14,165,233,.4), transparent 24%), linear-gradient(135deg, #07112d, #172554 45%, #5b21b6); box-shadow: 0 30px 76px rgba(15,23,42,.22); }
.tutorial-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 72% 40%, black, transparent 68%); pointer-events: none; }
.tutorial-hero::after { content: ""; position: absolute; right: -8%; bottom: -24%; width: 520px; height: 520px; border-radius: 999px; background: radial-gradient(circle, rgba(124,58,237,.62), transparent 64%); filter: blur(8px); pointer-events: none; }
.tutorial-hero-copy { position: relative; z-index: 1; display: grid; gap: 14px; }
.tutorial-kicker, .tutorial-section-label { width: max-content; padding: 5px 10px; border-radius: 999px; font-size: .68rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.tutorial-kicker { color: #ddd6fe; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.tutorial-section-label { color: #5b21b6; background: #f3e8ff; border: 1px solid rgba(124,58,237,.16); }
.tutorial-hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.35rem, 6.4vw, 5.7rem); line-height: .92; letter-spacing: -.07em; }
.tutorial-hero p { max-width: 760px; margin: 0; color: rgba(239,246,255,.86); font-size: clamp(.96rem, 1.35vw, 1.18rem); font-weight: 780; line-height: 1.55; }
.tutorial-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.tutorial-orbit { position: relative; z-index: 1; aspect-ratio: 1; min-height: 280px; display: grid; place-items: center; border-radius: 42px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 24px 60px rgba(15,23,42,.22); backdrop-filter: blur(16px); }
.tutorial-orbit strong { width: 116px; height: 116px; display: grid; place-items: center; border-radius: 34px; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); box-shadow: 0 18px 42px rgba(37,99,235,.42); font-size: 2.15rem; letter-spacing: .09em; }
.tutorial-orbit span { position: absolute; min-width: 74px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #eef2ff; background: rgba(255,255,255,.1); box-shadow: 0 12px 28px rgba(15,23,42,.18); font-size: .72rem; font-weight: 950; text-align: center; }
.tutorial-orbit span:nth-child(1) { top: 12%; left: 50%; transform: translateX(-50%); }
.tutorial-orbit span:nth-child(2) { right: 8%; top: 42%; }
.tutorial-orbit span:nth-child(3) { bottom: 13%; right: 22%; }
.tutorial-orbit span:nth-child(4) { bottom: 22%; left: 9%; }
.tutorial-highlight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tutorial-highlight-grid article { min-height: 104px; display: grid; align-content: center; gap: 2px; padding: 16px; border: 1px solid rgba(148,163,184,.22); border-radius: 22px; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 16px 36px rgba(15,23,42,.07); position: relative; overflow: hidden; }
.tutorial-highlight-grid article::after { content: ""; position: absolute; right: -28px; bottom: -36px; width: 108px; height: 108px; border-radius: 999px; background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(14,165,233,.14)); }
.tutorial-highlight-grid b { position: relative; z-index: 1; color: #172554; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1; }
.tutorial-highlight-grid span { position: relative; z-index: 1; color: #64748b; font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.tutorial-layout { display: grid; grid-template-columns: minmax(210px, 280px) minmax(0, 1fr); gap: 16px; align-items: start; }
.tutorial-nav { position: sticky; top: 56px; display: grid; gap: 7px; max-height: calc(100vh - 80px); overflow: auto; padding: 12px; border: 1px solid rgba(99,102,241,.18); border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 18px 40px rgba(15,23,42,.08); backdrop-filter: blur(14px); scrollbar-width: thin; }
.tutorial-nav strong { color: #172554; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.tutorial-nav a { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 34px; padding: 5px; border-radius: 12px; color: #334155; text-decoration: none; font-size: .75rem; font-weight: 900; }
.tutorial-nav a:hover { color: #1d4ed8; background: #eff6ff; transform: translateX(2px); }
.tutorial-nav span { height: 24px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); font-size: .62rem; font-weight: 950; }
.tutorial-content { display: grid; gap: 14px; min-width: 0; }
.tutorial-workflow-card, .tutorial-feature-card, .tutorial-final-card { scroll-margin-top: 74px; border: 1px solid rgba(148,163,184,.24); border-radius: 26px; background: rgba(255,255,255,.94); box-shadow: 0 18px 44px rgba(15,23,42,.08); backdrop-filter: blur(14px); }
.tutorial-workflow-card { padding: clamp(18px, 3vw, 30px); background: linear-gradient(135deg, #ffffff, #f6f3ff); }
.tutorial-workflow-card h2, .tutorial-feature-card h2, .tutorial-final-card h2 { margin: 7px 0 8px; color: #172554; font-size: clamp(1.35rem, 2.4vw, 2.25rem); line-height: 1; letter-spacing: -.04em; }
.tutorial-workflow { counter-reset: workflow; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.tutorial-workflow li { counter-increment: workflow; position: relative; min-height: 54px; display: grid; align-items: center; padding: 9px 10px 9px 48px; border: 1px solid rgba(99,102,241,.16); border-radius: 16px; color: #334155; background: #fff; font-weight: 850; }
.tutorial-workflow li::before { content: counter(workflow, decimal-leading-zero); position: absolute; left: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(135deg, #2563eb, #7c3aed); font-size: .62rem; font-weight: 950; }
.tutorial-feature-card { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: clamp(14px, 2vw, 22px); overflow: hidden; }
.tutorial-feature-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(180deg, #2563eb, #7c3aed, #06b6d4); }
.tutorial-feature-number { position: sticky; top: 76px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #172554, #7c3aed); box-shadow: 0 14px 28px rgba(37,99,235,.22); font-size: 1rem; font-weight: 950; }
.tutorial-feature-body { display: grid; gap: 9px; min-width: 0; }
.tutorial-feature-body > p { max-width: 980px; margin: 0; color: #475569; font-weight: 780; line-height: 1.55; }
.tutorial-step-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.tutorial-step { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; padding: 10px; border: 1px solid rgba(203,213,225,.72); border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fbff); }
.tutorial-step span { height: 30px; display: grid; place-items: center; border-radius: 11px; color: #1d4ed8; background: #eff6ff; border: 1px solid rgba(37,99,235,.14); font-size: .72rem; font-weight: 950; }
.tutorial-step p { margin: 0; color: #334155; font-size: .84rem; font-weight: 790; line-height: 1.42; }
.tutorial-tip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; margin-top: 4px; padding: 10px 12px; border: 1px solid rgba(245,158,11,.24); border-radius: 16px; color: #78350f; background: linear-gradient(135deg, #fffbeb, #fff7ed); }
.tutorial-tip strong { padding: 4px 8px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #f59e0b, #ea580c); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.tutorial-tip span { font-weight: 850; line-height: 1.4; }
.tutorial-final-card { display: grid; gap: 9px; padding: clamp(18px, 3vw, 34px); color: #fff; background: radial-gradient(circle at 90% 0%, rgba(14,165,233,.38), transparent 28%), linear-gradient(135deg, #0f172a, #312e81 55%, #2563eb); }
.tutorial-final-card h2 { color: #fff; }
.tutorial-final-card p { max-width: 900px; margin: 0; color: rgba(255,255,255,.84); font-size: 1rem; font-weight: 800; line-height: 1.5; }
.tutorial-final-card div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.access-dashboard { display: grid; gap: 14px; }
.access-hero { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(16px, 3vw, 28px); border: 1px solid rgba(99,102,241,.18); border-radius: 24px; color: #f8fbff; background: radial-gradient(circle at top left, rgba(125,211,252,.34), transparent 34%), linear-gradient(135deg, #08142f, #173a8a 58%, #6d28d9); box-shadow: 0 22px 48px rgba(15,23,42,.18); overflow: hidden; }
.access-hero h1 { margin: 3px 0 7px; font-size: clamp(1.7rem, 3vw, 3.2rem); line-height: 1; }
.access-hero p { max-width: 760px; margin: 0; color: rgba(248,251,255,.84); font-weight: 750; }
.access-grid.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; }
.access-panel, .card-access-panel, .card-lookup-form { padding: 14px; border: 1px solid rgba(99,102,241,.18); border-radius: 20px; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 14px 28px rgba(15,23,42,.08); }
.access-panel header { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.access-panel h2 { margin: 0; color: #172554; font-size: 1.05rem; }
.access-panel small, .slot-card small { color: #64748b; font-weight: 800; }
.access-table { display: grid; gap: 7px; }
.access-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(80px, .7fr) auto auto auto; gap: 7px; align-items: center; padding: 8px; border: 1px solid #dbe6f4; border-radius: 12px; background: #fff; }
.access-row label { display: inline-flex; align-items: center; gap: 5px; color: #64748b; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.incharge-access-grid { grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); }
.compact-form { gap: 10px; }
.incharge-register-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.incharge-register-form label, .compact-form label { display: grid; gap: 5px; color: #334155; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.incharge-register-form input, .incharge-register-form textarea, .compact-form input { width: 100%; min-height: 34px; border: 1px solid #c9d8f0; border-radius: 10px; padding: 7px 9px; font: inherit; background: #fff; }
.incharge-register-form textarea { resize: vertical; min-height: 74px; }
.incharge-register-form .full-span { grid-column: 1 / -1; }
.incharge-review-row { grid-template-columns: minmax(230px, 1fr) auto auto; align-items: stretch; border-color: rgba(99,102,241,.22); background: linear-gradient(135deg, #ffffff, #f8fbff); }
.incharge-review-row.pending { border-color: rgba(195,109,0,.32); background: linear-gradient(135deg, #ffffff, #fff8e7); }
.incharge-review-main { display: grid; gap: 3px; min-width: 0; }
.incharge-review-main strong { color: #172554; }
.incharge-review-main span, .incharge-review-main small { overflow-wrap: anywhere; }
.inline-control-form { display: grid; align-content: center; gap: 6px; min-width: 116px; }
.inline-control-form label { display: grid; gap: 4px; }
.inline-control-form select { min-height: 30px; border: 1px solid #c9d8f0; border-radius: 9px; padding: 4px 7px; background: white; font-weight: 800; }
.slot-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.slot-card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; }
.slot-card-list.compact { max-height: 58vh; overflow: auto; padding-right: 3px; }
.slot-card { min-height: 168px; display: grid; align-content: space-between; gap: 9px; padding: 14px; border: 1px solid rgba(99,102,241,.22); border-radius: 20px; background: linear-gradient(145deg, #ffffff, #eef5ff); box-shadow: 0 16px 28px rgba(40,100,240,.1); position: relative; overflow: hidden; }
.slot-card::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 120px; height: 120px; border-radius: 50%; background: rgba(124,58,237,.12); transform: translate(36px,-48px); pointer-events: none; }
.slot-card.pending { background: linear-gradient(145deg, #fff, #fff7df); }
.slot-card.archived { opacity: .66; filter: grayscale(.3); }
.slot-delete-form { position: absolute; top: 5px; right: 5px; z-index: 4; margin: 0; }
.slot-delete-button { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(220,38,38,.18); border-radius: 999px; color: #dc2626; background: rgba(255,255,255,.88); font-size: .72rem; font-weight: 950; line-height: 1; cursor: pointer; box-shadow: 0 5px 10px rgba(220,38,38,.1); transition: transform .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease; }
.slot-delete-button:hover, .slot-delete-button:focus-visible { transform: translateY(-1px) scale(1.04); color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 10px 18px rgba(220,38,38,.22); outline: 0; }
.slot-code-row, .slot-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #64748b; font-size: .7rem; font-weight: 950; text-transform: uppercase; }
.copy-code { position: relative; z-index: 1; min-width: 68px; padding: 5px 9px; border: 1px solid rgba(40,100,240,.2); border-radius: 999px; color: #fff; background: linear-gradient(135deg, #2864f0, #7c3aed); font: inherit; font-size: 1rem; font-weight: 950; letter-spacing: .14em; cursor: pointer; }
.slot-card strong { position: relative; z-index: 1; color: #172554; font-size: 1.1rem; }
.slot-actions { position: relative; z-index: 1; display: flex; gap: 6px; align-items: center; }
.slot-actions select { min-height: 28px; }
.add-slot-card { border-style: dashed; border-width: 2px; background: linear-gradient(145deg, #f8fbff, #ffffff); }
.slot-plus { width: 58px; height: 58px; border: 0; border-radius: 18px; color: white; background: linear-gradient(135deg, #10b981, #0891b2); font-size: 2rem; font-weight: 950; cursor: pointer; box-shadow: 0 12px 22px rgba(16,185,129,.25); }
.add-slot-card label, .card-lookup-form label { display: grid; gap: 5px; color: #334155; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.card-lookup-form { display: grid; grid-template-columns: minmax(180px, 320px) auto; align-items: end; gap: 10px; width: min(620px, 100%); }
.card-lookup-form input { min-height: 44px; font-size: 1.4rem; font-weight: 950; letter-spacing: .22em; text-align: center; }
.card-access-panel { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 12px; align-items: center; }
.card-access-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.incharge-access-page { gap: clamp(14px, 2vw, 22px); }
.incharge-access-page .access-hero,
.superadmin-dashboard .access-hero { border: 1px solid rgba(99,102,241,.22); background: radial-gradient(circle at 7% 8%, rgba(125,211,252,.28), transparent 28%), radial-gradient(circle at 96% 12%, rgba(168,85,247,.32), transparent 32%), linear-gradient(135deg, #08142f, #163b8a 56%, #5b21b6); }
.incharge-access-grid { align-items: start; grid-template-columns: minmax(280px, .72fr) minmax(480px, 1.28fr); }
.incharge-access-page .access-panel { min-width: 0; border: 1px solid rgba(99,102,241,.22); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.98)); box-shadow: 0 20px 42px rgba(15,23,42,.1); }
.incharge-access-page .access-panel header { padding-bottom: 8px; border-bottom: 1px solid rgba(148,163,184,.18); }
.incharge-access-page .access-panel h2 { font-size: 1.18rem; letter-spacing: -.02em; }
.incharge-register-form { grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.incharge-register-form label { min-width: 0; position: relative; padding: 9px; border: 1px solid rgba(203,213,225,.42); border-radius: 16px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.incharge-register-form input, .incharge-register-form textarea, .compact-form input { min-width: 0; min-height: 40px; border-color: rgba(99,102,241,.28); border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.incharge-register-form input:focus, .incharge-register-form textarea:focus, .compact-form input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.13); }
.incharge-register-form input.is-invalid, .incharge-register-form textarea.is-invalid { border-color: #ef4444; background: #fff7f7; box-shadow: 0 0 0 3px rgba(239,68,68,.09); }
.incharge-register-form input.is-valid, .incharge-register-form textarea.is-valid { border-color: #22c55e; }
.field-error { min-height: 15px; color: #b91c1c; font-size: .66rem; font-weight: 850; line-height: 1.25; text-transform: none; }
.register-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid rgba(99,102,241,.16); border-radius: 18px; background: linear-gradient(135deg, #eef6ff, #f7f4ff); }
.register-submit-row .btn { min-height: 38px; padding-inline: 16px; }
.register-submit-row .btn:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.form-validity-note { color: #64748b; font-weight: 850; }
.form-validity-note.ready { color: #15803d; }
.superadmin-dashboard { gap: 12px; }
.superadmin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.superadmin-kpis article { min-width: 0; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(99,102,241,.18); border-radius: 20px; background: linear-gradient(145deg, #ffffff, #f3f7ff); box-shadow: 0 14px 28px rgba(15,23,42,.07); }
.superadmin-kpis small { color: #64748b; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.superadmin-kpis strong { color: #172554; font-size: clamp(1.55rem, 2.4vw, 2.2rem); line-height: 1; }
.superadmin-kpis span { color: #475569; font-size: .76rem; font-weight: 820; }
.superadmin-dashboard > .access-grid.two { grid-template-columns: minmax(520px, 1.35fr) minmax(360px, .9fr); align-items: start; }
.superadmin-dashboard .access-panel { min-width: 0; }
.superadmin-dashboard .access-table { max-height: min(62vh, 720px); overflow: auto; padding-right: 4px; }
.superadmin-dashboard .incharge-review-row { grid-template-columns: minmax(0, 1fr) minmax(120px, 150px) minmax(120px, 150px); gap: 9px; padding: 10px; border-radius: 18px; }
.superadmin-dashboard .incharge-review-main { gap: 4px; }
.superadmin-dashboard .inline-control-form { min-width: 0; padding: 8px; border: 1px solid rgba(203,213,225,.5); border-radius: 14px; background: rgba(255,255,255,.78); }
.superadmin-dashboard .slot-card-list.compact { max-height: min(62vh, 720px); }
.superadmin-dashboard .slot-card { min-height: 150px; border-radius: 18px; }
.admin-layout { background: #fff; }
.admin-layout .form-panel, .admin-layout .data-panel, .classes-panel { min-width: 0; }
.admin-layout .data-card, .admin-layout .left-panel-card, .class-card { box-shadow: 0 12px 24px rgba(15,23,42,.06); }
@media (max-width: 820px) {
    .access-hero, .card-access-panel { grid-template-columns: 1fr; display: grid; }
    .access-grid.two, .access-row, .card-lookup-form, .incharge-register-form { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-info-card.wide { grid-column: auto; }
    .about-footer-card { align-items: start; flex-direction: column; }
    .incharge-access-grid, .superadmin-dashboard > .access-grid.two, .superadmin-kpis { grid-template-columns: 1fr; }
    .register-submit-row { align-items: stretch; flex-direction: column; }
    .superadmin-dashboard .incharge-review-row { grid-template-columns: 1fr; }
}
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 6px; margin-bottom: 3px; }
.page-heading h1 { margin: 0; font-size: clamp(1.12rem, 1.8vw, 1.62rem); letter-spacing: -.03em; background: linear-gradient(90deg, #142033, #2864f0 58%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 3px 8px; border: 1px solid rgba(40,100,240,.16); border-radius: 8px; background: linear-gradient(180deg, #ffffff, #f4f8ff); color: var(--ink); font-weight: 800; text-decoration: none; cursor: pointer; font-size: .74rem; box-shadow: 0 5px 13px rgba(35,49,77,.07); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(35,49,77,.16); }
.btn.primary { color: white; border-color: transparent; background: linear-gradient(135deg, #2864f0, #7c3aed); }.btn.primary:hover { background: linear-gradient(135deg, #174fcb, #6427c8); }
.btn.success { color: white; border-color: transparent; background: linear-gradient(135deg, #10a66a, #0f766e); }.btn.danger { color: white; border-color: transparent; background: linear-gradient(135deg, #ef4459, #b91c1c); }
.btn.icon { min-width: 34px; padding: 3px; color: white; background: linear-gradient(135deg, #16a66a, #0891b2); }
.btn.icon:hover { animation: liftPulse .42s ease; }
.action-row, .form-row { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.clear-menu { position: relative; display: inline-flex; }
.clear-menu-options { position: absolute; top: calc(100% + 6px); right: 0; z-index: 70; display: grid; gap: 5px; min-width: 178px; padding: 7px; border: 1px solid rgba(216,59,73,.25); border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 16px 34px rgba(15,23,42,.18); }
.clear-menu-options[hidden] { display: none; }
.clear-menu-options button { width: 100%; padding: 7px 9px; border: 1px solid rgba(216,59,73,.18); border-radius: 9px; color: #7f1d1d; background: linear-gradient(135deg, #fff7f7, #ffe8ec); font-size: .72rem; font-weight: 900; text-align: left; cursor: pointer; }
.clear-menu-options button:hover { color: white; background: linear-gradient(135deg, #ef4459, #b91c1c); }
.completion-pill { min-height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid rgba(40,100,240,.18); border-radius: 999px; color: #173a76; background: linear-gradient(135deg, #eef5ff, #ffffff); box-shadow: 0 7px 16px rgba(40,100,240,.08); font-size: .66rem; font-weight: 900; white-space: nowrap; }
.completion-pill b { color: #2864f0; font-size: .82rem; }.completion-pill.complete { color: #075b3d; background: linear-gradient(135deg, #dcfce7, #ffffff); }.completion-pill.complete b { color: #15945f; }.completion-pill.missing { color: #8a4b04; background: linear-gradient(135deg, #fff1cf, #ffffff); }.completion-pill.missing b { color: #c36d00; }
.flash-stack { position: fixed; top: 54px; left: 50%; right: auto; transform: translateX(-50%); z-index: 1500; display: grid; place-items: center; gap: 6px; width: min(620px, calc(100vw - 24px)); pointer-events: none; }
.alert, .status-bar { margin-bottom: 9px; padding: 8px 11px; border-radius: 8px; background: #e8eef8; font-size: .86rem; }
.alert { width: 100%; margin: 0; padding: 7px 10px; overflow-wrap: anywhere; border-left: 3px solid var(--primary); box-shadow: 0 10px 24px #10204422; opacity: .98; transition: opacity .25s, transform .25s; pointer-events: auto; font-size: .72rem; line-height: 1.3; }
.alert.hide { opacity: 0; transform: translateY(-6px) scale(.98); }
.alert.success, .status-bar.success { color: #075b3d; background: #dff6ec; }.alert.error, .status-bar.error { color: #8d1d1d; background: #fde5e5; }
.alert.warning, .status-bar.warning { color: #754500; background: #fff1cf; }
.btn.is-loading { opacity: .82; cursor: wait; pointer-events: none; }
.btn.mini { min-height: 20px; padding: 2px 7px; border-radius: 999px; font-size: .58rem; line-height: 1; white-space: nowrap; }
.btn-spinner { width: 12px; height: 12px; display: inline-block; margin-right: 5px; border: 2px solid rgba(255,255,255,.55); border-top-color: #fff; border-radius: 999px; vertical-align: -2px; animation: btnSpin .7s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
.ordered-multi { grid-column: 1 / -1; min-width: 0; padding: 5px; border-radius: 10px; background: linear-gradient(180deg, #ffffff, #f2f7ff); box-shadow: inset 0 0 0 1px rgba(166,189,220,.55); }
.ordered-multi[hidden] { display: none !important; }
.ordered-multi-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: #173a76; font-size: .64rem; font-weight: 900; }
.ordered-multi-title small { color: var(--muted); font-size: .56rem; }
.ordered-multi-options { display: flex; flex-wrap: wrap; gap: 4px; max-height: 54px; overflow-y: auto; scrollbar-width: thin; }
.ordered-multi-options button { min-height: 22px; max-width: 116px; display: inline-flex; align-items: center; gap: 5px; justify-content: space-between; padding: 2px 5px; border: 1px solid rgba(166,189,220,.7); border-radius: 999px; color: #173a76; background: #fff; font-size: .61rem; font-weight: 850; cursor: pointer; }
.ordered-multi-options button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ordered-multi-options button b, .ordered-multi-options button em { flex: 0 0 auto; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; font-size: .54rem; font-style: normal; }
.ordered-multi-options button b { color: white; background: linear-gradient(135deg, #2864f0, #7c3aed); }
.ordered-multi-options button em { color: var(--primary); background: rgba(40,100,240,.08); }
.ordered-multi-options button.selected { border-color: rgba(40,100,240,.55); background: #eef5ff; }
.ordered-multi-options button:disabled { opacity: .48; cursor: not-allowed; }
.ordered-multi.is-saving { opacity: .72; pointer-events: none; filter: saturate(.86); }
.resource-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 4px; }
.resource-card-head h3 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preference-modal-card { width: min(980px, calc(100vw - 24px)); max-height: min(86vh, 760px); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.preference-list { display: grid; gap: 6px; overflow: auto; padding: 2px 3px 4px 1px; scrollbar-width: thin; }
.preference-row { display: grid; grid-template-columns: minmax(92px, 170px) minmax(0, 1fr); align-items: center; gap: 7px; padding: 6px; border-radius: 12px; background: linear-gradient(180deg, #fff, #f7fbff); box-shadow: inset 0 0 0 1px rgba(166,189,220,.48), 0 5px 12px rgba(35,49,77,.05); }
.preference-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #173a76; font-size: .78rem; }
.preference-row .ordered-multi { grid-column: auto; padding: 4px; }
.preference-row .ordered-multi-options { max-height: 62px; }
.generation-loading-modal { width: min(430px, calc(100vw - 24px)); max-height: min(88vh, 680px); }
.generation-loading-modal::backdrop { background: rgba(17,24,39,.34); backdrop-filter: blur(5px); }
.generation-loading-card { width: 100%; min-height: 230px; display: grid; place-items: center; justify-items: center; text-align: center; gap: 8px; }
.generation-loading-card strong { color: #173a76; font-size: 1.08rem; }.generation-loading-card small { color: var(--muted); }
.generation-good-pill { display: inline-grid; place-items: center; min-width: 58px; padding: 3px 12px; border-radius: 999px; color: #075b3d; background: linear-gradient(135deg, #dcfce7, #f7fffb); border: 1px solid rgba(22,163,74,.24); font-size: .66rem; font-weight: 950; letter-spacing: .12em; box-shadow: 0 8px 18px rgba(22,163,74,.12); }
.generation-thought { max-width: 31rem; color: #173a76 !important; font-size: .76rem; font-weight: 800; line-height: 1.35; }
.generation-spinner { width: 66px; height: 66px; border-radius: 50%; border: 6px solid rgba(40,100,240,.15); border-top-color: #2864f0; border-right-color: #7c3aed; animation: btnSpin .75s linear infinite; box-shadow: 0 10px 26px rgba(40,100,240,.18); }
.generation-progress { width: 100%; display: grid; gap: 3px; padding: 7px 9px; border: 1px solid rgba(166,189,220,.55); border-radius: 10px; background: linear-gradient(180deg, #f8fbff, #eef5ff); text-align: left; }.generation-progress b { color: #173a76; font-size: .78rem; }.generation-progress span, .generation-progress small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .66rem; }
.generation-preflight-modal { width: min(1120px, calc(100vw - 24px)); max-height: min(90vh, 820px); }
.generation-preflight-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-height: min(90vh, 820px); overflow: hidden; padding: 0; border: 1px solid rgba(40,100,240,.28); background: radial-gradient(circle at 10% 0%, rgba(124,58,237,.12), transparent 26%), radial-gradient(circle at 95% 12%, rgba(20,184,166,.13), transparent 24%), linear-gradient(180deg, #ffffff, #f7fbff); }
.generation-preflight-card > header { margin: 0; padding: 13px 15px 10px; border-bottom: 1px solid rgba(166,189,220,.55); background: linear-gradient(135deg, rgba(23,58,118,.96), rgba(124,58,237,.9)); }
.generation-preflight-card > header h2 { color: #fff; font-size: 1.04rem; letter-spacing: .01em; }
.generation-preflight-card > header small { color: rgba(255,255,255,.78); }
.generation-preflight-card > header .modal-close { color: #fff; background: rgba(255,255,255,.14); }
#generation-preflight-body { min-height: 0; overflow: auto; padding: 10px; scrollbar-width: thin; scrollbar-color: rgba(40,100,240,.32) transparent; }
#generation-preflight-body::-webkit-scrollbar { width: 6px; height: 6px; } #generation-preflight-body::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(40,100,240,.32); }
.preflight-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 9px; padding: 12px; border: 1px solid rgba(166,189,220,.54); border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(238,245,255,.9)); box-shadow: 0 12px 30px rgba(30,41,59,.08); }
.preflight-kicker { display: inline-flex; align-items: center; width: max-content; padding: 3px 9px; border-radius: 999px; color: #4c1d95; background: rgba(124,58,237,.1); font-size: .62rem; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.preflight-hero h3 { margin: 5px 0 3px; color: #173a76; font-size: clamp(1.1rem, 2vw, 1.55rem); line-height: 1.05; }
.preflight-hero p { max-width: 680px; margin: 0; color: #5b708d; font-size: .76rem; line-height: 1.35; }
.preflight-score { width: 96px; height: 96px; display: grid; place-items: center; align-content: center; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #16a34a, #14b8a6); box-shadow: 0 14px 30px rgba(22,163,74,.22); text-align: center; }
.preflight-score.warn { background: linear-gradient(135deg, #dc2626, #f97316); box-shadow: 0 14px 30px rgba(220,38,38,.2); }
.preflight-score b { font-size: 1.35rem; line-height: 1; }.preflight-score small { color: rgba(255,255,255,.82); font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.preflight-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-bottom: 9px; }
.preflight-kpis span { min-width: 0; padding: 8px 9px; border: 1px solid rgba(166,189,220,.5); border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 7px 16px rgba(35,49,77,.05); }
.preflight-kpis small { display: block; color: #6b7f99; font-size: .58rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }.preflight-kpis b { display: block; overflow: hidden; color: #173a76; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.preflight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.preflight-concern { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; min-width: 0; padding: 9px; border: 1px solid rgba(166,189,220,.58); border-radius: 16px; background: rgba(255,255,255,.84); box-shadow: 0 8px 18px rgba(35,49,77,.06); }
.preflight-concern.passed { border-color: rgba(22,163,74,.32); background: linear-gradient(180deg, rgba(240,253,244,.9), rgba(255,255,255,.86)); }
.preflight-concern.failed { border-color: rgba(220,38,38,.32); background: linear-gradient(180deg, rgba(255,241,242,.95), rgba(255,255,255,.88)); }
.preflight-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #173a76; background: linear-gradient(135deg, #eef5ff, #fff); box-shadow: inset 0 0 0 1px rgba(40,100,240,.16); font-size: .62rem; font-weight: 950; letter-spacing: .04em; }
.preflight-concern.passed .preflight-icon { color: #075b3d; background: linear-gradient(135deg, #dcfce7, #fff); box-shadow: inset 0 0 0 1px rgba(22,163,74,.2); }
.preflight-concern.failed .preflight-icon { color: #8d1d1d; background: linear-gradient(135deg, #fee2e2, #fff); box-shadow: inset 0 0 0 1px rgba(220,38,38,.2); }
.preflight-concern-main { min-width: 0; display: grid; gap: 3px; }
.preflight-concern-title { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.preflight-concern-title h3 { min-width: 0; margin: 0; overflow: hidden; color: #173a76; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.preflight-concern-title span { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; color: #075b3d; background: rgba(22,163,74,.11); font-size: .52rem; font-weight: 950; letter-spacing: .06em; }
.preflight-concern.failed .preflight-concern-title span { color: #991b1b; background: rgba(220,38,38,.1); }
.preflight-concern-main b { color: #0f2854; font-size: .82rem; }.preflight-concern-main p { margin: 0; color: #5b708d; font-size: .66rem; line-height: 1.28; }
.preflight-concern-main ul { margin: 3px 0 0; padding-left: 15px; color: #8d1d1d; font-size: .62rem; line-height: 1.28; }
.generation-preflight-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 13px; border-top: 1px solid rgba(166,189,220,.55); background: rgba(255,255,255,.76); }
.generation-summary-card { width: min(980px, calc(100vw - 28px)); max-height: min(86vh, 760px); overflow: auto; }
.generation-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 7px; margin-bottom: 10px; }
.generation-summary-grid span { padding: 8px; border-radius: 12px; background: linear-gradient(180deg, #f8fbff, #eef5ff); box-shadow: inset 0 0 0 1px rgba(166,189,220,.4); }
.generation-summary-grid small { display: block; color: var(--muted); font-size: .62rem; }.generation-summary-grid b { display: block; color: #173a76; font-size: 1rem; }
.generation-location-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.generation-tier-table { margin: 8px 0 10px; max-height: 170px; overflow: auto; padding: 7px; border: 1px solid rgba(166,189,220,.45); border-radius: 12px; background: #fff; }
.generation-location-tables h3, .generation-warnings h3, .generation-tier-table h3 { margin: 3px 0 5px; color: #173a76; font-size: .78rem; }
.generation-location-tables table, .generation-tier-table table { width: 100%; border-collapse: collapse; font-size: .64rem; }
.generation-location-tables th, .generation-location-tables td, .generation-tier-table th, .generation-tier-table td { padding: 4px 5px; border-bottom: 1px solid rgba(166,189,220,.35); text-align: left; white-space: nowrap; }
.generation-location-tables th, .generation-tier-table th { color: #5b708d; background: #edf4ff; }
.generation-warnings ul { margin: 0; padding-left: 18px; color: #754500; font-size: .72rem; }.generation-error { padding: 10px; border-radius: 10px; color: #8d1d1d; background: #fde5e5; }
.generation-fallback-actions { display: grid; gap: 6px; justify-items: center; margin-top: 10px; padding: 10px; border-radius: 12px; background: linear-gradient(180deg, #f0fff7, #e4f8ee); box-shadow: inset 0 0 0 1px rgba(20,148,90,.22); text-align: center; }
.generation-fallback-actions small { color: #23634a; font-size: .72rem; line-height: 1.35; max-width: 620px; }
.location-summary { margin: 6px 0; padding: 7px; border: 1px solid rgba(166,189,220,.68); border-radius: 12px; background: linear-gradient(180deg, #ffffff, #f7fbff); box-shadow: 0 6px 16px rgba(35,49,77,.06); }
.location-summary header { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 5px; }
.location-summary header strong { color: #173a76; font-size: .86rem; }.location-summary header small { color: var(--muted); font-size: .64rem; }
.location-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.location-summary h3 { margin: 0 0 4px; color: #173a76; font-size: .72rem; }
.location-summary table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 9px; font-size: .66rem; }
.location-summary th, .location-summary td { padding: 4px 5px; border-bottom: 1px solid rgba(166,189,220,.38); text-align: left; white-space: nowrap; }
.location-summary th { color: #5b708d; background: #edf4ff; font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; }
.consistency-pill { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 999px; font-weight: 900; font-size: .58rem; }
.consistency-pill.good { color: #075b3d; background: #dff6ec; }.consistency-pill.review { color: #754500; background: #fff1cf; }
.alert.success { border-left-color: var(--success); }.alert.error { border-left-color: var(--danger); }.alert.warning { border-left-color: var(--warning); }
.modal-shell { width: min(860px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: min(88vh, 760px); margin: auto; padding: 0; border: 0; border-radius: 18px; background: transparent; color: var(--ink); box-shadow: none; overflow: visible; }
.modal-shell::backdrop { background: rgba(12, 23, 45, .42); backdrop-filter: blur(4px); }
.modal-card { max-height: min(88vh, 760px); overflow: auto; padding: 13px; border: 1px solid rgba(166,189,220,.72); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,251,255,.96)); box-shadow: 0 28px 80px rgba(10, 27, 61, .32); }
.modal-card > header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(166,189,220,.55); }
.modal-card h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; color: #173a76; }.modal-card header small { color: var(--muted); font-size: .72rem; }
.modal-close { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 999px; color: var(--danger); background: rgba(216,59,73,.09); font-size: 1.25rem; cursor: pointer; }
.modal-shell.generation-preflight-modal { width: min(1120px, calc(100vw - 24px)); max-height: min(90vh, 820px); }
.modal-card.generation-preflight-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-height: min(90vh, 820px); overflow: hidden; padding: 0; border: 1px solid rgba(40,100,240,.28); background: radial-gradient(circle at 10% 0%, rgba(124,58,237,.12), transparent 26%), radial-gradient(circle at 95% 12%, rgba(20,184,166,.13), transparent 24%), linear-gradient(180deg, #ffffff, #f7fbff); }
.modal-card.generation-preflight-card > header { margin: 0; padding: 13px 15px 10px; border-bottom: 1px solid rgba(166,189,220,.55); background: linear-gradient(135deg, rgba(23,58,118,.96), rgba(124,58,237,.9)); }
.modal-card.generation-preflight-card > header h2 { color: #fff; font-size: 1.04rem; letter-spacing: .01em; }
.modal-card.generation-preflight-card > header small { color: rgba(255,255,255,.78); }
.modal-card.generation-preflight-card > header .modal-close { color: #fff; background: rgba(255,255,255,.14); }
#location-demography-modal { width: min(1540px, calc(100vw - 18px)); max-height: min(92vh, 820px); }
.location-demography-card { width: 100%; max-height: min(92vh, 820px); display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; padding: 10px; border-color: rgba(40,100,240,.28); background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,248,255,.96)); }
.location-demography-card > header { margin-bottom: 6px; padding-bottom: 6px; }
.location-demography-card h2 { font-size: .98rem; }
.location-demography-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; color: #5b708d; font-size: .66rem; font-weight: 900; }
.location-demography-legend span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid rgba(166,189,220,.48); border-radius: 999px; background: rgba(255,255,255,.72); }
.location-demography-legend b { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.location-demography-legend .free { background: #22c55e; }.location-demography-legend .busy { background: #ef4444; }.location-demography-legend .off { background: #cbd5e1; }
.location-demography-body { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgba(40,100,240,.3) transparent; }
.location-demography-body::-webkit-scrollbar { width: 5px; height: 5px; }.location-demography-body::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(40,100,240,.3); }
.loc-demo-section { min-width: 0; display: grid; align-content: start; gap: 5px; padding: 7px; border: 1px solid rgba(166,189,220,.52); border-radius: 14px; background: rgba(255,255,255,.74); box-shadow: inset 0 1px 0 rgba(255,255,255,.88); }
.loc-demo-section h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; color: #173a76; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.loc-demo-section h3 small { min-width: 22px; padding: 1px 7px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #2864f0, #7c3aed); text-align: center; font-size: .58rem; }
.loc-demo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 5px; align-content: start; }
.loc-demo-card { min-width: 0; padding: 5px; border: 1px solid rgba(166,189,220,.62); border-radius: 10px; background: linear-gradient(180deg, #fff, #f7fbff); box-shadow: 0 5px 12px rgba(35,49,77,.06); }
.loc-demo-card.lab { background: linear-gradient(180deg, #fffaf1, #fff6e6); border-color: rgba(245,158,11,.28); }
.loc-demo-card header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 5px; margin-bottom: 4px; }
.loc-demo-card header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #173a76; font-size: .68rem; line-height: 1.05; }
.loc-demo-card header small { color: var(--muted); font-size: .52rem; line-height: 1; text-align: right; }
.loc-demo-card header em { grid-column: 1 / -1; color: #5b708d; font-size: .5rem; font-style: normal; font-weight: 900; line-height: 1; }
.loc-demo-grid { display: grid; gap: 2px; }
.loc-demo-row { display: grid; grid-template-columns: 20px repeat(var(--slot-count), minmax(5px, 1fr)); gap: 2px; align-items: center; min-width: 0; }
.loc-demo-row b { display: grid; place-items: center; height: 11px; border-radius: 4px; color: #173a76; background: #e9eff8; font-size: .42rem; line-height: 1; }
.loc-demo-cell { min-width: 0; height: 11px; display: grid; place-items: center; border-radius: 3px; color: white; font-size: .45rem; font-weight: 950; line-height: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.38); }
.loc-demo-cell.free { background: linear-gradient(135deg, #22c55e, #16a34a); }.loc-demo-cell.busy { background: linear-gradient(135deg, #fb7185, #dc2626); }.loc-demo-cell.off { background: #cbd5e1; opacity: .55; }
.loc-demo-empty { margin: 0; padding: 12px; border: 1px dashed rgba(166,189,220,.7); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.72); font-size: .72rem; }
@media (max-width: 980px) {
    .location-demography-body { grid-template-columns: 1fr; }
    .loc-demo-cards { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
}
.drilldown-modal-card { width: min(1180px, calc(100vw - 24px)); max-width: calc(100vw - 24px); overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr); }.drilldown-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; gap: 7px; align-items: center; margin-bottom: 9px; }.drilldown-toolbar .btn { min-height: 29px; padding: 5px 9px; white-space: nowrap; font-size: .72rem; }.drilldown-body { display: grid; gap: 10px; max-height: min(62vh, 610px); overflow: auto; padding: 0 3px 2px 0; }.drilldown-section { display: grid; gap: 5px; min-width: 0; }.drilldown-section h3 { margin: 0; color: #173a76; font-size: .86rem; }.drilldown-section h3 small { color: var(--muted); font-size: .64rem; font-weight: 700; }
.analyzer-modal-card .constraint-bars { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }.modal-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }.modal-columns { align-items: start; }.modal-columns > div { max-height: 360px; padding-right: 4px; }
.edit-modal-card { width: min(520px, calc(100vw - 24px)); }.edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.edit-fields label { display: grid; gap: 3px; color: var(--muted); font-size: .7rem; font-weight: 850; }.edit-fields input, .edit-fields select { min-height: 31px; font-size: .8rem; }.edit-fields input[type="hidden"] { display: none; }.edit-teacher-fields { display: contents; }.locked-field { display: grid; gap: 3px; padding: 6px 8px; border: 1px solid rgba(166,189,220,.55); border-radius: 8px; background: #f7fbff; }.locked-field span { color: var(--muted); font-size: .7rem; font-weight: 850; }.locked-field strong { font-size: .82rem; color: #173a76; }.edit-modal-card footer { display: flex; justify-content: end; gap: 7px; margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(166,189,220,.55); }
.fixed-labs-modal-card { width: min(1220px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: min(88vh, 760px); overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr); }.fixed-labs-tools { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }.fixed-labs-tools .btn { min-height: 28px; padding: 5px 9px; font-size: .72rem; }.fixed-labs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; max-height: min(63vh, 610px); overflow: auto; padding-right: 3px; }.fixed-lab-class { min-width: 0; padding: 7px; border: 1px solid rgba(166,189,220,.6); border-radius: 12px; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 7px 16px rgba(35,49,77,.06); }.fixed-lab-class.no-practical { opacity: .58; }.fixed-lab-class header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px; color: #173a76; font-size: .8rem; }.fixed-lab-count { flex: 0 0 auto; padding: 2px 7px; border-radius: 999px; background: #edf2f8; color: var(--muted); font-size: .62rem; font-weight: 900; }.fixed-lab-count.ok { color: #075b3d; background: #dff6ec; }.fixed-lab-count.partial { color: #754500; background: #fff1cf; }.fixed-lab-days { display: grid; gap: 4px; }.fixed-lab-day { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px; align-items: center; }.fixed-lab-day b { display: grid; place-items: center; min-height: 24px; border-radius: 7px; background: #e9eff8; color: #173a76; font-size: .58rem; }.fixed-lab-day div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }.fixed-lab-slot { min-height: 24px; border: 1px solid rgba(166,189,220,.8); border-radius: 7px; color: #173a76; background: #fff; font-size: .66rem; font-weight: 850; cursor: pointer; }.fixed-lab-slot:hover { border-color: var(--primary); background: #eef5ff; }.fixed-lab-slot.selected { color: white; border-color: #d97706; background: linear-gradient(135deg, #f59e0b, #ea580c); box-shadow: 0 6px 12px rgba(234,88,12,.18); }.fixed-lab-slot:disabled { cursor: not-allowed; opacity: .45; background: #f3f5f8; }
.fixed-lab-meta { display: block; margin: -2px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .6rem; font-weight: 750; }
.faculty-popover { position: fixed; z-index: 1200; display: none; max-height: min(360px, calc(100vh - 20px)); overflow: auto; padding: 9px; border: 1px solid rgba(40,100,240,.34); border-left: 2px solid rgba(8,145,178,.55); border-right: 2px solid rgba(16,166,106,.42); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,250,255,.98)); box-shadow: 0 24px 55px rgba(10,27,61,.26); color: var(--ink); font-size: .72rem; }
.faculty-popover.is-open { display: block; animation: popIn .14s ease-out; }.faculty-popover header { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid rgba(166,189,220,.5); }.faculty-popover header div { display: grid; gap: 1px; }.faculty-popover header strong { color: #173a76; font-size: .88rem; }.faculty-popover header small { color: var(--muted); font-size: .62rem; }.faculty-popover button { border: 1px solid rgba(40,100,240,.18); border-radius: 999px; background: white; color: var(--primary); padding: 2px 8px; font: inherit; font-weight: 900; cursor: pointer; }
.faculty-load-meter { height: 6px; overflow: hidden; border-radius: 999px; background: #e9eff8; }.faculty-load-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10a66a, #2864f0, #7c3aed); }
.faculty-load-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0; }.faculty-load-stats span { padding: 4px; border: 1px solid rgba(166,189,220,.42); border-radius: 8px; background: rgba(255,255,255,.72); color: var(--muted); text-align: center; }.faculty-load-stats b { display: block; color: #173a76; font-size: .8rem; }
.faculty-popover table { width: 100%; border-collapse: collapse; }.faculty-popover th, .faculty-popover td { padding: 4px 3px; border-bottom: 1px solid rgba(166,189,220,.34); text-align: left; vertical-align: top; }.faculty-popover th { color: #173a76; font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; }.faculty-popover td small { display: block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .55rem; }
@keyframes popIn { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-card { width: min(430px, 100%); margin: 70px auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 18px 50px #23314d18; }
.auth-card.wide { width: min(700px, 100%); }.auth-card h1 { margin-top: 0; }
.stack-form { display: grid; gap: 13px; }.stack-form label { display: grid; gap: 5px; font-weight: 650; font-size: .9rem; }
input, select { width: 100%; min-height: 29px; padding: 4px 7px; border: 1px solid #cad7e8; border-radius: 8px; background: linear-gradient(180deg, #ffffff, #f9fbff); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; font-size: .82rem; }
input:hover, select:hover { border-color: #a9bee0; background: #fff; }
input:focus, select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(40,100,240,.16), inset 0 1px 0 #fff; }
.check-row { grid-template-columns: auto 1fr !important; align-items: start; }.check-row input { width: auto; min-height: auto; margin-top: 3px; }
.muted { color: var(--muted); }
.admin-layout { --admin-panel-height: clamp(342px, 47vh, 442px); display: grid; grid-template-columns: minmax(288px, clamp(304px, 22vw, 348px)) minmax(0, 1fr); gap: 0; align-items: stretch; background: #fff; }
.form-panel, .data-card, .class-card, .timetable-card { padding: 5px; border: 1px solid rgba(166,189,220,.72); border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(250,252,255,.96)); box-shadow: 0 5px 12px rgba(35,49,77,.06); backdrop-filter: blur(10px); }
.form-panel, .data-panel { height: var(--admin-panel-height); min-height: 0; }
.form-panel { display: grid; grid-template-rows: minmax(208px, 1fr) minmax(112px, auto); gap: 5px; overflow: hidden; padding: 5px; background: #fff; scrollbar-width: none; }
.left-panel-card { position: relative; display: grid; align-content: start; gap: 8px; min-height: 0; padding: 5px; overflow: visible; border: 0; border-radius: 9px; background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(238,246,255,.88)); box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(21,94,239,.06); scrollbar-width: none; }
.left-panel-card::-webkit-scrollbar { width: 0; height: 0; display: none; }
.form-panel::before, .form-panel::after, .data-panel::before, .data-panel::after, .class-section::before, .class-section::after, .data-card::before, .data-card::after, .class-card::before, .class-card::after, .left-panel-card::before { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; opacity: .72; }
.form-panel, .data-panel, .data-card, .class-section, .class-card, .left-panel-card { position: relative; }
.form-panel::before, .data-panel::before, .class-section::before, .data-card::before, .class-card::before, .left-panel-card::before { top: -1px; left: -1px; border-top: 2px solid rgba(40,100,240,.42); border-left: 2px solid rgba(40,100,240,.42); border-radius: 12px 0 0 0; }
.form-panel::after, .data-panel::after, .class-section::after, .data-card::after, .class-card::after { right: -1px; bottom: -1px; border-right: 2px solid rgba(124,58,237,.36); border-bottom: 2px solid rgba(124,58,237,.36); border-radius: 0 0 12px 0; }
.left-panel-card .left-card-head, .left-panel-card form { position: relative; z-index: 1; }
.left-panel-card::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 18px; height: 18px; border-right: 2px solid rgba(124,58,237,.28); border-bottom: 2px solid rgba(124,58,237,.28); border-radius: 0 0 12px 0; pointer-events: none; opacity: .72; background: none; }
.subject-entry-card { align-content: start; min-height: 112px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,240,255,.9)); }
.subject-entry-card.is-practical-mode { min-height: 136px; }
.subject-entry-card .stack-form { display: grid; gap: 8px; }
.left-card-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; min-height: 17px; color: #173a76; font-size: .62rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.left-card-icon { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 6px; color: white; background: linear-gradient(135deg, #2864f0, #7c3aed); box-shadow: 0 5px 12px rgba(40,100,240,.18); font-size: .48rem; }
.data-panel { display: grid; grid-template-rows: auto auto auto minmax(118px, 1fr); gap: 5px; min-width: 0; overflow: hidden; padding: 5px; border: 1px solid rgba(166,189,220,.72); border-radius: 10px; background: linear-gradient(135deg, #fffdf7, #fff0cc); box-shadow: 0 5px 12px rgba(35,49,77,.06); }
.form-panel h2, .data-card h3 { margin: 1px 0 2px; padding: 1px 6px; border-radius: 999px; color: #173a76; background: linear-gradient(90deg, rgba(40,100,240,.13), rgba(124,58,237,.09)); border: 1px solid rgba(40,100,240,.1); font-size: .66rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.compact-form { display: grid; grid-template-columns: 1fr 64px 27px; gap: 3px; margin-bottom: 0; }
.compact-form.teacher-form { grid-template-columns: minmax(0, 1fr) 50px 48px 27px; }
.compact-form.class-form { grid-template-columns: 1fr 38px 54px 42px 27px; }
.compact-form input, .compact-form select, .settings-form select, .subject-name-row select, .subject-entry-row input, .subject-entry-row select { min-height: 23px; padding: 2px 5px; border-radius: 7px; font-size: .68rem; }
.compact-form .btn.icon, .subject-entry-row .btn.icon { min-width: 27px; min-height: 24px; border-radius: 7px; box-shadow: inset 0 -1px 0 #0000001a, 0 5px 10px rgba(8,145,178,.09); }
.subject-name-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 60px; gap: 4px; margin: 0; }
.subject-entry-row { display: grid; grid-template-columns: minmax(0, 1fr) 50px 27px; gap: 4px; align-items: center; margin: 0; }
.subject-entry-row input[name="full_name"] { grid-column: 1; grid-row: 1; }.subject-entry-row input[name="name"] { grid-column: 2; grid-row: 1; }.subject-entry-row .btn.icon { grid-column: 3; grid-row: 1; }
#subject-teachers { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 4px; min-width: 0; max-width: 100%; overflow-x: hidden; overflow-y: hidden; padding: 0; margin-top: 4px; scrollbar-width: none; }
#subject-teachers::-webkit-scrollbar { width: 0; height: 0; }
#subject-teachers select { min-width: 82px; flex: 1 0 calc((100% - 8px) / 3); }
.inline-hint { display: inline-flex; align-items: center; min-height: 22px; padding: 0 4px; border: 1px dashed var(--line); border-radius: 6px; font-size: .54rem; white-space: nowrap; }
.settings-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 0; }.settings-form label { display: grid; gap: 2px; color: var(--muted); font-size: .6rem; font-weight: 800; }.settings-form select { min-height: 26px; }
.settings-form .settings-toggle,
.alternate-saturday-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    padding: 2px 7px;
    border: 1px solid rgba(99,102,241,.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.9));
    color: #334155;
    white-space: nowrap;
}
.settings-form .settings-toggle input,
.alternate-saturday-field input {
    width: 13px;
    height: 13px;
    min-height: 0;
    accent-color: #5b5df7;
}
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 0; padding: 0; background: transparent; }
.summary-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px; min-height: 28px; padding: 3px 6px; border: 0; border-radius: 9px; color: #17345f; background: linear-gradient(135deg, #f8fbff, #e8f2ff); box-shadow: var(--shadow-soft), inset 0 1px 0 #ffffff; transition: transform .18s ease, box-shadow .18s ease; text-decoration: none; cursor: pointer; }.summary-card:focus { outline: 0; box-shadow: 0 0 0 3px rgba(40,100,240,.16), var(--shadow-soft), inset 0 1px 0 #fff; }.summary-card:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(21,94,239,.12), inset 0 1px 0 #fff; }.summary-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 14px; height: 14px; border-top: 2px solid rgba(40,100,240,.45); border-left: 2px solid rgba(40,100,240,.45); border-radius: 9px 0 0 0; background: none; box-shadow: none; }.summary-card::after { content: ""; position: absolute; inset: auto 0 0 auto; width: 14px; height: 14px; border-right: 2px solid rgba(124,58,237,.34); border-bottom: 2px solid rgba(124,58,237,.34); border-radius: 0 0 9px 0; background: none; z-index: 0; }.summary-card i { position: relative; z-index: 1; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.66); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(40,100,240,.1); font-style: normal; font-size: .8rem; }.summary-card span, .summary-card strong { position: relative; z-index: 1; }.summary-card span { display: block; font-size: .56rem; font-weight: 900; color: #5b708d; }.summary-card strong { font-size: .86rem; color: #123a78; }
.summary-card.labs { background: linear-gradient(135deg, #fffdf7, #fff0cc); }.summary-card.labs::before { background: none; border-top-color: rgba(245,158,11,.55); border-left-color: rgba(245,158,11,.55); }.summary-card.labs::after { background: none; border-right-color: rgba(249,115,22,.42); border-bottom-color: rgba(249,115,22,.42); }.summary-card.labs strong { color: #9a5800; }
.summary-card.teachers { background: linear-gradient(135deg, #f8fffb, #ddf8ea); }.summary-card.teachers::before { background: none; border-top-color: rgba(16,166,106,.55); border-left-color: rgba(16,166,106,.55); }.summary-card.teachers::after { background: none; border-right-color: rgba(15,118,110,.42); border-bottom-color: rgba(15,118,110,.42); }.summary-card.teachers strong { color: #17613c; }
.summary-card.classes { background: linear-gradient(135deg, #fbfaff, #eee8ff); }.summary-card.classes::before { background: none; border-top-color: rgba(124,58,237,.55); border-left-color: rgba(124,58,237,.55); }.summary-card.classes::after { background: none; border-right-color: rgba(79,70,229,.42); border-bottom-color: rgba(79,70,229,.42); }.summary-card.classes strong { color: #4a2d9d; }
.summary-grid .summary-card { border: 1px solid rgba(109,40,217,.7); box-shadow: 0 0 0 1px rgba(109,40,217,.1), 0 8px 18px rgba(109,40,217,.11), inset 0 1px 0 #fff; }
.summary-grid .summary-card::before { width: 18px; height: 18px; border-top: 3px solid #6d28d9; border-left: 3px solid #6d28d9; border-radius: 10px 0 0 0; }
.summary-grid .summary-card::after { width: 18px; height: 18px; border-right: 3px solid #8b5cf6; border-bottom: 3px solid #8b5cf6; border-radius: 0 0 10px 0; }
.summary-grid .summary-card:hover { box-shadow: 0 0 0 1px rgba(109,40,217,.18), 0 12px 24px rgba(109,40,217,.18), inset 0 1px 0 #fff; }
.kpi-icon { color: #2864f0; position: relative; overflow: hidden; }.kpi-icon::before, .kpi-icon::after, .kpi-icon span::before, .kpi-icon span::after { content: ""; position: absolute; box-sizing: border-box; }.kpi-icon.building::before { left: 6px; top: 5px; width: 11px; height: 14px; border: 2px solid currentColor; border-radius: 3px; }.kpi-icon.building::after { left: 9px; top: 8px; width: 2px; height: 2px; background: currentColor; box-shadow: 4px 0 currentColor, 0 4px currentColor, 4px 4px currentColor; }.kpi-icon.flask { color: #d97706; }.kpi-icon.flask::before { left: 9px; top: 4px; width: 5px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }.kpi-icon.flask::after { left: 5px; top: 10px; width: 14px; height: 10px; border: 2px solid currentColor; border-radius: 2px 2px 7px 7px; transform: perspective(20px) rotateX(18deg); }.kpi-icon.people { color: #16a34a; }.kpi-icon.people::before { left: 9px; top: 5px; width: 6px; height: 6px; border: 2px solid currentColor; border-radius: 50%; }.kpi-icon.people::after { left: 6px; top: 13px; width: 12px; height: 7px; border: 2px solid currentColor; border-radius: 9px 9px 0 0; border-bottom: 0; }.kpi-icon.book { color: #7c3aed; }.kpi-icon.book::before { left: 5px; top: 5px; width: 14px; height: 15px; border: 2px solid currentColor; border-radius: 3px; }.kpi-icon.book::after { left: 11px; top: 6px; width: 2px; height: 13px; background: currentColor; opacity: .55; }
.analyzer-card { margin-bottom: 0; padding: 0; min-height: 28px; overflow: hidden; border: 0; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }.analyzer-card:hover, .analyzer-card:focus { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(40,100,240,.13); outline: 0; }.analyzer-head { min-height: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto minmax(190px, 250px) auto; gap: 6px; align-items: center; padding: 3px 6px; margin: 0; cursor: pointer; list-style: none; background: linear-gradient(100deg, rgba(40,100,240,.12), rgba(124,58,237,.1)); }.analyzer-head::-webkit-details-marker { display: none; }.analyzer-head h3 { margin: 0; white-space: nowrap; font-size: .78rem; }.analyzer-head small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .58rem; }.analyzer-head > strong { padding: 1px 6px; border-radius: 999px; color: white; background: linear-gradient(135deg, #2864f0, #7c3aed); box-shadow: 0 5px 12px rgba(40,100,240,.22); font-size: .76rem; }.analyzer-click-hint { display: inline-flex; align-items: center; white-space: nowrap; padding: 1px 5px; border-radius: 999px; color: var(--primary); background: rgba(40,100,240,.08); font-size: .56rem; font-weight: 900; }.demo-fill-form, .copy-card-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; min-width: 0; cursor: default; }.demo-fill-form select, .copy-card-form select { min-height: 22px; padding: 2px 5px; border-radius: 999px; font-size: .6rem; }.demo-fill-btn, .copy-card-btn, .analyzer-editor-link { min-height: 22px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; font-size: .62rem; line-height: 1; }.copy-card-form select:disabled, .copy-card-form button:disabled { opacity: .55; cursor: not-allowed; }
.analyzer-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 6px; }.analyzer-mini-grid span { padding: 5px; border-radius: 9px; background: linear-gradient(180deg, #f7fbff, #edf4ff); border: 1px solid rgba(40,100,240,.08); }.analyzer-mini-grid small { display: block; color: var(--muted); font-size: .55rem; }.analyzer-mini-grid b { font-size: .9rem; color: #173a76; }
.constraint-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 5px; }.constraint-bar { display: grid; gap: 1px; padding: 5px; border: 1px solid rgba(166,189,220,.55); border-radius: 9px; background: rgba(255,255,255,.62); }.constraint-bar div { display: flex; justify-content: space-between; gap: 6px; font-size: .68rem; }.constraint-bar small { color: var(--muted); font-size: .58rem; }.constraint-bar meter { width: 100%; height: 7px; accent-color: var(--primary); }
.ideal-ratio-panel { margin-top: 7px; padding: 6px; border: 1px solid rgba(166,189,220,.58); border-radius: 10px; background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(247,250,255,.76)); }.ideal-ratio-panel h4 { margin: 0 0 5px; font-size: .74rem; color: #173a76; }.ideal-ratio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 4px; }.ideal-ratio-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 5px; align-items: center; padding: 5px 6px; border-radius: 8px; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(35,49,77,.04); overflow: hidden; }.ideal-ratio-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #94a3b8; }.ideal-ratio-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: .66rem; color: #183a68; }.ideal-ratio-row small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .56rem; }.ideal-ratio-row b { padding: 1px 5px; border-radius: 999px; color: #173a76; background: rgba(40,100,240,.08); font-size: .62rem; }.ideal-ratio-row em { padding: 1px 5px; border-radius: 999px; font-style: normal; font-size: .55rem; font-weight: 900; background: #eef2f7; color: #475569; }.ideal-ratio-row p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .56rem; line-height: 1.22; }.ideal-ratio-row.good::before { background: #16a34a; }.ideal-ratio-row.good em { color: #166534; background: #dcfce7; }.ideal-ratio-row.low::before { background: #d97706; }.ideal-ratio-row.low em { color: #92400e; background: #fef3c7; }.ideal-ratio-row.high::before { background: #dc2626; }.ideal-ratio-row.high em { color: #991b1b; background: #fee2e2; }.ideal-ratio-row.pending::before { background: #64748b; }.ideal-ratio-row.pending em { color: #475569; background: #e2e8f0; }
.analyzer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }.analyzer-columns h4 { margin: 0 0 4px; font-size: .74rem; }.analyzer-columns > div { max-height: 135px; overflow: auto; padding-right: 2px; }.ai-warning, .ai-reco { margin: 0 0 4px; padding: 4px 6px; border-radius: 7px; font-size: .64rem; line-height: 1.25; }.ai-warning { background: #fff1f1; color: #8f1d1d; }.ai-reco { background: #eef8f0; color: #216535; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; min-height: 0; background: transparent; }
.fixed-scroll-card { min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto auto; align-content: start; }
.fixed-scroll-card .chips, .fixed-scroll-card .teacher-load-grid { scrollbar-width: thin; scrollbar-color: rgba(40,100,240,.3) transparent; }
.fixed-scroll-card .chips::-webkit-scrollbar, .fixed-scroll-card .teacher-load-grid::-webkit-scrollbar { width: 4px; height: 4px; }
.fixed-scroll-card .chips::-webkit-scrollbar-thumb, .fixed-scroll-card .teacher-load-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(40,100,240,.28); }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); grid-auto-rows: 27px; align-content: start; gap: 3px; min-height: 0; max-height: none; min-width: 0; overflow-x: hidden; overflow-y: auto; padding-right: 2px; }
.chips-classroom, .chips-lab { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 26px; max-height: calc(26px * 2 + 3px); }
.resource-mini { position: relative; min-width: 0; min-height: 26px; height: 26px; padding: 2px 27px 2px 6px; display: grid; align-content: center; gap: 0; border-radius: 7px; background: linear-gradient(135deg, #ffffff, #eaf5ff); border: 0; box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(40,100,240,.05); transition: transform .16s ease, box-shadow .16s ease; }.resource-mini:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 7px 13px rgba(40,100,240,.09); }
.resource-mini::before { content: ""; position: absolute; inset: 0 auto auto -1px; width: 12px; height: 12px; border-top: 2px solid rgba(40,100,240,.34); border-left: 2px solid rgba(40,100,240,.34); border-radius: 8px 0 0 0; pointer-events: none; }
.resource-mini::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-right: 2px solid rgba(124,58,237,.3); border-bottom: 2px solid rgba(124,58,237,.3); border-radius: 0 0 8px 0; pointer-events: none; }
.resource-mini strong, .resource-mini small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.05; }.resource-mini strong { font-size: .68rem; }.resource-mini small { color: var(--muted); font-size: .5rem; }.resource-mini .entity-actions { position: absolute; right: 2px; top: 1px; }
.entity-actions { position: relative; z-index: 5; display: inline-flex; align-items: center; justify-content: flex-end; gap: 0; flex: 0 0 auto; pointer-events: auto; }.delete-form { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; line-height: 0; pointer-events: auto; }.edit-button, .delete-form button { width: 14px; height: 14px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; font-size: .62rem; line-height: 1; font-weight: 900; cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease; pointer-events: auto; }.edit-button { color: var(--primary); }.delete-form button { color: var(--danger); }.edit-button:hover, .delete-form button:hover { background: rgba(40,100,240,.09); transform: translate(1px, -2px); }.delete-form button:hover { background: rgba(216,59,73,.1); transform: translateY(-1px); }
.edit-icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }.edit-button:hover .edit-icon { transform: translate(1px, -2px) rotate(-6deg); }.edit-arrow { stroke: #7c3aed; }.edit-pencil { stroke: currentColor; }
@keyframes liftPulse { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.04); } 100% { transform: translateY(-2px) scale(1); } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes logoSpark { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.08); } 100% { transform: rotate(360deg) scale(1); } }
.teacher-card-panel { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.teacher-load-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-auto-rows: 40px; align-content: start; column-gap: 3px; row-gap: 6px; min-height: 0; max-height: calc(40px * 3 + 12px); overflow-x: hidden; overflow-y: auto; padding-right: 2px; }
.teacher-load { position: relative; min-height: 40px; padding: 5px 27px 4px 7px; display: grid; gap: 2px; border: 0; border-radius: 7px; background: linear-gradient(135deg, #ffffff, #e9fbff); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(8,145,178,.05); transition: transform .16s ease, box-shadow .16s ease; }.teacher-load:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 7px 13px rgba(8,145,178,.09); }.teacher-load::before { content: ""; position: absolute; inset: 0 auto auto -1px; width: 11px; height: 11px; border-top: 2px solid rgba(8,145,178,.34); border-left: 2px solid rgba(8,145,178,.34); border-radius: 7px 0 0 0; pointer-events: none; }.teacher-load::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-right: 2px solid rgba(16,166,106,.32); border-bottom: 2px solid rgba(16,166,106,.32); border-radius: 0 0 7px 0; pointer-events: none; }.teacher-load div { display: block; min-width: 0; }.teacher-load strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; color: #10475a; line-height: 1.08; }.teacher-load span, .teacher-load small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4f46e5; font-size: .56rem; font-weight: 900; line-height: 1.08; }.teacher-load small { display: none; }.teacher-load .entity-actions { position: absolute; right: 2px; top: 1px; }
.resource-mini.reorder-item, .teacher-load.reorder-item { padding-left: 18px; }
.drag-handle { position: absolute; z-index: 6; left: 2px; top: 50%; transform: translateY(-50%); width: 14px; height: 17px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(124,58,237,.24); border-radius: 5px; background: rgba(255,255,255,.76); color: #6d28d9; font-size: .5rem; line-height: 1; font-weight: 950; cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; background: #ede9fe; }
body.reorder-drag-active { cursor: grabbing; user-select: none; }
[data-reorder-list].is-reordering > .reorder-item:not(.is-dragging) { transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease, opacity .18s ease; }
.reorder-placeholder { border: 1px dashed rgba(124,58,237,.58); border-radius: 8px; background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(40,100,240,.08)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 8px 18px rgba(124,58,237,.08); animation: reorderPlaceholder .16s ease-out; }
.reorder-item.is-dragging { opacity: .96; transform: scale(1.04) rotate(.5deg); box-shadow: 0 18px 40px rgba(30,41,59,.24), 0 0 0 3px rgba(124,58,237,.16) !important; cursor: grabbing; }
.reorder-item.is-dragging .drag-handle { cursor: grabbing; background: #ede9fe; }
@keyframes reorderPlaceholder { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@supports (height: 1svh) {
    .admin-layout { --admin-panel-height: clamp(342px, 47svh, 442px); }
}
@media (max-height: 780px) and (min-width: 901px) {
    .admin-layout { --admin-panel-height: clamp(336px, 46vh, 421px); }
    @supports (height: 1svh) {
        .admin-layout { --admin-panel-height: clamp(336px, 46svh, 421px); }
    }
    .form-panel { grid-template-rows: minmax(190px, 1fr) minmax(104px, auto); gap: 4px; padding: 4px; }
    .left-panel-card { gap: 7px; padding: 4px; }
    .subject-entry-card { min-height: 104px; }
    .subject-entry-card.is-practical-mode { min-height: 126px; }
    .data-panel { grid-template-rows: auto auto auto minmax(74px, 1fr); gap: 4px; padding: 4px; }
    .compact-form input, .compact-form select, .settings-form select, .subject-name-row select, .subject-entry-row input, .subject-entry-row select { min-height: 21px; font-size: .64rem; }
    .left-card-head { min-height: 15px; font-size: .56rem; }
    .chips { grid-auto-rows: 25px; }
    .chips-classroom, .chips-lab { max-height: calc(25px * 2 + 3px); }
    .resource-mini { min-height: 25px; height: 25px; }
    .teacher-load-grid { grid-auto-rows: 36px; row-gap: 5px; max-height: calc(36px * 3 + 10px); }
    .teacher-load { min-height: 36px; padding-top: 4px; }
}
.class-section { margin-top: 0; padding: 3px 5px 5px; border: 1px solid rgba(166,189,220,.72); border-radius: 10px; background: linear-gradient(135deg, #f8fffb, #ddf8ea); box-shadow: 0 5px 12px rgba(35,49,77,.06); }.class-section h2 { margin: 0 0 2px; line-height: 1; font-size: .78rem; }.class-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: transparent; }
.class-card { padding: 3px 5px 5px; border: 0; transition: transform .16s ease, box-shadow .16s ease; }.class-card:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(35,49,77,.12); }.class-card header { display: flex; justify-content: space-between; align-items: start; gap: 4px; border-bottom: 1px solid rgba(166,189,220,.5); padding: 0 0 2px; margin: 0 0 3px; }.class-card header div { display: grid; gap: 0; min-width: 0; flex: 1 1 auto; }.class-card header strong { font-size: .78rem; }.class-card small { color: var(--muted); font-size: .55rem; }.class-card .class-drag-handle { position: relative; left: auto; top: auto; transform: none; flex: 0 0 14px; margin-top: 1px; }
.subject-table-group { display: grid; gap: 2px; margin-top: 2px; }.subject-table-group > small { padding-left: 2px; font-weight: 900; font-size: .54rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }.lecture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }.lab-grid { display: grid; gap: 2px; }
.subject-cell { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 3px; padding: 3px 3px 3px 5px; border: 0; border-radius: 6px; background: linear-gradient(180deg, #f8fbff, #eef5ff); font-size: .62rem; line-height: 1.05; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 2px 6px rgba(40,100,240,.04); }.subject-cell::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-left: 2px solid rgba(40,100,240,.42); border-top: 2px solid rgba(40,100,240,.42); border-radius: 6px 0 0 0; }.subject-cell::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-right: 2px solid rgba(124,58,237,.3); border-bottom: 2px solid rgba(124,58,237,.3); border-radius: 0 0 6px 0; }.subject-cell.practical { background: linear-gradient(180deg, #fffaf0, #fff0d5); }.subject-cell.practical::before { border-top-color: rgba(245,158,11,.5); border-left-color: rgba(245,158,11,.5); }.subject-cell.practical::after { border-right-color: rgba(249,115,22,.35); border-bottom-color: rgba(249,115,22,.35); }.subject-cell span { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 5px; align-items: center; }.subject-cell b, .subject-cell em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.subject-cell b { color: #173a76; font-size: .64rem; }.subject-cell em { color: var(--muted); font-style: normal; font-size: .58rem; }.subject-cell strong { color: #173a76; font-size: .58rem; }.subject-cell .entity-actions { margin-left: 0; justify-self: end; display: inline-flex; align-items: center; justify-content: flex-end; gap: 0; }.subject-cell .delete-form { display: inline-flex; line-height: 0; }.subject-cell .edit-button, .subject-cell .delete-form button { width: 12px; height: 12px; border-radius: 4px; }
.left-panel-card, .data-card, .class-card, .summary-card, .analyzer-card, .resource-mini, .teacher-load, .subject-cell { background-repeat: no-repeat; background-image:
    linear-gradient(rgba(40,100,240,.42), rgba(40,100,240,.42)),
    linear-gradient(rgba(40,100,240,.42), rgba(40,100,240,.42)),
    linear-gradient(rgba(40,100,240,.3), rgba(40,100,240,.3)),
    linear-gradient(rgba(40,100,240,.3), rgba(40,100,240,.3)),
    linear-gradient(rgba(124,58,237,.3), rgba(124,58,237,.3)),
    linear-gradient(rgba(124,58,237,.3), rgba(124,58,237,.3)),
    linear-gradient(rgba(124,58,237,.24), rgba(124,58,237,.24)),
    linear-gradient(rgba(124,58,237,.24), rgba(124,58,237,.24));
    background-position:
        left top, left top,
        right top, right top,
        right bottom, right bottom,
        left bottom, left bottom;
    background-size:
        14px 2px, 2px 14px,
        14px 2px, 2px 14px,
        14px 2px, 2px 14px,
        14px 2px, 2px 14px;
}
.admin-layout .left-panel-card,
.admin-layout .fixed-scroll-card,
.admin-layout .teacher-card-panel,
.class-section .class-card {
    border: 1px solid #111;
}
.admin-layout .form-panel,
.admin-layout .data-panel,
.class-section {
    border: 3px solid #6d28d9;
    border-radius: 0;
}
.admin-layout .form-panel {
    border-left-width: 6px;
    border-top-width: 6px;
}
.admin-layout .data-panel {
    border-top-width: 6px;
    border-right-width: 6px;
}
.class-section {
    border-left-width: 6px;
    border-right-width: 6px;
    border-bottom-width: 6px;
}
.admin-layout .fixed-scroll-card,
.admin-layout .teacher-card-panel {
    border-color: #6d28d9;
}
.admin-layout .left-panel-card,
.class-section .class-card,
.analyzer-card {
    border-color: #6d28d9;
}
.admin-layout input,
.admin-layout select,
.admin-layout button,
.admin-layout .btn,
.class-section input,
.class-section select,
.class-section button,
.class-section .btn {
    border-color: rgba(109,40,217,.68);
}
.admin-layout input:focus,
.admin-layout select:focus,
.class-section input:focus,
.class-section select:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109,40,217,.16), inset 0 1px 0 #fff;
}
.settings-form label {
    text-align: center;
}
.analyzer-head {
    border: 1px solid rgba(109,40,217,.7);
    box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(109,40,217,.1);
}
.resource-card-head h3,
.teacher-card-panel > h3 {
    border: 1px solid rgba(109,40,217,.72);
    box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(109,40,217,.1);
}
.chips-classroom .resource-mini,
.chips-lab .resource-mini,
.teacher-load {
    border: 1px solid rgba(109,40,217,.68);
    box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(109,40,217,.09);
}
.chips-classroom .resource-mini::before,
.chips-lab .resource-mini::before,
.teacher-load::before {
    border-top-color: rgba(109,40,217,.72);
    border-left-color: rgba(109,40,217,.72);
}
.chips-classroom .resource-mini::after,
.chips-lab .resource-mini::after,
.teacher-load::after {
    border-right-color: rgba(139,92,246,.66);
    border-bottom-color: rgba(139,92,246,.66);
}
.admin-layout,
.admin-layout .form-panel,
.admin-layout .data-panel,
.admin-layout .left-panel-card,
.admin-layout .subject-entry-card,
.admin-layout .data-card,
.admin-layout .summary-card,
.admin-layout .summary-card.labs,
.admin-layout .summary-card.teachers,
.admin-layout .summary-card.classes,
.admin-layout .analyzer-card,
.admin-layout .analyzer-head,
.admin-layout .analyzer-mini-grid span,
.admin-layout .constraint-bar,
.admin-layout .ideal-ratio-panel,
.admin-layout .ideal-ratio-row,
.admin-layout .fixed-scroll-card,
.admin-layout .resource-mini,
.admin-layout .teacher-load,
.admin-layout .ai-warning,
.admin-layout .ai-reco,
.class-section,
.class-section .class-card,
.class-section .subject-cell,
.class-section .subject-cell.practical {
    background: linear-gradient(180deg, #ffffff, #fbfcff) !important;
}
.admin-layout .resource-grid,
.admin-layout .summary-grid,
.class-section .class-grid {
    background: #ffffff !important;
}
.admin-layout input,
.admin-layout select,
.admin-layout textarea,
.class-section input,
.class-section select,
.class-section textarea {
    background: linear-gradient(180deg, #ffffff, #fcfdff) !important;
}
.admin-layout .ai-warning {
    border-left: 3px solid rgba(216,59,73,.5);
}
.admin-layout .ai-reco {
    border-left: 3px solid rgba(21,148,95,.48);
}
.subject-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid #edf1f6; }.subject-row div { display: grid; }.subject-row strong { font-size: .82rem; }.type { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; color: white; text-transform: uppercase; font-size: .58rem; }.type.lecture { background: var(--primary); }.type.practical { background: #d17617; }
.selector-bar { display: flex; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }.selector-bar select { max-width: 340px; }
.metadata-strip { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 10px; }.metadata-strip span { padding: 4px 7px; border-radius: 999px; background: #e8eef8; color: var(--muted); font-size: .72rem; }
.all-timetable-stack { display: grid; gap: 14px; }.all-timetable-card { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; }.all-timetable-card h2 { margin: 0 0 4px; }
.all-timetable-group-title { margin: 6px 0 -4px; padding: 7px 10px; border-radius: 12px; color: #173a76; background: linear-gradient(135deg, #eef5ff, #f5f3ff); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.all-location-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compact-location-card { min-width: 0; overflow: hidden; }
.compact-location-card .template-header { grid-template-columns: 48px minmax(0, 1fr) 48px; padding: 5px; }
.compact-location-card .template-logo { min-height: 46px; }
.compact-location-card .template-title-block h2 { font-size: clamp(1rem, 1.4vw, 1.45rem); }
.compact-location-card .template-footer { font-size: .72rem; }
@media (max-width: 1100px) { .all-location-card-grid { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; max-width: 100%; }.public-timetable { width: max-content; min-width: 100%; border-collapse: collapse; background: white; }.public-timetable th, .public-timetable td { min-width: 115px; padding: 6px; border: 1px solid var(--line); vertical-align: top; }.public-timetable th { background: #e9eff8; }.schedule-item { display: grid; gap: 1px; margin-bottom: 4px; padding: 5px; border-left: 3px solid var(--primary); border-radius: 5px; background: #f6f9fd; font-size: .74rem; }.schedule-item span, .schedule-item small { color: var(--muted); }.drilldown-modal-card .public-timetable { min-width: 1040px; }.drilldown-modal-card .public-timetable th, .drilldown-modal-card .public-timetable td { min-width: 78px; padding: 4px; }.drilldown-modal-card .schedule-item { padding: 4px; font-size: .66rem; }
.template-timetable { display: grid; gap: 8px; min-width: 0; padding: clamp(7px, 1vw, 12px); border: 2px solid rgba(15,23,42,.26); border-radius: 14px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--tt-soft), #fff 34%)); box-shadow: 0 14px 30px rgba(15,23,42,.08); font-family: Calibri, Arial, sans-serif; text-align: center; }
.template-header { display: grid; grid-template-columns: clamp(58px, 7vw, 86px) minmax(0, 1fr) clamp(58px, 7vw, 86px); gap: clamp(6px, 1vw, 14px); align-items: center; padding: 7px; border: 1px solid rgba(15,23,42,.26); border-radius: 12px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--tt-soft), #fff 42%)); }
.template-logo { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(15,23,42,.28); border-radius: 14px; background: #fff; color: var(--tt-primary); font-size: .58rem; font-weight: 950; text-align: center; }
.template-logo img { width: 100%; height: 100%; object-fit: contain; }
.template-title-block { display: grid; justify-items: center; gap: 1px; min-width: 0; text-align: center; color: var(--tt-primary); }
.template-title-block strong { font-size: clamp(.95rem, 1.55vw, 1.45rem); }
.template-title-block h2 { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(1.45rem, 3.45vw, 3rem); letter-spacing: .08em; text-transform: uppercase; }
.template-title-block small { color: #64748b; font-size: clamp(.68rem, .95vw, .9rem); font-weight: 850; }
.template-title-block em { color: var(--tt-accent); font-size: clamp(.78rem, 1.2vw, 1.08rem); font-style: normal; font-weight: 900; }
.template-info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 4px; }
.template-info-row span { display: grid; gap: 1px; padding: 5px 7px; border: 1px solid rgba(15,23,42,.18); border-radius: 8px; background: rgba(255,255,255,.78); color: var(--tt-primary); font-size: .78rem; font-weight: 850; text-align: center; }
.template-info-row b { color: #64748b; font-size: .64rem; text-transform: uppercase; }
.template-timetable-title { margin: 0; padding: 6px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--tt-primary), var(--tt-secondary)); text-align: center; font-size: clamp(.98rem, 1.55vw, 1.25rem); letter-spacing: .08em; text-transform: uppercase; }
.template-grid { width: 100%; min-width: 0; table-layout: fixed; }
.template-grid th, .template-grid td { min-width: 0; padding: 6px; border: 1px solid #c7d1df; font-size: .86rem; text-align: center; vertical-align: middle; }
.template-grid th,
.template-grid .break-head,
.template-grid .break-cell,
.template-grid .practical-merged { border-color: rgba(15,23,42,.44); }
.template-grid thead th { color: #fff; background: linear-gradient(180deg, var(--tt-secondary), var(--tt-primary)); text-align: center; }
.template-grid thead th b, .template-grid thead th small { display: block; }
.template-grid thead th small { margin-top: 1px; color: rgba(255,255,255,.82); font-size: .68rem; font-weight: 750; }
.template-grid .break-head { width: clamp(46px, 5vw, 70px); color: var(--tt-break); background: linear-gradient(180deg, color-mix(in srgb, var(--tt-soft), #fff 16%), #fff) !important; writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .05em; }
.template-grid .break-cell { color: var(--tt-break); background: linear-gradient(180deg, color-mix(in srgb, var(--tt-soft), #fff 18%), #fff); text-align: center; writing-mode: vertical-rl; text-orientation: mixed; }
.template-grid .break-cell strong, .template-grid .break-cell small { display: block; }
.template-grid .break-cell small { font-size: .62rem; opacity: .78; }
.template-grid .disabled-slot { background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 6px, #eef2f7 6px, #eef2f7 12px); }
.template-grid .schedule-item { border-left: 0; border-top: 3px solid var(--tt-accent); background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--tt-soft), #fff 55%)); text-align: center; font-size: .84rem; line-height: 1.18; }
.template-grid .schedule-item strong, .template-grid .schedule-item span, .template-grid .schedule-item small { text-align: center; }
.public-template-wrap { overflow-x: auto; }
.public-template-table { min-width: 0 !important; }
.public-template-table .slot-number-head,
.public-template-table .break-number-spacer,
.public-template-table .day-time-subhead,
.public-template-table .slot-number-axis,
.public-template-table .slot-number-cell { color: #fff; background: linear-gradient(180deg, var(--tt-secondary), var(--tt-primary)); text-align: center; font-weight: 950; }
.public-template-table .public-slot-time,
.public-template-table .public-break-time { display: grid; place-items: center; gap: 2px; min-height: 30px; color: #fff; font-weight: 950; text-align: center; }
.public-template-table .public-break-time { color: var(--tt-break); }
.public-template-table .public-break-time small { color: #64748b; font-size: .58rem; }
.public-template-table .visual-break-cell { color: var(--tt-break); }
.public-template-table .visual-break-cell span { color: var(--tt-break); }
.public-template-table .day-name-cell { text-align: center; color: var(--tt-primary); font-weight: 950; }
.public-template-table td:not(.visual-break-cell):empty::after { content: ""; display: block; min-height: 42px; border: 1px solid rgba(7,24,77,.12); border-radius: 7px; background: linear-gradient(135deg, #fff, #f8fbff); }
.public-template-table .schedule-item { min-height: 42px; display: grid; place-items: center; gap: 2px; margin: 0 auto 4px; border-left: 0; border-top: 3px solid var(--tt-accent); border-radius: 8px; }
.public-template-table .practical-lines span { display: block; width: 100%; }
.public-template-table.template-vertical .vertical-break-row .visual-break-cell span { writing-mode: horizontal-tb; letter-spacing: .08em; }
.template-footer { display: grid; gap: 6px; }
.template-footer section { padding: 6px; border: 1px solid rgba(15,23,42,.22); border-radius: 10px; background: rgba(255,255,255,.78); }
.template-footer h4 { margin: 0 0 4px; color: var(--tt-primary); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.template-chip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 3px; }
.template-chip-grid span { display: flex; gap: 5px; padding: 3px 5px; border-radius: 7px; background: color-mix(in srgb, var(--tt-soft), #fff 42%); font-size: .62rem; }
.template-chip-grid b { color: var(--tt-primary); }
.template-footer .metadata-strip { margin: 0; }
.template-footer p { margin: 0; color: #475569; font-size: .68rem; }
.template-duty-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; padding: 5px 7px; border: 1px solid rgba(15,23,42,.18); border-radius: 10px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--tt-soft), #fff 38%)); }
.template-duty-row .teacher-duty-title { display: inline-flex; align-items: center; gap: 5px; color: var(--tt-primary); font-size: .68rem; font-weight: 950; text-transform: uppercase; letter-spacing: .05em; }
.template-duty-row .teacher-responsibilities { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; justify-content: flex-start; }
.template-duty-row .responsibility-chip { background: color-mix(in srgb, var(--tt-soft), #fff 24%); border-color: color-mix(in srgb, var(--tt-primary), #fff 72%); color: var(--tt-primary); }
.template-duty-row .responsibility-empty { min-height: 18px; }
.template-duty-row .responsibility-chip:has(select) { display: grid; grid-template-columns: minmax(42px, 1fr) 14px 14px minmax(48px, .9fr) minmax(38px, .65fr) minmax(38px, .65fr); align-items: center; width: 100%; }
.teacher-template-footer .teacher-abbreviation-section { padding: 5px; }
.subject-abbreviation-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.free-faculties-template .template-info-row { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.free-faculty-table th,
.free-faculty-table td { text-align: center; vertical-align: middle; }
.free-faculty-slot { background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--tt-soft), #fff 58%)); }
.free-faculty-cell { display: grid; gap: 5px; align-content: start; min-height: 52px; }
.free-faculty-cell > strong {
    display: inline-flex;
    justify-content: center;
    justify-self: center;
    min-width: 64px;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tt-primary), #fff 84%), color-mix(in srgb, var(--tt-accent), #fff 82%));
    color: var(--tt-primary);
    font-size: .74rem;
    font-weight: 950;
}
.free-faculty-chip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-height: 92px; overflow: auto; scrollbar-width: thin; }
.free-faculty-chip-list span {
    padding: 2px 5px;
    border: 1px solid color-mix(in srgb, var(--tt-primary), #fff 78%);
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    color: var(--tt-primary);
    font-size: .66rem;
    font-weight: 900;
    line-height: 1.1;
}
.free-faculty-muted { color: #64748b; font-size: .72rem; font-weight: 850; }
.free-faculty-footer .template-chip-grid span { justify-content: flex-start; text-align: left; }
.template-approvals { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.practical-merged { background: color-mix(in srgb, var(--tt-soft), #fff 30%); }
.practical-lines { gap: 3px; border-left-color: var(--tt-accent); font-weight: 850; }
.load-adjustment-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 9px 11px; border: 1px solid rgba(16,166,106,.34); border-radius: 14px; background: linear-gradient(135deg, #f8fffb, #ddf8ea); box-shadow: 0 8px 18px rgba(15,118,110,.08); }
.load-adjustment-toolbar strong { display: block; color: #115e3d; font-size: .92rem; }.load-adjustment-toolbar small, .load-adjustment-status { color: #35615a; font-size: .72rem; font-weight: 800; }.load-adjustment-toolbar label { display: grid; gap: 2px; color: #174a41; font-size: .68rem; font-weight: 900; text-transform: uppercase; }.load-adjustment-toolbar select { min-width: 190px; border-color: rgba(109,40,217,.72); }
.disabled-slot { background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 6px, #eef2f7 6px, #eef2f7 12px); opacity: .65; }
.load-adjusted-item { box-shadow: inset 0 0 0 1px rgba(22,163,74,.22), 0 5px 12px rgba(22,163,74,.08); }
.load-adjustment-ui { margin-top: 1px; padding-top: 1px; border-top: 1px dashed rgba(37,99,235,.12); }
.load-adjustment-ui label { display: grid; gap: 1px; color: #31506f; font-size: clamp(.4rem, .34rem + .12vw, .5rem); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.load-adjustment-ui select { width: 100%; max-width: 100%; min-height: 17px; padding: 0 13px 0 3px; border: 1px solid rgba(109,40,217,.42); border-radius: 4px; background: #fff; color: #1f2937; font-size: clamp(.48rem, .4rem + .16vw, .6rem); font-weight: 850; }
.load-adjustment-ui select.same-class-selected { border-color: rgba(22,163,74,.75); background: #f0fdf4; color: #14532d; }
.load-adjustment-ui option.same-class-option { color: #15803d; font-weight: 900; }
.same-class-hint { display: block; margin-top: 2px; color: #15803d !important; font-size: .5rem; font-weight: 900; }
.load-adjustment-badge { margin-top: 2px; padding: 2px 3px; border-radius: 5px; color: #14532d; background: #dcfce7; border: 1px solid rgba(22,163,74,.25); font-size: clamp(.45rem, .36rem + .16vw, .55rem); font-weight: 900; line-height: 1.1; }
.teacher-page { --teacher-xxs: clamp(.38rem, .32rem + .12vw, .48rem); --teacher-xs: clamp(.42rem, .35rem + .14vw, .52rem); --teacher-sm: clamp(.48rem, .4rem + .16vw, .58rem); --teacher-md: clamp(.6rem, .5rem + .22vw, .74rem); display: grid; gap: clamp(3px, .45vw, 6px); }
.teacher-heading { margin-bottom: 0; }
.teacher-heading .action-row { gap: 6px; }
.teacher-control-bar { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(4px, .45vw, 7px); padding: clamp(4px, .55vw, 7px) clamp(5px, .7vw, 9px); border: 2px solid rgba(109,40,217,.42); border-radius: 10px; background: linear-gradient(135deg, #ffffff, #f5f3ff); box-shadow: 0 6px 14px rgba(49,46,129,.07); }
.teacher-control-group { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border: 1px solid rgba(109,40,217,.2); border-radius: 999px; background: rgba(255,255,255,.78); }
.teacher-control-group > span, .teacher-week-field { color: #312e81; font-size: var(--teacher-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.teacher-week-field { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.teacher-week-field select { width: auto; min-height: 23px; padding: 1px 20px 1px 6px; border-color: rgba(109,40,217,.62); font-size: var(--teacher-sm); }
.teacher-view-btn, .teacher-density-btn { min-height: 22px; padding: 2px 7px; border-color: rgba(109,40,217,.28); font-size: var(--teacher-sm); }
.teacher-view-btn.active, .teacher-density-btn.active { color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); border-color: transparent; box-shadow: 0 5px 12px rgba(79,70,229,.18); }
.teacher-page .load-adjustment-status { margin-left: 0; color: #475569; font-size: var(--teacher-sm); }
.teacher-page .all-timetable-stack { display: grid; gap: clamp(5px, .65vw, 8px); align-items: start; }
.teacher-page.teacher-density-1 .all-timetable-stack { grid-template-columns: 1fr; }
.teacher-page.teacher-density-2 .all-timetable-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.teacher-page.teacher-density-3 .all-timetable-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.teacher-page.teacher-density-4 .all-timetable-stack { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teacher-page .all-timetable-card { container-type: inline-size; display: grid; gap: clamp(2px, .35vw, 4px); min-width: 0; padding: clamp(3px, .45vw, 6px); overflow: hidden; border: 2px solid rgba(109,40,217,.38); border-radius: 10px; background: linear-gradient(180deg, #ffffff, #f8fbff); box-shadow: 0 8px 15px rgba(30,41,59,.06); }
.teacher-page .template-timetable { gap: clamp(3px, 1.2cqw, 8px); padding: clamp(4px, 1.4cqw, 10px); }
.teacher-page .template-header { grid-template-columns: clamp(38px, 10cqw, 76px) minmax(0, 1fr) clamp(38px, 10cqw, 76px); gap: clamp(3px, 1.2cqw, 10px); padding: clamp(3px, 1.1cqw, 7px); }
.teacher-page .template-title-block strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(.48rem, 1.85cqw, .95rem); }
.teacher-page .template-title-block h2 { font-size: clamp(.72rem, 4.8cqw, 1.75rem); letter-spacing: clamp(.01em, .22cqw, .06em); }
.teacher-page .template-title-block small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(.42rem, 1.45cqw, .72rem); }
.teacher-page .template-title-block em { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(.44rem, 1.55cqw, .78rem); }
.teacher-page .template-info-row { grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 2px; }
.teacher-page .template-info-row span { padding: clamp(2px, .8cqw, 5px); font-size: clamp(.42rem, 1.42cqw, .72rem); }
.teacher-page .template-info-row b { font-size: clamp(.36rem, 1.05cqw, .58rem); }
.teacher-page .template-timetable-title { padding: clamp(3px, 1cqw, 6px) clamp(5px, 1.5cqw, 10px); font-size: clamp(.56rem, 2.15cqw, 1.05rem); letter-spacing: clamp(.02em, .26cqw, .07em); }
.teacher-page .template-duty-row { grid-template-columns: minmax(52px, auto) minmax(0, 1fr); gap: clamp(3px, 1cqw, 6px); padding: clamp(3px, .95cqw, 6px); }
.teacher-page .template-duty-row .teacher-duty-title { font-size: clamp(.42rem, 1.35cqw, .66rem); }
.teacher-page .template-duty-row .responsibility-chip,
.teacher-page .template-duty-row .responsibility-empty { font-size: clamp(.38rem, 1.12cqw, .56rem); }
.teacher-page.mode-timetable .template-duty-row [data-responsibility-action="add"] { display: none; }
.teacher-page .template-footer h4 { font-size: clamp(.44rem, 1.28cqw, .66rem); }
.teacher-page .template-chip-grid span { padding: 2px 4px; font-size: clamp(.38rem, 1.15cqw, .56rem); }
.teacher-card-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3px, .5vw, 5px); padding-bottom: 3px; border-bottom: 1px solid rgba(109,40,217,.16); }
.teacher-head-left, .teacher-head-right { min-width: 0; display: grid; align-content: start; gap: 2px; }
.teacher-head-left { padding: 3px; border: 1px solid rgba(37,99,235,.12); border-radius: 7px; background: rgba(239,246,255,.58); }
.teacher-head-right { padding: 3px; border: 1px solid rgba(109,40,217,.14); border-radius: 7px; background: rgba(245,243,255,.72); }
.teacher-duty-title { display: flex; align-items: center; justify-content: space-between; gap: 3px; color: #4c1d95; font-size: var(--teacher-xxs); text-transform: uppercase; }
.teacher-duty-title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teacher-title-block { min-width: 0; }
.teacher-title-block h2 { margin: 0; color: #18356f; font-size: var(--teacher-md); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teacher-title-block h2 small { color: #64748b; font-size: var(--teacher-sm); font-weight: 800; }
.teacher-load-line { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
.teacher-load-line span { padding: 1px 3px; border: 1px solid rgba(37,99,235,.18); border-radius: 999px; background: #eef5ff; color: #31506f; font-size: var(--teacher-xxs); font-weight: 900; }
.teacher-info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(78px, 10vw, 130px), 1fr)); gap: 3px; }
.teacher-info-strip span { min-width: 0; padding: 2px 4px; border: 1px solid rgba(109,40,217,.18); border-radius: 6px; background: rgba(248,250,252,.86); color: #334155; font-size: var(--teacher-xxs); font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teacher-info-strip b { margin-right: 2px; color: #4c1d95; font-size: var(--teacher-xxs); text-transform: uppercase; }
.teacher-more-info { border: 1px solid rgba(109,40,217,.16); border-radius: 8px; background: #fff; }
.teacher-more-info summary { padding: 3px 6px; color: #334155; font-size: var(--teacher-xs); font-weight: 950; cursor: pointer; }
.teacher-more-info[open] { padding-bottom: 3px; }
.teacher-more-info .metadata-strip { margin: 2px 5px 4px; }
.teacher-more-info .metadata-strip span { font-size: var(--teacher-xs); padding: 2px 5px; }
.responsibility-add { flex: 0 0 auto; min-height: 18px; padding: 1px 5px; font-size: var(--teacher-xxs); }
.teacher-head-right .teacher-responsibilities { display: grid; grid-template-columns: 1fr; gap: 2px; min-height: 16px; }
.teacher-responsibilities { display: flex; flex-wrap: wrap; gap: 2px; min-height: 16px; }
.responsibility-chip, .responsibility-empty { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 2px; max-width: 100%; padding: 1px 2px; border: 1px solid rgba(109,40,217,.24); border-radius: 6px; background: #f5f3ff; color: #312e81; font-size: var(--teacher-xxs); font-weight: 900; }
.teacher-head-right .responsibility-chip { display: grid; grid-template-columns: minmax(34px, 1fr) 14px 14px minmax(36px, .75fr) minmax(34px, .65fr) minmax(34px, .65fr); align-items: center; width: 100%; }
.responsibility-empty { color: #64748b; background: #f8fafc; border-color: rgba(148,163,184,.28); }
.responsibility-chip b { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.responsibility-chip button { min-height: 14px; min-width: 14px; padding: 0 2px; border: 0; border-radius: 999px; background: rgba(109,40,217,.12); color: #4c1d95; font-size: var(--teacher-xxs); font-weight: 950; cursor: pointer; }
.responsibility-chip button:hover { background: #7c3aed; color: #fff; }
.responsibility-chip label { display: inline-flex; align-items: center; gap: 1px; min-width: 0; color: #475569; font-size: var(--teacher-xxs); font-weight: 950; text-transform: uppercase; }
.responsibility-chip select { width: 100%; min-width: 0; min-height: 15px; padding: 0 11px 0 2px; border: 1px solid rgba(109,40,217,.32); border-radius: 5px; background-color: #fff; color: #1f2937; font-size: var(--teacher-xxs); font-weight: 800; }
.teacher-page .table-scroll { max-width: 100%; overflow: auto; border-radius: 8px; }
.teacher-page .public-timetable { width: 100%; min-width: clamp(360px, 42vw, 520px); }
.teacher-page .public-timetable th, .teacher-page .public-timetable td { min-width: clamp(44px, 5.4vw, 68px); padding: clamp(1px, .28vw, 3px); font-size: var(--teacher-xs); }
.teacher-page .public-timetable th { background: #eef2ff; color: #1e3a8a; }
.teacher-page .public-timetable tr.next-day-highlight > th,
.teacher-page .public-timetable tr.next-day-highlight > td { background: rgba(22,163,74,.08); box-shadow: inset 0 0 0 999px rgba(22,163,74,.035); }
.teacher-page .public-timetable tr.next-day-highlight > th { color: #14532d; background: rgba(22,163,74,.14); }
.teacher-page .schedule-item { gap: 0; margin-bottom: 1px; padding: 2px; border-left-width: 2px; border-radius: 4px; font-size: var(--teacher-xs); line-height: 1.1; }
.teacher-page .schedule-item b, .teacher-page .schedule-item span, .teacher-page .schedule-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teacher-page.mode-timetable .teacher-adjustment-panel { display: none; }
.teacher-page.mode-timetable .load-adjustment-ui { display: none; }
.teacher-page.mode-adjustment .teacher-timetable-panel { display: block; }
.teacher-adjustment-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; max-height: 420px; overflow: auto; padding: 2px; scrollbar-width: thin; }
.adjustment-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 6px; border: 1px solid rgba(109,40,217,.22); border-radius: 10px; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(30,41,59,.04); }
.adjustment-row.is-adjusted { border-color: rgba(22,163,74,.42); background: linear-gradient(135deg, #ffffff, #ecfdf5); }
.adjustment-row > div { display: grid; gap: 1px; min-width: 0; }
.adjustment-row b { color: #1e3a8a; font-size: .72rem; }
.adjustment-row span, .adjustment-row small { min-width: 0; overflow: hidden; color: #475569; text-overflow: ellipsis; white-space: nowrap; font-size: .62rem; font-weight: 800; }
.adjustment-row label { display: grid; gap: 2px; color: #312e81; font-size: .58rem; font-weight: 900; text-transform: uppercase; }
.adjustment-row select { width: 100%; min-height: 26px; padding: 3px 6px; border: 1px solid rgba(109,40,217,.45); border-radius: 8px; background: #fff; color: #1f2937; font-size: .66rem; font-weight: 800; }
.adjustment-row select.same-class-selected { border-color: rgba(22,163,74,.75); background: #f0fdf4; color: #14532d; }
@media (max-width: 1280px) {
    .teacher-page.teacher-density-4 .all-timetable-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .teacher-page.teacher-density-3 .all-timetable-stack,
    .teacher-page.teacher-density-4 .all-timetable-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teacher-info-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .teacher-page .all-timetable-stack,
    .teacher-page.teacher-density-1 .all-timetable-stack,
    .teacher-page.teacher-density-2 .all-timetable-stack,
    .teacher-page.teacher-density-3 .all-timetable-stack,
    .teacher-page.teacher-density-4 .all-timetable-stack { grid-template-columns: 1fr; }
    .teacher-week-field { margin-left: 0; }
    .teacher-control-bar { align-items: stretch; }
    .teacher-control-group, .teacher-week-field { flex: 1 1 auto; }
    .teacher-info-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teacher-page .public-timetable { min-width: 430px; }
}
@container (max-width: 560px) {
    .teacher-card-top { grid-template-columns: 1fr; }
}
@container (min-width: 760px) {
    .teacher-card-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.institute-page { display: grid; gap: 10px; color: #07184d; }
.institute-page-heading { margin-bottom: 0; }
.institute-form { display: grid; gap: 10px; }
.institute-sheet { display: grid; gap: 10px; padding: clamp(8px, 1.2vw, 18px); border: 3px double #d88313; border-radius: 18px; background: radial-gradient(circle at top, #fff 0, #f8fbff 46%, #fff 100%); box-shadow: 0 18px 38px rgba(7,24,77,.12); }
.institute-hero { display: grid; grid-template-columns: clamp(92px, 10vw, 145px) minmax(0, 1fr) clamp(92px, 10vw, 145px); gap: clamp(8px, 1.4vw, 22px); align-items: center; }
.logo-editor { display: grid; justify-items: center; min-width: 0; }
.logo-frame { position: relative; width: clamp(86px, 10vw, 140px); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 2px solid #d88313; border-radius: 18px; color: #07184d; background: linear-gradient(135deg, #fff, #edf4ff); text-align: center; font-size: .68rem; font-weight: 950; box-shadow: inset 0 0 0 4px rgba(7,24,77,.08), 0 10px 20px rgba(7,24,77,.1); }
.logo-frame img { width: 100%; height: 100%; object-fit: contain; }
.logo-file-input { display: none; }
.logo-actions { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.84); box-shadow: 0 4px 12px rgba(7,24,77,.16); backdrop-filter: blur(6px); }
.logo-action { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid rgba(7,24,77,.15); border-radius: 999px; color: #4f46e5; background: #fff; font-size: .62rem; line-height: 1; cursor: pointer; font-weight: 950; }
.logo-action.danger { color: #c1121f; }
.logo-frame.is-logo-deleted { background: repeating-linear-gradient(135deg, #fff, #fff 8px, #fff1f2 8px, #fff1f2 16px); }
.institute-title-fields { display: grid; justify-items: stretch; gap: 5px; min-width: 0; width: 100%; }
.institute-title-fields input { width: 100%; min-width: 0; min-height: 27px; border: 1px solid transparent; border-bottom: 1px solid rgba(216,131,19,.35); border-radius: 999px; background: rgba(255,255,255,.72); color: #07184d; text-align: center; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.institute-title-fields input[name=organization_name] { font-size: clamp(1rem, 1.7vw, 1.75rem); }
.institute-title-fields .college-name-input { font-size: clamp(1.65rem, 4.8vw, 4.2rem); letter-spacing: .08em; text-transform: uppercase; }
.institute-title-fields input[name=motto] { color: #c46d0c; font-size: clamp(.82rem, 1.35vw, 1.3rem); }
.institute-title-fields input[name=accreditation],
.institute-title-fields input[name=other_data] { font-size: .74rem; }
.institute-info-panel { display: grid; grid-template-columns: minmax(170px, 1.4fr) repeat(5, minmax(100px, 1fr)); gap: 6px; padding: 7px; border: 1px solid rgba(7,24,77,.16); border-radius: 12px; background: linear-gradient(135deg, #f7fbff, #fff9ef); }
.institute-info-panel > div { display: grid; align-content: center; gap: 2px; color: #07184d; }
.institute-info-panel strong { font-size: .78rem; text-transform: uppercase; }
.institute-info-panel small { color: #64748b; font-size: .62rem; font-weight: 800; }
.institute-info-panel label { display: grid; gap: 2px; color: #07184d; font-size: .58rem; font-weight: 950; text-transform: uppercase; }
.institute-info-panel input { width: 100%; min-height: 28px; padding: 3px 7px; border: 1px solid rgba(7,24,77,.18); border-radius: 8px; background: #fff; color: #07184d; font-size: .72rem; font-weight: 850; }
.institute-table-wrap { overflow-x: auto; border: 1px solid rgba(7,24,77,.22); border-radius: 10px; background: #fff; }
.institute-visual-table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.institute-visual-table th, .institute-visual-table td { border-right: 1px solid rgba(7,24,77,.18); border-bottom: 1px solid rgba(7,24,77,.16); padding: 4px; vertical-align: middle; }
.institute-visual-table thead th { color: #fff; background: linear-gradient(180deg, #082466, #06184f); }
.day-time-head { width: 110px; text-transform: uppercase; font-size: .76rem; }
.slot-time-head { position: relative; min-width: 98px; padding-bottom: 14px !important; }
.slot-time-row { display: flex; align-items: center; justify-content: center; gap: 2px; }
.slot-time-head input.time-text,
.break-time-inputs input.time-text { width: 48px; min-height: 19px; padding: 1px 2px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; color: #07184d; background: rgba(255,255,255,.96); font-size: .56rem; font-weight: 900; text-align: center; }
.slot-time-head b { position: absolute; left: 50%; bottom: -13px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: #07184d; border: 2px solid #fff; transform: translateX(-50%); font-size: .72rem; }
.grid-break-add { position: absolute; right: 5px; bottom: 4px; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #07184d; background: #fbbf24; box-shadow: 0 4px 10px rgba(0,0,0,.18); font-size: .72rem; font-weight: 950; cursor: pointer; }
.grid-break-add:hover { transform: translateY(-1px); }
.break-time-head { width: 76px; color: #0e5b26 !important; background: linear-gradient(180deg, #fffdf9, #fff2e3) !important; border-left: 1px solid #e89634; border-right: 1px solid #e89634; }
.grid-break-editor { position: relative; display: grid; gap: 2px; min-width: 0; padding-top: 10px; }
.grid-break-editor input { width: 100%; min-width: 0; border: 1px solid rgba(216,131,19,.3); border-radius: 5px; background: rgba(255,255,255,.92); color: #07184d; text-align: center; font-weight: 900; }
.grid-break-editor .break-tag-input { color: #d95f02; font-size: .62rem; }
.grid-break-editor .break-label-input { color: #0e5b26; font-size: .48rem; text-transform: uppercase; }
.break-time-inputs { display: flex; align-items: center; justify-content: center; gap: 1px; }
.break-time-inputs span { color: #07184d; font-size: .48rem; }
.grid-break-remove { position: absolute; right: -2px; top: -2px; width: 16px; height: 16px; border: 0; border-radius: 999px; color: #b42318; background: #fee4e2; cursor: pointer; font-size: .62rem; line-height: 1; font-weight: 950; }
.day-name-cell { width: 110px; color: #07184d; background: #f8fbff; text-align: left; font-size: .7rem; }
.empty-slot-card { min-height: 50px; border: 1px solid rgba(7,24,77,.14); border-radius: 7px; background: linear-gradient(135deg, #fff, #f8fbff); }
.institute-disabled-slot { background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 6px, #eef2f7 6px, #eef2f7 12px); }
.visual-break-cell { width: 64px; color: #d95f02; background: linear-gradient(180deg, rgba(255,250,242,.9), rgba(255,255,255,.96)); text-align: center; }
.visual-break-cell span { writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .12em; font-size: .62rem; font-weight: 950; }
.visual-break-cell b { display: block; margin-top: 4px; color: #0e5b26; font-size: .7rem; }
.institute-bottom-panels { display: grid; grid-template-columns: 1fr; gap: 12px; }
.institute-abbreviation-card { overflow: hidden; border: 1px solid rgba(7,24,77,.18); border-radius: 10px; background: #fff; }
.institute-abbreviation-card h3 { margin: 0; padding: 5px 8px; color: #fff; background: linear-gradient(180deg, #082466, #06184f); text-align: center; font-size: .78rem; text-transform: uppercase; }
.abbr-grid { display: grid; grid-template-columns: 42px 1fr 1.4fr; }
.abbr-grid span, .abbr-grid input { min-height: 24px; padding: 3px 5px; border: 0; border-right: 1px solid rgba(7,24,77,.12); border-bottom: 1px solid rgba(7,24,77,.12); font-size: .66rem; }
.abbr-grid span { text-align: center; font-weight: 900; }
.institute-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: #07184d; font-size: .76rem; font-weight: 900; }
.institute-note input { width: min(520px, 100%); min-height: 28px; border: 1px solid rgba(7,24,77,.18); border-radius: 8px; background: #fff; color: #07184d; text-align: center; }
.institute-actions { display: flex; justify-content: flex-end; gap: 8px; }
.institute-data-link { background: #fff; border-color: rgba(109,40,217,.45); color: #4c1d95; font-weight: 900; }
@media (max-width: 1100px) {
    .institute-hero { grid-template-columns: 1fr; justify-items: center; }
    .logo-left { order: 1; }
    .institute-title-fields { order: 2; width: 100%; }
    .logo-right { order: 3; }
    .institute-info-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .institute-info-panel > div { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .institute-sheet { padding: 7px; border-radius: 12px; }
    .institute-info-panel { grid-template-columns: 1fr; }
    .institute-actions { justify-content: stretch; flex-wrap: wrap; }
    .institute-actions .btn { flex: 1 1 auto; }
}
.editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: .78rem; }
.editor-toolbar small { color: var(--muted); }
.toolbar-field { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }.toolbar-field select { width: auto; min-height: 26px; padding: 2px 22px 2px 6px; font-size: .74rem; }
.density-btn { min-height: 26px; padding: 3px 8px; font-size: .74rem; }
.density-btn.active { color: white; border-color: var(--primary); background: var(--primary); }
.location-demography-btn { min-height: 26px; padding: 3px 9px; color: #075b3d; border-color: rgba(16,166,106,.35); background: linear-gradient(135deg, #ecfdf5, #e0f2fe); font-size: .74rem; font-weight: 900; }
.location-demography-btn:hover { color: white; border-color: #10a66a; background: linear-gradient(135deg, #10a66a, #0891b2); }
.load-bar { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; overflow-x: auto; padding: 5px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 8px; background: white; }.load-bar span { flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; background: #e9eff8; font-size: .68rem; }.load-bar span.over { color: white; background: var(--danger); }
.editor-grid { display: grid; gap: 6px; }
.editor-grid.density-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-grid.density-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editor-grid.density-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timetable-card { padding: 5px; overflow: hidden; }.timetable-card > header { display: flex; justify-content: space-between; padding: 4px 6px; margin: -5px -5px 4px; color: white; background: #1d407a; font-size: .78rem; cursor: default; }
.timetable-card.class-locked { outline: 2px solid rgba(124,58,237,.55); box-shadow: 0 0 0 4px rgba(124,58,237,.11), 0 12px 28px rgba(76,29,149,.12); }
.timetable-card.class-locked > header { background: linear-gradient(135deg, #4c1d95, #1d407a); }
.class-lock-icon { display: inline-grid; place-items: center; margin-left: 5px; padding: 1px 5px; border-radius: 999px; color: #4c1d95; background: #f5f3ff; font-size: .48rem; font-style: normal; font-weight: 950; letter-spacing: .05em; vertical-align: middle; }
.slot-editor.is-class-locked { background: #f5f0ff; box-shadow: inset 0 0 0 1px rgba(124,58,237,.12); }
.slot-editor.is-class-locked select { opacity: .72; cursor: not-allowed; }
.slot-editor.is-class-locked select.subject { font-weight: 900; color: #4c1d95; }
.editor-day { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 3px; align-items: stretch; margin-bottom: 3px; }.editor-day > b { display: grid; place-items: center; border-radius: 5px; background: #e9eff8; font-size: .58rem; }.day-pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.editor-grid.slots-4 .day-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }.editor-grid.slots-5 .day-pairs, .editor-grid.slots-6 .day-pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); }.editor-grid.slots-7 .day-pairs, .editor-grid.slots-8 .day-pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); }.editor-grid.slots-9 .day-pairs, .editor-grid.slots-10 .day-pairs, .editor-grid.slots-11 .day-pairs, .editor-grid.slots-12 .day-pairs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pair-editor { position: relative; min-width: 0; max-width: 100%; padding: 3px; overflow: hidden; border: 1px solid #cfd8e6; border-radius: 7px; background: #ffffff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); cursor: default; }.pair-editor.is-practical { background: #fff8ed; border-color: #eca953; }
.pair-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; min-width: 0; }.is-single-slot .pair-body { grid-template-columns: 1fr; }.is-practical .pair-body { display: flex; gap: 3px; width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; scrollbar-width: thin; scrollbar-color: rgba(29, 64, 122, .38) transparent; }.is-practical .pair-body::-webkit-scrollbar { height: 4px; }.is-practical .pair-body::-webkit-scrollbar-track { background: transparent; }.is-practical .pair-body::-webkit-scrollbar-thumb { background: rgba(29, 64, 122, .38); border-radius: 999px; }
.slot-editor { position: relative; min-width: 0; padding: 2px; border-radius: 5px; background: #f7f9fc; }.is-practical .pair-body[data-batches="1"] .slot-editor, .is-practical .pair-body[data-batches="2"] .slot-editor, .is-practical .pair-body[data-batches="3"] .slot-editor { flex: 1 1 0; min-width: 0; }.is-practical .pair-body:not([data-batches="1"]):not([data-batches="2"]):not([data-batches="3"]) .slot-editor { flex: 0 0 max(56px, calc((100% - 6px) / 3)); min-width: 56px; }.slot-editor select { display: block; width: 100%; min-height: 16px; height: 16px; padding: 0 2px; margin: 0 0 2px; border-radius: 4px; font-size: .47rem; line-height: 1; }
.slot-editor.is-locked { outline: 2px solid #7c3aed; background: #f5f0ff; box-shadow: 0 0 0 3px rgba(124,58,237,.14), inset 0 1px 0 rgba(255,255,255,.8); }.slot-editor.is-locked select.subject { padding-right: 14px; font-weight: 900; color: #4c1d95; }.fixed-lock-icon { position: absolute; z-index: 3; right: 3px; top: 2px; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 999px; background: #7c3aed; color: #fff; font-size: .42rem; line-height: 1; pointer-events: none; box-shadow: 0 2px 5px rgba(76,29,149,.22); }
.exchange-mode-banner { position: fixed; left: 50%; bottom: 10px; z-index: 1300; max-width: min(470px, calc(100vw - 24px)); padding: 5px 10px; border: 1px solid rgba(40,100,240,.22); border-radius: 999px; color: #173a76; background: rgba(255,255,255,.92); box-shadow: 0 10px 24px rgba(10,27,61,.16); font-size: .66rem; font-weight: 900; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; transition: .18s ease; backdrop-filter: blur(8px); }
.exchange-mode-banner.is-open { transform: translate(-50%, 0); opacity: 1; }
.editor-grid.exchange-active { cursor: crosshair; }
.editor-grid.exchange-auto-running { cursor: progress; }
.editor-grid.exchange-auto-running select,
.editor-grid.exchange-auto-running button { pointer-events: none; }
.editor-grid.exchange-subject .slot-editor .subject, .editor-grid.exchange-location .slot-editor .location { outline: 1px dashed rgba(40,100,240,.45); background-color: #f4f8ff; cursor: crosshair; }
.editor-grid.exchange-subject .slot-editor .location, .editor-grid.exchange-location .slot-editor .subject { opacity: .45; cursor: not-allowed; }
.slot-editor select.exchange-first { outline: 2px solid #7c3aed !important; box-shadow: 0 0 0 3px rgba(124,58,237,.18); background: #f5f0ff !important; }
.slot-editor.exchange-valid-target { background: #ecfdf5; outline: 2px solid #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.14), 0 8px 18px rgba(22,163,74,.12); cursor: pointer; }
.slot-editor.exchange-valid-target .subject, .slot-editor.exchange-valid-target .location { background: #f0fdf4 !important; border-color: rgba(22,163,74,.45); }
.slot-editor.exchange-level-source { background: #eff6ff; outline: 2px solid #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.18), 0 9px 20px rgba(37,99,235,.14); }
.slot-editor.exchange-best-target { outline-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.2), 0 10px 22px rgba(124,58,237,.16); }
.slot-editor.exchange-blocked-target { background: #fff1f2; outline: 2px solid #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.14); }
.slot-editor.exchange-conflict-origin { background: #fff7ed; outline: 2px solid #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.18), 0 8px 18px rgba(249,115,22,.12); animation: exchangeOrangeBlink .72s ease-in-out infinite; }
.slot-editor.exchange-level-source.exchange-conflict-origin { animation: exchangeActiveConflictBlink .82s ease-in-out infinite; }
.slot-editor.exchange-trace-option { background: #fff7ed; outline: 2px dashed #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.15); cursor: help; }
.slot-editor.exchange-trace-option .subject, .slot-editor.exchange-trace-option .location { background: #ffedd5 !important; border-color: rgba(249,115,22,.52); }
.timetable-card.exchange-level-class { position: relative; overflow: visible; outline: 2px solid rgba(249,115,22,.48); outline-offset: 2px; }
.timetable-card.exchange-current-class { outline: 3px solid #2563eb; box-shadow: 0 0 0 5px rgba(37,99,235,.13), 0 16px 34px rgba(37,99,235,.16); }
.timetable-card.exchange-current-class::after { content: "LEVEL " attr(data-exchange-level); position: absolute; top: -8px; right: 8px; z-index: 12; padding: 2px 7px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: white; background: linear-gradient(135deg, #2563eb, #7c3aed); font-size: .56rem; font-weight: 950; box-shadow: 0 6px 14px rgba(37,99,235,.25); animation: exchangeBadgePulse .82s ease-in-out infinite; }
.exchange-step-badge { position: absolute; left: -5px; top: -6px; z-index: 8; min-width: 16px; height: 16px; display: inline-grid; place-items: center; padding: 0 4px; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; color: white; background: linear-gradient(135deg, #2563eb, #7c3aed); font-size: .5rem; font-weight: 950; line-height: 1; box-shadow: 0 5px 12px rgba(10,27,61,.24); pointer-events: none; }
.exchange-step-badge.origin { background: linear-gradient(135deg, #f97316, #dc2626); animation: exchangeBadgePulse .72s ease-in-out infinite; }
.exchange-step-badge.active { background: linear-gradient(135deg, #fb923c, #7c2d12); }
.exchange-step-badge.target { right: -5px; left: auto; background: linear-gradient(135deg, #16a34a, #0891b2); animation: exchangeBadgePulse .72s ease-in-out infinite; }
.editor-grid.resolver-active .slot-editor { transition: box-shadow .16s ease, outline .16s ease, transform .16s ease, opacity .16s ease; }
.slot-editor.resolver-source { background: #eaf3ff; outline: 2px solid #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.14), 0 8px 18px rgba(37,99,235,.12); }
.slot-editor.resolver-conflict { background: #fff1f2; outline: 2px solid #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15), 0 8px 18px rgba(220,38,38,.12); animation: conflictPulse 1.15s ease-in-out infinite; }
.slot-editor.resolver-affected { background: #fff7ed; outline: 2px solid #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,.13); }
.slot-editor.resolver-suggested { position: relative; background: #ecfdf5; outline: 2px solid #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15), 0 9px 20px rgba(22,163,74,.13); cursor: pointer; }
.slot-editor.resolver-suggested:hover { transform: translateY(-1px); }
.slot-editor.resolver-best { outline: 3px solid #7c3aed; box-shadow: 0 0 0 4px rgba(124,58,237,.18), 0 10px 24px rgba(124,58,237,.16); }
.slot-editor.resolver-disabled { opacity: .38; filter: grayscale(.5); }
.resolver-badge { position: absolute; right: 2px; bottom: 2px; z-index: 2; max-width: calc(100% - 4px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 4px; border-radius: 999px; color: white; background: linear-gradient(135deg, #16a34a, #2563eb); font-size: .42rem; font-weight: 950; pointer-events: none; }
.resolver-panel { position: fixed; top: 74px; right: 12px; z-index: 1250; width: min(330px, calc(100vw - 24px)); max-height: calc(100vh - 92px); display: none; overflow: auto; padding: 9px; border: 1px solid rgba(124,58,237,.28); border-radius: 16px; color: var(--ink); background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.97)); box-shadow: 0 24px 62px rgba(10,27,61,.25); backdrop-filter: blur(10px); }
.resolver-panel.is-open { display: grid; gap: 8px; animation: popIn .14s ease-out; }
.resolver-panel header { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(166,189,220,.55); cursor: move; user-select: none; }
.resolver-panel.is-dragging { opacity: .94; cursor: grabbing; }
.resolver-panel header div { display: grid; gap: 1px; }.resolver-panel header strong { color: #173a76; font-size: .92rem; }.resolver-panel header small { color: var(--muted); font-size: .62rem; }
.resolver-panel header button { width: 25px; height: 25px; display: grid; place-items: center; border: 0; border-radius: 999px; color: var(--danger); background: rgba(216,59,73,.1); cursor: pointer; font-size: 1rem; }
.swap-resolver-panel { top: 58px; width: min(320px, calc(100vw - 24px)); }
.swap-auto-status { padding: 7px 9px; border-radius: 12px; color: #17406f; background: linear-gradient(135deg, #eaf3ff, #f8fbff); border: 1px solid rgba(64,126,236,.2); font-size: .72rem; font-weight: 800; }
.swap-auto-status.success { color: #07623f; background: linear-gradient(135deg, #e4f8ef, #f7fffb); border-color: rgba(16,185,129,.22); }
.swap-auto-status.failed { color: #8a4b04; background: linear-gradient(135deg, #fff4d7, #fffaf0); border-color: rgba(245,158,11,.28); }
.swap-guide-help { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px 6px; border-radius: 12px; background: rgba(241,245,249,.78); font-size: .58rem; font-weight: 900; color: #475569; }
.swap-guide-help span { display: inline-flex; align-items: center; gap: 3px; }
.swap-guide-help b { width: 7px; height: 7px; border-radius: 999px; box-shadow: 0 0 0 2px rgba(255,255,255,.75); }
.swap-guide-help .green-dot { background: #16a34a; }
.swap-guide-help .orange-dot { background: #f97316; }
.swap-guide-help .blue-dot { background: #2563eb; }
.swap-level-list { display: grid; gap: 5px; max-height: min(42vh, 330px); overflow: auto; scrollbar-width: thin; }
.swap-level-list button { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 7px; padding: 6px 7px; border: 1px solid rgba(166,189,220,.55); border-radius: 10px; color: #334155; background: #fff; text-align: left; cursor: pointer; }
.swap-level-list button.active { border-color: rgba(124,58,237,.55); background: linear-gradient(180deg, #f5f3ff, #eef5ff); box-shadow: 0 6px 16px rgba(124,58,237,.11); }
.swap-level-list button b { grid-row: 1 / span 2; align-self: center; color: #173a76; font-size: .66rem; }.swap-level-list button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .64rem; font-weight: 800; }.swap-level-list button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .56rem; }
.resolver-trigger { margin: 0; padding: 6px 8px; border-radius: 10px; color: #754500; background: #fff1cf; font-size: .68rem; font-weight: 800; }
.resolver-current { display: grid; gap: 3px; padding: 8px; border-radius: 12px; background: linear-gradient(180deg, #fff7f7, #fff1f2); box-shadow: inset 0 0 0 1px rgba(220,38,38,.13); }
.resolver-current.ok { background: linear-gradient(180deg, #f0fdf4, #dcfce7); box-shadow: inset 0 0 0 1px rgba(22,163,74,.16); }
.resolver-current b { color: #991b1b; font-size: .78rem; }.resolver-current.ok b { color: #166534; }.resolver-current span { color: #3f4f68; font-size: .68rem; line-height: 1.35; }.resolver-current small { color: var(--muted); font-size: .58rem; font-weight: 850; }
.resolver-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }.resolver-actions .btn { min-height: 25px; padding: 3px 6px; font-size: .62rem; }.resolver-actions .btn:first-child, .resolver-actions .btn.danger { grid-column: 1 / -1; }
.swap-resolver-panel { top: 52px; right: 10px; width: min(250px, calc(100vw - 18px)); max-height: min(48vh, 330px); padding: 6px; border-radius: 13px; box-shadow: 0 14px 34px rgba(10,27,61,.2); }
.swap-resolver-panel.is-open { gap: 5px; }
.swap-resolver-panel header { gap: 6px; padding-bottom: 4px; }
.swap-resolver-panel header strong { font-size: .76rem; }
.swap-resolver-panel header small { font-size: .5rem; }
.swap-resolver-panel header button { width: 22px; height: 22px; font-size: .9rem; }
.swap-resolver-panel .swap-auto-status { padding: 4px 6px; border-radius: 8px; font-size: .56rem; line-height: 1.25; }
.swap-resolver-panel .swap-guide-help { gap: 4px; padding: 3px 5px; border-radius: 9px; font-size: .5rem; }
.swap-resolver-panel .swap-guide-help b { width: 6px; height: 6px; }
.swap-resolver-panel .swap-level-list { gap: 3px; max-height: min(25vh, 150px); }
.swap-resolver-panel .swap-level-list button { grid-template-columns: 24px minmax(0, 1fr); gap: 1px 4px; padding: 4px 5px; border-radius: 8px; }
.swap-resolver-panel .swap-level-list button b { font-size: .54rem; }
.swap-resolver-panel .swap-level-list button span { font-size: .54rem; }
.swap-resolver-panel .swap-level-list button small { font-size: .48rem; }
.swap-resolver-panel .swap-actions-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.swap-resolver-panel .swap-actions-compact .btn { min-height: 22px; padding: 2px 4px; border-radius: 7px; font-size: .54rem; }
.swap-resolver-panel .swap-actions-compact .btn:first-child, .swap-resolver-panel .swap-actions-compact .btn.danger { grid-column: auto; }
.resolver-suggestions { display: grid; gap: 5px; }.resolver-suggestions button { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; padding: 5px 7px; border: 1px solid rgba(22,163,74,.22); border-radius: 999px; background: linear-gradient(180deg, #ffffff, #ecfdf5); color: #14532d; cursor: pointer; font-size: .64rem; font-weight: 850; text-align: left; }.resolver-suggestions button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(22,163,74,.14); }.resolver-suggestions button b { padding: 1px 5px; border-radius: 999px; color: white; background: linear-gradient(135deg, #16a34a, #7c3aed); font-size: .54rem; }.resolver-suggestions button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.resolver-suggestions small { color: var(--muted); font-size: .66rem; }
@keyframes conflictPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes exchangeOrangeBlink { 0%, 100% { outline-color: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,.14); } 50% { outline-color: #fb923c; box-shadow: 0 0 0 5px rgba(249,115,22,.26); } }
@keyframes exchangeGreenBlink { 0%, 100% { outline-color: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.14); } 50% { outline-color: #16a34a; box-shadow: 0 0 0 5px rgba(34,197,94,.28); } }
@keyframes exchangeBadgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes exchangeActiveConflictBlink { 0%, 100% { outline-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.2); } 50% { outline-color: #f97316; box-shadow: 0 0 0 6px rgba(249,115,22,.3); } }
.subject-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 3px; margin-top: 4px; padding: 4px; border: 1px solid rgba(166,189,220,.45); border-radius: 9px; background: linear-gradient(180deg, rgba(248,251,255,.95), rgba(239,246,255,.84)); box-shadow: inset 0 1px 0 #fff; overflow: visible; }
.subject-summary .load-chip { position: relative; min-width: 0; min-height: 19px; display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 2px 4px 2px 6px; border: 1px solid rgba(166,189,220,.38); border-radius: 7px; background: rgba(255,255,255,.78); color: #52657f; font-size: .5rem; font-weight: 900; line-height: 1; white-space: nowrap; overflow: hidden; box-shadow: 0 2px 5px rgba(35,49,77,.04); }
.subject-summary .load-chip::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 999px; background: #94a3b8; }
.subject-summary .load-chip b, .subject-summary .load-chip em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.subject-summary .load-chip b { color: #173a76; }
.subject-summary .load-chip em { flex: 0 0 auto; color: #64748b; font-size: .48rem; }
.subject-summary .load-chip.practical { background: rgba(255,248,237,.9); border-color: rgba(245,158,11,.25); }
.subject-summary .load-chip.practical::before { background: #f59e0b; }
.subject-summary .load-chip.complete::before { background: #16a34a; }
.subject-summary .load-chip.complete b, .subject-summary .load-chip.complete em { color: #166534; }
.subject-summary .load-chip.missing { background: #fff5f5; border-color: rgba(220,38,38,.18); }
.subject-summary .load-chip.missing::before { background: #dc2626; }
.subject-summary .load-chip.missing b, .subject-summary .load-chip.missing em { color: #b91c1c; }
.subject-summary .load-chip.over { background: #fff8e6; border-color: rgba(217,119,6,.22); }
.subject-summary .load-chip.over::before { background: #d97706; }
.subject-summary .load-chip.over b, .subject-summary .load-chip.over em { color: #92400e; }
.subject-summary .load-chip.neutral { opacity: .68; }
.density-4 .timetable-card > header { font-size: .7rem; }
.density-4 .editor-day { grid-template-columns: 18px 1fr; }
.density-4 .editor-day > b { font-size: .5rem; writing-mode: vertical-rl; transform: rotate(180deg); }
.density-4 .pair-editor { padding: 2px; }.density-4 .pair-body { gap: 2px; }.density-4 .slot-editor { padding: 1px; }.density-4 .slot-editor select { height: 14px; min-height: 14px; margin-bottom: 1px; font-size: .42rem; }
.density-4 .subject-summary { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 2px; padding: 3px; max-height: none; overflow: visible; }
.density-4 .subject-summary .load-chip { min-height: 17px; padding: 1px 3px 1px 5px; font-size: .45rem; }
.density-4 .subject-summary .load-chip em { font-size: .43rem; }
@media (max-width: 900px) {
    .view-home .site-header { align-items: flex-start; min-height: auto; padding: 14px 18px; }
    .view-home .site-header nav { justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; }
    .home-landing { padding: 10px; gap: 16px; }
    .home-hero { grid-template-columns: 1fr; min-height: auto; padding: 28px; }
    .home-hero-visual { min-height: 310px; }
    .home-schedule-board { width: min(560px, 100%); min-width: 0; }
    .home-float-stack { display: none; }
    .home-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-role-grid { grid-template-columns: 1fr; }
    .editor-grid.density-2, .editor-grid.density-3, .editor-grid.density-4 { grid-template-columns: 1fr; }.admin-layout { --admin-panel-height: auto; grid-template-columns: 1fr; }.form-panel, .data-panel { height: auto; }.data-panel { display: block; }.role-grid { grid-template-columns: 1fr; }.summary-grid { grid-template-columns: repeat(2, 1fr); }.resource-grid { margin-bottom: 6px; }.fixed-scroll-card { max-height: 150px; margin-bottom: 6px; }.teacher-load-grid { min-height: 94px; }.drilldown-toolbar { grid-template-columns: 1fr 1fr; }.drilldown-toolbar select { grid-column: 1 / -1; }.drilldown-toolbar .btn { white-space: normal; }
}
@media (max-width: 700px) {
    .site-header { align-items: flex-start; padding: 14px 18px; }.site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
    .page-heading, .selector-bar, .action-row { align-items: stretch; flex-direction: column; }.resource-grid { grid-template-columns: 1fr; }
    .editor-grid { display: block; }.timetable-card { margin-bottom: 12px; }.day-pairs { grid-template-columns: 1fr; }.editor-day { grid-template-columns: 30px 1fr; }
    .analyzer-head { grid-template-columns: minmax(0, 1fr) auto auto; }
    .demo-fill-form { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .view-home .brand small { display: none; }
    .view-home .brand-mark { width: 42px; height: 42px; }
    .home-hero { padding: 22px; border-radius: 20px; }
    .home-hero h1 { font-size: clamp(2.5rem, 15vw, 4rem); }
    .home-hero-actions { gap: 10px; }
    .home-btn { width: 100%; min-height: 50px; }
    .home-kpi-grid { grid-template-columns: 1fr; }
    .home-kpi { min-height: 104px; padding: 14px; }
    .home-role-card { grid-template-columns: 66px minmax(0, 1fr); padding: 22px; gap: 14px; }
    .home-role-icon { width: 62px; height: 62px; border-radius: 15px; }
    .home-role-card em { display: none; }
    .board-head, .board-row { grid-template-columns: 34px repeat(6, minmax(0, 1fr)); gap: 2px; }
    .board-head b, .board-row b { font-size: .52rem; }
    .board-row b, .board-row span { min-height: 24px; }
    .analyzer-head { grid-template-columns: minmax(0, 1fr) auto auto; }
    .analyzer-head small { display: none; }
    .demo-fill-form { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .admin-layout { --admin-panel-height: auto; gap: 0; }
    .form-panel { grid-template-rows: none; height: auto; overflow: visible; }
    .left-panel-card { overflow: visible; }
    .data-panel { height: auto; overflow: visible; }
    .fixed-scroll-card { max-height: none; }
    .chips { max-height: 150px; }
    .teacher-load-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); max-height: 150px; }
    .class-grid { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
}
@media (max-width: 560px) {
    .page-shell { width: min(100% - 10px, 1920px); margin-top: 3px; }
    .admin-layout { grid-template-columns: minmax(0, 1fr); }
    .compact-form, .compact-form.teacher-form, .compact-form.class-form, .subject-name-row, .subject-entry-row { grid-template-columns: 1fr; }
    #subject-teachers { grid-column: 1; flex-wrap: wrap; overflow: visible; }
    #subject-teachers select { min-width: min(100%, 130px); flex: 1 1 130px; }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chips-classroom, .chips-lab { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 150px; }
}

.analyzer-head { grid-template-columns: auto minmax(0, 1fr) auto auto minmax(620px, 1.15fr); }
.analyzer-actions { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto; gap: 5px; align-items: center; min-width: 0; white-space: nowrap; }
.analyzer-actions .btn { min-height: 22px; padding: 2px 8px; border-radius: 999px; font-size: .62rem; line-height: 1; }
.analyzer-actions .demo-fill-form, .analyzer-actions .copy-card-form { grid-template-columns: minmax(110px, 1fr) auto; min-width: 0; }
.analyzer-actions .demo-fill-form select, .analyzer-actions .copy-card-form select { min-width: 0; width: 100%; }

.institute-hero { grid-template-columns: clamp(124px, 13vw, 190px) minmax(0, 1fr) clamp(124px, 13vw, 190px); }
.logo-frame { width: clamp(116px, 12vw, 180px); border-radius: 20px; }
.institute-sheet { position: relative; overflow: hidden; border-color: #f59e0b; background:
    radial-gradient(circle at 10% 0%, rgba(245,158,11,.15), transparent 28%),
    radial-gradient(circle at 90% 5%, rgba(7,24,77,.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 42%, #fff8ed 100%);
}
.institute-sheet::before,
.institute-sheet::after { content: ""; position: absolute; pointer-events: none; z-index: 0; }
.institute-sheet::before { inset: 10px; border: 1px solid rgba(216,131,19,.28); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.65); }
.institute-sheet::after { left: 50%; top: 9px; width: min(520px, 56%); height: 2px; background: linear-gradient(90deg, transparent, #d88313, transparent); transform: translateX(-50%); opacity: .85; }
.institute-hero,
.institute-info-panel,
.institute-table-title,
.institute-orientation-bar,
.institute-theme-bar,
.institute-table-wrap,
.institute-bottom-panels,
.institute-note { position: relative; z-index: 1; }
.institute-info-panel { grid-template-columns: repeat(5, minmax(100px, 1fr)); padding: 9px; border-color: rgba(216,131,19,.24); background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,249,239,.82)); box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(7,24,77,.07); }
.institute-info-panel > div { display: none; }
.institute-info-panel label { justify-items: center; text-align: center; letter-spacing: .045em; }
.institute-info-panel input { text-align: center; border-color: rgba(216,131,19,.34); background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: inset 0 1px 0 #fff; }
.institute-table-title { display: grid; place-items: center; margin: -1px 0 0; }
.institute-table-title input { width: min(560px, 92%); min-height: 38px; padding: 4px 20px; border: 0; border-radius: 999px; color: #07184d; background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, transparent, #d88313, #07184d, #d88313, transparent) border-box;
    border: 2px solid transparent; box-shadow: 0 10px 24px rgba(7,24,77,.08), inset 0 1px 0 #fff; text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: clamp(1rem, 2vw, 1.75rem); font-weight: 950; }
.institute-orientation-bar { display: flex; justify-content: flex-end; gap: 5px; margin: -2px 0; }
.institute-orientation-bar button { min-height: 24px; padding: 2px 10px; border: 1px solid rgba(7,24,77,.18); border-radius: 999px; color: #07184d; background: #fff; font-size: .66rem; font-weight: 950; cursor: pointer; }
.institute-orientation-bar button.active { color: #fff; border-color: #07184d; background: linear-gradient(135deg, #082466, #2846a5); box-shadow: 0 6px 14px rgba(7,24,77,.16); }
.institute-theme-bar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; align-items: center; margin: -3px 0 1px; }
.institute-theme-bar button { min-width: 0; min-height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 2px 5px; border: 1px solid rgba(7,24,77,.14); border-radius: 999px; color: var(--inst-primary, #07184d); background: rgba(255,255,255,.86); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 10px rgba(7,24,77,.05); font-size: clamp(.45rem, .62vw, .62rem); font-weight: 950; white-space: nowrap; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.institute-theme-bar button span { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 999px; background: linear-gradient(135deg, var(--inst-primary, #07184d), var(--inst-accent, #d88313)); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.institute-theme-bar button:hover { transform: translateY(-1px); }
.institute-theme-bar button.active { color: #fff; border-color: color-mix(in srgb, var(--inst-accent, #d88313), #fff 28%); background: linear-gradient(135deg, var(--inst-primary, #07184d), var(--inst-secondary, #2846a5)); box-shadow: 0 8px 16px color-mix(in srgb, var(--inst-primary, #07184d), transparent 78%); }
.institute-theme-bar button.active span { background: var(--inst-accent, #d88313); }
.orientation-table[hidden] { display: none !important; }
.slot-time-head input.time-text { width: 72px; min-height: 24px; font-size: .66rem; }
.break-time-inputs input.time-text { width: 62px; min-height: 23px; font-size: .62rem; }
.break-time-head { width: 158px; min-width: 158px; overflow: hidden; }
.grid-break-editor { gap: 5px; padding: 13px 4px 4px; }
.grid-break-editor .break-label-input { box-sizing: border-box; width: 100%; min-height: 42px; max-height: 54px; padding: 4px 5px; border: 1px solid rgba(216,131,19,.38); border-radius: 8px; color: #0e5b26; background: linear-gradient(180deg, #ffffff, #f3fff7); font-size: .62rem; font-weight: 950; line-height: 1.08; text-align: center; text-transform: uppercase; white-space: normal; overflow-wrap: anywhere; resize: none; overflow: hidden; }
.break-time-inputs { gap: 3px; }
.visual-break-cell { position: relative; width: 86px; min-width: 86px; padding: 0 !important; }
.visual-break-cell span { min-height: 100%; display: grid; place-items: center; margin: auto; writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .12em; font-size: .72rem; font-weight: 950; line-height: 1.05; }
.visual-break-cell b { display: none; }
.institute-table-wrap { border-color: color-mix(in srgb, var(--inst-primary, #07184d), transparent 72%); box-shadow: 0 12px 26px rgba(7,24,77,.09); }
.institute-visual-table thead th { background: linear-gradient(180deg, var(--inst-secondary, #09296f), var(--inst-primary, #061449)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.empty-slot-card { min-height: 56px; border-color: rgba(7,24,77,.16); background: linear-gradient(135deg, #ffffff, #f7fbff); box-shadow: inset 0 1px 0 #fff; }
.institute-vertical-table { min-width: 920px; }
.institute-vertical-table .day-name-cell { text-align: center; background: linear-gradient(180deg, var(--inst-secondary, #082466), var(--inst-primary, #06184f)); color: #fff; }
.institute-vertical-table .slot-time-head { width: 168px; min-width: 168px; }
.institute-vertical-table .vertical-break-row .visual-break-cell { height: 42px; }
.institute-vertical-table .vertical-break-row .visual-break-cell span { writing-mode: horizontal-tb; letter-spacing: .08em; }

@media (max-width: 900px) {
    .analyzer-head { grid-template-columns: auto minmax(0, 1fr) auto auto; }
    .analyzer-actions { grid-column: 1 / -1; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr); }
}
@media (max-width: 620px) {
    .analyzer-actions { grid-template-columns: 1fr; white-space: normal; }
    .institute-hero { grid-template-columns: 1fr; justify-items: center; }
    .institute-info-panel { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
    .tutorial-hero { grid-template-columns: 1fr; }
    .tutorial-orbit { min-height: 240px; max-width: 420px; width: 100%; justify-self: center; }
    .tutorial-layout { grid-template-columns: 1fr; }
    .tutorial-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
    .tutorial-nav strong { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
    .tutorial-home-strip { align-items: stretch; flex-direction: column; }
    .tutorial-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tutorial-workflow, .tutorial-step-list { grid-template-columns: 1fr; }
    .tutorial-feature-card { grid-template-columns: 1fr; }
    .tutorial-feature-number { position: static; width: 48px; height: 48px; border-radius: 16px; }
}
@media (max-width: 560px) {
    .tutorial-page { padding: 6px; }
    .tutorial-hero { min-height: auto; padding: 22px; border-radius: 22px; }
    .tutorial-hero h1 { font-size: clamp(2rem, 13vw, 3.4rem); }
    .tutorial-orbit { min-height: 210px; border-radius: 28px; }
    .tutorial-orbit strong { width: 92px; height: 92px; border-radius: 26px; font-size: 1.55rem; }
    .tutorial-orbit span { min-width: 62px; padding: 5px 7px; font-size: .62rem; }
    .tutorial-highlight-grid, .tutorial-nav { grid-template-columns: 1fr; }
    .tutorial-feature-card, .tutorial-workflow-card, .tutorial-final-card { border-radius: 20px; }
    .tutorial-step { grid-template-columns: 26px minmax(0, 1fr); padding: 8px; }
    .tutorial-step span { height: 26px; border-radius: 9px; }
    .tutorial-tip { grid-template-columns: 1fr; }
}

.institute-form { gap: 8px; }
.institute-sheet { gap: 7px; padding: clamp(7px, .9vw, 14px); }
.institute-table-wrap { border-radius: 12px; background: linear-gradient(180deg, #ffffff, #f8fbff); }
.institute-visual-table th,
.institute-visual-table td { padding: 2px 3px; }
.institute-visual-table thead th { padding-top: 4px; padding-bottom: 9px; }
.day-time-head { width: 96px; font-size: .7rem; letter-spacing: .04em; }
.day-name-cell { width: 96px; font-size: .66rem; font-weight: 950; }
.slot-time-head { min-width: 92px; padding: 3px 4px 11px !important; }
.slot-time-row { gap: 2px; }
.slot-time-head input.time-text { width: 64px; min-height: 21px; padding: 1px 4px; border-color: rgba(255,255,255,.46); border-radius: 7px; font-size: .6rem; box-shadow: inset 0 1px 0 #fff, 0 2px 7px rgba(7,24,77,.08); }
.break-time-inputs input.time-text { width: 56px; min-height: 20px; padding: 1px 3px; border-radius: 7px; font-size: .57rem; box-shadow: inset 0 1px 0 #fff; }
.slot-time-head b { bottom: -11px; width: 20px; height: 20px; font-size: .66rem; box-shadow: 0 4px 10px rgba(7,24,77,.22); }
.grid-break-add { right: 4px; bottom: 4px; width: 16px; height: 16px; font-size: .66rem; }
.empty-slot-card { min-height: 38px; border-radius: 8px; background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,251,255,.94)),
    radial-gradient(circle at 100% 0%, rgba(216,131,19,.08), transparent 34%);
}
.break-time-head { width: 138px; min-width: 138px; }
.grid-break-editor { gap: 3px; padding: 11px 3px 3px; }
.grid-break-editor .break-label-input { min-height: 31px; max-height: 38px; padding: 3px 5px; border-radius: 7px; font-size: .56rem; line-height: 1.05; box-shadow: inset 0 1px 0 #fff, 0 2px 7px rgba(14,91,38,.06); }
.break-time-inputs { gap: 2px; }
.visual-break-cell { width: 72px; min-width: 72px; background: linear-gradient(180deg, rgba(255,251,244,.94), rgba(255,255,255,.98)); }
.visual-break-cell span { font-size: .66rem; letter-spacing: .1em; }
.institute-vertical-table { min-width: 860px; }
.institute-vertical-table .slot-time-head { width: 142px; min-width: 142px; }
.institute-vertical-table .vertical-break-row .visual-break-cell { height: 34px; }

.orientation-table.active .visual-break-cell span {
    position: absolute;
    inset: 6px 2px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.institute-vertical-table.orientation-table.active .vertical-break-row .visual-break-cell span {
    position: static;
    height: 100%;
    min-height: 0;
    writing-mode: horizontal-tb;
}
.orientation-table.active .grid-break-editor { gap: 2px; padding: 8px 3px 2px; }
.orientation-table.active .grid-break-editor .break-label-input { min-height: 24px; max-height: 30px; padding: 2px 4px; font-size: .52rem; line-height: 1.02; }
.orientation-table.active .break-time-inputs input.time-text { width: 53px; min-height: 18px; font-size: .53rem; }
.orientation-table.active .slot-time-head { padding: 2px 3px 9px !important; }
.orientation-table.active .slot-time-head input.time-text { min-height: 20px; }

.institute-table-wrap { overflow: hidden; }
.institute-visual-table.orientation-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}
.orientation-table.active th,
.orientation-table.active td {
    min-width: 0;
    overflow: hidden;
}
.orientation-table.active .slot-time-row,
.orientation-table.active .break-time-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-width: 0;
}
.orientation-table.active .slot-time-head input.time-text,
.orientation-table.active .break-time-inputs input.time-text {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.orientation-table.active .day-time-head,
.orientation-table.active .day-name-cell {
    width: auto;
}
.orientation-table.active .break-time-head,
.orientation-table.active .slot-time-head,
.orientation-table.active .visual-break-cell {
    width: auto;
    min-width: 0;
}
.institute-page {
    --inst-primary: #07184d;
    --inst-secondary: #2846a5;
    --inst-accent: #d88313;
    --inst-soft: #fff8ed;
    --inst-break: #0e5b26;
    --inst-ink: #07184d;
}
.institute-page[data-institute-color-theme="royal"] { --inst-primary: #33106b; --inst-secondary: #6d28d9; --inst-accent: #fbbf24; --inst-soft: #f6f0ff; --inst-break: #7c2d12; }
.institute-page[data-institute-color-theme="emerald"] { --inst-primary: #064e3b; --inst-secondary: #059669; --inst-accent: #a3e635; --inst-soft: #ecfdf5; --inst-break: #14532d; }
.institute-page[data-institute-color-theme="sunset"] { --inst-primary: #7c2d12; --inst-secondary: #ea580c; --inst-accent: #ffd166; --inst-soft: #fff7ed; --inst-break: #9a3412; }
.institute-page[data-institute-color-theme="sky"] { --inst-primary: #075985; --inst-secondary: #0284c7; --inst-accent: #7dd3fc; --inst-soft: #eff6ff; --inst-break: #155e75; }
.institute-page[data-institute-color-theme="rose"] { --inst-primary: #881337; --inst-secondary: #e11d48; --inst-accent: #fda4af; --inst-soft: #fff1f2; --inst-break: #9f1239; }
.institute-page[data-institute-color-theme="slate"] { --inst-primary: #0f172a; --inst-secondary: #475569; --inst-accent: #38bdf8; --inst-soft: #f8fafc; --inst-break: #334155; }
.institute-page[data-institute-color-theme="gold"] { --inst-primary: #3b2f08; --inst-secondary: #a16207; --inst-accent: #fde047; --inst-soft: #fefce8; --inst-break: #854d0e; }
.institute-page[data-institute-color-theme="teal"] { --inst-primary: #134e4a; --inst-secondary: #0f766e; --inst-accent: #5eead4; --inst-soft: #f0fdfa; --inst-break: #115e59; }
.institute-page[data-institute-color-theme="mono"] { --inst-primary: #111827; --inst-secondary: #374151; --inst-accent: #9ca3af; --inst-soft: #f9fafb; --inst-break: #1f2937; }
.institute-page[data-institute-color-theme="white"] { --inst-primary: #111827; --inst-secondary: #4b5563; --inst-accent: #cbd5e1; --inst-soft: #ffffff; --inst-break: #374151; --inst-ink: #111827; }
.institute-page[data-institute-color-theme] { color: var(--inst-ink); }
.institute-page[data-institute-color-theme] .institute-sheet {
    border-color: var(--inst-accent);
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--inst-accent), transparent 82%), transparent 28%),
        radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--inst-primary), transparent 88%), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 42%, var(--inst-soft) 100%);
}
.institute-page[data-institute-color-theme] .institute-sheet::after {
    background: linear-gradient(90deg, transparent, var(--inst-accent), transparent);
}
.institute-page[data-institute-color-theme] .institute-table-title input {
    color: var(--inst-primary);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(90deg, transparent, var(--inst-accent), var(--inst-primary), var(--inst-accent), transparent) border-box;
}
.institute-page[data-institute-color-theme] .institute-orientation-bar button.active,
.institute-page[data-institute-color-theme] .institute-abbreviation-card h3 {
    border-color: var(--inst-primary);
    background: linear-gradient(135deg, var(--inst-primary), var(--inst-secondary));
}
.slot-number-head,
.slot-number-cell,
.slot-number-axis,
.break-number-spacer,
.break-axis-cell,
.day-time-subhead {
    text-align: center;
    text-transform: uppercase;
    font-weight: 950;
}
.slot-number-head,
.slot-number-cell {
    color: #fff;
    background: linear-gradient(135deg, var(--inst-primary), var(--inst-secondary)) !important;
}
.slot-number-head {
    height: 22px;
    padding: 1px 2px !important;
    font-size: .72rem;
    letter-spacing: .04em;
}
.break-number-spacer {
    height: 22px;
    padding: 1px 2px !important;
    color: var(--inst-break) !important;
    background: linear-gradient(180deg, var(--inst-soft), #fff) !important;
    font-size: .46rem;
    letter-spacing: .08em;
}
.day-time-subhead {
    color: #fff;
    background: linear-gradient(180deg, var(--inst-secondary), var(--inst-primary)) !important;
    font-size: .62rem;
}
.slot-number-axis,
.slot-number-cell {
    width: 44px !important;
    min-width: 44px !important;
    font-size: .7rem;
}
.break-axis-cell {
    color: var(--inst-break) !important;
    background: linear-gradient(180deg, var(--inst-soft), #fff) !important;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: .46rem;
    letter-spacing: .06em;
}
.day-name-cell {
    text-align: center !important;
    vertical-align: middle;
}
.orientation-table.active .slot-time-head {
    padding-bottom: 3px !important;
}
.orientation-table.active .grid-break-add {
    bottom: 2px;
}
.orientation-table.active .slot-time-head b {
    display: none;
}
.institute-page[data-institute-color-theme] .break-time-head {
    color: var(--inst-break) !important;
    background: linear-gradient(180deg, #fffdf9, var(--inst-soft)) !important;
    border-color: color-mix(in srgb, var(--inst-accent), #fff 20%);
}
.institute-page[data-institute-color-theme] .grid-break-editor .break-label-input,
.institute-page[data-institute-color-theme] .visual-break-cell {
    color: var(--inst-break);
}
.institute-page[data-institute-color-theme] .visual-break-cell {
    background: linear-gradient(180deg, var(--inst-soft), rgba(255,255,255,.98));
}
.institute-page[data-institute-color-theme="white"] .institute-sheet,
.institute-page[data-institute-color-theme="white"] .institute-hero,
.institute-page[data-institute-color-theme="white"] .institute-info-panel,
.institute-page[data-institute-color-theme="white"] .institute-abbreviation-card,
.institute-page[data-institute-color-theme="white"] .institute-table-wrap {
    background: #fff !important;
}

.orientation-table.active.is-dense .slot-time-head input.time-text { font-size: .54rem; padding-inline: 2px; }
.orientation-table.active.is-dense .break-time-inputs input.time-text { font-size: .5rem; padding-inline: 2px; }
.orientation-table.active.is-dense .grid-break-editor .break-label-input { min-height: 21px; max-height: 25px; font-size: .48rem; padding: 1px 3px; }
.orientation-table.active.is-dense .slot-time-head { padding-inline: 2px !important; }
.orientation-table.active.is-dense .day-time-head,
.orientation-table.active.is-dense .day-name-cell { font-size: .58rem; }
.orientation-table.active.is-dense .visual-break-cell span { font-size: .58rem; letter-spacing: .07em; }

.orientation-table.active.is-tight th,
.orientation-table.active.is-tight td { padding: 1px 2px; }
.orientation-table.active.is-tight thead th { padding-top: 2px; padding-bottom: 7px; }
.orientation-table.active.is-tight .slot-time-row,
.orientation-table.active.is-tight .break-time-inputs { gap: 1px; }
.orientation-table.active.is-tight .slot-time-head input.time-text { min-height: 17px; font-size: .48rem; padding: 0 1px; border-radius: 5px; }
.orientation-table.active.is-tight .break-time-inputs input.time-text { min-height: 16px; font-size: .45rem; padding: 0 1px; border-radius: 5px; }
.orientation-table.active.is-tight .slot-time-head b { width: 17px; height: 17px; bottom: -9px; font-size: .56rem; }
.orientation-table.active.is-tight .grid-break-add { width: 14px; height: 14px; right: 2px; bottom: 3px; font-size: .58rem; }
.orientation-table.active.is-tight .grid-break-editor { gap: 1px; padding: 7px 2px 1px; }
.orientation-table.active.is-tight .grid-break-editor .break-label-input { min-height: 18px; max-height: 22px; font-size: .42rem; padding: 1px 2px; border-radius: 5px; }
.orientation-table.active.is-tight .empty-slot-card { min-height: 33px; border-radius: 6px; }
.orientation-table.active.is-tight .day-time-head,
.orientation-table.active.is-tight .day-name-cell { font-size: .52rem; letter-spacing: .01em; }
.orientation-table.active.is-tight .visual-break-cell span { inset: 4px 1px; font-size: .5rem; letter-spacing: .04em; }

.orientation-table.active.is-ultra-tight th,
.orientation-table.active.is-ultra-tight td { padding: 1px; }
.orientation-table.active.is-ultra-tight thead th { padding-top: 1px; padding-bottom: 6px; }
.orientation-table.active.is-ultra-tight .slot-time-row,
.orientation-table.active.is-ultra-tight .break-time-inputs { gap: 0; }
.orientation-table.active.is-ultra-tight .slot-time-head input.time-text,
.orientation-table.active.is-ultra-tight .break-time-inputs input.time-text {
    min-height: 15px;
    padding: 0;
    border-radius: 4px;
    font-size: .38rem;
    letter-spacing: -.02em;
}
.orientation-table.active.is-ultra-tight .slot-time-head span,
.orientation-table.active.is-ultra-tight .break-time-inputs span { font-size: .42rem; }
.orientation-table.active.is-ultra-tight .slot-time-head b { width: 15px; height: 15px; bottom: -8px; font-size: .48rem; }
.orientation-table.active.is-ultra-tight .grid-break-add { width: 13px; height: 13px; right: 1px; bottom: 2px; font-size: .5rem; }
.orientation-table.active.is-ultra-tight .grid-break-editor { gap: 1px; padding: 6px 1px 1px; }
.orientation-table.active.is-ultra-tight .grid-break-editor .break-label-input { min-height: 16px; max-height: 18px; padding: 0 1px; border-radius: 4px; font-size: .36rem; line-height: 1; }
.orientation-table.active.is-ultra-tight .empty-slot-card { min-height: 30px; border-radius: 5px; }
.orientation-table.active.is-ultra-tight .day-time-head,
.orientation-table.active.is-ultra-tight .day-name-cell { font-size: .46rem; letter-spacing: 0; }
.orientation-table.active.is-ultra-tight .visual-break-cell span { inset: 3px 1px; font-size: .44rem; letter-spacing: .02em; }

.public-template-table.template-vertical .slot-number-axis,
.public-template-table.template-vertical .slot-number-cell,
.public-template-table.template-vertical .day-time-head,
.public-template-table.template-vertical .slot-time-head,
.public-template-table.template-vertical .day-name-cell {
    color: #fff !important;
    background: linear-gradient(180deg, var(--tt-secondary, #09296f), var(--tt-primary, #061449)) !important;
}

.public-template-table.template-vertical .slot-time-head .public-slot-time,
.public-template-table.template-vertical .slot-time-head .public-slot-time span,
.public-template-table.template-vertical .day-name-cell {
    color: #fff !important;
}

.public-template-table.template-vertical .break-axis-cell,
.public-template-table.template-vertical .break-time-head,
.public-template-table.template-vertical .vertical-break-row .visual-break-cell {
    color: var(--tt-break, #0e5b26) !important;
    background: linear-gradient(180deg, var(--tt-soft, #fff8ed), #fff) !important;
}

.public-template-table.template-vertical .break-time-head .public-break-time,
.public-template-table.template-vertical .break-time-head .public-break-time span,
.public-template-table.template-vertical .break-time-head .public-break-time small {
    color: var(--tt-break, #0e5b26) !important;
}

.public-template-table.template-horizontal .day-time-head,
.public-template-table.template-horizontal .day-time-subhead,
.public-template-table.template-horizontal .slot-number-head,
.public-template-table.template-horizontal .slot-time-head {
    color: #fff !important;
    background: linear-gradient(180deg, var(--tt-secondary, #09296f), var(--tt-primary, #061449)) !important;
}

.public-template-table.template-horizontal .slot-time-head .public-slot-time,
.public-template-table.template-horizontal .slot-time-head .public-slot-time span,
.public-template-table.template-horizontal .day-time-head,
.public-template-table.template-horizontal .day-time-subhead {
    color: #fff !important;
}

.public-template-table.template-horizontal .day-name-cell {
    color: var(--tt-primary, #061449) !important;
    background: linear-gradient(180deg, #fff, var(--tt-soft, #fff8ed)) !important;
}

.public-template-table.template-horizontal .break-number-spacer,
.public-template-table.template-horizontal .break-time-head,
.public-template-table.template-horizontal .visual-break-cell {
    color: var(--tt-break, #0e5b26) !important;
    background: linear-gradient(180deg, var(--tt-soft, #fff8ed), #fff) !important;
}

.public-template-table.template-horizontal .break-time-head .public-break-time,
.public-template-table.template-horizontal .break-time-head .public-break-time span,
.public-template-table.template-horizontal .break-time-head .public-break-time small,
.public-template-table.template-horizontal .visual-break-cell span {
    color: var(--tt-break, #0e5b26) !important;
}

.download-options {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.download-options-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 80;
    min-width: 148px;
    padding: 6px;
    border: 1px solid rgba(99,102,241,.24);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15,23,42,.16);
}

.download-options-menu a,
.download-options-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #172554;
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.download-options-menu a:hover,
.download-options-menu button:hover {
    background: #eef2ff;
}

/* Incharge access final layout: isolated from admin compact-form rules. */
.incharge-access-page {
    width: min(100%, 100vw);
    padding: clamp(8px, 1vw, 14px);
}
.incharge-access-page .access-hero {
    min-height: 148px;
    padding: clamp(18px, 2.4vw, 34px);
}
.incharge-access-page .access-hero h1 {
    font-size: clamp(2.1rem, 3.4vw, 3.7rem);
}
.incharge-access-page .access-hero .btn {
    min-width: max-content;
    min-height: 36px;
    padding: 8px 14px;
    color: #172554;
    background: #fff;
    border: 0;
}
.incharge-access-grid {
    grid-template-columns: minmax(320px, .86fr) minmax(520px, 1.14fr);
    gap: clamp(12px, 1.35vw, 18px);
    align-items: start;
}
.incharge-access-page .login-panel {
    align-self: start;
}
.incharge-login-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
}
.incharge-login-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #172554;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.incharge-login-form input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid rgba(99,102,241,.32);
    border-radius: 13px;
    background: #fff;
    font: inherit;
    font-weight: 850;
}
.incharge-login-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.13);
}
.incharge-login-form .btn {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    white-space: nowrap;
    font-size: .86rem;
}
.incharge-access-page .register-panel {
    min-width: 0;
}
.incharge-access-page .register-panel .incharge-register-form {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}
.incharge-access-page .register-panel .incharge-register-form label {
    min-height: 94px;
}
.incharge-access-page .register-panel input,
.incharge-access-page .register-panel textarea {
    font-size: .86rem;
}
@media (max-width: 980px) {
    .incharge-access-grid,
    .incharge-access-page .register-panel .incharge-register-form {
        grid-template-columns: 1fr;
    }
    .incharge-access-page .access-hero {
        display: grid;
        justify-items: start;
    }
}

/* Compact one-screen incharge access page. */
.view-incharge_access {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    background: #f8fbff;
}
.view-incharge_access .page-shell {
    height: calc(100svh - 42px);
    min-height: 0;
    margin: 0 auto;
    padding: 4px 6px;
    overflow: hidden;
}
.view-incharge_access .site-footer {
    display: none;
}
.view-incharge_access .site-header {
    min-height: 38px;
    padding-top: 3px;
    padding-bottom: 3px;
}
.view-incharge_access .brand {
    min-height: 30px;
}
.view-incharge_access .brand-mark {
    width: 30px;
    height: 30px;
}
.incharge-access-page {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    padding: 0;
}
.incharge-access-page .access-hero {
    min-height: 78px;
    padding: 10px 18px;
    border-radius: 18px;
}
.incharge-access-page .access-hero h1 {
    margin: 1px 0 4px;
    font-size: clamp(1.45rem, 2.1vw, 2.25rem);
    letter-spacing: -.04em;
}
.incharge-access-page .access-hero p {
    max-width: 760px;
    font-size: .82rem;
    line-height: 1.25;
}
.incharge-access-page .eyebrow {
    font-size: .62rem;
    letter-spacing: .18em;
}
.incharge-access-page .access-hero .btn {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: .72rem;
}
.incharge-access-grid {
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(270px, .82fr) minmax(520px, 1.18fr);
    gap: 8px;
}
.incharge-access-page .access-panel {
    min-height: 0;
    height: 100%;
    padding: 10px;
    border-radius: 18px;
    overflow: hidden;
}
.incharge-access-page .access-panel header {
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
}
.incharge-access-page .access-panel h2 {
    font-size: .98rem;
}
.incharge-access-page .access-panel small {
    font-size: .72rem;
}
.incharge-login-form {
    gap: 8px;
}
.incharge-login-form label {
    gap: 4px;
    font-size: .68rem;
}
.incharge-login-form input {
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: .78rem;
}
.incharge-login-form .btn {
    min-height: 32px;
    padding: 6px 10px;
    font-size: .74rem;
}
.incharge-access-page .register-panel .incharge-register-form {
    height: calc(100% - 38px);
    min-height: 0;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    grid-auto-rows: minmax(54px, auto);
    gap: 7px 9px;
    overflow: hidden;
}
.incharge-access-page .register-panel .incharge-register-form label {
    min-height: 0;
    padding: 5px 8px;
    gap: 3px;
    border-radius: 14px;
    font-size: .66rem;
}
.incharge-access-page .register-panel .incharge-register-form input {
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: .76rem;
}
.incharge-access-page .register-panel .incharge-register-form textarea {
    min-height: 34px;
    height: 34px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: .76rem;
    resize: none;
}
.incharge-access-page .field-error {
    min-height: 10px;
    font-size: .58rem;
}
.incharge-access-page .register-submit-row {
    min-height: 38px;
    padding: 6px 8px;
    border-radius: 14px;
}
.incharge-access-page .register-submit-row .btn {
    min-height: 30px;
    padding: 5px 10px;
    font-size: .7rem;
}
.incharge-access-page .form-validity-note {
    font-size: .68rem;
}
@media (max-height: 760px) and (min-width: 981px) {
    .incharge-access-page .access-hero { min-height: 66px; padding: 8px 16px; }
    .incharge-access-page .access-hero h1 { font-size: clamp(1.3rem, 1.8vw, 1.8rem); }
    .incharge-access-page .access-hero p { font-size: .74rem; }
    .incharge-access-page .register-panel .incharge-register-form { gap: 5px 7px; }
    .incharge-access-page .register-panel .incharge-register-form label { padding: 4px 7px; }
    .incharge-access-page .register-panel .incharge-register-form input { min-height: 27px; }
    .incharge-access-page .register-panel .incharge-register-form textarea { min-height: 28px; height: 28px; }
}
@media (max-width: 980px) {
    .view-incharge_access {
        height: auto;
        overflow: auto;
    }
    .view-incharge_access .page-shell {
        height: auto;
        overflow: visible;
    }
    .view-incharge_access .site-footer {
        display: flex;
    }
    .incharge-access-page,
    .incharge-access-grid,
    .incharge-access-page .access-panel,
    .incharge-access-page .register-panel .incharge-register-form {
        height: auto;
        overflow: visible;
    }
}

/* Incharge access stability: prevent fixed-height cards from crushing fields on laptop/browser zoom changes. */
.view-incharge_access {
    min-height: 100svh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}
.view-incharge_access .page-shell {
    min-height: calc(100svh - 42px);
    height: auto;
    overflow: visible;
}
.incharge-access-page {
    min-height: 0;
    height: auto;
}
.incharge-access-grid {
    height: auto;
    align-items: start;
}
.incharge-access-page .access-panel {
    height: auto;
    overflow: visible;
}
.incharge-access-page .register-panel .incharge-register-form {
    height: auto;
    overflow: visible;
    align-items: start;
}
.incharge-access-page .login-panel {
    align-self: start;
}
.incharge-access-page .login-panel .access-panel,
.incharge-login-form {
    min-width: 0;
}
@media (min-width: 981px) {
    .incharge-access-page .register-panel .incharge-register-form {
        grid-template-columns: repeat(2, minmax(185px, 1fr));
        gap: 4px 6px;
    }
    .incharge-access-page .register-panel .incharge-register-form label {
        min-height: 46px;
        padding: 3px 6px;
        gap: 2px;
        border-radius: 10px;
        font-size: .58rem;
    }
    .incharge-access-page .register-panel .incharge-register-form input {
        min-height: 24px;
        padding: 3px 6px;
        border-radius: 8px;
        font-size: .68rem;
    }
    .incharge-access-page .register-panel .incharge-register-form textarea {
        min-height: 26px;
        height: 26px;
        padding: 3px 6px;
        border-radius: 8px;
        font-size: .68rem;
    }
    .incharge-access-page .field-error {
        min-height: 7px;
        font-size: .5rem;
        line-height: 1.05;
    }
    .incharge-access-page .register-submit-row {
        min-height: 30px;
        padding: 4px 6px;
        border-radius: 10px;
    }
    .incharge-access-page .register-submit-row .btn {
        min-height: 25px;
        padding: 3px 8px;
        font-size: .64rem;
    }
    .incharge-access-page .access-hero {
        min-height: 70px;
    }
}

/* Modern homepage: one-screen fit with hard overflow guards. */
.view-home {
    --home-bg-0: #080b1f;
    --home-bg-1: #0d1240;
    --home-indigo: #4338ca;
    --home-violet: #7c3aed;
    --home-violet-2: #9061f9;
    --home-cyan: #22d3ee;
    --home-mint: #5eead4;
    --home-ink: #f4f6ff;
    --home-ink-dim: rgba(244,246,255,.72);
    --home-glass: rgba(255,255,255,.07);
    --home-glass-line: rgba(255,255,255,.15);
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(1100px 700px at 78% 12%, rgba(124,58,237,.48), transparent 60%),
        radial-gradient(900px 600px at 8% 85%, rgba(67,56,202,.38), transparent 65%),
        linear-gradient(160deg, var(--home-bg-0) 0%, var(--home-bg-1) 55%, #1a0f4d 100%);
    color: var(--home-ink);
}
.view-home .page-shell {
    width: 100%;
    height: calc(100svh - 28px);
    min-height: 0;
    margin: 0;
    padding: clamp(5px, .9vw, 10px) clamp(10px, 1.7vw, 28px) 4px;
    overflow: hidden;
    background: transparent;
}
.view-home .site-footer {
    min-height: 28px;
    height: 28px;
    padding: 0 12px;
    overflow: hidden;
    background: rgba(8,11,31,.88);
    color: rgba(244,246,255,.62);
    font-size: clamp(.58rem, .78vw, .72rem);
    box-shadow: 0 -1px 0 rgba(255,255,255,.08);
}
.view-home .site-footer a {
    color: #c4b5fd;
}
.home-landing {
    position: relative;
    isolation: isolate;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(74px, auto);
    gap: clamp(6px, .9vh, 10px);
    padding: 0;
    overflow: hidden;
}
.home-landing::before,
.home-landing::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(58px);
    pointer-events: none;
    animation: homeOrbDrift 18s ease-in-out infinite;
}
.home-landing::before {
    top: -18%;
    right: 5%;
    width: clamp(230px, 30vw, 460px);
    height: clamp(230px, 30vw, 460px);
    background: radial-gradient(circle, rgba(144,97,249,.62), transparent 70%);
    opacity: .52;
}
.home-landing::after {
    left: -8%;
    bottom: -24%;
    width: clamp(220px, 28vw, 420px);
    height: clamp(220px, 28vw, 420px);
    background: radial-gradient(circle, rgba(34,211,238,.34), transparent 70%);
    opacity: .45;
    animation-duration: 22s;
    animation-direction: reverse;
}
.home-hero {
    isolation: isolate;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: grid;
    grid-template-columns: minmax(270px, .86fr) minmax(330px, 1.14fr);
    gap: clamp(12px, 2.2vw, 38px);
    align-items: center;
    padding: clamp(14px, 2.45vw, 34px) clamp(18px, 3vw, 44px) clamp(18px, 3vw, 42px);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid var(--home-glass-line);
    border-radius: clamp(20px, 2vw, 30px);
    background:
        radial-gradient(circle at 72% 18%, rgba(144,97,249,.56), transparent 28%),
        radial-gradient(circle at 74% 88%, rgba(34,211,238,.18), transparent 25%),
        linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035)),
        linear-gradient(135deg, rgba(18,45,138,.92) 0%, rgba(13,18,64,.96) 48%, rgba(91,19,170,.88) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 24px 60px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
        repeating-radial-gradient(ellipse at 42% 20%, rgba(255,255,255,.10) 0 1px, transparent 1px 11px);
    background-size: 54px 54px, 54px 54px, auto;
    opacity: .48;
    mask-image: radial-gradient(900px 560px at 58% 20%, #000 18%, transparent 78%);
    pointer-events: none;
}
.home-hero::after {
    content: "";
    position: absolute;
    inset: auto -7% -30% 42%;
    z-index: -1;
    height: 65%;
    border-radius: 999px;
    background: radial-gradient(ellipse, rgba(144,97,249,.5), rgba(34,211,238,.12) 42%, transparent 68%);
    filter: blur(12px);
    pointer-events: none;
}
.home-hero-copy,
.home-hero-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.home-hero-copy {
    display: grid;
    justify-items: start;
    align-self: center;
    gap: clamp(7px, 1vh, 12px);
    transform: translateY(clamp(-10px, -1.1vh, -4px));
}
.home-badge {
    max-width: 100%;
    padding: 6px 15px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: var(--home-mint);
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 30px rgba(0,0,0,.12);
    font-size: clamp(.6rem, .84vw, .78rem);
    font-weight: 950;
    letter-spacing: .11em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(12px);
}
.home-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-mint);
    box-shadow: 0 0 10px var(--home-mint);
    animation: homeBadgePulse 1.9s ease-in-out infinite;
}
.home-hero h1 {
    max-width: min(620px, 100%);
    margin: 0;
    color: #fff;
    font-family: "Space Grotesk", "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(2.68rem, 5.65vw, 5.8rem);
    font-weight: 950;
    line-height: .9;
    letter-spacing: -.06em;
    text-shadow: 0 18px 42px rgba(0,0,0,.24);
    text-wrap: balance;
}
.home-hero p {
    max-width: min(620px, 100%);
    margin: 0;
    color: var(--home-ink-dim);
    font-size: clamp(.82rem, 1.05vw, 1.08rem);
    font-weight: 780;
    line-height: 1.38;
    text-wrap: pretty;
}
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1vw, 12px);
    margin-top: 2px;
}
.home-btn {
    min-height: clamp(36px, 5.1vh, 46px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 clamp(15px, 1.7vw, 22px);
    border-radius: 12px;
    text-decoration: none;
    font-size: clamp(.72rem, .9vw, .92rem);
    font-weight: 950;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.home-btn.primary {
    color: #241a5e;
    background: linear-gradient(120deg, #ffffff, #e7e6ff);
    box-shadow: 0 14px 28px rgba(255,255,255,.12), 0 16px 28px rgba(0,0,0,.18);
}
.home-btn.ghost {
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
}
.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0,0,0,.18);
}
.home-btn span {
    transition: transform .18s ease;
}
.home-btn:hover span {
    transform: translate(2px, -1px);
}
.home-hero-visual {
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.home-schedule-board {
    width: clamp(285px, 34vw, 500px);
    min-width: 0;
    max-width: 100%;
    padding: clamp(9px, 1vw, 15px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: clamp(18px, 2vw, 28px);
    background:
        linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.055)),
        linear-gradient(160deg, rgba(67,56,202,.22), rgba(8,11,31,.18));
    box-shadow:
        14px 17px 0 rgba(255,255,255,.055),
        0 34px 70px rgba(0,0,0,.32),
        inset 0 1px 0 rgba(255,255,255,.24);
    transform: perspective(900px) rotateY(-7deg) rotateX(2deg);
    backdrop-filter: blur(10px);
    animation: homeBoardFloat 4.7s ease-in-out infinite;
}
.board-head,
.board-row {
    display: grid;
    grid-template-columns: clamp(28px, 3vw, 44px) repeat(6, minmax(0, 1fr));
    gap: clamp(2px, .25vw, 3px);
}
.board-head b {
    min-height: clamp(18px, 3vh, 26px);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #f8fbff;
    background: linear-gradient(135deg, rgba(144,97,249,.7), rgba(67,56,202,.62));
    font-size: clamp(.48rem, .7vw, .66rem);
    line-height: 1;
}
.board-row b,
.board-row span {
    min-height: clamp(19px, 3.25vh, 31px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.5);
    background: rgba(255,255,255,.82);
}
.board-row b {
    display: grid;
    place-items: center;
    color: #312e81;
    font-size: clamp(.48rem, .7vw, .66rem);
    font-weight: 950;
}
.board-row span {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
.home-float-stack {
    position: absolute;
    display: grid;
    gap: clamp(9px, 1.8vh, 16px);
    pointer-events: none;
}
.home-float-stack.left { left: 2.5%; top: 12%; }
.home-float-stack.right { right: 1.5%; top: 28%; }
.home-float-stack span {
    width: clamp(70px, 6.6vw, 100px);
    height: clamp(42px, 7vh, 64px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 16px;
    color: white;
    background: linear-gradient(160deg, rgba(124,58,237,.38), rgba(67,56,202,.24));
    box-shadow: 0 18px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.18);
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(.55rem, .78vw, .76rem);
    font-weight: 950;
    letter-spacing: .08em;
    backdrop-filter: blur(10px);
    animation: homeChipFloat 4.8s ease-in-out infinite;
}
.home-float-stack.left span:nth-child(2) { margin-left: clamp(8px, 1.6vw, 22px); color: #dcfce7; border-color: rgba(16,185,129,.36); animation-delay: -.8s; }
.home-float-stack.left span:nth-child(3) { margin-left: clamp(18px, 3.4vw, 48px); color: #bfdbfe; border-color: rgba(59,130,246,.36); animation-delay: -1.4s; }
.home-float-stack.right span:nth-child(1) { color: #fce7f3; border-color: rgba(236,72,153,.36); animation-delay: -.4s; }
.home-float-stack.right span:nth-child(2) { color: #fed7aa; border-color: rgba(249,115,22,.4); animation-delay: -1.1s; }
.home-glow-ring {
    position: absolute;
    bottom: 5%;
    left: 50%;
    width: clamp(260px, 32vw, 440px);
    height: clamp(26px, 5vh, 50px);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(168,85,247,.72), rgba(168,85,247,.18) 48%, transparent 72%);
    transform: translateX(-31%);
    filter: blur(2px);
    pointer-events: none;
}
.home-role-grid {
    position: relative;
    z-index: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(7px, 1vw, 12px);
    overflow: hidden;
}
.home-role-card {
    --card-accent: #22d3ee;
    --card-glow: rgba(34,211,238,.18);
    --card-start: rgba(255,255,255,.1);
    --card-end: rgba(255,255,255,.035);
    position: relative;
    min-height: clamp(74px, 13vh, 116px);
    display: grid;
    grid-template-columns: clamp(42px, 5vw, 62px) minmax(0, 1fr) clamp(30px, 3.4vw, 42px);
    gap: clamp(8px, 1.1vw, 14px);
    align-items: center;
    overflow: hidden;
    padding: clamp(10px, 1.4vw, 18px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: clamp(14px, 1.4vw, 20px);
    color: #fff;
    text-decoration: none;
    background:
        radial-gradient(circle at 12% 15%, var(--card-glow), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.12), transparent 28%),
        linear-gradient(135deg, var(--card-start), var(--card-end));
    box-shadow: 0 17px 36px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.13);
    backdrop-filter: blur(14px);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-role-card::before {
    content: "";
    position: absolute;
    inset: auto -8% -68% -8%;
    height: 120px;
    background: repeating-radial-gradient(ellipse at center, rgba(255,255,255,.18) 0 1px, transparent 1px 8px);
    opacity: .18;
    transform: rotate(-3deg);
    pointer-events: none;
}
.home-role-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), inset 0 -2px 0 rgba(255,255,255,.03);
    border-top: 1px solid var(--card-accent);
    opacity: .46;
    pointer-events: none;
}
.home-role-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--card-accent), white 18%);
    box-shadow: 0 26px 54px rgba(0,0,0,.34), 0 0 34px var(--card-glow);
}
.home-role-card.admin {
    --card-accent: #60a5fa;
    --card-glow: rgba(96,165,250,.2);
    --card-start: rgba(37,99,235,.34);
    --card-end: rgba(8,11,31,.28);
}
.home-role-card.incharge {
    --card-accent: #5eead4;
    --card-glow: rgba(94,234,212,.18);
    --card-start: rgba(5,150,105,.3);
    --card-end: rgba(8,11,31,.28);
}
.home-role-card.viewer {
    --card-accent: #fbbf24;
    --card-glow: rgba(251,191,36,.18);
    --card-start: rgba(194,65,12,.32);
    --card-end: rgba(8,11,31,.28);
}
.home-role-icon {
    width: clamp(42px, 5vw, 62px);
    height: clamp(42px, 5vw, 62px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: clamp(12px, 1.25vw, 17px);
    background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent), transparent 70%), rgba(255,255,255,.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 24px rgba(0,0,0,.14);
    color: rgba(255,255,255,.96);
}
.home-role-icon svg {
    width: 62%;
    height: 62%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,.18));
}
.home-role-card div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2px, .45vh, 6px);
    min-width: 0;
}
.home-role-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Space Grotesk", "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.5rem);
    font-weight: 950;
    line-height: 1;
}
.home-role-card small {
    display: -webkit-box;
    max-width: 430px;
    overflow: hidden;
    color: rgba(255,255,255,.88);
    font-size: clamp(.58rem, .82vw, .78rem);
    font-weight: 760;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.home-role-card em {
    position: relative;
    z-index: 1;
    width: clamp(30px, 3.4vw, 42px);
    height: clamp(28px, 4.3vh, 34px);
    display: grid;
    place-items: center;
    justify-self: end;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px;
    color: white;
    background: rgba(255,255,255,.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    font-size: clamp(.86rem, 1.1vw, 1.12rem);
    font-style: normal;
    transition: transform .18s ease, background .18s ease;
}
.home-role-card:hover em {
    transform: translateX(2px);
    background: rgba(255,255,255,.15);
}
@keyframes homeOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-28px, 24px) scale(1.08); }
    66% { transform: translate(22px, -20px) scale(.96); }
}
@keyframes homeBadgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.72); }
}
@keyframes homeBoardFloat {
    0%, 100% { transform: perspective(900px) rotateY(-7deg) rotateX(2deg) translateY(0) translateX(0) scale(1); }
    50% { transform: perspective(900px) rotateY(-7deg) rotateX(2deg) translateY(-22px) translateX(7px) scale(1.03); }
}
@keyframes homeChipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
    .home-landing::before,
    .home-landing::after,
    .home-badge::before,
    .home-schedule-board,
    .home-float-stack span {
        animation: none;
    }
}
@media (max-height: 720px) and (min-width: 901px) {
    .view-home .page-shell { height: calc(100svh - 24px); padding-top: 5px; }
    .view-home .site-footer { min-height: 24px; height: 24px; font-size: .62rem; }
    .home-landing { grid-template-rows: minmax(0, 1fr) minmax(70px, auto); gap: 6px; }
    .home-hero { padding: 14px 26px; }
    .home-hero-copy { gap: 6px; transform: translateY(-6px); }
    .home-hero h1 { font-size: clamp(2.05rem, 4.35vw, 4.28rem); line-height: .9; }
    .home-hero p { font-size: .78rem; line-height: 1.24; }
    .home-btn { min-height: 36px; padding: 0 15px; }
    .home-schedule-board { width: clamp(265px, 31vw, 360px); padding: 9px; animation-duration: 4.4s; }
    .board-head b { min-height: 19px; font-size: .54rem; }
    .board-row b, .board-row span { min-height: 20px; }
    .home-float-stack span { width: 72px; height: 42px; }
    .home-role-card { min-height: 76px; padding: 10px 14px; }
    .home-role-card small { -webkit-line-clamp: 2; }
}
@media (max-width: 900px) {
    .view-home {
        height: 100svh;
        min-height: 100svh;
        overflow: hidden;
    }
    .view-home .page-shell {
        height: calc(100svh - 26px);
        padding: 6px 8px 3px;
        overflow: hidden;
    }
    .view-home .site-footer { height: 26px; min-height: 26px; font-size: .58rem; }
    .home-landing {
        height: 100%;
        grid-template-rows: minmax(0, 1fr) minmax(128px, auto);
        gap: 6px;
        overflow: hidden;
    }
    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: clamp(14px, 4vw, 22px);
        border-radius: 18px;
    }
    .home-hero-copy { gap: 7px; transform: translateY(-4px); }
    .home-hero h1 { max-width: 100%; font-size: clamp(2.08rem, 10.4vw, 3.55rem); }
    .home-hero p { font-size: clamp(.68rem, 2.2vw, .86rem); line-height: 1.25; }
    .home-hero-actions { gap: 7px; }
    .home-btn { min-height: 34px; padding: 0 12px; font-size: .68rem; }
    .home-hero-visual { display: none; }
    .home-role-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .home-role-card {
        min-height: 39px;
        grid-template-columns: 34px minmax(0, 1fr) 28px;
        gap: 8px;
        padding: 6px 9px;
        border-radius: 12px;
    }
    .home-role-icon { width: 34px; height: 34px; border-radius: 10px; }
    .home-role-card strong { font-size: .82rem; }
    .home-role-card small { font-size: .56rem; line-height: 1.1; -webkit-line-clamp: 1; }
    .home-role-card em { width: 28px; height: 26px; font-size: .82rem; }
}
@media (max-width: 560px) {
    .home-badge { max-width: 94vw; padding: 5px 10px; font-size: .5rem; }
    .home-hero h1 { font-size: clamp(1.75rem, 12vw, 3rem); }
    .home-hero p { font-size: .64rem; }
    .home-hero-actions { width: 100%; }
    .home-btn { flex: 1 1 0; min-width: 0; }
    .home-role-card small { display: none; }
}

.load-distribution-page {
    display: grid;
    gap: 10px;
    padding: clamp(8px, 1.2vw, 16px);
    background:
        radial-gradient(circle at 8% 0%, rgba(124,58,237,.11), transparent 30%),
        radial-gradient(circle at 90% 12%, rgba(14,165,233,.1), transparent 28%),
        #f8fbff;
}
.load-distribution-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: clamp(18px, 3vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 18%, rgba(34,211,238,.22), transparent 24%),
        radial-gradient(circle at 18% 0%, rgba(124,58,237,.36), transparent 32%),
        linear-gradient(135deg, #07112d, #172554 52%, #4c1d95);
    box-shadow: 0 22px 55px rgba(15,23,42,.2);
}
.load-kicker {
    display: inline-flex;
    width: max-content;
    margin-bottom: 7px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(255,255,255,.1);
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.load-distribution-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4.8vw, 4.6rem);
    line-height: .9;
    letter-spacing: -.06em;
}
.load-distribution-hero p {
    max-width: 760px;
    margin: 8px 0 0;
    color: rgba(239,246,255,.84);
    font-size: clamp(.82rem, 1.1vw, 1rem);
    font-weight: 760;
}
.load-distribute-main {
    min-height: 44px;
    white-space: nowrap;
}
.load-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}
.load-kpi-grid article,
.load-panel {
    border: 1px solid rgba(166,189,220,.58);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,251,255,.94));
    box-shadow: 0 12px 28px rgba(35,49,77,.08);
    backdrop-filter: blur(14px);
}
.load-kpi-grid article {
    min-height: 74px;
    display: grid;
    align-content: center;
    gap: 1px;
    padding: 12px 14px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}
.load-kpi-grid article::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(14,165,233,.12));
}
.load-kpi-grid span,
.load-panel-head small,
.load-subtitle small {
    color: #64748b;
    font-size: .66rem;
    font-weight: 850;
}
.load-kpi-grid strong {
    color: #172554;
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
    line-height: 1;
}
.load-kpi-grid small {
    color: #334155;
    font-size: .72rem;
    font-weight: 800;
}
.load-distribution-grid {
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(340px, 1.05fr);
    gap: 10px;
    align-items: start;
}
.load-panel {
    min-width: 0;
    padding: 12px;
    border-radius: 20px;
}
.load-panel-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}
.load-panel-head > span {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: .68rem;
    font-weight: 950;
    box-shadow: 0 10px 20px rgba(37,99,235,.22);
}
.load-panel-head h2 {
    margin: 0;
    color: #172554;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1;
}
.load-settings-form,
.load-subject-form,
.load-choice-form {
    display: grid;
    gap: 7px;
}
.load-settings-form {
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
}
.load-choice-form {
    grid-template-columns: minmax(150px, .85fr) 130px minmax(220px, 1.2fr) auto;
    align-items: end;
}
.load-subject-form {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid rgba(166,189,220,.48);
    grid-template-columns: minmax(120px, .9fr) 120px 115px minmax(180px, 1.2fr) 105px auto;
    align-items: end;
}
.load-subtitle {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #173a76;
}
.load-settings-form label,
.load-choice-form label {
    display: grid;
    gap: 3px;
    color: #475569;
    font-size: .64rem;
    font-weight: 900;
}
.load-settings-form input,
.load-subject-form input,
.load-subject-form select,
.load-choice-form select {
    min-height: 30px;
    font-size: .74rem;
}
.restriction-zone {
    margin-top: 11px;
    padding: 10px;
    border: 1px solid rgba(124,58,237,.16);
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff, #f5f0ff);
}
.restriction-zone h3 {
    margin: 0 0 7px;
    color: #172554;
    font-size: .82rem;
}
.restriction-zone div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.restriction-zone span {
    padding: 8px;
    border-radius: 13px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(166,189,220,.42);
}
.restriction-zone b,
.restriction-zone small {
    display: block;
}
.restriction-zone b {
    color: #4c1d95;
}
.restriction-zone small {
    color: #64748b;
    font-size: .6rem;
    font-weight: 850;
}
.faculty-load-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
}
.faculty-load-grid article {
    min-height: 64px;
    display: grid;
    gap: 2px;
    padding: 9px;
    border: 1px solid rgba(166,189,220,.45);
    border-radius: 14px;
    background: #fff;
}
.faculty-load-grid article.over {
    border-color: rgba(239,68,68,.38);
    background: #fff7f7;
}
.faculty-load-grid strong {
    color: #172554;
    font-size: .86rem;
}
.faculty-load-grid span,
.faculty-load-grid small {
    color: #64748b;
    font-size: .66rem;
    font-weight: 800;
}
.load-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}
.load-class-card {
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(166,189,220,.5);
    border-radius: 16px;
    background: #fff;
}
.load-class-card header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    color: #172554;
}
.load-class-card small,
.load-subject-list small {
    color: #64748b;
    font-size: .62rem;
    font-weight: 850;
}
.load-subject-list {
    display: grid;
    gap: 5px;
}
.load-subject-list div {
    display: grid;
    grid-template-columns: 58px minmax(92px, .85fr) minmax(80px, .8fr) 82px;
    gap: 5px;
    align-items: center;
    min-height: 29px;
    padding: 4px 6px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff, #eef5ff);
    font-size: .65rem;
}
.load-subject-list b,
.load-subject-list em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.load-subject-list b {
    color: #173a76;
}
.load-subject-list span,
.load-subject-list em {
    color: #475569;
    font-style: normal;
    font-weight: 800;
}
.subject-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 8px;
}
.subject-choice-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(166,189,220,.52);
    border-radius: 18px;
    background: #fff;
}
.subject-choice-card > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    color: #172554;
    background: linear-gradient(135deg, #eef5ff, #f5f0ff);
}
.subject-choice-card header strong,
.subject-choice-card header small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.subject-choice-card header span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 999px;
    color: #075b3d;
    background: #dcfce7;
    font-size: .62rem;
    font-weight: 900;
}
.choice-rank-row {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 7px;
    padding: 8px 10px;
    border-top: 1px solid rgba(166,189,220,.42);
}
.choice-rank-row b {
    color: #173a76;
    font-size: .72rem;
}
.choice-rank-row b small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: .56rem;
}
.choice-chip-list {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.choice-chip-list > em {
    color: #94a3b8;
    font-size: .64rem;
    font-style: normal;
    font-weight: 800;
}
.choice-chip {
    max-width: 170px;
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
    padding: 4px 4px 4px 7px;
    border: 1px solid rgba(34,197,94,.22);
    border-radius: 999px;
    color: #075b3d;
    background: #f0fdf4;
}
.rank-2 .choice-chip {
    border-color: rgba(59,130,246,.22);
    color: #173a76;
    background: #eff6ff;
}
.rank-3 .choice-chip {
    border-color: rgba(245,158,11,.28);
    color: #754500;
    background: #fff7ed;
}
.choice-chip strong,
.choice-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.choice-chip strong {
    font-size: .64rem;
}
.choice-chip small {
    grid-column: 1 / 2;
    color: inherit;
    opacity: .75;
    font-size: .54rem;
}
.choice-chip form {
    grid-row: 1 / 3;
    grid-column: 2;
}
.choice-chip button {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #b91c1c;
    background: rgba(255,255,255,.7);
    font-weight: 950;
    cursor: pointer;
}
.btn.danger {
    margin-top: 8px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}
@media (max-width: 980px) {
    .load-distribution-hero,
    .load-distribution-grid,
    .load-settings-form,
    .load-choice-form,
    .load-subject-form {
        grid-template-columns: 1fr;
    }
    .load-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .load-kpi-grid,
    .restriction-zone div,
    .subject-choice-card > header,
    .choice-rank-row,
    .load-subject-list div {
        grid-template-columns: 1fr;
    }
}

.timetable-pdf-measure {
    position: fixed;
    inset: 0 auto auto -200vw;
    z-index: -1;
    width: var(--print-page-width, 1080px);
    visibility: hidden;
    pointer-events: none;
    background: #fff;
}

.timetable-pdf-measure .all-timetable-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
}

.timetable-pdf-measure .template-timetable {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 5px !important;
    gap: 4px !important;
    box-shadow: none !important;
}

.timetable-pdf-measure .template-header {
    grid-template-columns: 58px minmax(0, 1fr) 58px !important;
    gap: 6px !important;
    padding: 5px !important;
}

.timetable-pdf-measure .template-grid th,
.timetable-pdf-measure .template-grid td {
    padding: 3px !important;
    font-size: .62rem !important;
    line-height: 1.08 !important;
}

.timetable-pdf-measure .template-grid .schedule-item {
    font-size: .6rem !important;
    line-height: 1.08 !important;
}

.timetable-pdf-measure .template-footer section {
    padding: 3px !important;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 5mm;
    }

    body.timetable-pdf-mode,
    body.timetable-pdf-mode * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    body.timetable-pdf-mode {
        background: #fff !important;
    }

    body.timetable-pdf-mode .site-header,
    body.timetable-pdf-mode .site-footer,
    body.timetable-pdf-mode .page-heading,
    body.timetable-pdf-mode .selector-bar,
    body.timetable-pdf-mode .teacher-control-bar,
    body.timetable-pdf-mode .download-options,
    body.timetable-pdf-mode .flash-stack {
        display: none !important;
    }

    body.timetable-pdf-mode .page-shell,
    body.timetable-pdf-mode .all-timetable-stack,
    body.timetable-pdf-mode .teacher-timetable-panel {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        overflow: visible !important;
    }

    body.timetable-pdf-mode .all-timetable-card {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        width: 287mm !important;
        min-height: 200mm !important;
        max-width: 287mm !important;
        max-height: 200mm !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        overflow: hidden !important;
        page-break-inside: avoid;
        break-inside: avoid;
        page-break-after: always;
        break-after: page;
    }

    body.timetable-pdf-mode .all-timetable-card:last-of-type {
        page-break-after: auto;
        break-after: auto;
    }

    body.timetable-pdf-mode .template-timetable {
        width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 5px !important;
        gap: 4px !important;
        zoom: var(--print-card-zoom, .9) !important;
        page-break-inside: avoid;
        break-inside: avoid;
        page-break-after: auto;
        break-after: auto;
        background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--tt-soft), #fff 34%)) !important;
        box-shadow: none !important;
    }

    body.timetable-pdf-mode .template-header {
        grid-template-columns: 58px minmax(0, 1fr) 58px !important;
        gap: 6px !important;
        padding: 5px !important;
        border-radius: 8px !important;
    }

    body.timetable-pdf-mode .template-logo {
        border-radius: 8px !important;
    }

    body.timetable-pdf-mode .template-title-block {
        gap: 0 !important;
    }

    body.timetable-pdf-mode .template-title-block strong {
        font-size: .78rem !important;
    }

    body.timetable-pdf-mode .template-title-block h2 {
        white-space: normal !important;
        font-size: 1.35rem !important;
        line-height: 1.04 !important;
        letter-spacing: .04em !important;
    }

    body.timetable-pdf-mode .template-title-block small,
    body.timetable-pdf-mode .template-title-block em {
        font-size: .62rem !important;
        line-height: 1.1 !important;
    }

    body.timetable-pdf-mode .template-info-row {
        gap: 2px !important;
    }

    body.timetable-pdf-mode .template-info-row span {
        padding: 2px 4px !important;
        font-size: .58rem !important;
    }

    body.timetable-pdf-mode .template-info-row b {
        font-size: .48rem !important;
    }

    body.timetable-pdf-mode .template-timetable-title {
        padding: 3px 8px !important;
        font-size: .8rem !important;
        letter-spacing: .05em !important;
    }

    body.timetable-pdf-mode .template-grid th,
    body.timetable-pdf-mode .template-grid td {
        padding: 3px !important;
        font-size: .62rem !important;
        line-height: 1.08 !important;
    }

    body.timetable-pdf-mode .template-grid .schedule-item {
        font-size: .6rem !important;
        line-height: 1.08 !important;
    }

    body.timetable-pdf-mode .template-grid thead th small,
    body.timetable-pdf-mode .public-slot-time,
    body.timetable-pdf-mode .public-break-time {
        font-size: .5rem !important;
    }

    body.timetable-pdf-mode .template-footer {
        gap: 3px !important;
    }

    body.timetable-pdf-mode .template-footer section {
        padding: 3px !important;
        border-radius: 7px !important;
    }

    body.timetable-pdf-mode .template-footer h4 {
        margin-bottom: 2px !important;
        font-size: .5rem !important;
    }

    body.timetable-pdf-mode .template-chip-grid {
        gap: 2px !important;
    }

    body.timetable-pdf-mode .template-chip-grid span,
    body.timetable-pdf-mode .template-footer p {
        padding: 2px 3px !important;
        font-size: .48rem !important;
        line-height: 1.08 !important;
    }

    body.timetable-pdf-mode .template-duty-row {
        padding: 3px 5px !important;
        gap: 4px !important;
    }

    body.timetable-pdf-mode .template-timetable-title,
    body.timetable-pdf-mode .public-template-table.template-horizontal .day-time-head,
    body.timetable-pdf-mode .public-template-table.template-horizontal .day-time-subhead,
    body.timetable-pdf-mode .public-template-table.template-horizontal .slot-number-head,
    body.timetable-pdf-mode .public-template-table.template-horizontal .slot-time-head,
    body.timetable-pdf-mode .public-template-table.template-vertical .slot-number-axis,
    body.timetable-pdf-mode .public-template-table.template-vertical .slot-number-cell,
    body.timetable-pdf-mode .public-template-table.template-vertical .day-time-head,
    body.timetable-pdf-mode .public-template-table.template-vertical .slot-time-head,
    body.timetable-pdf-mode .public-template-table.template-vertical .day-name-cell {
        color: #fff !important;
        background-color: var(--tt-primary, #07184d) !important;
        background-image: linear-gradient(180deg, var(--tt-secondary, #2846a5), var(--tt-primary, #07184d)) !important;
    }

    body.timetable-pdf-mode .public-template-table.template-horizontal .break-number-spacer,
    body.timetable-pdf-mode .public-template-table.template-horizontal .break-time-head,
    body.timetable-pdf-mode .public-template-table.template-horizontal .visual-break-cell,
    body.timetable-pdf-mode .public-template-table.template-vertical .break-axis-cell,
    body.timetable-pdf-mode .public-template-table.template-vertical .break-time-head,
    body.timetable-pdf-mode .public-template-table.template-vertical .vertical-break-row .visual-break-cell {
        color: var(--tt-break, #0e5b26) !important;
        background-color: var(--tt-soft, #fff8ed) !important;
        background-image: linear-gradient(180deg, var(--tt-soft, #fff8ed), #fff) !important;
    }

    body.timetable-pdf-mode .all-timetable-card .template-timetable {
        min-height: auto;
        page-break-after: auto;
        break-after: auto;
    }

    body.timetable-pdf-mode .template-timetable:last-of-type {
        page-break-after: auto;
        break-after: auto;
    }

    body.timetable-pdf-mode .table-scroll,
body.timetable-pdf-mode .public-template-wrap {
        overflow: visible !important;
    }
}

.analyzer-actions {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto auto auto;
}

@media (max-width: 900px) {
    .analyzer-actions {
        grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .analyzer-actions {
        grid-template-columns: 1fr;
    }
}

.analyzer-head {
    grid-template-columns: auto minmax(0, .7fr) auto auto minmax(0, 2.1fr);
    gap: 4px;
}

.analyzer-actions {
    grid-template-columns: minmax(116px, .82fr) minmax(116px, .82fr) auto auto auto auto;
    gap: 4px;
}

.analyzer-actions .demo-fill-form,
.analyzer-actions .copy-card-form {
    grid-template-columns: minmax(70px, 1fr) auto;
}

.analyzer-actions .demo-fill-form select,
.analyzer-actions .copy-card-form select {
    min-width: 0;
    max-width: 132px;
    padding-inline: 6px;
}

.clear-card-form {
    display: grid;
    min-width: 0;
}

.clear-card-btn {
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: .62rem;
    line-height: 1;
    color: #991b1b;
    border-color: rgba(220, 38, 38, .24);
    background: linear-gradient(135deg, #fff, #fee2e2);
}

.clear-card-btn:hover {
    color: #fff;
    border-color: #dc2626;
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@media (max-width: 900px) {
    .analyzer-head {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .analyzer-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        white-space: normal;
    }

    .analyzer-actions .demo-fill-form select,
    .analyzer-actions .copy-card-form select {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .analyzer-actions {
        grid-template-columns: 1fr;
    }
}

.analyzer-head {
    grid-template-columns: auto max-content auto auto minmax(0, 1fr);
    column-gap: 5px;
}

.analyzer-head small {
    max-width: 210px;
}

.analyzer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.analyzer-actions .demo-fill-form,
.analyzer-actions .copy-card-form {
    flex: 0 1 auto;
    display: grid;
    grid-template-columns: minmax(72px, 108px) auto;
    gap: 3px;
    align-items: center;
    min-width: 0;
}

.analyzer-actions .demo-fill-form select,
.analyzer-actions .copy-card-form select {
    width: 100%;
    max-width: 108px;
    min-width: 0;
    padding: 2px 5px;
    font-size: .58rem;
}

.analyzer-actions .btn,
.analyzer-actions button {
    flex: 0 0 auto;
    min-height: 22px;
    padding: 2px 7px;
    font-size: .6rem;
}

@media (max-width: 1180px) {
    .analyzer-head {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .analyzer-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        overflow: visible;
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .analyzer-actions,
    .analyzer-actions .demo-fill-form,
    .analyzer-actions .copy-card-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .analyzer-actions .demo-fill-form select,
    .analyzer-actions .copy-card-form select {
        max-width: none;
    }
}
