:root {
    --bg: #f8f9ff;
    --paper: #ffffff;
    --soft: #eff4ff;
    --line: #e2e8f0;
    --ink: #0b1c30;
    --muted: #45474c;
    --slate: #091426;
    --slate-2: #1e293b;
    --teal: #006a61;
    --teal-2: #005049;
    --mint: #86f2e4;
    --red: #ba1a1a;
    --red-bg: #ffdad6;
    --ok: #12683c;
    --ok-bg: #d9fbe9;
    --shade: 0 18px 45px rgba(15, 23, 42, .08);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--bg);
    font-size: 13px;
}

a { color: inherit; }
button, input { font: inherit; }

.phone-row {
    display: grid;
    grid-template-columns: minmax(96px, .45fr) minmax(170px, 1fr);
    gap: 12px;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.page {
    overflow-x: hidden;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100dvh;
    min-height: 100dvh;
    animation: in .28s ease both;
}

.page.out {
    animation: out .18s ease both;
}

@keyframes in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes out {
    to { opacity: 0; transform: translateY(-6px); }
}

.auth {
    display: grid;
    min-height: 0;
    background: var(--bg);
}

.login { grid-template-columns: minmax(390px, 40%) 1fr; }
.reg { grid-template-columns: minmax(360px, 35%) 1fr; }

.panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 28px clamp(22px, 4vw, 58px);
    background: var(--paper);
    position: relative;
    z-index: 1;
}

.panel-reg {
    width: min(560px, 100%);
    min-height: 0;
    margin: 0 auto;
    padding-block: 26px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin-bottom: 20px;
    text-decoration: none;
}

.mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--slate);
    color: #fff;
    box-shadow: 0 10px 24px rgba(9, 20, 38, .16);
}

.name {
    color: var(--slate);
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
}

.dark .logo { margin-bottom: 0; }
.dark .name, .dark .mark { color: #fff; }
.dark .mark { background: var(--teal); }

.copy { margin-bottom: 18px; }

.eyebrow,
.field > span:first-child {
    display: block;
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 15px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.copy h1,
.msg h1,
.dashboard-content h1 {
    margin: 0 0 8px;
    color: var(--slate);
    font-size: 29px;
    line-height: 35px;
    font-weight: 700;
    letter-spacing: 0;
}

.reg .copy h1 {
    font-size: 28px;
    line-height: 34px;
}

.copy p,
.msg p,
.dashboard-intro {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 21px;
}

.form {
    display: grid;
    gap: 12px;
}

.grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.wide,
.sect {
    grid-column: 1 / -1;
}

.field {
    display: grid;
    gap: 5px;
}

.input {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--soft);
    color: #75777d;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.input:focus-within {
    border-color: var(--teal);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(0, 106, 97, .13);
    transform: translateY(-1px);
}

.input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
}

.input input::placeholder { color: #75777d; }

.ico {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #75777d;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.ico:hover {
    background: #e5eeff;
    color: var(--ink);
    transform: scale(1.04);
}

.btn,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 41px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn {
    width: 100%;
    margin-top: 2px;
    background: linear-gradient(135deg, var(--teal), var(--teal-2));
    color: #fff;
    box-shadow: 0 12px 22px rgba(0, 106, 97, .18);
}

.btn:hover {
    box-shadow: 0 16px 30px rgba(0, 80, 73, .23);
    transform: translateY(-2px);
}

.btn:hover .material-symbols-outlined {
    transform: translateX(3px);
}

.btn .material-symbols-outlined {
    transition: transform .18s ease;
}

.btn:active,
.secondary-button:active {
    transform: translateY(0) scale(.99);
}

.secondary-button {
    width: 100%;
    padding: 0 14px;
    color: var(--slate);
    background: transparent;
    border: 1px solid var(--line);
}

.secondary-button:hover {
    background: var(--soft);
    border-color: #c5c6cd;
}

.swap {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    line-height: 20px;
}

.swap a {
    position: relative;
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.swap a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}

.swap a:hover::after { transform: scaleX(1); }

.err {
    margin: 1px 0 0;
    color: var(--red);
    font-size: 12px;
    line-height: 16px;
}

.note {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.bad { color: var(--red); background: var(--red-bg); }
.ok { color: var(--ok); background: var(--ok-bg); }

.setup-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.setup-card h2 {
    margin: 0 0 8px;
    color: var(--slate);
    font-size: 19px;
    line-height: 26px;
}

.setup-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

.art {
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 44px;
}

.art::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(211, 228, 254, .9), rgba(248, 249, 255, .55)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900'%3E%3Crect width='1200' height='900' fill='%23f8f9ff'/%3E%3Cg fill='none' stroke='%23091426' stroke-opacity='.1' stroke-width='2'%3E%3Cpath d='M110 230h350v260H110zM520 170h570v420H520zM185 580h815v90H185z'/%3E%3Cpath d='M145 270h280M145 318h280M145 366h200M560 220h485M560 285h485M560 350h300M230 625h710'/%3E%3C/g%3E%3Cg fill='%23006a61' fill-opacity='.16'%3E%3Crect x='725' y='430' width='180' height='34' rx='8'/%3E%3Crect x='145' y='420' width='150' height='34' rx='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.light {
    align-items: center;
    justify-content: center;
    background: #d3e4fe;
}

.dark {
    flex-direction: column;
    justify-content: center;
    background: var(--slate-2);
}

.dark .logo {
    position: absolute;
    top: 44px;
    left: 44px;
}

.dark::before {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, .78), rgba(9, 20, 38, .96)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='900' viewBox='0 0 1000 900'%3E%3Crect width='1000' height='900' fill='%231e293b'/%3E%3Cg fill='none' stroke='%23bcc7de' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M90 170h330v220H90zM495 145h390v520H495zM130 475h285v185H130z'/%3E%3Cpath d='M125 215h250M125 265h190M125 315h230M535 205h310M535 255h310M535 305h210M535 355h280M170 520h205M170 570h160'/%3E%3C/g%3E%3Cg fill='%2386f2e4' fill-opacity='.18'%3E%3Crect x='535' y='590' width='190' height='36' rx='8'/%3E%3Crect x='125' y='345' width='128' height='34' rx='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.art > * {
    position: relative;
    z-index: 1;
}

.card {
    width: min(410px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shade);
    backdrop-filter: blur(14px);
}

.card-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 13px;
    color: var(--teal);
    background: rgba(134, 242, 228, .45);
}

.card h2,
.sect h2 {
    margin: 0 0 8px;
    color: var(--slate);
    font-size: 19px;
    line-height: 26px;
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

.bars {
    display: grid;
    grid-template-columns: 1fr 40px 40px;
    gap: 8px;
    margin-top: 20px;
}

.bars span {
    height: 8px;
    border-radius: 999px;
    background: #e5eeff;
}

.bars span:first-child { background: var(--teal); }

.msg {
    max-width: 430px;
    margin: 0;
}

.msg h1,
.msg p {
    color: #fff;
}

.msg p {
    color: #bcc7de;
    font-size: 14px;
    line-height: 26px;
}

.m-logo { display: none; }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.steps span {
    height: 5px;
    border-radius: 999px;
    background: var(--line);
}

.steps .on { background: var(--teal); }

.sect {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.sect span { color: var(--teal); }
.sect h2 { margin: 0; }

.step {
    display: none;
    gap: 12px;
    animation: step .22s ease both;
}

.step.on {
    display: grid;
}

@keyframes step {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.actions {
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: 10px;
}

.btn.alt {
    color: var(--slate);
    background: var(--soft);
    box-shadow: none;
}

.btn.alt:hover {
    background: #e5eeff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .07);
}

.btn.alt:hover .material-symbols-outlined {
    transform: translateX(-3px);
}

.foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 58px;
    padding: 12px clamp(18px, 4vw, 48px);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .88);
    color: var(--muted);
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    flex-wrap: wrap;
}

.copy-link {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.copy-link:hover {
    color: var(--slate);
}

.langs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.langs a {
    min-width: 34px;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background .16s ease, color .16s ease;
}

.langs a:hover,
.langs .on {
    background: var(--teal);
    color: #fff;
}

.app-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8f9ff;
}

.dash {
    display: block;
    flex: 1;
    min-height: calc(100vh - 58px);
    padding-left: 228px;
    transition: padding-left .24s ease;
}

.nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 228px;
    padding: 18px 14px;
    border-right: 1px solid var(--line);
    background: #f9fbff;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(0);
    transition: width .24s ease, padding .24s ease, transform .24s ease, box-shadow .24s ease;
    will-change: width, transform;
}

.nav-head {
    display: grid;
    gap: 2px;
    padding: 0 4px;
    position: relative;
}

.nav-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--muted);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .24s ease, box-shadow .18s ease;
}

.nav-toggle:hover {
    background: var(--mint);
    color: var(--teal-2);
    box-shadow: 0 8px 18px rgba(0, 106, 97, .12);
}

.nav-toggle .material-symbols-outlined {
    transition: transform .24s ease;
}

.nav-head .logo {
    margin: 0;
}

.nav-head .mark {
    width: 34px;
    height: 34px;
}

.nav-head .name {
    color: var(--teal);
}

.nav-head > span {
    margin-left: 44px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.nav-list {
    display: grid;
    gap: 8px;
}

.nav-list a,
.admin-link,
.help-link,
.logout {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease, padding .24s ease, gap .24s ease;
}

.nav-list a:hover,
.nav-list .on,
.admin-link:hover,
.admin-link.on {
    background: var(--mint);
    color: var(--teal-2);
}

.nav-mini .dash {
    padding-left: 78px;
}

.nav-mini .nav {
    width: 78px;
    padding-inline: 12px;
    overflow-x: hidden;
}

.nav-mini .nav-toggle {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
}

.nav-mini .nav-toggle .material-symbols-outlined {
    transform: rotate(180deg);
}

.nav-mini .nav-head > span,
.nav-mini .nav-list a,
.nav-mini .admin-link,
.nav-mini .help-link,
.nav-mini .logout {
    font-size: 0;
    justify-content: center;
}

.nav-mini .nav-list a span,
.nav-mini .admin-link span,
.nav-mini .help-link span,
.nav-mini .logout span {
    font-size: 24px;
}

.notify-menu {
    position: relative;
}

.notify-pop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: none;
    width: min(340px, 88vw);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shade);
}

.notify-menu.open .notify-pop {
    display: grid;
    gap: 10px;
}

.notify-pop header,
.notify-pop article {
    display: grid;
    gap: 4px;
}

.notify-pop article {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}

.notify-pop article.unread {
    border-color: #b9ece5;
    background: #effdfa;
}

.notify-pop article form,
.notify-read-all {
    margin: 0;
}

.notify-pop article button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #b9ece5;
    border-radius: 999px;
    background: #fff;
    color: var(--teal-2);
    cursor: pointer;
}

.notify-pop article button:hover {
    background: var(--teal);
    color: #fff;
}

.notify-read-all button {
    width: 100%;
    min-height: 32px;
    border: 1px solid #b9ece5;
    border-radius: 9px;
    background: #effdfa;
    color: var(--teal-2);
    cursor: pointer;
    font-weight: 800;
}

.notify-pop article span,
.notify-pop p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.notify-pop > a {
    justify-self: center;
    color: var(--teal-2);
    font-weight: 800;
    text-decoration: none;
}

.notify-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.notify-actions form {
    margin: 0;
}

.nav-foot {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.nav-foot form {
    margin: 0;
}

.admin-link,
.help-link {
    justify-content: flex-start;
    min-height: 34px;
    padding: 0 8px;
    font-size: 13px;
}

.admin-link:hover,
.help-link:hover {
    color: var(--teal-2);
    transform: translateX(2px);
}

.logout {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.logout:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 14px 26px rgba(186, 26, 26, .2);
}

.dash-main {
    min-width: 0;
}

.top {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 56px;
    padding: 0 clamp(18px, 3vw, 42px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
}

.search {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 12px;
    width: min(460px, 100%);
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d7e0ef;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--muted);
}

.search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
}

.top-btn:hover {
    background: var(--soft);
}

.top-btn small {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.has-dot::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ca3636;
}

.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--slate);
    color: #fff;
    font-weight: 700;
}

.dash-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px clamp(18px, 3vw, 42px);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 0 6px;
    color: var(--slate);
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.08;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 22px;
}

.main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(0, 106, 97, .16);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.main-btn:hover {
    background: var(--teal-2);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 32px rgba(0, 80, 73, .22);
    transform: translateY(-1px);
}

.btn,
.filter-btn,
.secondary-button {
    text-decoration: none;
}

.btn:hover,
.filter-btn:hover,
.secondary-button:hover {
    text-decoration: none;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat,
.box,
.alert-box {
    border: 1px solid #d9e2f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .04);
}

.stat {
    min-height: 128px;
    padding: 18px;
}

.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-head span {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stat-head i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--teal-2);
    font-style: normal;
}

.stat-head .blue {
    background: #dce9ff;
    color: var(--slate);
}

.stat-head .red {
    background: var(--red-bg);
    color: var(--red);
}

.stat strong {
    color: var(--slate);
    font-size: 40px;
    line-height: 1;
}

.stat .danger {
    color: #ef4444;
}

.stat p {
    margin: 12px 0 0;
    color: var(--muted);
}

.stat em {
    color: var(--teal-2);
    font-style: normal;
    font-weight: 700;
}

.bar {
    height: 7px;
    margin-top: 24px;
    border-radius: 999px;
    background: #dce9ff;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--slate);
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 28px;
}

.box {
    padding: 18px;
}

.box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.box h2,
.alert-box h2 {
    margin: 0;
    color: var(--slate);
    font-size: 22px;
    line-height: 28px;
}

.box-head a,
.more {
    color: var(--teal-2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.class-list {
    display: grid;
    gap: 16px;
}

.class-item {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 86px;
    padding: 14px 20px;
    border: 1px solid #d9e2f1;
    border-radius: 10px;
    background: #f8f9ff;
}

.class-item.active {
    border-left: 4px solid var(--teal);
}

.class-item time {
    display: grid;
    justify-items: center;
    padding-right: 18px;
    border-right: 1px solid var(--line);
}

.class-item time strong,
.class-item h3 {
    color: var(--slate);
    font-size: 22px;
    line-height: 28px;
}

.class-item time span,
.class-item p {
    color: var(--muted);
}

.class-item h3,
.class-item p {
    margin: 0;
}

.class-item p {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 14px;
}

.class-item p span {
    font-size: 16px;
}

.pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: #e5eeff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.side-col {
    display: grid;
    gap: 28px;
    align-content: start;
}

.alert-box {
    overflow: hidden;
    border-color: #ffc8c0;
}

.alert-box header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    background: var(--red-bg);
    color: var(--red);
}

.alert-box h2 {
    color: var(--red);
}

.alert-box article {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 22px;
}

.alert-box article + article {
    border-top: 1px solid var(--line);
}

.alert-box i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(186, 26, 26, .1);
    color: var(--red);
    font-style: normal;
}

.alert-box .warn {
    background: #ffddb8;
    color: #8a5700;
}

.alert-box p,
.alert-box span {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 22px;
}

.alert-box span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.activity h2 {
    margin-bottom: 22px;
}

.timeline {
    display: grid;
    gap: 20px;
    margin-left: 8px;
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.timeline article {
    position: relative;
}

.timeline article::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 7px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #c5c6cd;
}

.timeline .on::before {
    background: var(--teal);
}

.timeline h3,
.timeline p {
    margin: 0;
}

.timeline h3 {
    color: var(--ink);
    font-size: 15px;
    line-height: 21px;
}

.timeline p {
    color: var(--muted);
    font-size: 13px;
    line-height: 19px;
}

.more {
    display: block;
    margin-top: 22px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    text-align: center;
}

.more:hover {
    background: var(--soft);
}

.notes-hero {
    align-items: flex-start;
}

.notes-page {
    max-width: 1240px;
}

.notes-page .hero h1,
.settings-page .hero h1 {
    font-size: clamp(28px, 3.2vw, 38px);
}

.notes-page .hero p,
.settings-page .hero p {
    font-size: 15px;
    line-height: 23px;
}

.notes-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #d9e2f1;
    border-radius: 9px;
    background: #fff;
}

.notes-filters {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin: -12px 0 22px;
}

.notes-filters label {
    display: grid;
    gap: 7px;
    min-width: 170px;
}

.notes-filters span,
.mini-stat > span {
    color: #334762;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.notes-filters select {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #d9e2f1;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
}

.notes-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.notes-panel h2,
.notes-detail h2 {
    margin: 0 0 16px;
    color: var(--slate);
    font-size: 20px;
}

.notes-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.notes-form.three {
    grid-template-columns: minmax(0, 1.2fr) minmax(100px, .6fr) minmax(100px, .6fr);
}

.notes-form.two {
    grid-template-columns: minmax(0, 1fr) minmax(130px, .55fr);
}

.notes-form label,
.state-form label {
    display: grid;
    gap: 6px;
}

.notes-form span,
.state-form span {
    color: #334762;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.notes-form input,
.notes-form select,
.state-form select,
.grade-form input {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    border: 1px solid #d9e2f1;
    border-radius: 10px;
    background: #f8fbff;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.notes-form input:focus,
.notes-form select:focus,
.state-form select:focus,
.grade-form input:focus {
    outline: 0;
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 106, 97, .12);
}

.notes-form input,
.notes-form select,
.grade-form input {
    padding: 0 13px;
}

.notes-form select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, var(--teal-2) 50%),
        linear-gradient(135deg, var(--teal-2) 50%, transparent 50%),
        #f8fbff;
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%,
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    padding-right: 38px;
    cursor: pointer;
}

.state-form select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, var(--teal-2) 50%),
        linear-gradient(135deg, var(--teal-2) 50%, transparent 50%),
        #f8fbff;
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%,
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    padding-right: 34px;
    cursor: pointer;
}

.notes-form select option,
.state-form select option {
    color: var(--ink);
    background: #fff;
}

.notes-form .btn {
    grid-column: 1 / -1;
}

.notes-grid.single {
    grid-template-columns: 1fr;
}

.sheet-list {
    display: grid;
    gap: 10px;
}

.sheet-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #d9e2f1;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.sheet-list a > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sheet-list small {
    color: var(--teal-2);
    font-size: 12px;
    font-weight: 900;
}

.sheet-list i {
    color: var(--muted);
    font-size: 21px;
}

.sheet-list a:hover,
.sheet-list .on {
    border-color: var(--teal);
    background: #effdfa;
    transform: translateY(-1px);
}

.sheet-list strong {
    color: var(--slate);
}

.sheet-list span,
.muted {
    color: var(--muted);
    font-size: 13px;
    line-height: 19px;
}

.notes-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.notes-detail p {
    margin: -8px 0 0;
    color: var(--muted);
}

.state-form {
    display: flex;
    align-items: end;
    gap: 10px;
}

.state-form select {
    min-width: 130px;
    padding: 0 10px;
}

.sheet-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-col {
    position: relative;
}

.add-col summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 12px 28px rgba(0, 106, 97, .16);
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.add-col summary::-webkit-details-marker {
    display: none;
}

.add-col summary:hover,
.add-col[open] summary {
    background: var(--teal-2);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 106, 97, .2);
}

.add-col form {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 16;
    display: grid;
    gap: 10px;
    width: 260px;
    padding: 12px;
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.add-col label {
    display: grid;
    gap: 6px;
}

.add-col span:not(.material-symbols-outlined) {
    color: #334762;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.add-col input {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d9e2f1;
    border-radius: 9px;
    background: #f8fbff;
    color: var(--ink);
}

.add-col button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    background: var(--teal);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.sheet-tools .status-pill {
    border: 1px solid #b9ece5;
    background: #effdfa;
    color: var(--teal-2);
}

.sheet-tools .card-menu > div {
    min-width: 242px;
}

.sheet-tools .sheet-menu > div {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 10px;
    width: 310px;
    max-width: calc(100vw - 36px);
    padding: 32px 14px 14px;
    border-radius: 14px;
    z-index: 35;
}

.sheet-tools .state-form {
    display: grid;
    gap: 8px;
}

.sheet-tools .state-form label {
    display: grid;
    gap: 6px;
}

.sheet-tools .state-form button,
.sheet-tools .card-menu form > button {
    justify-content: flex-start;
}

.avg-config-form {
    display: grid;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.avg-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.avg-config label {
    display: grid;
    gap: 6px;
}

.avg-config span {
    color: #334762;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.avg-config input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d9e2f1;
    border-radius: 10px;
    background: #f8fbff;
    color: var(--ink);
    font-weight: 800;
}

.avg-config-form > button {
    width: 100%;
    min-height: 40px;
    justify-content: center !important;
    border: 1px solid rgba(0, 106, 97, .16) !important;
    border-radius: 10px;
    background: var(--teal) !important;
    color: #fff !important;
    box-shadow: 0 12px 22px rgba(0, 106, 97, .16);
    font-size: 14px;
    font-weight: 900;
}

.avg-config-form > button .material-symbols-outlined {
    color: #fff;
}

.avg-config-form > button:hover {
    background: var(--teal-2) !important;
    color: #fff !important;
}

.avg-col small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
}

.delete-btn {
    min-height: 39px;
    padding: 0 14px;
    border: 1px solid #ffd0ca;
    border-radius: 10px;
    background: #fff6f4;
    color: var(--red);
    cursor: pointer;
    font-weight: 700;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.delete-btn:hover {
    background: var(--red);
    color: #fff;
    box-shadow: 0 14px 26px rgba(186, 26, 26, .18);
}

.sheet {
    overflow: visible;
    padding: 0;
}

.sheet-table {
    overflow: visible;
}

.sheet table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.sheet th,
.sheet td {
    padding: 10px 8px;
    border-bottom: 1px solid #e7edf6;
    text-align: left;
    white-space: nowrap;
}

.sheet th:first-child,
.sheet td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 235px;
    max-width: 265px;
    padding-left: 18px;
    background: #fff;
    box-shadow: 8px 0 18px rgba(11, 28, 48, .05);
}

.sheet th:first-child {
    z-index: 3;
    background: #eef2f7;
}

.sheet .avg-col,
.sheet .avg-cell {
    position: sticky;
    right: 0;
    z-index: 1;
    min-width: 110px;
    border-left: 1px solid #d9e2f1;
    background: #f8fbff;
    text-align: center;
}

.avg-cell strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 900;
}

.avg-cell strong.pass {
    background: #ecfdf5;
    color: #006a61;
}

.avg-cell strong.fail {
    background: #fff1f2;
    color: #b91c1c;
}

.sheet th.avg-col {
    z-index: 2;
    background: #e8eef8;
}

.sheet th {
    background: #eef2f7;
    color: #0b1c30;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sheet th small,
.sheet td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: clamp(92px, calc(var(--title-len, 6) * .82ch + 58px), 190px);
    max-width: 220px;
}

.col-head > span {
    display: grid;
    gap: 2px;
    min-width: max-content;
    max-width: 170px;
}

.col-menu summary {
    width: 24px;
    height: 24px;
    background: transparent;
}

.col-menu[open] {
    z-index: 30;
}

.col-menu > div {
    position: relative;
    min-width: 220px;
    display: grid;
    gap: 10px;
    padding: 28px 10px 10px;
    z-index: 40;
}

.card-menu .mini-close,
.col-menu .mini-close {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.card-menu .mini-close:hover,
.col-menu .mini-close:hover {
    background: #effdfa;
    color: var(--teal-2);
}

.card-menu .mini-close .material-symbols-outlined,
.col-menu .mini-close .material-symbols-outlined {
    font-size: 18px;
}

.col-edit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7edf6;
}

.col-edit label {
    display: grid;
    gap: 5px;
}

.col-edit span:not(.material-symbols-outlined) {
    color: #334762;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.col-edit input {
    width: 100%;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    background: #f8fbff;
}

.col-edit button {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.col-menu > div > form:not(.col-edit) button {
    justify-content: center;
    min-height: 34px;
    border: 1px solid #ffd0ca;
    background: #fff6f4;
}

.sheet tbody tr:last-child td {
    border-bottom: 0;
}

.grade-form {
    display: grid;
    grid-template-columns: 62px 18px;
    gap: 5px;
    align-items: center;
}

.grade-form.locked {
    grid-template-columns: 62px;
}

.grade-form input {
    min-height: 32px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 12px;
    text-align: center;
}

.grade-form input:disabled {
    background: #eef2f7;
    color: #64748b;
    cursor: not-allowed;
}

.grade-form input.pass {
    border-color: #12b981;
    background: #ecfdf5;
    color: #006a61;
    font-weight: 800;
}

.grade-form input.fail {
    border-color: #ef4444;
    background: #fff1f2;
    color: #b91c1c;
    font-weight: 800;
}

.save-state {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
}

.save-state.saving {
    border: 2px solid #b9ece5;
    border-top-color: var(--teal);
    animation: spin .75s linear infinite;
}

.save-state.saved::before {
    content: "✓";
    color: var(--teal-2);
    font-size: 12px;
    font-weight: 900;
}

.save-state.error::before {
    content: "!";
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.grade-form button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

.grade-form button:hover {
    background: var(--teal-2);
    transform: translateY(-1px);
}

.empty {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 36px 22px;
    text-align: center;
}

.empty > span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 15px;
    background: #e5eeff;
    color: #002ea3;
}

.empty h2 {
    margin: 0 0 8px;
    color: var(--slate);
}

.empty p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.search-page {
    max-width: 1180px;
}

.search-hero {
    min-height: 0;
    padding-bottom: 4px;
}

.global-results {
    display: grid;
    gap: 14px;
}

.result-section {
    padding: 0;
    overflow: hidden;
}

.result-section .box-head {
    min-height: 54px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.result-section h2 {
    font-size: 18px;
}

.result-count {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #e6fffb;
    color: var(--teal-2);
    font-size: 12px;
    font-weight: 900;
}

.result-list {
    display: grid;
}

.result-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 12px 18px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: background .16s ease, transform .16s ease;
}

.result-row:last-child {
    border-bottom: 0;
}

.result-row:hover {
    background: #f8fbff;
    transform: translateX(2px);
}

.result-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mint);
    color: var(--teal-2);
}

.result-row strong,
.result-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-row strong {
    color: var(--slate);
    font-size: 15px;
}

.result-row small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.result-row em {
    color: var(--teal-2);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.search-empty {
    min-height: 320px;
}

.note-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
}

.mini-stat {
    min-height: 104px;
    padding: 20px;
}

.mini-stat strong {
    display: block;
    margin-top: 12px;
    color: #002ea3;
    font-size: 32px;
}

.sheet td > strong {
    color: var(--slate);
}

.sheet .grade-form {
    min-width: 88px;
}

.settings-page {
    max-width: 1120px;
}

.settings-hero {
    margin-bottom: 24px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-card {
    display: grid;
    gap: 20px;
}

.settings-card header,
.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-card header > span,
.profile-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: #e5eeff;
    color: var(--teal-2);
}

.profile-mark {
    background: var(--slate);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.settings-card h2 {
    margin: 0;
    color: var(--slate);
    font-size: 19px;
    line-height: 22px;
}

.settings-card p,
.settings-card span {
    margin: 0;
    color: var(--muted);
    line-height: 20px;
}

.profile-card span {
    display: block;
    margin-bottom: 4px;
    color: var(--teal-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.settings-actions {
    display: inline-flex;
    width: max-content;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.settings-actions a {
    min-width: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    transition: background .16s ease, color .16s ease;
}

.settings-actions .on,
.settings-actions a:hover {
    background: var(--teal);
    color: #fff;
}

.settings-form {
    display: grid;
    gap: 12px;
}

.settings-form label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbff;
}

.settings-form label:has(input[type="password"]),
.settings-form label:has(input:not([type])) {
    display: grid;
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px;
}

.settings-form input[type="password"],
.settings-form input:not([type]) {
    width: 100%;
    min-height: 36px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.settings-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.settings-form .btn,
.settings-form .secondary-button {
    margin-top: 0;
}

.small-button {
    width: max-content;
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(9, 20, 38, .48);
    backdrop-filter: blur(10px);
}

.modal.show {
    display: grid;
}

.modal-card {
    position: relative;
    width: min(480px, 100%);
    padding: 28px;
    border: 1px solid #d9e2f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(9, 20, 38, .25);
    animation: modal-in .18s ease both;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f2f6ff;
    color: var(--slate);
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

.modal-close:hover {
    background: #e5eeff;
    transform: rotate(6deg);
}

.modal-head {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding-right: 34px;
}

.modal-head > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #dffaf6;
    color: var(--teal-2);
}

.modal-head h2 {
    margin: 0 0 4px;
    color: var(--slate);
    font-size: 24px;
    line-height: 30px;
}

.modal-head p,
.modal-note {
    margin: 0;
    color: var(--muted);
    line-height: 21px;
}

.pass-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 24px 0 18px;
}

.pass-steps span {
    display: grid;
    place-items: center;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eeff;
    color: transparent;
}

.pass-steps .on {
    background: var(--teal);
}

.modal-form {
    gap: 14px;
}

.modal-form label {
    min-height: 58px;
    background: #f8fbff;
}

.modal-form .btn {
    min-height: 46px;
}

.code-timer {
    display: flex;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #d9e2f1;
    border-radius: 10px;
    background: #f8fbff;
    color: var(--muted);
    font-size: 13px;
}

.code-timer strong {
    color: var(--slate);
    font-variant-numeric: tabular-nums;
}

.resend-form {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-top: 12px;
}

.link-button {
    border: 0;
    background: transparent;
    color: var(--teal-2);
    cursor: pointer;
    font-weight: 800;
    transition: color .16s ease, opacity .16s ease;
}

.link-button:hover {
    color: var(--teal);
}

.link-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.resend-form small {
    color: var(--muted);
    font-size: 12px;
}

.resend-form small span {
    font-variant-numeric: tabular-nums;
}

.code-input {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .18em;
}

.compact .dash {
    padding-left: 228px;
}

.compact.nav-mini .dash {
    padding-left: 78px;
}

.compact .nav {
    gap: 18px;
    padding: 18px 14px;
}

.compact.nav-mini .nav {
    padding-inline: 12px;
}

.compact .nav-list a,
.compact .help-link,
.compact .logout {
    min-height: 36px;
    font-size: 13px;
}

.compact .top {
    min-height: 54px;
}

.compact .dash-content {
    padding-block: 28px;
}

.compact .box,
.compact .stat {
    padding: 18px;
}

.compact .hero {
    margin-bottom: 20px;
}

.compact .hero h1 {
    font-size: clamp(26px, 3vw, 34px);
}

.error-view {
    display: grid;
    place-items: center;
    flex: 1;
    min-height: calc(100vh - 58px);
    padding: 28px 18px;
    background: linear-gradient(180deg, #f8f9ff 0%, #eff4ff 100%);
}

.error-card {
    width: min(460px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.error-card .logo {
    margin-bottom: 20px;
}

.error-card .copy h1 {
    max-width: 340px;
}

.error-card .note {
    margin: 0;
}

@media (max-width: 980px) {
    .auth,
    .dash {
        display: block;
    }

    .art { display: none; }

    .panel,
    .panel-reg {
        min-height: 0;
        width: 100%;
        padding: 26px 20px 36px;
    }

    .m-logo { display: block; }
    .m-logo .logo { margin-bottom: 30px; }
    .panel-reg > .logo { display: none; }

    .copy h1,
    .reg .copy h1 {
        font-size: 28px;
        line-height: 34px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .nav {
        position: static;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .dash,
    .nav-mini .dash,
    .compact .dash {
        padding-left: 0;
    }

    .top {
        position: static;
        flex-wrap: wrap;
        padding: 14px 18px;
    }

    .search {
        order: 2;
        width: 100%;
    }

    .dash-content {
        padding: 26px 18px;
    }

    .hero,
    .box-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats,
    .dash-grid,
    .notes-grid,
    .settings-grid,
    .note-stats {
        grid-template-columns: 1fr;
    }

    .notes-filters {
        justify-content: stretch;
        flex-direction: column;
        margin-top: 0;
    }

    .notes-form,
    .notes-form.three,
    .notes-form.two,
    .notes-detail {
        grid-template-columns: 1fr;
    }

    .state-form {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-card header,
    .profile-card {
        align-items: flex-start;
    }

    .class-item {
        grid-template-columns: 72px 1fr;
    }

    .class-item .pill {
        grid-column: 2;
        width: max-content;
    }

    .foot {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 520px) {
    .name { font-size: 23px; }
    .panel { padding-inline: 16px; }
    .input { min-height: 43px; }
}

.land-body {
    min-height: 100vh;
    background: #f8f9ff;
}

.land {
    overflow: hidden;
    background: #f8f9ff;
}

.land-wrap {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
}

.land-top {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 56px;
    padding: 0 clamp(18px, 5vw, 80px);
    border-bottom: 1px solid #e2e8f0;
    background: rgba(248, 249, 255, .9);
    backdrop-filter: blur(16px);
}

.land-brand,
.land-nav,
.land-actions,
.hero-actions,
.tag,
.land-cta,
.land-demo,
.feature i,
.chips span,
.metric-row,
.shot-bar,
.student-cards {
    display: flex;
    align-items: center;
}

.land-brand {
    gap: 10px;
    text-decoration: none;
}

.land-brand strong {
    font-size: 15px;
    letter-spacing: .12em;
}

.land-nav {
    justify-content: center;
    gap: 28px;
    color: #45474c;
    font-size: 13px;
}

.land-nav a,
.land-link {
    text-decoration: none;
    transition: color .18s ease;
}

.land-nav a:hover,
.land-link:hover {
    color: #006a61;
}

.land-actions {
    justify-content: flex-end;
    gap: 14px;
}

.land-link {
    color: #0b1c30;
    font-size: 13px;
    font-weight: 700;
}

.land-cta,
.land-demo {
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.land-cta {
    gap: 8px;
    border: 1px solid #091426;
    background: #091426;
    color: #fff;
    box-shadow: 0 14px 26px rgba(9, 20, 38, .18);
}

.land-cta.small {
    min-height: 36px;
    padding-inline: 16px;
    font-size: 12px;
}

.land-cta:hover {
    background: #0d9488;
    border-color: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(13, 148, 136, .22);
}

.land-demo {
    border: 1px solid #d6dce8;
    background: #fff;
    color: #091426;
}

.land-demo:hover {
    border-color: #0d9488;
    transform: translateY(-2px);
}

.land-hero {
    padding: clamp(70px, 9vw, 130px) 0 clamp(70px, 8vw, 110px);
    background: linear-gradient(120deg, #e7f8ff 0%, #eef4ff 58%, #e5eeff 100%);
}

.land-hero > .land-wrap,
.hero-grid,
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
    align-items: center;
    gap: clamp(34px, 6vw, 90px);
}

.tag {
    width: max-content;
    gap: 8px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #89f5e7;
    color: #005049;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.tag .material-symbols-outlined {
    font-size: 16px;
}

.hero-copy h1,
.land-final h2 {
    max-width: 620px;
    margin: 20px 0 18px;
    color: #0b1c30;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: 0;
}

.hero-copy p,
.split-copy p,
.security-card p,
.land-final p {
    margin: 0;
    color: #45474c;
    font-size: 16px;
    line-height: 1.7;
}

.hero-copy p {
    max-width: 560px;
}

.hero-actions {
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.land-final .hero-actions,
.hero-actions.center {
    justify-content: center;
}

.hero-media {
    transform: rotate(2deg);
}

.hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top center;
    border: 8px solid #fff;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(9, 20, 38, .2);
}

.land-section {
    padding: clamp(70px, 8vw, 108px) 0;
    background: #f8f9ff;
}

.land-section.white {
    background: #fff;
}

.section-title {
    margin-bottom: 56px;
    text-align: center;
}

.section-title h2,
.split-copy h2,
.security-card h2 {
    margin: 0;
    color: #0b1c30;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-title span {
    display: block;
    width: 74px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: #006a61;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature {
    min-height: 230px;
    padding: 34px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature:hover {
    border-color: #bcc7de;
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, .08);
}

.feature i,
.security-card > i {
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e5eeff;
    color: #091426;
}

.feature i.mint {
    background: #89f5e7;
    color: #005049;
}

.feature h3 {
    margin: 30px 0 12px;
    font-size: 15px;
}

.feature p {
    margin: 0;
    color: #45474c;
    line-height: 1.65;
}

.panel-shot,
.dark-preview {
    min-height: 330px;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(9, 20, 38, .12);
}

.panel-shot {
    padding: 18px;
    border: 1px solid #dce6f4;
    background: #fff;
}

.shot-bar {
    gap: 8px;
    height: 26px;
}

.shot-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d3e4fe;
}

.student-cards {
    gap: 16px;
    margin-top: 28px;
}

.student-cards article,
.metric-row article {
    flex: 1;
    padding: 20px;
    border-radius: 14px;
    background: #eff4ff;
}

.student-cards strong,
.metric-row strong {
    display: block;
    color: #006a61;
    font-size: 30px;
}

.student-cards span,
.metric-row span {
    color: #45474c;
    font-size: 13px;
}

.shot-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.shot-list span {
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e5eeff 0 34%, #f8f9ff 34% 100%);
}

.mini {
    display: block;
    margin-bottom: 14px;
    color: #006a61;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.split-copy ul {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.split-copy li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b1c30;
}

.split-copy li span {
    color: #0d9488;
    font-size: 20px;
}

.land-dark,
.land-final {
    padding: clamp(70px, 8vw, 112px) 0;
    background: #091426;
    color: #fff;
}

.land-dark .split {
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
}

.land-dark .mini,
.land-dark .split-copy h2,
.land-final h2 {
    color: #fff;
}

.land-dark .split-copy p,
.land-final p,
.land-final span {
    color: #bcc7de;
}

.metric-row {
    gap: 14px;
    margin-top: 28px;
}

.metric-row article {
    background: #1e293b;
}

.metric-row strong {
    color: #89f5e7;
    font-size: 24px;
}

.metric-row span {
    color: #eaf1ff;
}

.dark-preview {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(135deg, #1e293b, #28366f 58%, #0d9488);
}

.chart {
    height: 150px;
    border-radius: 16px;
    background:
        linear-gradient(160deg, transparent 0 44%, rgba(137, 245, 231, .65) 45% 47%, transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
}

.bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 14px;
    height: 105px;
    margin-top: 24px;
}

.bars span {
    border-radius: 10px 10px 0 0;
    background: rgba(137, 245, 231, .72);
}

.bars span:nth-child(1) { height: 42%; }
.bars span:nth-child(2) { height: 70%; }
.bars span:nth-child(3) { height: 56%; }
.bars span:nth-child(4) { height: 88%; }

.security-card {
    width: min(100%, 1060px);
    margin: 0 auto;
    padding: clamp(38px, 6vw, 70px);
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 58px rgba(9, 20, 38, .1);
}

.security-card > i {
    margin: 0 auto 24px;
    background: #dffaf6;
    color: #005049;
}

.security-card p {
    width: min(100%, 680px);
    margin: 18px auto 0;
}

.chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.chips span {
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f8f9ff;
    color: #45474c;
    font-size: 13px;
}

.chips i {
    color: #006a61;
    font-size: 15px;
}

.land-final {
    text-align: center;
}

.land-final h2 {
    max-width: none;
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
}

.land-final p {
    width: min(100%, 680px);
    margin: 0 auto;
}

.land-demo.dark {
    border-color: rgba(255, 255, 255, .2);
    background: #1e293b;
    color: #fff;
}

.land-final span {
    display: block;
    margin-top: 20px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .land-top {
        grid-template-columns: 1fr auto;
    }

    .land-nav {
        display: none;
    }

    .hero-grid,
    .split,
    .land-dark .split,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-media {
        transform: none;
    }

    .feature {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .land-wrap {
        width: min(100% - 28px, 1200px);
    }

    .land-top {
        min-height: auto;
        padding: 14px;
    }

    .land-actions {
        gap: 8px;
    }

    .land-link {
        display: none;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .student-cards,
    .metric-row {
        flex-direction: column;
        align-items: stretch;
    }

    .security-card {
        border-radius: 18px;
    }
}

.proof-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.proof-line span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(9, 20, 38, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .64);
    color: #45474c;
    font-size: 12px;
}

.proof-line strong {
    color: #006a61;
}

.hero-media {
    position: relative;
}

.float-card {
    position: absolute;
    display: grid;
    gap: 2px;
    min-width: 150px;
    padding: 14px 16px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 35px rgba(9, 20, 38, .14);
    backdrop-filter: blur(14px);
}

.float-card .material-symbols-outlined {
    color: #006a61;
    font-size: 22px;
}

.float-card strong {
    color: #0b1c30;
    font-size: 14px;
}

.float-card small {
    color: #45474c;
}

.float-card.one {
    left: -18px;
    bottom: 22px;
}

.float-card.two {
    top: -22px;
    right: 28px;
}

.land-strip {
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.land-strip > .land-wrap,
.strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.strip-grid article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 6px 14px;
    align-items: center;
    min-height: 112px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .07);
}

.strip-grid .material-symbols-outlined {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #dffaf6;
    color: #005049;
}

.strip-grid strong {
    color: #0b1c30;
    font-size: 16px;
}

.strip-grid p {
    margin: 0;
    color: #45474c;
    line-height: 1.45;
}

.feature {
    overflow: hidden;
    padding-top: 18px;
}

.feature figure {
    overflow: hidden;
    height: 128px;
    margin: -6px -18px 22px;
    border-radius: 13px;
    border: 1px solid #e2e8f0;
    background: #eff4ff;
}

.feature figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: saturate(.92);
}

.feature:nth-child(2) figure img {
    object-position: center;
}

.feature:nth-child(3) figure img {
    object-position: bottom center;
}

.image-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 22px;
    border: 1px solid #dce6f4;
    background: #fff;
    box-shadow: 0 24px 54px rgba(9, 20, 38, .12);
}

.image-card > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: top center;
}

.image-note {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, .86);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 40px rgba(9, 20, 38, .13);
    backdrop-filter: blur(14px);
}

.image-note .material-symbols-outlined {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #89f5e7;
    color: #005049;
}

.image-note strong {
    color: #0b1c30;
}

.image-note small {
    color: #45474c;
}

.dark-preview img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .22);
}

.security-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
    gap: 20px;
}

.security-grid .security-card {
    width: 100%;
}

.guard-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 58px rgba(9, 20, 38, .08);
}

.guard-card div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: #f8f9ff;
}

.guard-card .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #e5eeff;
    color: #091426;
}

.guard-card strong {
    color: #0b1c30;
}

@media (max-width: 900px) {
    .land-strip > .land-wrap,
    .strip-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .land-strip {
        margin-top: 0;
        padding-top: 18px;
    }

    .float-card {
        position: static;
        margin-top: 12px;
    }
}

@media (max-width: 620px) {
    .proof-line,
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .land-cta,
    .land-demo {
        width: 100%;
    }

    .image-card,
    .image-card > img {
        min-height: 320px;
    }

    .feature figure {
        height: 110px;
    }
}

.courses-page {
    max-width: 1240px;
}

.courses-hero {
    align-items: flex-start;
    margin-bottom: 26px;
}

.course-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    margin-bottom: 26px;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.course-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.course-panel h2 {
    margin: 0 0 16px;
    color: var(--slate);
    font-size: 15px;
}

.course-card {
    position: relative;
    min-height: 315px;
    padding: 28px;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.course-menu {
    position: absolute;
    top: 24px;
    right: 22px;
    z-index: 5;
}

.course-menu summary {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8793a4;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
    list-style: none;
}

.course-menu summary::-webkit-details-marker {
    display: none;
}

.course-menu summary:hover,
.course-menu[open] summary {
    background: #f0f7ff;
    color: var(--slate);
}

.course-menu-panel {
    position: absolute;
    top: 40px;
    right: 0;
    display: grid;
    min-width: 180px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    box-shadow: var(--shade);
}

.course-menu-panel form {
    margin: 0;
}

.course-menu-panel button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}

.course-menu-panel button:hover {
    background: var(--soft);
}

.course-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: #e9eefc;
    color: #092c9f;
    font-size: 34px;
}

.course-card:nth-child(2n) .course-icon {
    background: #006386;
    color: #d4f3ff;
}

.course-card h2 {
    margin: 0 0 6px;
    color: var(--slate);
    font-size: 25px;
    line-height: 32px;
    font-weight: 800;
}

.course-card p {
    margin: 0 0 26px;
    color: #334762;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--slate-2);
    font-size: 15px;
}

.course-meta .material-symbols-outlined {
    font-size: 19px;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 39px;
    margin-bottom: 20px;
}

.course-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 7px 12px;
    border-radius: 11px;
    background: #eef1f5;
    color: #526173;
    font-size: 12px;
    font-weight: 700;
}

.view-mode-bar {
    position: fixed;
    top: 70px;
    right: 18px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(460px, calc(100vw - 36px));
    padding: 8px 9px 8px 13px;
    border: 1px solid #b9ece5;
    border-radius: 999px;
    background: rgba(239, 253, 250, .96);
    color: var(--slate);
    box-shadow: 0 18px 40px rgba(9, 20, 38, .14);
    backdrop-filter: blur(12px);
}

.view-mode-bar span:not(.material-symbols-outlined) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
}

.view-mode-bar button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.view-mode-bar button:hover {
    background: var(--red);
}

.course-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #d9e2f1;
}

.course-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00a86b;
    font-size: 13px;
}

.course-status i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.course-card footer a {
    color: #001b8f;
    text-decoration: none;
    font-weight: 800;
}

.course-card footer a:hover {
    text-decoration: underline;
}

.course-activity h2 {
    margin: 0 0 8px;
    color: var(--slate);
    font-size: 22px;
}

.course-summary {
    display: grid;
    align-content: space-between;
    min-height: 315px;
    padding: 28px;
    border-radius: 8px;
    background: #082e9e;
    color: #fff;
    box-shadow: 0 15px 32px rgba(8, 46, 158, .18);
}

.course-summary > span {
    color: #cad7ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.course-summary > strong {
    margin-top: 8px;
    font-size: clamp(34px, 4vw, 42px);
    line-height: 1.08;
}

.course-summary > p {
    max-width: 280px;
    margin: 18px 0 44px;
    color: #eef4ff;
    font-size: 16px;
    line-height: 24px;
}

.course-summary > div {
    display: flex;
    gap: 34px;
}

.course-summary article {
    display: grid;
    gap: 5px;
}

.course-summary article strong {
    font-size: 28px;
}

.course-summary article small {
    color: #cad7ff;
}

.course-activity {
    margin-top: 4px;
}

.activity-table {
    padding: 0;
    overflow: hidden;
}

.activity-head,
.activity-table article {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(110px, .65fr) minmax(120px, .65fr) minmax(110px, .5fr);
    gap: 18px;
    align-items: center;
    padding: 16px 24px;
}

.activity-head {
    background: #f3f6fb;
    color: #334762;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.activity-table article {
    border-top: 1px solid #d9e2f1;
    color: var(--slate);
    font-size: 15px;
}

.activity-table article > span:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-table i {
    color: #082e9e;
}

.activity-table i.orange {
    color: #f28c00;
}

.activity-table strong {
    width: max-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.activity-table .done {
    background: #d9fbe9;
    color: #078353;
}

.activity-table .pending {
    background: #fff1d6;
    color: #d87900;
}

@media (max-width: 1180px) {
    .course-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .course-tools,
    .course-list {
        grid-template-columns: 1fr;
    }

    .activity-head {
        display: none;
    }

    .activity-table article {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.students-page {
    display: grid;
    gap: 24px;
}

.students-hero .main-btn {
    box-shadow: 0 12px 25px rgba(0, 45, 150, .18);
}

.student-filter-box {
    padding: 26px 28px;
}

.student-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(190px, 320px) minmax(140px, 190px);
    gap: 18px;
    align-items: center;
}

.student-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #d9e2f1;
    border-radius: 6px;
    background: #f7f9fc;
}

.student-search input,
.student-filters select,
.report-form select,
.report-form input,
.student-form input,
.student-form select,
.student-edit input,
.student-edit select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9e2f1;
    border-radius: 6px;
    background: #f7f9fc;
    color: var(--slate);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.student-search input {
    min-height: 42px;
    border: 0;
    background: transparent;
}

.student-filters select,
.report-form select,
.student-form select,
.student-edit select {
    appearance: none;
    padding: 0 44px 0 14px;
    background-image: linear-gradient(45deg, transparent 50%, #526173 50%), linear-gradient(135deg, #526173 50%, transparent 50%);
    background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.student-form input,
.student-edit input {
    padding: 0 14px;
}

.student-search:focus-within,
.student-filters select:focus,
.report-form select:focus,
.report-form input:focus,
.student-form input:focus,
.student-form select:focus,
.student-edit input:focus,
.student-edit select:focus {
    border-color: #0f766e;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border: 1px solid #d9e2f1;
    border-radius: 6px;
    background: #fff;
    color: #334762;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.filter-btn:hover {
    border-color: #0f766e;
    box-shadow: 0 12px 24px rgba(15, 118, 110, .12);
    transform: translateY(-1px);
}

.report-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}

.report-box > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.report-box > div > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e3f8f4;
    color: #006b60;
    font-size: 29px;
}

.report-box h2 {
    margin: 0 0 4px;
    color: var(--slate);
    font-size: 21px;
}

.report-box p {
    margin: 0;
    color: #526173;
}

.report-form {
    display: grid;
    grid-template-columns: minmax(190px, 1.1fr) repeat(2, minmax(150px, .75fr)) repeat(2, minmax(130px, .6fr));
    gap: 14px;
    align-items: end;
}

.report-form label {
    display: grid;
    gap: 7px;
}

.report-form label > span {
    color: #334762;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.report-form select,
.report-form input,
.report-form .main-btn {
    min-height: 44px;
}

.report-panel {
    margin-bottom: 16px;
    padding: 18px;
}

.reports-page .hero {
    margin-bottom: 14px;
}

.compact-page {
    max-width: 1080px;
}

.notify-list {
    padding: 0;
    overflow: hidden;
}

.notify-list article,
.report-table article,
.admin-users article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border-top: 1px solid #d9e2f1;
}

.notify-list article:first-child,
.report-table article:first-of-type,
.admin-users article:first-child {
    border-top: 0;
}

.notify-list article.unread {
    background: #f0fdfa;
}

.notify-list h2,
.report-table h2 {
    margin: 0;
    color: var(--slate);
    font-size: 18px;
}

.notify-list p {
    margin: 6px 0;
    color: var(--ink);
    line-height: 1.45;
}

.notify-list span,
.report-table span,
.admin-users span {
    color: var(--muted);
    font-size: 12px;
}

.report-table {
    padding: 20px;
}

.report-table article {
    padding-inline: 0;
}

.report-table .box-head {
    margin-bottom: 14px;
}

.report-scroll {
    overflow-x: auto;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
}

.report-table table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e7edf6;
    text-align: left;
    white-space: nowrap;
}

.report-table th {
    background: #eef2f7;
    color: var(--slate);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.report-table tr:last-child td {
    border-bottom: 0;
}

.report-refresh {
    margin: 0;
}

.admin-page .hero {
    margin-bottom: 14px;
}

.admin-filter-box {
    margin-bottom: 10px;
    padding: 12px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(130px, 180px) minmax(130px, 170px);
    gap: 10px;
    align-items: end;
}

.admin-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    background: #f8fbff;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-search-field:focus-within {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 106, 97, .12);
}

.admin-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.admin-select-field {
    display: grid;
    gap: 6px;
}

.admin-select-field > span {
    color: #334762;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.admin-select-field select {
    min-height: 38px;
    padding: 0 38px 0 12px;
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, var(--teal-2) 50%),
        linear-gradient(135deg, var(--teal-2) 50%, transparent 50%),
        #f8fbff;
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%,
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    color: var(--ink);
}

.admin-users {
    overflow: hidden;
    padding: 0;
}

.admin-users .admin-user-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-top: 1px solid #d9e2f1;
}

.admin-users .admin-user-card:first-of-type {
    border-top: 1px solid #d9e2f1;
}

.admin-user-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: var(--slate);
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .02em;
}

.admin-user-main strong {
    display: block;
    color: var(--slate);
    font-size: 14px;
    line-height: 18px;
}

.admin-user-main span:not(.admin-avatar) {
    display: block;
    overflow: hidden;
    max-width: 520px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-main em {
    margin-left: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-user-main em.ok {
    background: #d9fbef;
    color: #007a5a;
}

.admin-user-main em.off {
    background: #ffe4df;
    color: var(--red);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.admin-actions form {
    margin: 0;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    background: #fff;
    color: var(--slate);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.icon-action span {
    color: inherit !important;
    font-size: 16px !important;
}

.icon-action:hover {
    border-color: var(--teal);
    background: #effdfa;
    color: var(--teal-2);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 106, 97, .1);
}

.icon-action.danger:hover {
    border-color: #ffc3bd;
    background: #fff4f2;
    color: var(--red);
}

.admin-users details {
    grid-column: auto;
    margin-top: 0;
}

.admin-users summary::-webkit-details-marker {
    display: none;
}

.admin-manage summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    min-height: 30px;
    margin-top: 0;
    padding: 0 10px;
    border: 1px solid #cfe3e1;
    border-radius: 999px;
    background: #f1fbf9;
    cursor: pointer;
    color: var(--teal-2);
    font-size: 11px;
    font-weight: 800;
    list-style: none;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.admin-manage summary:hover,
.admin-manage[open] summary {
    border-color: var(--teal);
    background: #e2fbf7;
    box-shadow: 0 10px 22px rgba(0, 106, 97, .08);
}

.admin-manage summary > span,
.admin-manage summary > i {
    color: inherit !important;
    font-size: 16px !important;
}

.admin-manage[open] summary > i {
    transform: rotate(180deg);
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, .8fr);
    gap: 10px;
    position: absolute;
    top: 38px;
    right: 0;
    z-index: 25;
    width: min(820px, calc(100vw - 360px));
    margin-top: 0;
    padding: 12px;
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 52px rgba(9, 20, 38, .14);
}

.admin-form {
    display: grid;
    gap: 8px;
    margin-top: 0;
    padding: 10px;
    border: 1px solid #d9e2f1;
    border-radius: 10px;
    background: #f8fbff;
}

.admin-form label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-form input:not([type="checkbox"]),
.admin-form textarea {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.admin-form textarea {
    min-height: 64px;
    padding-block: 10px;
    resize: vertical;
}

.admin-log {
    padding: 10px;
    border: 1px solid #d9e2f1;
    border-radius: 10px;
    background: #fff;
}

.admin-log h3 {
    margin: 0 0 10px;
    color: var(--slate);
    font-size: 14px;
}

.admin-log p {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 6px 0;
    border-top: 1px solid #edf2f7;
}

.admin-log p:first-of-type {
    border-top: 0;
}

.impersonation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: #fff7ed;
    color: #9a3412;
}

.support-admin {
    overflow: hidden;
    margin-bottom: 10px;
    padding: 0;
}

.support-admin details {
    padding: 9px 12px;
    border-top: 1px solid #d9e2f1;
}

.support-admin details:first-of-type {
    border-top: 0;
}

.support-admin summary {
    min-height: 30px;
    cursor: pointer;
    color: var(--slate);
    font-weight: 800;
    list-style: none;
}

.support-admin summary::-webkit-details-marker {
    display: none;
}

.support-admin summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.support-empty {
    margin: 0;
    padding: 12px;
}

.students-table {
    padding: 0;
    overflow: visible;
}

.student-head,
.student-row {
    display: grid;
    grid-template-columns: minmax(120px, .7fr) minmax(230px, 1.45fr) minmax(115px, .7fr) minmax(130px, .8fr) minmax(95px, .45fr);
    gap: 18px;
    align-items: center;
    padding: 18px 28px;
}

.student-head {
    border-radius: 8px 8px 0 0;
    background: #f1f4f8;
    color: #526173;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.student-row {
    position: relative;
    border-top: 1px solid #d9e2f1;
    color: var(--slate);
    font-size: 15px;
}

.student-row:nth-child(odd) {
    background: #fbfcfe;
}

.student-id {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
}

.student-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #dce9ff;
    color: #334762;
    font-size: 13px;
    font-weight: 900;
}

.course-chip {
    width: max-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 5px;
    background: #eef1f5;
    color: #526173;
}

.status-pill {
    width: max-content;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-pill.regular {
    background: #d9fbe9;
    color: #078353;
}

.status-pill.riesgo {
    background: #fff1d6;
    color: #d87900;
}

.status-pill.inasistente {
    background: #ffe0dc;
    color: #c01825;
}

.student-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-actions button,
.student-actions summary,
.student-actions .icon-action {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #526173;
    cursor: pointer;
    list-style: none;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.student-actions summary::-webkit-details-marker {
    display: none;
}

.student-actions button:hover,
.student-actions summary:hover,
.student-actions .icon-action:hover {
    background: #e9eef7;
    color: #082e9e;
    transform: translateY(-1px);
}

.student-actions form:last-child button:hover {
    background: #ffe0dc;
    color: #c01825;
}

.student-edit {
    position: absolute;
    right: 24px;
    top: 64px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 10px;
    width: min(520px, calc(100vw - 360px));
    padding: 16px;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, .18);
}

.student-edit .btn {
    grid-column: 1 / -1;
}

.student-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 42px 24px;
    text-align: center;
    color: #526173;
}

.student-empty .material-symbols-outlined {
    color: #0f766e;
    font-size: 42px;
}

.student-empty h2 {
    margin: 0;
    color: var(--slate);
    font-size: 22px;
}

.students-table footer {
    padding: 18px 28px;
    border-top: 1px solid #d9e2f1;
    background: #f8fafc;
    color: #526173;
}

.modal-panel {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modal-panel:target {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .52);
    backdrop-filter: blur(4px);
}

.modal-panel .modal-card {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 26px;
    box-shadow: 0 30px 70px rgba(2, 6, 23, .25);
}

.modal-panel .course-modal,
.modal-panel .notes-modal {
    width: min(920px, 100%);
}

.modal-panel .admin-manage-modal {
    width: min(960px, 100%);
    padding: 0;
    overflow: hidden;
}

.admin-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 14px;
    max-height: calc(100vh - 170px);
    overflow: auto;
    padding: 18px;
}

.admin-modal-card {
    margin: 0;
    padding: 16px;
    border: 1px solid #d9e2f1;
    border-radius: 14px;
    background: #f8fbff;
}

.admin-modal-card h3 {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    color: var(--slate);
    font-size: 15px;
}

.admin-manage-modal .notes-form.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.admin-manage-modal .admin-form {
    margin: 0;
    padding: 16px;
    align-content: start;
}

.admin-manage-modal .admin-log {
    max-height: 230px;
    overflow: auto;
}

.admin-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-modal-title .admin-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.admin-modal-title h2 {
    margin: 0;
}

.admin-modal-title p {
    max-width: 680px;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-panel .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.modal-panel .admin-manage-modal .modal-head {
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid #d9e2f1;
    background: #fff;
}

.modal-panel .modal-head h2 {
    margin: 0;
    color: var(--slate);
    font-size: 24px;
}

.modal-panel .modal-tools {
    grid-template-columns: 1fr;
    gap: 18px;
}

.modal-panel .modal-tools .course-panel {
    padding: 18px;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    background: #f8fafc;
}

.modal-panel .modal-tools .course-panel h3 {
    margin: 0 0 14px;
    color: var(--slate);
    font-size: 15px;
}

.student-form-card {
    padding: 28px;
}

.student-form-card h2 {
    margin: 0 0 18px;
    color: var(--slate);
    font-size: 22px;
}

.student-form,
.student-page-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.student-form label,
.student-page-form label {
    display: grid;
    gap: 8px;
}

.student-form span,
.student-page-form span {
    color: #526173;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.student-form .wide {
    grid-column: 1 / -1;
}

.student-edit-page {
    max-width: 860px;
    padding: 28px;
}

.edit-hero {
    align-items: flex-end;
}

.edit-hero .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--teal-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.student-page-form input,
.student-page-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    background: #f7f9fc;
    color: var(--slate);
    font: inherit;
    outline: none;
}

.student-page-form select {
    appearance: none;
    padding-right: 44px;
    background-image: linear-gradient(45deg, transparent 50%, #526173 50%), linear-gradient(135deg, #526173 50%, transparent 50%);
    background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.student-page-form input:focus,
.student-page-form select:focus {
    border-color: #0f766e;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.student-page-form .form-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    margin-top: 8px;
}

.next-list {
    display: grid;
    gap: 16px;
}

.next-list article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.next-list .material-symbols-outlined {
    color: #c01825;
}

.next-list strong {
    color: var(--slate);
}

.next-list p {
    margin: 4px 0 0;
}

.empty-line {
    padding: 26px;
    border: 1px dashed #b8c2d8;
    border-radius: 8px;
    color: #526173;
    text-align: center;
}

@media (max-width: 1180px) {
    .student-head {
        display: none;
    }

    .student-row {
        grid-template-columns: 1fr 1fr;
    }

    .student-edit {
        right: 16px;
        width: min(520px, calc(100vw - 80px));
    }
}

@media (max-width: 760px) {
    .phone-row,
    .student-filters,
    .student-form,
    .student-page-form,
    .student-row {
        grid-template-columns: 1fr;
    }

    .student-page-form .form-actions {
        grid-template-columns: 1fr;
    }

    .student-edit {
        position: static;
        width: 100%;
        margin-top: 12px;
        grid-template-columns: 1fr;
    }

    .report-box,
    .report-box > div {
        align-items: flex-start;
    }

    .report-box,
    .report-form {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .modal-panel .modal-card {
        padding: 20px;
    }
}

.admin-page .hero {
    padding: 10px 0 6px;
}

.admin-page .hero h1 {
    font-size: 28px;
}

.compact-hero {
    margin-bottom: 14px;
    padding: 6px 0;
}

.notes-page .compact-hero h1,
.courses-page .compact-hero h1 {
    margin-bottom: 3px;
    font-size: 30px;
    line-height: 1.08;
}

.notes-page .compact-hero p,
.courses-page .compact-hero p {
    font-size: 13px;
    line-height: 19px;
}

.notes-page .notes-hero {
    margin-bottom: 14px;
}

.notes-actions .main-btn,
.courses-hero .main-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
}

.manage-page {
    padding-bottom: 28px;
}

.manage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.manage-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.manage-card header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manage-card header > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e5eeff;
    color: var(--teal-2);
}

.manage-card h2,
.manage-list h2 {
    margin: 0;
    color: var(--slate);
    font-size: 18px;
    line-height: 22px;
}

.manage-list {
    display: grid;
    gap: 14px;
}

.manage-list .box-head {
    margin-bottom: 0;
}

.manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.manage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manage-tags span {
    padding: 8px 11px;
    border-radius: 999px;
    background: #eef3f8;
    color: #334762;
    font-size: 13px;
    font-weight: 700;
}

.manage-page .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    text-decoration: none;
}

.manage-page .notes-form .btn {
    min-height: 40px;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .manage-grid {
        grid-template-columns: 1fr;
    }
}

.admin-users article {
    gap: 10px;
    padding: 12px 14px;
}

.admin-users details {
    margin-top: 4px;
}

.admin-form {
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
}

.admin-form input:not([type="checkbox"]),
.admin-form textarea {
    min-height: 40px;
    padding: 8px 10px;
}

.admin-form textarea {
    min-height: 76px;
}

.dark-mode {
    --bg: #091426;
    --paper: #0b1c30;
    --soft: #10233b;
    --line: #26364d;
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --slate: #f8fafc;
    --slate-2: #d9e3f0;
    --teal: #86f2e4;
    --teal-2: #86f2e4;
    --mint: rgba(134, 242, 228, .16);
    --shade: 0 18px 45px rgba(0, 0, 0, .28);
    background: var(--bg);
    color: var(--ink);
}

.dark-mode .nav,
.dark-mode .top,
.dark-mode .box,
.dark-mode .stat,
.dark-mode .settings-card,
.dark-mode .modal-card,
.dark-mode .course-card,
.dark-mode .student-card,
.dark-mode .report-table,
.dark-mode .admin-users,
.dark-mode .footer {
    background: var(--paper);
    border-color: var(--line);
    color: var(--ink);
}

.dark-mode .dash-main,
.dark-mode .dash-content,
.dark-mode.app-body {
    background: var(--bg);
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea,
.dark-mode .search,
.dark-mode .input {
    background: var(--soft);
    border-color: var(--line);
    color: var(--ink);
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: #94a3b8;
}

.dark-mode .nav-list a:hover,
.dark-mode .nav-list .on,
.dark-mode .admin-link:hover,
.dark-mode .admin-link.on {
    background: rgba(134, 242, 228, .18);
    color: var(--teal);
}

.dark-mode .secondary-button,
.dark-mode .top-btn,
.dark-mode .small-button,
.dark-mode .link-button {
    color: var(--ink);
    border-color: var(--line);
}

.dark-mode .admin-form,
.dark-mode th,
.dark-mode .table-head {
    background: #12243a;
    border-color: var(--line);
}

.dark-mode table,
.dark-mode th,
.dark-mode td,
.dark-mode .data-row,
.dark-mode .list-row {
    border-color: var(--line);
}

.dark-mode .result-row:hover {
    background: rgba(134, 242, 228, .08);
}

.dark-mode .result-count,
.dark-mode .result-icon {
    background: rgba(134, 242, 228, .14);
    color: var(--teal);
}

.compact .dash-content {
    padding: 18px 28px;
    gap: 14px;
}

.compact .hero h1 {
    font-size: 30px;
}

.compact .box,
.compact .stat,
.compact .settings-card,
.compact .course-card,
.compact .student-row {
    padding: 14px;
}

.compact .top {
    min-height: 52px;
}

.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 18px;
    padding-top: 2px;
}

.pager a {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}

.pager .on {
    background: var(--teal);
    color: #fff;
}

.admin-list-head,
.settings-inline-actions,
.support-admin summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-inline-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.security-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-self: stretch;
    width: 100%;
}

.security-actions .secondary-button {
    justify-content: center;
    width: 100%;
}

.security-actions .support-action {
    border-color: rgba(15, 118, 110, .24);
    background: #e3f8f4;
    color: var(--teal-2);
}

.security-actions .support-action:hover {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

.archived-box {
    margin-bottom: 18px;
}

.archived-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.archived-row form {
    margin: 0;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-log {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}

.admin-log h3,
.admin-log p {
    margin: 0 0 8px;
}

.admin-log p {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 12px;
}

.log-item {
    display: grid;
    gap: 4px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.log-item:first-of-type {
    border-top: 0;
}

.log-item strong {
    color: var(--slate);
    font-size: 13px;
}

.log-item span {
    color: var(--teal-2);
    font-weight: 800;
}

.log-item small {
    line-height: 1.35;
}

.admin-edit-modal,
.support-modal,
.modal-card {
    max-height: min(760px, calc(100vh - 72px));
    overflow: auto;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.subject-card {
    position: relative;
    display: grid;
    gap: 18px;
    min-height: 150px;
    align-content: space-between;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.subject-card:hover {
    transform: translateY(-2px);
    border-color: #b9ece5;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.subject-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.subject-head > .material-symbols-outlined {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--soft);
    color: var(--teal-2);
}

.subject-card h2 {
    margin: 0;
    color: var(--slate);
    font-size: 22px;
    line-height: 1.15;
}

.card-menu {
    position: relative;
}

.card-menu summary {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.card-menu summary::-webkit-details-marker {
    display: none;
}

.card-menu summary:hover,
.card-menu[open] summary {
    border-color: #b9ece5;
    background: #effdfa;
    color: var(--teal-2);
}

.card-menu > div {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 15;
    display: grid;
    gap: 4px;
    min-width: 178px;
    padding: 8px;
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.card-menu a,
.card-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.card-menu a:hover,
.card-menu button:hover {
    background: #effdfa;
    color: var(--teal-2);
}

.card-menu .danger:hover {
    background: #fff4f2;
    color: var(--red) !important;
}

.card-menu form {
    margin: 0;
}

.card-menu .material-symbols-outlined {
    font-size: 18px;
}

.danger {
    color: var(--red) !important;
}

.admin-list-head {
    padding: 14px 16px;
    border-bottom: 1px solid #d9e2f1;
    background: #f8fbff;
}

.admin-list-head strong {
    color: var(--slate);
    font-size: 15px;
}

.admin-list-head span {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e5eeff;
    color: var(--teal-2);
    font-size: 12px;
    font-weight: 800;
}

.compact .admin-users .admin-user-card {
    padding: 8px 12px;
}

.compact .admin-filter-box {
    padding: 10px 12px;
}

.dark-mode .admin-filter-box,
.dark-mode .admin-list-head,
.dark-mode .admin-search-field,
.dark-mode .admin-select-field select,
.dark-mode .admin-modal-card,
.dark-mode .admin-log,
.dark-mode .icon-action,
.dark-mode .admin-manage summary {
    background: var(--soft);
    border-color: var(--line);
}

.dark-mode .modal-panel .admin-manage-modal .modal-head,
.dark-mode .card-menu > div,
.dark-mode .add-col form {
    background: var(--paper);
    border-color: var(--line);
}

.dark-mode .subject-card:hover {
    border-color: rgba(134, 242, 228, .32);
}

.dark-mode .admin-user-main em.ok {
    background: rgba(20, 184, 166, .18);
    color: var(--teal);
}

.dark-mode .admin-user-main em.off {
    background: rgba(239, 68, 68, .16);
    color: #fecaca;
}

.dark-mode .admin-avatar {
    background: #061322;
}

.dark-mode .icon-action:hover,
.dark-mode .admin-manage summary:hover,
.dark-mode .admin-manage[open] summary,
.dark-mode .card-menu summary:hover,
.dark-mode .card-menu[open] summary,
.dark-mode .card-menu a:hover,
.dark-mode .card-menu button:hover {
    background: rgba(134, 242, 228, .12);
}

@media (max-width: 1180px) {
    .admin-filter-form {
        grid-template-columns: minmax(220px, 1fr) minmax(120px, 160px);
    }

    .admin-filter-form .main-btn {
        grid-column: 1 / -1;
    }

    .admin-users .admin-user-card {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    .admin-detail-grid {
        grid-template-columns: 1fr;
        position: static;
        width: auto;
        margin-top: 10px;
        box-shadow: none;
    }
}

@media (max-width: 720px) {
    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-user-main {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-user-main em {
        margin-left: 52px;
    }

    .admin-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .icon-action {
        width: 100%;
    }
}

.card-menu .mini-close {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
}

.col-menu > div {
    width: 242px;
    min-width: 242px;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
}

.col-menu .mini-close {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
}

.col-edit {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 22px 0 12px;
}

.col-edit label {
    gap: 6px;
}

.col-edit input {
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
}

.col-edit input::-webkit-outer-spin-button,
.col-edit input::-webkit-inner-spin-button {
    margin: 0;
}

.col-edit button,
.col-menu > div > form:not(.col-edit) button {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 900;
}

.col-edit button {
    border: 1px solid rgba(0, 106, 97, .16);
    background: var(--teal);
    color: #fff;
    box-shadow: 0 12px 22px rgba(0, 106, 97, .16);
}

.col-edit button:hover {
    background: var(--teal-2);
    color: #fff;
}

.col-menu > div > form:not(.col-edit) button {
    border: 1px solid #ffc4bd;
    background: #fff6f4;
    color: var(--red) !important;
}

.col-menu > div > form:not(.col-edit) button:hover {
    background: #ffe9e5;
}

.attendance-page {
    gap: 16px;
}

.attendance-tools,
.attendance-config,
.attendance-sessions,
.attendance-detail,
.attendance-table {
    border-radius: 14px;
}

.attendance-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) minmax(180px, .7fr) auto;
    gap: 12px;
    align-items: end;
}

.attendance-filter.manage-filter {
    grid-template-columns: minmax(260px, 540px);
}

.attendance-filter label,
.attendance-config .notes-form label,
.mark-all {
    display: grid;
    gap: 7px;
}

.attendance-filter span,
.attendance-config .notes-form span {
    color: #526173;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.attendance-filter input,
.attendance-filter select,
.attendance-config input,
.attendance-config select,
.mark-all select,
.attendance-note input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d9e2f1;
    border-radius: 9px;
    background: #f7f9fc;
    color: var(--slate);
    outline: none;
}

.attendance-filter select,
.attendance-config select,
.mark-all select {
    appearance: none;
    padding-right: 38px;
    background-image: linear-gradient(45deg, transparent 50%, var(--teal-2) 50%), linear-gradient(135deg, var(--teal-2) 50%, transparent 50%);
    background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.attendance-filter input:focus,
.attendance-filter select:focus,
.attendance-config input:focus,
.attendance-config select:focus,
.mark-all select:focus,
.attendance-note input:focus {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 106, 97, .11);
}

.attendance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 16px;
}

.attendance-config {
    display: grid;
    gap: 14px;
}

.edit-box {
    padding: 12px;
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    background: #f8fbff;
}

.edit-list {
    display: grid;
    gap: 10px;
}

.edit-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.edit-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 120px 120px 38px;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.session-edit {
    grid-template-columns: minmax(90px, .7fr) 150px 110px 110px 38px 38px;
}

.session-edit strong {
    color: var(--teal-2);
    font-size: 13px;
    font-weight: 900;
}

.edit-row input,
.edit-row select {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #d9e2f1;
    border-radius: 9px;
    background: #f7f9fc;
    color: var(--slate);
    outline: none;
}

.edit-row select {
    appearance: none;
    padding-right: 34px;
    background-image: linear-gradient(45deg, transparent 50%, var(--teal-2) 50%), linear-gradient(135deg, var(--teal-2) 50%, transparent 50%);
    background-position: calc(100% - 16px) 17px, calc(100% - 10px) 17px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.edit-row input:focus,
.edit-row select:focus {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 106, 97, .1);
}

.schedule-list,
.state-list {
    display: grid;
    gap: 8px;
}

.schedule-list > div,
.state-list form {
    display: grid;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 7px 9px;
    border: 1px solid #d9e2f1;
    border-radius: 10px;
    background: #f8fbff;
}

.schedule-list > div {
    grid-template-columns: minmax(90px, .45fr) minmax(130px, 1fr) auto;
}

.schedule-list span {
    color: var(--teal-2);
    font-weight: 900;
}

.schedule-list strong {
    color: var(--slate);
}

.state-list form {
    grid-template-columns: 38px minmax(0, 1fr) auto;
}

.pretty-states form {
    grid-template-columns: 46px minmax(0, 1fr) 38px;
}

.color-pick {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(248, 251, 255, .9)),
        radial-gradient(circle at 50% 50%, var(--pick) 0 38%, transparent 39%);
    cursor: pointer;
    box-shadow: inset 0 0 0 4px #fff, 0 8px 18px rgba(15, 23, 42, .06);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.color-pick:hover {
    border-color: color-mix(in srgb, var(--pick), #fff 35%);
    box-shadow: inset 0 0 0 4px #fff, 0 12px 24px color-mix(in srgb, var(--pick), transparent 78%);
    transform: translateY(-1px);
}

.color-pick input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.color-pick span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--pick);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.92);
    pointer-events: none;
}

.state-list input[name="nombre"] {
    min-height: 36px;
}

.attendance-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.attendance-detail h2 {
    margin: 0 0 5px;
    color: var(--slate);
    font-size: 24px;
}

.attendance-detail p {
    margin: 0;
    color: var(--muted);
}

.mark-all {
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
}

.attendance-table {
    display: grid;
    gap: 8px;
    padding: 0;
    overflow: hidden;
}

.attendance-row {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(360px, 1.3fr) minmax(220px, .8fr);
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #d9e2f1;
}

.attendance-row:last-child {
    border-bottom: 0;
}

.student-name {
    display: grid;
    gap: 4px;
}

.student-name strong {
    color: var(--slate);
    font-size: 15px;
}

.student-name small {
    color: #526173;
    font-weight: 800;
}

.attendance-states {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attendance-states form {
    margin: 0;
}

.attendance-states button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--state), #fff 64%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--state), #fff 88%);
    color: var(--state);
    cursor: pointer;
    font-weight: 900;
    transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.attendance-states button:hover,
.attendance-states button.on {
    background: var(--state);
    color: #fff;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--state), transparent 76%);
    transform: translateY(-1px);
}

.attendance-note {
    display: grid;
    gap: 4px;
    margin: 0;
}

.attendance-note input {
    min-height: 38px;
}

.attendance-note span {
    min-height: 14px;
    color: var(--teal-2);
    font-size: 11px;
    font-weight: 800;
}

.dark-mode .attendance-filter input,
.dark-mode .attendance-filter select,
.dark-mode .attendance-config input,
.dark-mode .attendance-config select,
.dark-mode .mark-all select,
.dark-mode .attendance-note input,
.dark-mode .schedule-list > div,
.dark-mode .state-list form,
.dark-mode .edit-box,
.dark-mode .edit-list article,
.dark-mode .edit-row input,
.dark-mode .edit-row select {
    background: var(--soft);
    border-color: var(--line);
    color: var(--ink);
}

.dark-mode .color-pick {
    background: var(--soft);
    border-color: var(--line);
    box-shadow: inset 0 0 0 4px var(--paper);
}

@media (max-width: 1120px) {
    .attendance-filter,
    .attendance-grid,
    .attendance-row {
        grid-template-columns: 1fr;
    }

    .mark-all {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .attendance-detail {
        align-items: flex-start;
        flex-direction: column;
    }

    .edit-list article,
    .edit-row,
    .session-edit {
        grid-template-columns: 1fr;
    }
}
