:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;
  --success: #15803d;
  --danger: #b91c1c;
  --warning: #b45309;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(15, 118, 110, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.10), transparent 24rem),
    var(--bg);
  color: var(--ink);
}

button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 56px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 2px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, #0f766e, #0b3b38);
  color: white; font-weight: 800; letter-spacing: -0.04em;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(15, 118, 110, .28);
}
.brand-title { font-weight: 750; letter-spacing: -0.03em; font-size: 18px; }
.brand-title span { color: var(--primary); }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.session-area { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.72);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
  box-shadow: 0 4px 16px rgba(17,24,39,.05); font-size: 13px;
}
.user-chip small { color: var(--muted); font-size: 11px; }
.user-dot { width: 8px; height: 8px; border-radius: 999px; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }

main { display: block; }
.eyebrow { color: var(--primary); font-size: 11px; letter-spacing: .18em; font-weight: 800; margin-bottom: 8px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.045em; line-height: 1.1; }
h2 { font-size: 22px; letter-spacing: -0.035em; }
h3 { font-size: 15px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
input[type="text"], input[type="password"], input[type="date"], input:not([type]) {
  width: 100%; border: 1px solid #d1d5db; background: rgba(255,255,255,.92);
  border-radius: 12px; padding: 12px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.btn {
  border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 700; font-size: 14px;
  transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--primary); color: white; box-shadow: 0 8px 18px rgba(15,118,110,.18); }
.btn.primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn.success { background: var(--success); color: white; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn.block { width: 100%; padding: 13px 18px; }
.mail-link { text-decoration: none; display: inline-flex; align-items: center; }
.btn.small { padding: 7px 10px; font-size: 12px; border-radius: 9px; }
.notice { margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: 13px; line-height: 1.5; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.notice.error { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 18px 0 14px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.notice.ok { background: #ecfdf5; color: #166534; border-color: #bbf7d0; }

body:has(#dashboardView:not([hidden])) {
  background: #edf1ec; color: #162824;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.topbar { padding-bottom: 24px; flex-wrap: wrap; }
.topbar .brand-mark { background: #115e59; box-shadow: none; }
.session-area { flex-wrap: wrap; max-width: 100%; }
.user-chip { box-shadow: none; overflow-wrap: anywhere; }
/* Campus dashboard */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; border-bottom: 1px solid #cdd8cf; }
.session-area { justify-self: end; }
.category-switch {
  position: relative; isolation: isolate; display: flex; padding: 4px; border-radius: 30px;
  background: #dce5dd;
}
.category-switch::before {
  content: ""; position: absolute; z-index: -1; inset: 4px auto 4px 4px; width: calc(50% - 4px);
  border-radius: 30px; background: #fff; box-shadow: 0 1px 4px #203d3020; transition: transform 160ms ease;
}
.category-switch:has(#mailSwitch[aria-pressed="true"])::before { transform: translateX(100%); }
.category-switch button {
  min-width: 82px; min-height: 44px; color: #40584e; background: none; border: 0;
  font-size: 16px; font-weight: 550; border-radius: 30px;
}
.category-switch button[aria-pressed="true"] { color: #143f32; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ccd7ce; background: transparent; color: inherit; font: 24px/1 Georgia,serif; }
.desk-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 36px 0 20px; }
.desk-heading h1, .list-head h2, .drawer h2, .empty strong, .feature-card h2 {
  font-family: Georgia, "Songti SC", SimSun, serif; font-weight: 500;
}
.desk-heading h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.05em; }
#deskDate { color: #50645b; font-size: 15px; }
.feature-grid {
  display: grid; grid-template-columns: minmax(0,3fr) minmax(220px,1fr);
  grid-template-rows: minmax(284px,auto); gap: 14px; isolation: isolate;
}
.feature-card {
  position: relative; min-width: 0; overflow: hidden; border-radius: 19px; align-self: stretch;
  display: flex; align-items: center; transform-origin: 0 0;
}
.feature-card:first-child { z-index: 1; }
.feature-copy { min-width: 0; position: relative; z-index: 1; padding: clamp(24px,3vw,44px); }
.feature-card h2 { margin: 6px 0; font-size: clamp(22px,2.3vw,34px); line-height: 1.22; letter-spacing: -.025em; overflow-wrap: anywhere; }
.feature-label { display: block; font-size: 14px; }
.schedule-feature { background: #133c32; color: #f6f7ed; }
.schedule-feature .feature-copy { flex: 1; }
.schedule-feature .feature-label, #featureRoom { color: #d6e6da; }
.feature-time { display: block; margin: 6px 0; font: 500 clamp(48px,5.3vw,77px)/1 Georgia,serif; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.055em; }
#featureRoom { font-size: 15px; line-height: 1.5; }
.feature-photo { position: relative; align-self: stretch; width: 29%; margin: 0; }
.feature-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.feature-photo figcaption { position: absolute; bottom: 12px; left: 12px; background: #133c32; padding: 5px 9px; border-radius: 4px; font: 15px Georgia,serif; color: #fff; }
.mail-feature { background: #c6e0ed; color: #183d51; align-items: flex-end; }
.mail-feature .feature-label { color: #315d73; letter-spacing: .035em; }
.mail-feature .feature-copy { padding: 23px; }
.envelope {
  position: absolute; right: 15%; top: 17%; width: 52%; max-width: 240px; aspect-ratio: 1.55;
  border-radius: 5px; background: #e4f0f6; transform: rotate(-12deg);
  box-shadow: 3px 10px 15px #23475c28; overflow: hidden;
}
.envelope::before, .envelope::after { content: ""; position: absolute; inset: 0; }
.envelope::before { background: #b4cfdc; clip-path: polygon(0 100%,50% 34%,100% 100%); }
.envelope::after { background: #fafbf7; clip-path: polygon(0 0,100% 0,53% 63%,48% 63%); }
.mail-feature:first-child .envelope { right: 8%; top: 23%; width: 34%; }
.mail-feature:first-child .feature-copy { padding: clamp(26px,4vw,54px); max-width: 65%; align-self: center; }
.mail-feature:first-child h2 { font-size: clamp(34px,4vw,54px); }
#mailBtn { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; min-height: 44px; padding: 0 16px; border-radius: 28px; background: #204e64; color: white; text-decoration: none; }
.card-select { position: absolute; z-index: 2; inset: 0; border: 0; background: transparent; color: inherit; border-radius: inherit; }
.card-select span { position: absolute; right: 15px; bottom: 17px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffffffa8; color: #214949; transition: transform 160ms ease; }
.card-select:hover span { transform: translate(2px,-2px); }
.feature-card:nth-child(2) .feature-copy { padding: 22px 44px 22px 22px; }
.schedule-feature:nth-child(2) .feature-photo { display: none; }
.schedule-feature:nth-child(2) h2 { font-size: 21px; }
.schedule-feature:nth-child(2) .feature-time { font-size: 39px; }
.category-switch button:focus-visible, .theme-toggle:focus-visible, #mailBtn:focus-visible { outline: 3px solid #367caf; outline-offset: 2px; }
.card-select:focus-visible { outline: 3px solid #4184ba; outline-offset: -4px; }
.summary-strip {
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: #fff;
  padding: 20px clamp(18px, 4.8vw, 68px); border-radius: 14px; gap: 14px; margin-top: 14px;
}
.summary-strip > div { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
.summary-strip strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.summary-strip span, .course-code, .course-time span, .course-main p { font-size: 14px; color: #51605c; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 32px 0 14px; }
.list-head h2, .drawer h2 { font-size: 28px; letter-spacing: -.035em; }
.date-box { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.date-box label { font-size: 14px; }
.date-box input { width: auto; min-width: 0; min-height: 44px; }
.date-box .btn, .session-area .btn { min-height: 44px; box-shadow: none; }
.course-list { display: grid; gap: 10px; }
.course-card {
  display: grid; grid-template-columns: 84px minmax(0,1fr) auto; gap: 22px; align-items: center;
  width: 100%; padding: 20px 26px; border: 1px solid #d8e0da; border-radius: 14px;
  background: white; color: #162824; text-align: left;
}
.course-card:hover { border-color: var(--primary); }
.course-card:focus-visible, .drawer-close:focus-visible { outline: 3px solid #2366aa; outline-offset: 2px; }
.course-time { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-right: 1px solid #d8e0da; font-variant-numeric: tabular-nums; }
.course-time strong { font: 500 24px Georgia, serif; }
.course-main { overflow-wrap: anywhere; }
.course-main strong { display: block; font-size: 18px; margin: 3px 0; }
.course-code { font-weight: 600; color: #236456; }
.course-tag { font-size: 13px; border-radius: 5px; padding: 4px 8px; color: #495c55; background: #edf1ec; overflow-wrap: anywhere; }
.course-tag.ready { background: #e4f1ea; color: #285943; }
.empty { text-align: center; border: 1px dashed #aebfb3; padding: 45px 18px; border-radius: 14px; background: #f9fbf8; }
.empty strong { font-size: 26px; } .empty p { margin-top: 8px; color: #51605c; }

.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.35); backdrop-filter: blur(5px); display: grid; place-items: end center; padding: 20px; z-index: 20; }
.drawer {
  position: relative; width: min(640px, 100%); max-height: min(90vh, 900px); overflow: auto;
  background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px rgba(15,23,42,.3);
  animation: rise .2s ease-out;
}
@keyframes rise { from { transform: translateY(16px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.drawer-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 20px; line-height: 1; }
.course-highlight { margin: 14px 0 6px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #ecfdf5, #f0fdfa); border: 1px solid #ccfbf1; }
.course-highlight strong { display: block; font-size: 17px; margin-bottom: 4px; }
.course-highlight span { color: var(--muted); font-size: 13px; }
.step { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; }
.step-no { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: #f0fdfa; color: var(--primary); font-size: 11px; font-weight: 800; border: 1px solid #ccfbf1; }
.step-body h3 { margin-bottom: 6px; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.kv { background: #f9fafb; border: 1px solid #f1f5f9; border-radius: 10px; padding: 9px 10px; }
.kv span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.kv strong { font-size: 13px; font-weight: 650; word-break: break-word; }
.location-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 12px; padding: 11px; }
.location-box span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.location-box strong, .location-box code { font-size: 13px; }
.otp-form { display: flex; gap: 8px; margin-top: 12px; }
.otp-form input { flex: 1; text-align: center; letter-spacing: .22em; font-size: 18px; font-weight: 700; }
.result-box { margin-top: 12px; padding: 15px 16px; border-radius: 13px; background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; font-size: 14px; line-height: 1.55; }
.result-box.error { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #111827; color: #fff; padding: 11px 16px; border-radius: 999px; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.24); z-index: 40; max-width: calc(100% - 30px); }
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%); background-size: 400% 100%; animation: shine 1.2s ease infinite; border-radius: 8px; }
@keyframes shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 720px) {
  .app-shell { width: min(100% - 22px, 1120px); }
  .topbar { gap: 12px; padding-bottom: 16px; }
  .topbar { grid-template-columns: minmax(0,1fr) auto; }
  .category-switch { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  .session-area { gap: 5px; }
  .desk-heading { padding: 24px 0 15px; }
  .feature-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(222px,auto) minmax(112px,auto); gap: 10px; }
  .feature-copy { padding: 21px; }
  .feature-photo { width: 25%; }
  .feature-card:nth-child(2) .feature-copy { padding: 18px 48px 18px 20px; }
  .mail-feature:nth-child(2) .envelope { width: 72px; top: 23%; right: 61px; }
  .schedule-feature:nth-child(2) .feature-time { font-size: 24px; }
  .schedule-feature:nth-child(2) h2 { font-size: 18px; }
  .mail-feature:first-child .feature-copy { padding: 22px; }
  .mail-feature:first-child .envelope { width: 26%; right: 6%; top: 31%; }
  .summary-strip { grid-template-columns: auto auto 1fr; padding: 16px; gap: 12px; }
  .summary-strip strong { font-size: 15px; }
  .list-head { align-items: flex-start; flex-direction: column; margin-top: 24px; }
  .course-card { grid-template-columns: 62px minmax(0,1fr); gap: 6px 14px; padding: 16px; }
  .course-tag { grid-column: 2; justify-self: start; }
  .drawer { padding: 22px 18px; border-radius: 20px; }
  .location-box { grid-template-columns: 1fr; }
}

body:has(.login-card:not([hidden])) { background: #edf1ec; }
.app-shell:has(.login-card:not([hidden])) {
  width: min(1160px, 92%); min-height: 100svh; padding: clamp(16px, 4vw, 58px) 0;
  display: grid; align-content: center;
}
.app-shell:has(.login-card:not([hidden])) > .topbar { display: none; }
.login-card {
  --ink: #162824; --muted: #51605c; --line: #d8e0dd;
  display: grid; grid-template-columns: 1.05fr 1fr; background: white; color: var(--ink);
  border-radius: 18px; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.library-photo {
  margin: 0; position: relative; display: grid; grid-template-rows: 1fr auto;
  background: #133c32; color: #f4f3e6;
}
.library-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.library-photo figcaption {
  grid-row: 2; position: relative; display: flex; align-items: baseline; justify-content: space-between;
  padding: 20px 28px; background: #133c32; font: 24px/1.1 Georgia, "Songti SC", serif;
}
.library-photo small { font: 13px/1.4 -apple-system, "PingFang SC", sans-serif; }
.login-content { padding: clamp(26px, 4.5vw, 68px); min-width: 0; }
.login-content .brand { margin-bottom: clamp(45px, 7vh, 80px); }
.login-content .brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--primary); box-shadow: none;
  font: 700 15px/1 Helvetica, sans-serif; letter-spacing: -.07em;
}
.login-content .brand-title { font-weight: 650; letter-spacing: -.04em; }
.login-content h1 { font: 500 clamp(35px, 4vw, 56px)/1.1 Georgia, "Songti SC", SimSun, serif; letter-spacing: -.05em; }
.login-copy { max-width: 34em; margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.72; text-wrap: pretty; }
.boot-view {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .02em;
}

.boot-view[hidden] { display: none !important; }

.login-actions { display: grid; gap: 12px; margin-top: 30px; }
.login-actions button {
  display: flex; align-items: center; gap: 15px; padding: 15px 18px; text-align: left;
  border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink);
}
.login-actions #ssoBtn, .login-actions #publicSsoBtn { background: var(--primary); color: white; border-color: var(--primary); }
.public-callback { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; }
.public-callback label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.public-callback-row { display: flex; gap: 8px; }
.public-callback-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 9px; }
.public-callback-row .btn { padding: 10px 14px; }
.login-actions img { width: 20px; height: 20px; }
.login-actions b { font-size: 17px; font-weight: 600; }
.login-actions small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; }
.login-actions button:hover:not(:disabled) { filter: brightness(.96); }
.login-actions button:active:not(:disabled) { transform: translateY(1px); }
.login-actions button:focus-visible { outline: 3px solid #2366aa; outline-offset: 3px; }
.login-actions button:disabled { cursor: wait; opacity: .75; }
.browser-icon { width: 21px; height: 16px; border: 1.6px solid; border-radius: 3px; position: relative; flex: none; }
.browser-icon::before { content: ""; position: absolute; top: 3px; left: 0; right: 0; border-top: 1px solid; }

@media (max-width: 720px) {
  .app-shell:has(.login-card:not([hidden])) { display: block; width: calc(100% - 28px); padding: 14px 0; }
  .login-card { display: block; }
  .library-photo { height: clamp(136px, 26vh, 218px); }
  .library-photo figcaption { padding: 9px 18px; font-size: 18px; }
  .login-content { padding: 26px 23px 30px; }
  .login-content .brand { margin-bottom: 26px; }
  .login-copy { margin-top: 14px; }
}
@media (max-width: 600px) { .login-copy { font-size: 16px; } }

.overlay.read-only .step { display: none; }
.read-only .drawer { max-width: 540px; color: #162824; }
.read-only .course-highlight { border: 0; border-radius: 10px; background: #133c32; color: #fff; padding: 20px; font-size: 21px; }
.course-facts { margin: 0; }
.course-facts > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #d8e0da; }
.course-facts dt { color: #51605c; } .course-facts dd { margin: 0; overflow-wrap: anywhere; }
.read-only .drawer-close { width: 44px; height: 44px; }
@media (min-width: 721px) { .overlay.read-only { place-items: center; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }

@media (min-width: 721px) and (max-width: 930px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .category-switch { justify-self: center; }
}
@media (max-width: 420px) {
  .user-chip small { display: none; } .user-chip { max-width: 6.5rem; }
  .topbar .brand { gap: 6px; } .topbar .brand-title { font-size: 15px; }
  .feature-photo figcaption { left: 5px; bottom: 7px; font-size: 12px; padding: 3px 5px; }
}
@keyframes campus-entry { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  #dashboardView:not([hidden]) { animation: campus-entry .32s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .category-switch::before, .card-select span, .btn, .course-card { transition: none; }
}
body.campus-dark:has(#dashboardView:not([hidden])) {
  background: #101b18; color: #e9f1e9; --ink: #e9f1e9; --muted: #bccac1; --line: #41534b;
}
.campus-dark .topbar { border-color: #3c4b44; }
.campus-dark .category-switch, .campus-dark .user-chip, .campus-dark .summary-strip, .campus-dark .course-card, .campus-dark .empty { background: #202f29; color: #edf3ec; border-color: #43574b; }
.campus-dark .category-switch::before { background: #435e51; }
.campus-dark .category-switch button, .campus-dark .course-code, .campus-dark .course-main p, .campus-dark .summary-strip span, .campus-dark #deskDate, .campus-dark .course-time span, .campus-dark .empty p { color: #ceddd2; }
.campus-dark .mail-feature { background: #274857; color: #eff7f9; }
.campus-dark .mail-feature .feature-label { color: #bbd6e3; }
.campus-dark #mailBtn { background: #d7eaf3; color: #163e50; }
.campus-dark .theme-toggle { border-color: #52675a; }
.campus-dark .drawer { background: #1d3028; color: #e9f1e9; }
.campus-dark .course-facts dt { color: #bed1c5; }

.campus-navigation { display: flex; align-items: center; gap: 8px; }
.language-toggle {
  min-height: 44px; padding: 0 12px; border: 1px solid #bacac1; border-radius: 24px;
  background: transparent; color: #254f41; font-size: 14px; font-weight: 600;
}
.language-toggle:focus-visible { outline: 3px solid #367caf; outline-offset: 2px; }
.login-content .language-toggle { margin-inline-start: auto; }
.campus-dark .campus-navigation .language-toggle { color: #e9f1e9; border-color: #52675a; }
@media (max-width: 720px) {
  .campus-navigation { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
}
@media (max-width: 420px) {
  .login-content .brand { flex-wrap: wrap; }
  html:lang(en) .desk-heading { flex-wrap: wrap; gap: 6px 12px; }
  html:lang(en) .feature-card:nth-child(2) h2 { font-size: 18px; }
  html:lang(en) .summary-strip { grid-template-columns: 1fr 1fr 1.5fr; }
}

html:lang(en) .category-switch button { width: 96px; }
.topbar .brand-mark { flex-shrink: 0; }
@media (max-width: 420px) {
  html:lang(en) .user-chip { max-width: 5.25rem; }
  html:lang(en) .topbar { gap: 10px 6px; }
}
