@font-face {
    font-family: "Plus Jakarta Sans";
    src: url(plus-jakarta-sans.woff2) format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}
:root {
    --teal: #087f80;
    --teal-deep: #066364;
    --turquoise: #20c4ba;
    --cloud: #f4f6f8;
    --white: #fff;
    --mint: #e5f6f3;
    --ink: #122439;
    --muted: #53667a;
    --line: #dce5ea;
    --speaking: #efb416;
    --toefl: #3886dc;
    --ielts: #e55768;
    --camp: #8360ce;
    --sidebar: 218px;
    --top: 78px;
    --radius: 15px;
    color-scheme: light;
    font: 400 14px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--cloud);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal-deep); }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .65; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.04em; }
h1 { font-size: clamp(23px, 2vw, 29px); font-weight: 800; }
h2 { font-size: 18px; font-weight: 800; }
h3 { font-size: 23px; font-weight: 800; }
:focus-visible { outline: 3px solid #24aead; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; height: 1px; width: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: 10px; left: 10px; color: var(--white); background: var(--teal-deep); padding: 8px 12px; }
.muted { color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 2px #102d4507; min-width: 0; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 5;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #e0e9ed;
}
.sidebar-brand { padding: 24px 22px 19px; border-bottom: 1px solid #e8eef1; display: block; }
.brand-art { display: inline-flex; align-items: center; gap: 9px; color: var(--teal); text-align: left; }
.brand-mark { position: relative; display: inline-flex; flex-flow: column; align-items: center; justify-content: center; width: 48px; height: 46px; border-radius: 52% 6% 50% 8%; background: #079b96; color: #fff; line-height: .8; padding-bottom: 3px; }
.brand-mark b { font-size: 29px; font-weight: 800; letter-spacing: -.115em; margin-left: -3px; }
.brand-mark small { font-size: 7px; font-weight: 800; letter-spacing: .16em; margin-top: 5px; }
.brand-word { font-size: 25px; font-weight: 800; line-height: .85; letter-spacing: -.07em; }
.brand-stop { color: var(--turquoise); }
.sidebar-caption { display: block; margin-top: 9px; font-size: 11.5px; color: #536778; font-weight: 600; }
.side-scroll { padding: 10px 10px 14px; flex: 1; overflow: auto; scrollbar-width: thin; scrollbar-color: #dce9ec transparent; }
.nav-link { min-height: 39px; padding: 0 11px; display: flex; align-items: center; gap: 11px; margin-bottom: 2px; border-radius: 9px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.nav-link > i:first-child { font-size: 17px; color: #506778; }
.nav-link > i:last-child:not(:first-child) { margin-left: auto; color: #627986; font-size: 12px; }
.nav-link:hover { background: #edf7f7; }
.nav-link.is-active { background: linear-gradient(100deg,#087f80,#089795); color: white; box-shadow: 0 2px 5px #004a4f28; font-weight: 800; }
.nav-link.is-active i { color: white; }
.nav-divider { height: 1px; background: #e6edf0; margin: 8px 5px; }
.side-foot { padding: 11px 15px 14px; border-top: 1px solid #e9eff1; }
.side-account { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.side-account strong, .side-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-account strong { font-size: 11.5px; }
.side-account small { color: var(--muted); font-size: 10px; }
.stage { margin-left: var(--sidebar); min-height: 100dvh; background: radial-gradient(ellipse at 85% 86%,#e9f1f5 0%,transparent 54%), #f2f5f8; }
.topbar {
    min-height: var(--top); padding: 12px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.titlebar, .header-actions { min-width: 0; display: flex; align-items: center; gap: 11px; }
.titlebar p, .mobile-title p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.title-icon { display: grid; place-items: center; background: linear-gradient(135deg,#087c80,#069995); color: white; border-radius: 10px; width: 42px; height: 42px; flex: none; font-size: 22px; box-shadow: 0 2px 5px #00777920; }
.search { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #d5e0e8; border-radius: 10px; width: clamp(200px, 25vw, 359px); background: #fff; }
.search i { color: var(--teal-deep); font-size: 17px; }
.search input { width: 100%; min-width: 0; padding: 0; border: 0; background: none; outline: 0; font-size: 12px; }
.search:focus-within { outline: 2px solid var(--turquoise); }
.search kbd { border-radius: 5px; background: #eff3f6; color: #506477; font: 12px/20px system-ui; min-width: 20px; text-align: center; }
.square { width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-size: 20px; }
.square:hover { background: #e9f8f6; }
.notify { position: relative; }
.notification-dot { position: absolute; top: 6px; right: 7px; height: 9px; width: 9px; border-radius: 50%; background: #e95566; box-shadow: 0 0 0 2px #fff; }
.avatar { display: grid; place-items: center; height: 35px; width: 35px; background: #d8f4f2; color: #075f61; border-radius: 50%; font-weight: 800; font-size: 13px; flex: none; }
.avatar.small { height: 30px; width: 30px; font-size: 10px; }
.account { position: relative; }
.account summary { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 4px 9px 4px 5px; list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account-name { max-width: 111px; }
.account-name strong, .account-name small { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.account-name strong { font-size: 11px; }
.account-name small { color: var(--muted); font-size: 10px; }
.account-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 6; min-width: 155px; background: white; border: 1px solid var(--line); box-shadow: 0 6px 21px #183b4520; border-radius: 10px; overflow: hidden; padding: 4px; }
.account-menu a, .account-menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 8px; border: 0; background: transparent; text-align: left; border-radius: 6px; font-size: 12px; }
.account-menu a:hover, .account-menu button:hover { background: var(--mint); }
.content { padding: 0 22px 24px; max-width: 1840px; margin: 0 auto; }
.mobile-head, .mobile-title, .bottom-nav { display: none; }
.demo-banner { display: flex; align-items: center; gap: 6px; margin: 0 0 9px 2px; color: #506b73; font-size: 10px; font-weight: 700; }
.demo-banner span { width: 6px; height: 6px; border-radius: 50%; background: #178582; }
.period-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 59px; margin-bottom: 15px; padding: 8px 12px; }
.period-main, .period-label, .date-chip, .next-period, .period-arrows { display: flex; align-items: center; gap: 8px; }
.period-main { flex-wrap: wrap; }
.period-label { padding: 0 5px; white-space: nowrap; }
.period-label i { font-size: 21px; color: var(--teal); }
.period-label strong { font-size: 14px; }
.select-wrap { position: relative; display: inline-block; }
.select-wrap select { padding-right: 30px; appearance: none; min-width: 155px; }
.select-wrap i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
input:not([type="checkbox"]), select, textarea { border: 1px solid #d5dfe6; border-radius: 8px; min-height: 37px; padding: 7px 9px; width: 100%; color: var(--ink); background: #fff; }
.search input:not([type="checkbox"]) { border: 0; min-height: 0; padding: 0; }
.date-chip { font-size: 12px; color: #12585a; background: #e9f8f6; padding: 5px 6px 5px 10px; border-radius: 8px; white-space: nowrap; font-weight: 650; }
.small-square { width: 29px; height: 31px; border: 0; border-radius: 8px; background: #eff4f6; color: #254c5c; font-size: 14px; }
.disabled { color: #80949c; opacity: .6; }
.next-period { white-space: nowrap; font-size: 11.5px; }
.next-period > span, .next-period > strong { padding: 7px 9px; border-radius: 8px; }
.next-period > span { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); }
.next-period > span i { font-size: 16px; color: var(--teal); }
.next-period > strong { background: #e8f4fc; font-weight: 700; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; min-height: 21px; min-width: 23px; border-radius: 99px; white-space: nowrap; font-size: 11px; font-weight: 800; }
.badge.green, .green { color: #116342; background: #def6e9; }
.badge.mint, .mint { color: #09696a; background: #e4f6f4; }
.badge.blue, .blue { color: #225c8b; background: #e7f3fc; }
.badge.red { color: #9b2b3b; background: #fce9eb; }
.badge.orange { color: #8f520d; background: #fff2d9; }
.badge.gray { color: #567181; background: #edf2f5; }
.violet { color: #7656b4; background: #f0edfc; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) minmax(0,1.12fr); gap: 11px; margin-bottom: 14px; }
.metric { min-height: 111px; padding: 12px; display: block; }
.metric-link:hover { border-color: #8dc9c7; background: #fbffff; box-shadow: 0 3px 9px #12636310; }
.metric-top { display: flex; align-items: flex-start; gap: 11px; }
.metric-icon { border-radius: 11px; height: 43px; width: 43px; display: grid; place-items: center; font-size: 23px; flex: none; }
.metric-data { min-width: 0; padding-top: 1px; }
.metric-data > span { display: block; font-size: 11.5px; font-weight: 750; line-height: 1.25; margin-bottom: 5px; }
.metric-value { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.metric-value > strong { font-size: clamp(26px,2.55vw,37px); font-weight: 800; letter-spacing: -.065em; line-height: 1.06; }
.metric-data small { display: block; margin-top: 4px; color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.metric-progress { display: grid; gap: 2px; text-align: right; margin-top: 3px; color: #0a6750; font-weight: 800; font-size: 10.5px; }
.bar { height: 8px; border-radius: 99px; width: 100%; overflow: hidden; background: #e4ecf0; }
.bar i { height: 100%; width: var(--progress,0); border-radius: 99px; display: block; background: linear-gradient(90deg,#078484,#14a7a1); }
.bar.speaking i { background: linear-gradient(90deg,#f1aa00,#f5be2c); }
.bar.toefl i { background: linear-gradient(90deg,#297fe2,#4597eb); }
.bar.ielts i { background: linear-gradient(90deg,#d74566,#ed6871); }
.bar.camp i { background: linear-gradient(90deg,#7557c2,#aa8de5); }
.dashboard-mid { display: grid; grid-template-columns: repeat(2,minmax(0,1.13fr)) minmax(235px,.94fr); align-items: start; gap: 12px; margin-bottom: 13px; }
.branch-panel { padding: 11px; }
.branch-head { min-height: 42px; display: flex; gap: 5px; align-items: center; justify-content: space-between; border-radius: 9px; padding: 0 10px; background: linear-gradient(100deg,#087e80,#11a4a0); color: #fff; }
.branch-head:hover { color: white; background: linear-gradient(100deg,#076b6d,#0e9692); }
.branch-head > span { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.branch-head > span:first-child { font-size: clamp(14px,1.45vw,21px); font-weight: 800; letter-spacing: -.045em; gap: 6px; }
.branch-head > span:first-child i { font-size: 22px; }
.branch-head > span:last-child i { font-size: 11px; }
.branch-head small { font-size: 10px; }
.branch-head strong { font-size: 15px; font-weight: 800; }
.branch-mini { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin: 9px 0 10px; }
.branch-mini div { display: flex; align-items: center; gap: 6px; padding: 6px 5px; min-width: 0; background: linear-gradient(125deg,#eaf8f6,#f3faf9); border-radius: 8px; }
.branch-mini div:last-child { background: #eff5fa; }
.branch-mini i { font-size: 17px; color: var(--teal); }
.branch-mini span { line-height: 1.05; font-size: 9px; font-weight: 650; min-width: 0; }
.branch-mini strong { display: block; font-size: 19px; margin-top: 4px; font-weight: 800; letter-spacing: -.045em; }
.branch-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 12px; }
.branch-table th { background: #f2f6f8; padding: 6px 4px; font-size: 10px; }
.branch-table th:first-child { border-radius: 6px 0 0 6px; }
.branch-table th:last-child { border-radius: 0 6px 6px 0; }
.branch-table th:first-child, .branch-table td:first-child { text-align: left; padding-left: 7px; }
.branch-table td { padding: 7px 4px; border-bottom: 1px solid #e6edf0; }
.branch-table tr:last-child td { border-bottom: 0; }
.branch-table a, .bar-item strong, .repeat-row strong { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; }
.program-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--camp); display: inline-block; }
.program-dot.speaking { background: var(--speaking); }
.program-dot.toefl { background: var(--toefl); }
.program-dot.ielts { background: var(--ielts); }
.today-panel { padding: 10px 11px 4px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 33px; padding-bottom: 8px; border-bottom: 1px solid #e4ebef; }
.card-title > span:first-child { display: flex; align-items: center; gap: 8px; }
.card-title > span:first-child > i { color: var(--teal); font-size: 21px; }
.card-title h2 { font-size: clamp(14px,1.28vw,18px); }
.card-title a { color: #526e7f; font-size: 13px; }
.task { display: grid; grid-template-columns: 20px minmax(0,1fr) auto 10px; gap: 7px; align-items: center; min-height: 50px; padding: 7px 0; border-bottom: 1px solid #e8eef1; }
.task:last-child { border-bottom: 0; }
.task > i:first-child { color: var(--teal); font-size: 19px; }
.task > i:last-child { font-size: 12px; color: #506a7e; }
.task strong, .task small { display: block; line-height: 1.3; }
.task strong { font-weight: 800; font-size: 11.5px; }
.task small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.dashboard-bottom { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.summary-panel { padding: 11px 12px 9px; }
.bar-item { padding-top: 7px; padding-bottom: 4px; }
.bar-item > div:first-child { display: grid; grid-template-columns: minmax(0,1fr) auto 33px; align-items: center; gap: 9px; margin-bottom: 4px; font-size: 11.5px; }
.bar-item b { text-align: right; font-size: 10px; font-weight: 800; }
.bar-item.room-bar { padding: 9px 0 5px; }
.summary-total { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 8px; padding: 7px 8px; background: linear-gradient(100deg,#e1f6f3,#d2f0ef); border-radius: 7px; color: #0b5f57; font-size: 11.5px; }
.summary-total strong { font-weight: 800; }
.repeat-row { display: flex; justify-content: space-between; padding: 6px 1px; border-bottom: 1px solid #e8eef0; font-size: 12px; }
.repeat-row:last-of-type { border-bottom: 0; }
.button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; min-height: 36px; font-size: 12px; font-weight: 750; line-height: 1.3; text-align: center; }
.button > i { font-size: 15px; }
.brand-btn { background: #088788; border-color: #088788; color: #fff; box-shadow: 0 1px 3px #006f7625; }
.brand-btn:hover { color: #fff; background: #056c70; }
.secondary { background: #fff; border-color: #d1e0e6; color: var(--teal-deep); }
.secondary:hover { background: #eaf8f6; color: #075557; }
.danger { background: #fce9eb; color: #9b2b3b; border-color: #efc9ce; }
.compact { min-height: 30px; padding: 4px 7px; font-size: 11px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.toolbar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.table-total { color: #50677a; }
.table-total strong { color: var(--ink); font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 10px; margin-bottom: 12px; }
.filters label { flex: 1 1 110px; max-width: 260px; }
label, .form-grid label { font-size: 12px; font-weight: 700; display: grid; gap: 4px; min-width: 0; }
input:not([type="checkbox"]), select, textarea { font-weight: 500; font-size: 13px; }
input::placeholder { color: #667e8d; }
.table-panel { overflow: hidden; }
.table-scroll { max-width: 100%; overflow: auto; }
.records { width: 100%; text-align: left; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.records th { background: #eff5f6; color: #25445a; font-size: 11px; font-weight: 800; padding: 10px 12px; }
.records td { padding: 8px 12px; border-bottom: 1px solid #e9eff2; }
.records tbody tr:hover { background: #fbfdfd; }
.records .long-cell { min-width: 190px; max-width: 440px; overflow-wrap: anywhere; white-space: normal; }
.text-link { color: var(--teal-deep); font-weight: 800; }
.text-link:hover { text-decoration: underline; }
.program-pill { display: inline-flex; width: max-content; gap: 6px; align-items: center; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 4px 8px; background: #ede6fa; color: #54348c; white-space: nowrap; }
.program-pill > span { width: 8px; height: 8px; border-radius: 50%; background: var(--camp); }
.program-pill.speaking { background: #fff0bd; color: #704d06; }
.program-pill.speaking > span { background: var(--speaking); }
.program-pill.toefl { background: #e6f0ff; color: #245591; }
.program-pill.toefl > span { background: var(--toefl); }
.program-pill.ielts { background: #ffe7ea; color: #91334a; }
.program-pill.ielts > span { background: var(--ielts); }
.row-actions { display: flex; gap: 5px; align-items: center; }
.pagination { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 12px; color: var(--muted); font-size: 11.5px; }
.pagination > div { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.empty, .empty-table, .empty-sm { text-align: center; color: var(--muted); padding: 22px 10px; }
.empty { grid-column: 1/-1; display: grid; justify-items: center; gap: 7px; }
.empty i { font-size: 24px; color: var(--teal); }
.empty-table { white-space: normal; }
.edit-panel { padding: 15px; margin-bottom: 12px; }
.edit-panel > h2, .edit-panel > p { margin-bottom: 8px; }
.edit-panel > summary { font-weight: 800; }
.edit-panel > summary + p { margin: 8px 0; }
.section-title { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.section-title > span { font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 7px; }
.form-grid .full-field { grid-column: 1/-1; }
.toggle-field { display: flex !important; align-items: center; margin-top: 7px; gap: 7px; }
.toggle-field input { accent-color: var(--teal); width: 16px; height: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.required, .field-error { color: #a9233e; }
.flash { display: flex; align-items: baseline; padding: 9px 11px; border-radius: 8px; gap: 8px; margin-bottom: 11px; }
.flash ul { margin: 3px 0 0; padding-left: 14px; }
.flash.success, .information { background: #e3f6ef; color: #115950; }
.flash.error { background: #fce9ed; color: #94233a; }
.information { padding: 8px 11px; margin-bottom: 11px; border-radius: 8px; font-size: 12px; }
.information i { margin-right: 4px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid #d9e5e9; font-size: 12px; font-weight: 700; }
.tabs a.active { background: #078788; color: white; border-color: transparent; }
.academic-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.academic-metric { display: grid; gap: 3px; justify-items: center; text-align: center; font-weight: 700; }
.academic-metric > strong { font-size: 25px; font-weight: 800; }
.class-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.class-card { padding: 11px; }
.class-card h3 { margin: 5px 0 3px; }
.class-card p { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.class-line, .class-context { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 11px; }
.class-line > span:last-child, .class-context > span:not(:first-child) { display: flex; align-items: center; gap: 5px; }
.class-line i, .class-context i { color: var(--teal); font-size: 15px; }
.class-row { display: grid; grid-template-columns: 17px minmax(0,1fr) auto auto; gap: 6px; align-items: center; padding: 6px 0; color: var(--ink); border-top: 1px solid #e7eff1; font-size: 12px; }
.class-row i:first-child { color: var(--teal); font-size: 15px; }
.class-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.class-actions .button { flex: 1; min-width: max-content; }
.class-context { justify-content: flex-start; padding: 10px; margin-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.definition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 10px 0 0; }
.definition-grid > div { padding: 8px; border-radius: 7px; background: #f4f8f8; overflow-wrap: anywhere; }
.definition-grid dt { color: var(--muted); font-size: 11px; }
.definition-grid dd { margin: 2px 0 0; font-weight: 700; }
.report-metrics { grid-template-columns: repeat(auto-fit,minmax(175px,1fr)); }
.report-metrics .metric-value > strong { font-size: clamp(20px,2.5vw,32px); }
.login-body { min-height: 100dvh; display: grid; place-items: center; padding: 18px; background: radial-gradient(ellipse at 82% 10%,#d9f5f2 0%, transparent 51%), radial-gradient(ellipse at 12% 83%,#e2eaf9 0%,transparent 45%),#f5f8fb; }
.login-card { width: min(100%,405px); padding: 28px; box-shadow: 0 16px 60px #124a5820; }
.login-card h1 { margin-top: 20px; }
.login-card > p { margin: 6px 0 13px; color: var(--muted); }
.login-form, .login-demo { display: grid; gap: 8px; }
.login-demo { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.login-demo p { font-size: 10px; color: var(--muted); }
.login-demo .button { width: 100%; }
.document-body { background: #edf2f5; padding: 18px; }
.document-toolbar, .document-sheet { max-width: 800px; margin: 0 auto; }
.document-toolbar { display: flex; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
.document-sheet { padding: 36px 28px; background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--teal); border-radius: 12px; }
.document-title { margin-top: 25px; text-align: center; }
.document-title p { margin: 6px 0 15px; color: var(--muted); }
.certificate { margin-top: 15px; text-align: center; }
.certificate h2 { font-size: clamp(23px,6vw,40px); color: var(--teal); margin: 8px 0; }
.certificate p { margin-bottom: 9px; }
.certificate-body { white-space: pre-line; }
@media (max-width: 1190px) {
    :root { --sidebar: 190px; }
    .topbar { padding-inline: 15px; }
    .content { padding-inline: 15px; }
    .metrics { gap: 8px; }
    .metric { padding: 9px; }
    .metric-top { gap: 7px; }
    .metric-icon { height: 35px; width: 35px; font-size: 19px; }
    .metric-data small { white-space: normal; }
    .dashboard-mid { gap: 8px; grid-template-columns: repeat(2,minmax(0,1fr)) minmax(200px,.83fr); }
    .branch-panel { padding: 8px; }
    .branch-mini div { gap: 3px; }
    .branch-mini i { font-size: 14px; }
    .next-period > span { display: none; }
}
@media (max-width: 1010px) {
    .dashboard-mid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .today-panel { grid-column: 1/-1; }
    .task-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; }
    .task:nth-last-child(-n+2) { border-bottom: 0; }
    .account-name, .account summary > i { display: none; }
    .account summary { padding: 4px; }
    .search { width: clamp(165px,22vw,220px); }
    .class-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
    :root { --sidebar: 235px; --top: 57px; }
    .stage { margin: 0; padding-bottom: calc(67px + env(safe-area-inset-bottom,0px)); }
    .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s ease,visibility .2s; }
    .drawer-open .sidebar { transform: none; visibility: visible; }
    .shade { position: fixed; z-index: 4; inset: 0; border: 0; background: #112c4580; }
    .topbar { background: #fff; border-bottom: 1px solid #e6eef1; min-height: var(--top); padding: 0 9px; }
    .titlebar { display: none; }
    .mobile-head { display: flex; align-items: center; gap: 6px; }
    .mobile-head .brand-mark { width: 35px; height: 33px; }
    .mobile-head .brand-mark b { font-size: 21px; }
    .mobile-head .brand-mark small { font-size: 5px; margin-top: 3px; }
    .mobile-head .brand-word { font-size: 20px; }
    .mobile-head .brand-art { gap: 5px; }
    .mobile-head .naked { background: transparent; border: 0; }
    .header-actions { gap: 7px; }
    .header-actions .search { display: none; }
    .account summary { background: none; border: 0; padding: 2px; }
    .square { width: 40px; height: 40px; }
    .small-square { width: 32px; height: 34px; }
    .notify { border: 0; }
    .content { padding: 0 10px 13px; }
    .mobile-title { display: block; padding: 10px 0 8px; }
    .mobile-title h1 { font-size: 22px; }
    .mobile-title p { font-size: 12px; }
    .bottom-nav {
        display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 3px; position: fixed; z-index: 3;
        bottom: 0; inset-inline: 0; background: #fffffff5; backdrop-filter: blur(10px);
        padding: 5px 6px max(5px,env(safe-area-inset-bottom,0px)); border-top: 1px solid #e3eaf0;
    }
    .bottom-nav a, .bottom-nav button { display: grid; justify-items: center; align-content: center; line-height: 1.2; gap: 4px; min-height: 49px; color: #304b64; padding: 1px; border-radius: 9px; font-size: 9.5px; border: 0; background: transparent; font-weight: 750; }
    .bottom-nav i { font-size: 18px; }
    .bottom-nav .is-active { background: #e3f7f4; color: #087674; }
    .period-bar { padding: 7px; margin-bottom: 9px; }
    .period-main { gap: 5px; }
    .period-label { padding: 0 3px; }
    .period-label strong { font-size: 12px; }
    .period-label i { font-size: 17px; }
    .date-chip { font-size: 10px; }
    .period-arrows { gap: 4px; }
    .next-period { display: none; }
    .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-bottom: 8px; }
    .metric { min-height: 85px; padding: 8px; }
    .metric-data > span { font-size: 10.5px; }
    .metric-value > strong { font-size: 26px; }
    .metric-icon { border-radius: 8px; height: 33px; width: 33px; }
    .dashboard-mid, .dashboard-bottom { grid-template-columns: minmax(0,1fr); gap: 8px; margin-bottom: 8px; }
    .branch-head > span:first-child { font-size: 17px; }
    .branch-mini { gap: 6px; }
    .branch-mini div { padding: 6px 7px; }
    .branch-mini span { font-size: 10px; }
    .branch-table th { font-size: 11px; }
    .task-list { display: block; }
    .task:nth-last-child(2) { border-bottom: 1px solid #e8eef1; }
    .task strong { font-size: 12px; }
    .task small { font-size: 11px; }
    .card-title h2 { font-size: 16px; }
    .academic-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .academic-metric { padding: 5px; font-size: 9.5px; min-height: 79px; }
    .academic-metric > strong { font-size: 20px; }
    .academic-metric .metric-icon { width: 28px; height: 28px; font-size: 16px; }
    .class-grid { grid-template-columns: minmax(0,1fr); }
    .class-card h3 { font-size: 25px; }
    .class-row { min-height: 41px; }
    .button { min-height: 43px; }
    input:not([type="checkbox"]), select, textarea { min-height: 43px; font-size: 16px; }
    .form-grid, .definition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .edit-panel { padding: 10px; }
    .button.compact { min-height: 36px; }
}
@media (max-width: 395px) {
    .form-grid { grid-template-columns: 1fr; }
    .period-main { width: 100%; }
    .period-main form { margin-left: auto; }
    .period-main .date-chip { margin-right: auto; }
    .select-wrap select { min-width: 150px; }
}
@media print {
    .document-toolbar { display: none; }
    .document-body, .document-sheet { margin: 0; padding: 0; background: white; }
    .document-sheet { border: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
