﻿html {
  scroll-behavior: smooth;
}

/* 再选科目下拉 — 去掉搜索框、选项前勾选框，纯文字点击选择 */
.no-search-dropdown .dash-dropdown-search,
.no-search-dropdown .dash-dropdown-search-icon,
.no-search-dropdown .Select-input,
.no-search-dropdown .Select-input input,
.no-search-dropdown input[type="text"] {
  display: none !important;
}
.no-search-dropdown .dash-dropdown-trigger {
  border-radius: var(--bs-border-radius, 0.375rem);
  min-height: 38px;
}
.no-search-dropdown .dash-dropdown-content button,
.no-search-dropdown .dash-dropdown-content > div:first-child {
  display: none !important;
}
/* 隐藏所有多选下拉的勾选框 — Dash 4.x 原生 checkbox */
.dash-options-list-option-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

:root {
  --bg-base: #f3f5f8;
  --bg-soft: #faf8f3;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-muted: #eef2f7;
  --ink-strong: #142235;
  --ink-base: #2c3f55;
  --ink-soft: #698098;
  --line-soft: rgba(16, 42, 67, 0.08);
  --line-strong: rgba(16, 42, 67, 0.16);
  --brand-900: #0f2743;
  --brand-800: #173b66;
  --brand-700: #25517d;
  --brand-500: #3b82a6;
  --gold-500: #b98a32;
  --gold-400: #d4ab55;
  --success-500: #2d7a55;
  --warning-500: #c77c1f;
  --danger-500: #b54a44;
  --info-500: #2d6f90;
  --shadow-lg: 0 24px 60px rgba(15, 39, 67, 0.12);
  --shadow-md: 0 18px 40px rgba(15, 39, 67, 0.08);
  --shadow-sm: 0 10px 24px rgba(15, 39, 67, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: "Microsoft YaHei UI", "PingFang SC", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-display: "STZhongsong", "Songti SC", "SimSun", serif;
  --bg-radial-warm: rgba(185, 138, 50, 0.08);
  --bg-radial-brand: rgba(59, 130, 166, 0.10);
  --bg-gradient-top: #faf9f6;
  --bg-gradient-mid: #f4f6f9;
  --bg-gradient-bottom: #f0f3f7;
  --accent-eyebrow: rgba(212, 171, 85, 0.95);
  --navbar-start: rgba(28, 52, 78, 0.94);
  --navbar-end: rgba(51, 86, 121, 0.90);
  --navbar-solid: var(--brand-900);
  --navbar-border: rgba(212, 171, 85, 0.18);
  --navbar-shadow: 0 14px 32px rgba(11, 28, 48, 0.18);
  --brand-badge-bg: #e1f0f7;
  --brand-badge-border: #82b8d9;
  --brand-badge-text: #0f2743;
  --brand-subtitle-color: rgba(228, 236, 247, 0.76);
  --nav-link-color: rgba(245, 248, 252, 0.82);
  --nav-link-hover-bg: rgba(255, 255, 255, 0.10);
  --nav-link-hover-text: #ffffff;
  --mode-card-bg: rgba(255, 255, 255, 0.08);
  --mode-card-border: rgba(255, 255, 255, 0.14);
  --mode-card-hover-bg: rgba(255, 255, 255, 0.13);
  --mode-card-hover-border: rgba(255, 255, 255, 0.24);
  --mode-card-text: rgba(244, 248, 252, 0.88);
  --mode-card-active-bg: linear-gradient(135deg, rgba(212, 171, 85, 0.24), rgba(212, 171, 85, 0.12));
  --mode-card-active-border: rgba(212, 171, 85, 0.46);
  --mode-card-active-text: #ffffff;
  --hero-start: rgba(31, 62, 95, 0.94);
  --hero-end: rgba(72, 108, 142, 0.86);
  --hero-solid: var(--brand-900);
  --hero-border: rgba(212, 171, 85, 0.16);
  --hero-shadow: 0 18px 40px rgba(20, 42, 67, 0.12);
  --hero-text: #edf4fb;
  --hero-title-color: #ffffff;
  --hero-subtitle-color: rgba(235, 242, 249, 0.86);
  --hero-glow-warm: rgba(212, 171, 85, 0.12);
  --hero-glow-brand: rgba(59, 130, 166, 0.14);
  --footer-start: rgba(15, 39, 67, 0.97);
  --footer-end: rgba(24, 54, 87, 0.94);
  --footer-border: rgba(212, 171, 85, 0.20);
  --footer-title-color: #ffffff;
  --footer-copy-color: rgba(231, 239, 247, 0.82);
  --footer-section-color: #f8deb0;
}

html[data-theme="parent"],
body[data-theme="parent"],
.app-shell.theme-parent {
  --bg-radial-warm: rgba(205, 154, 72, 0.12);
  --bg-radial-brand: rgba(197, 146, 68, 0.10);
  --bg-gradient-top: #fffaf0;
  --bg-gradient-mid: #fbf5e8;
  --bg-gradient-bottom: #f5efe2;
  --accent-eyebrow: rgba(171, 117, 28, 0.96);
  --brand-900: #5a4220;
  --brand-800: #7a5925;
  --brand-700: #9d7130;
  --brand-500: #c89a45;
  --gold-500: #c79a44;
  --gold-400: #e1bc73;
  --info-500: #9c7a40;
  --navbar-start: rgba(100, 73, 35, 0.95);
  --navbar-end: rgba(143, 106, 52, 0.92);
  --navbar-border: rgba(255, 233, 179, 0.22);
  --brand-badge-bg: #e1f0f7;
  --brand-badge-border: #82b8d9;
  --brand-badge-text: #0f2743;
  --brand-subtitle-color: rgba(255, 245, 227, 0.84);
  --nav-link-hover-bg: rgba(255, 246, 226, 0.12);
  --mode-card-active-bg: linear-gradient(135deg, rgba(255, 230, 177, 0.32), rgba(221, 175, 87, 0.16));
  --mode-card-active-border: rgba(255, 232, 184, 0.55);
  --hero-start: rgba(114, 83, 37, 0.95);
  --hero-end: rgba(177, 133, 63, 0.86);
  --hero-border: rgba(255, 232, 183, 0.22);
  --hero-glow-warm: rgba(255, 229, 166, 0.16);
  --hero-glow-brand: rgba(230, 187, 105, 0.14);
  --footer-start: rgba(90, 66, 32, 0.98);
  --footer-end: rgba(122, 89, 37, 0.94);
  --footer-border: rgba(255, 232, 184, 0.22);
  --footer-section-color: #ffe1a8;
}

html[data-theme="student"],
body[data-theme="student"],
.app-shell.theme-student {
  --bg-radial-warm: rgba(46, 163, 160, 0.10);
  --bg-radial-brand: rgba(101, 198, 190, 0.12);
  --bg-gradient-top: #f4fcfb;
  --bg-gradient-mid: #eff8f6;
  --bg-gradient-bottom: #eaf5f2;
  --accent-eyebrow: rgba(36, 138, 134, 0.95);
  --brand-900: #124f50;
  --brand-800: #156b6a;
  --brand-700: #1c8885;
  --brand-500: #2ea3a0;
  --gold-500: #6bb89f;
  --gold-400: #9edfd8;
  --success-500: #208564;
  --info-500: #257c89;
  --navbar-start: rgba(18, 79, 80, 0.96);
  --navbar-end: rgba(28, 136, 133, 0.90);
  --navbar-border: rgba(158, 223, 216, 0.20);
  --brand-badge-bg: #e1f0f7;
  --brand-badge-border: #82b8d9;
  --brand-badge-text: #0f2743;
  --brand-subtitle-color: rgba(222, 246, 243, 0.84);
  --nav-link-hover-bg: rgba(223, 248, 245, 0.12);
  --mode-card-active-bg: linear-gradient(135deg, rgba(158, 223, 216, 0.26), rgba(46, 163, 160, 0.14));
  --mode-card-active-border: rgba(158, 223, 216, 0.42);
  --hero-start: rgba(18, 97, 97, 0.95);
  --hero-end: rgba(42, 156, 152, 0.86);
  --hero-border: rgba(158, 223, 216, 0.18);
  --hero-glow-warm: rgba(158, 223, 216, 0.12);
  --hero-glow-brand: rgba(76, 188, 177, 0.16);
  --footer-start: rgba(18, 79, 80, 0.98);
  --footer-end: rgba(21, 107, 106, 0.94);
  --footer-border: rgba(158, 223, 216, 0.18);
  --footer-section-color: #bdebe5;
}

html[data-theme="executive"],
body[data-theme="executive"],
.app-shell.theme-executive {
  --bg-radial-warm: rgba(110, 144, 176, 0.08);
  --bg-radial-brand: rgba(36, 79, 127, 0.12);
  --bg-gradient-top: #f7f9fc;
  --bg-gradient-mid: #f1f5fa;
  --bg-gradient-bottom: #ecf1f7;
  --accent-eyebrow: rgba(164, 190, 221, 0.92);
  --brand-900: #102741;
  --brand-800: #173b66;
  --brand-700: #244f7f;
  --brand-500: #527aa6;
  --gold-500: #7f99b8;
  --gold-400: #b9c8d9;
  --success-500: #3f7b69;
  --navbar-start: rgba(16, 39, 65, 0.98);
  --navbar-end: rgba(27, 63, 102, 0.94);
  --navbar-border: rgba(110, 144, 176, 0.18);
  --brand-badge-bg: #e1f0f7;
  --brand-badge-border: #82b8d9;
  --brand-badge-text: #0f2743;
  --brand-subtitle-color: rgba(223, 232, 242, 0.82);
  --nav-link-hover-bg: rgba(185, 200, 217, 0.12);
  --mode-card-active-bg: linear-gradient(135deg, rgba(110, 144, 176, 0.24), rgba(36, 79, 127, 0.16));
  --mode-card-active-border: rgba(185, 200, 217, 0.38);
  --hero-start: rgba(16, 39, 65, 0.97);
  --hero-end: rgba(36, 79, 127, 0.90);
  --hero-border: rgba(110, 144, 176, 0.18);
  --hero-glow-warm: rgba(110, 144, 176, 0.10);
  --hero-glow-brand: rgba(36, 79, 127, 0.18);
  --footer-start: rgba(16, 39, 65, 0.99);
  --footer-end: rgba(23, 59, 102, 0.95);
  --footer-border: rgba(110, 144, 176, 0.18);
  --footer-section-color: #cdd9e8;
}

html[data-theme="serene"],
body[data-theme="serene"],
.app-shell.theme-serene {
  --bg-radial-warm: rgba(80, 137, 120, 0.10);
  --bg-radial-brand: rgba(185, 215, 201, 0.14);
  --bg-gradient-top: #f6fbf8;
  --bg-gradient-mid: #eff6f1;
  --bg-gradient-bottom: #e8f1eb;
  --accent-eyebrow: rgba(73, 121, 106, 0.94);
  --brand-900: #27463d;
  --brand-800: #2b5548;
  --brand-700: #3d6d5e;
  --brand-500: #4f8978;
  --gold-500: #7fa091;
  --gold-400: #b9d7c9;
  --success-500: #3c8467;
  --info-500: #4c7f72;
  --navbar-start: rgba(39, 70, 61, 0.97);
  --navbar-end: rgba(61, 109, 94, 0.91);
  --navbar-border: rgba(185, 215, 201, 0.18);
  --brand-badge-bg: #e1f0f7;
  --brand-badge-border: #82b8d9;
  --brand-badge-text: #0f2743;
  --brand-subtitle-color: rgba(224, 238, 231, 0.84);
  --nav-link-hover-bg: rgba(234, 245, 239, 0.10);
  --mode-card-active-bg: linear-gradient(135deg, rgba(185, 215, 201, 0.24), rgba(79, 137, 120, 0.14));
  --mode-card-active-border: rgba(185, 215, 201, 0.38);
  --hero-start: rgba(43, 85, 72, 0.96);
  --hero-end: rgba(79, 137, 120, 0.86);
  --hero-border: rgba(185, 215, 201, 0.18);
  --hero-glow-warm: rgba(185, 215, 201, 0.14);
  --hero-glow-brand: rgba(79, 137, 120, 0.16);
  --footer-start: rgba(39, 70, 61, 0.98);
  --footer-end: rgba(43, 85, 72, 0.95);
  --footer-border: rgba(185, 215, 201, 0.18);
  --footer-section-color: #d5eadf;
}

html[data-theme="celebration"],
body[data-theme="celebration"],
.app-shell.theme-celebration {
  --bg-radial-warm: rgba(198, 60, 50, 0.16);
  --bg-radial-brand: rgba(242, 197, 114, 0.14);
  --bg-gradient-top: #fff7f3;
  --bg-gradient-mid: #fff0ea;
  --bg-gradient-bottom: #fde8df;
  --accent-eyebrow: rgba(198, 60, 50, 0.96);
  --brand-900: #6f1717;
  --brand-800: #8f1f1f;
  --brand-700: #b82f27;
  --brand-500: #c63c32;
  --gold-500: #d8a643;
  --gold-400: #f2c572;
  --success-500: #b85d1b;
  --info-500: #b54a44;
  --navbar-start: rgba(111, 23, 23, 0.97);
  --navbar-end: rgba(143, 31, 31, 0.92);
  --navbar-border: rgba(242, 197, 114, 0.26);
  --brand-badge-bg: #fff0df;
  --brand-badge-border: #f2c572;
  --brand-badge-text: #7a2a1d;
  --brand-subtitle-color: rgba(255, 233, 224, 0.88);
  --nav-link-hover-bg: rgba(255, 238, 225, 0.12);
  --mode-card-active-bg: linear-gradient(135deg, rgba(242, 197, 114, 0.30), rgba(198, 60, 50, 0.16));
  --mode-card-active-border: rgba(242, 197, 114, 0.52);
  --hero-start: rgba(143, 31, 31, 0.96);
  --hero-end: rgba(198, 60, 50, 0.88);
  --hero-border: rgba(242, 197, 114, 0.24);
  --hero-glow-warm: rgba(242, 197, 114, 0.18);
  --hero-glow-brand: rgba(198, 60, 50, 0.18);
  --footer-start: rgba(111, 23, 23, 0.99);
  --footer-end: rgba(143, 31, 31, 0.95);
  --footer-border: rgba(242, 197, 114, 0.24);
  --footer-section-color: #ffd99b;
}

html[data-theme="sunrise"],
body[data-theme="sunrise"],
.app-shell.theme-sunrise {
  --bg-radial-warm: rgba(217, 107, 31, 0.15);
  --bg-radial-brand: rgba(246, 187, 106, 0.15);
  --bg-gradient-top: #fff9f3;
  --bg-gradient-mid: #fff1e4;
  --bg-gradient-bottom: #fde7d4;
  --accent-eyebrow: rgba(217, 107, 31, 0.95);
  --brand-900: #7d3111;
  --brand-800: #a34718;
  --brand-700: #c7591c;
  --brand-500: #d96b1f;
  --gold-500: #d89b3a;
  --gold-400: #f6bb6a;
  --success-500: #bf6d12;
  --info-500: #c75f1d;
  --navbar-start: rgba(125, 49, 17, 0.97);
  --navbar-end: rgba(163, 71, 24, 0.92);
  --navbar-border: rgba(246, 187, 106, 0.24);
  --brand-badge-bg: #fff1df;
  --brand-badge-border: #f6bb6a;
  --brand-badge-text: #7d3111;
  --brand-subtitle-color: rgba(255, 239, 223, 0.88);
  --nav-link-hover-bg: rgba(255, 241, 226, 0.12);
  --mode-card-active-bg: linear-gradient(135deg, rgba(246, 187, 106, 0.30), rgba(217, 107, 31, 0.16));
  --mode-card-active-border: rgba(246, 187, 106, 0.50);
  --hero-start: rgba(163, 71, 24, 0.96);
  --hero-end: rgba(217, 107, 31, 0.88);
  --hero-border: rgba(246, 187, 106, 0.24);
  --hero-glow-warm: rgba(246, 187, 106, 0.18);
  --hero-glow-brand: rgba(217, 107, 31, 0.16);
  --footer-start: rgba(125, 49, 17, 0.99);
  --footer-end: rgba(163, 71, 24, 0.95);
  --footer-border: rgba(246, 187, 106, 0.22);
  --footer-section-color: #ffd093;
}

html[data-theme="champion"],
body[data-theme="champion"],
.app-shell.theme-champion {
  --bg-radial-warm: rgba(185, 138, 50, 0.15);
  --bg-radial-brand: rgba(239, 208, 125, 0.16);
  --bg-gradient-top: #fffdf7;
  --bg-gradient-mid: #fbf4df;
  --bg-gradient-bottom: #f6ecd0;
  --accent-eyebrow: rgba(185, 138, 50, 0.95);
  --brand-900: #5f450d;
  --brand-800: #7b5a12;
  --brand-700: #9b741b;
  --brand-500: #b98a32;
  --gold-500: #c79a3b;
  --gold-400: #efd07d;
  --success-500: #9b6d15;
  --info-500: #9d7130;
  --navbar-start: rgba(95, 69, 13, 0.97);
  --navbar-end: rgba(123, 90, 18, 0.92);
  --navbar-border: rgba(239, 208, 125, 0.26);
  --brand-badge-bg: #fff6dd;
  --brand-badge-border: #efd07d;
  --brand-badge-text: #6a4b11;
  --brand-subtitle-color: rgba(255, 246, 223, 0.88);
  --nav-link-hover-bg: rgba(255, 244, 226, 0.12);
  --mode-card-active-bg: linear-gradient(135deg, rgba(239, 208, 125, 0.30), rgba(185, 138, 50, 0.15));
  --mode-card-active-border: rgba(239, 208, 125, 0.52);
  --hero-start: rgba(123, 90, 18, 0.96);
  --hero-end: rgba(185, 138, 50, 0.88);
  --hero-border: rgba(239, 208, 125, 0.24);
  --hero-glow-warm: rgba(239, 208, 125, 0.20);
  --hero-glow-brand: rgba(185, 138, 50, 0.14);
  --footer-start: rgba(95, 69, 13, 0.99);
  --footer-end: rgba(123, 90, 18, 0.95);
  --footer-border: rgba(239, 208, 125, 0.24);
  --footer-section-color: #f3da93;
}

html,
body {
  background:
    radial-gradient(circle at top left, var(--bg-radial-warm), transparent 34%),
    radial-gradient(circle at top right, var(--bg-radial-brand), transparent 28%),
    linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-mid) 48%, var(--bg-gradient-bottom) 100%);
  color: var(--ink-base);
  font-family: var(--font-sans);
  min-height: 100%;
}

body {
  letter-spacing: 0.01em;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  color: var(--ink-base);
}

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background:
    linear-gradient(135deg, var(--navbar-start), var(--navbar-end)),
    var(--navbar-solid);
  box-shadow: var(--navbar-shadow);
  border-bottom: 1px solid var(--navbar-border);
  backdrop-filter: blur(18px);
}

.app-navbar-container {
  padding: 0 1rem;
}

.app-navbar-inner {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.56rem;
  padding: 0.62rem 0 0.56rem;
}

.app-navbar-toprow {
  align-items: center;
  column-gap: 0.7rem;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(190px, 1fr) auto;
}

.app-navbar-bottomrow {
  display: flex;
  justify-content: flex-end;
}

.app-navbar-utility-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  justify-content: space-between;
  width: 100%;
}

.app-navbar-utility-row .navbar-collapse {
  flex: 1 1 auto;
}

.app-navbar-menu-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.8rem;
  justify-content: space-between;
  width: 100%;
}

#navbar-collapse {
  display: flex !important;
  flex: 1 1 auto;
  justify-content: flex-start;
}

.app-nav.navbar-nav {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-top: 0;
}

#nav-user-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
  white-space: nowrap;
}

#nav-user-summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fdfefe;
  cursor: pointer;
  display: inline-flex;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  margin-right: 0.1rem;
  min-height: 34px;
  padding: 0.58rem 0.9rem;
  text-shadow: 0 1px 2px rgba(8, 18, 30, 0.25);
  text-decoration: none;
  white-space: nowrap;
}

#nav-user-summary:hover,
#nav-user-summary:focus {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  text-decoration: none;
}

#nav-user-summary:focus-visible {
  outline: 3px solid rgba(212, 171, 85, 0.35);
  outline-offset: 3px;
}

.account-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.account-payment-actions .btn {
  min-width: 7.5rem;
}

.account-wechat-pay-modal .modal-content,
.account-wechat-pay-modal-content {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink-base);
  overflow: hidden;
}

.account-wechat-pay-modal .modal-header {
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  border-color: var(--hero-border);
  color: var(--hero-text);
}

.account-wechat-pay-modal .modal-title {
  color: var(--hero-title-color);
  font-family: var(--font-display);
}

.account-wechat-pay-modal .modal-body {
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.account-wechat-pay-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.account-wechat-pay-qr-wrap {
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  padding: 0.85rem;
}

.account-wechat-pay-qr {
  display: block;
  height: 220px;
  width: 220px;
}

.account-wechat-pay-title {
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.account-wechat-pay-meta {
  color: var(--ink-base);
  font-size: 0.92rem;
  line-height: 1.7;
}

.account-wechat-pay-order {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.6;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

#nav-login-btn.btn,
#nav-register-btn.btn,
#nav-logout-btn.btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fdfefe;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  min-height: 34px;
  padding: 0.58rem 0.9rem;
  text-shadow: 0 1px 2px rgba(8, 18, 30, 0.25);
}

#nav-login-btn.btn:hover,
#nav-login-btn.btn:focus,
#nav-register-btn.btn:hover,
#nav-register-btn.btn:focus,
#nav-logout-btn.btn:hover,
#nav-logout-btn.btn:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.theme-switcher {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 280px;
  padding: 0.68rem 0.8rem;
}

.theme-switcher-inline {
  align-items: center;
  align-self: center;
  flex: 0 0 184px;
  flex-direction: row;
  gap: 0.35rem;
  justify-self: end;
  margin-left: 0;
  min-width: 184px;
  padding: 0.26rem 0.4rem;
}

.theme-switcher-inline .theme-switcher-meta {
  display: none;
}

.theme-switcher-inline .theme-switcher-preview {
  display: none;
}

.theme-switcher-inline .theme-switcher-top {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  margin-left: auto;
  width: 100%;
}

.theme-switcher-inline .theme-switcher-label {
  font-size: 0.68rem !important;
  letter-spacing: 0.05em;
  min-width: 4.2rem;
  text-align: right;
}

.theme-switcher-inline .theme-switcher-control.form-select {
  font-size: 0.68rem !important;
  line-height: 1.2;
  min-height: 31px;
  min-width: 112px;
  padding-bottom: 0.24rem;
  padding-top: 0.24rem;
}

.theme-switcher-inline .theme-switcher-control.form-select option {
  font-size: 0.68rem;
}

.theme-switcher-top {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  width: 100%;
}

.theme-switcher-label {
  color: rgba(244, 248, 252, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.theme-switcher-control.form-select {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.11)),
    rgba(15, 39, 67, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: none;
  color: #f7fbff;
  font-size: 0.88rem;
  min-height: 40px;
}

.theme-switcher-control.form-select:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.08);
}

.theme-switcher-preview {
  display: flex;
  gap: 0.38rem;
}

.theme-switcher-swatch {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(9, 21, 34, 0.18);
  display: inline-flex;
  height: 14px;
  width: 14px;
}

.theme-switcher-meta {
  color: rgba(230, 238, 247, 0.78);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* 主题选择器仅保留下拉菜单，隐藏色块预览和辅助说明 */
.footer-theme-switcher .theme-switcher-preview,
.footer-theme-switcher .theme-switcher-meta {
  display: none;
}

.app-brand-block {
  color: #f4f7fb;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 0 1 620px;
  justify-self: start;
  min-width: 420px;
  padding: 0.18rem 0.22rem;
}

.app-brand-shell {
  align-items: center;
  display: flex;
  gap: 1rem;
  padding: 0.08rem 0.24rem 0.08rem 0.12rem;
}

.app-brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 46px;
  max-width: 148px;
  object-fit: contain;
  width: auto;
}

.app-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.app-brand-kicker,
.footer-kicker,
.section-eyebrow,
.page-hero-eyebrow {
  color: var(--accent-eyebrow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-brand-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
}

.app-brand-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.app-brand-badge {
  display: none;
}

.app-brand-subtitle {
  color: var(--brand-subtitle-color);
  font-size: 0.9rem;
}

.app-nav {
  align-items: center;
  gap: 0.35rem;
}

.app-nav-link.nav-link {
  border-radius: 999px;
  color: var(--nav-link-color);
  font-size: clamp(1.2rem, 1.9vw, 1.8rem);
  font-weight: 700;
  padding: 0.68rem 0.96rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-nav-link.nav-link:hover,
.app-nav-link.nav-link.active {
  background: var(--nav-link-hover-bg);
  color: var(--nav-link-hover-text);
  transform: translateY(-1px);
}

.app-navbar-toggler.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.16);
  display: none;
}

.global-mode-inline-cards {
  flex: 0 0 auto;
  justify-self: center;
  min-width: auto;
  width: fit-content;
}

.global-mode-inline-grid {
  display: flex;
  gap: 0.82rem;
  justify-content: center;
}

.global-mode-inline-link {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.global-mode-inline-card {
  align-items: center;
  background: var(--mode-card-bg);
  border: 1px solid var(--mode-card-border);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--mode-card-text);
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  min-width: 124px;
  padding: 0.42rem 0.9rem;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.global-mode-inline-card:hover {
  background: var(--mode-card-hover-bg);
  border-color: var(--mode-card-hover-border);
  transform: translateY(-1px);
}

.global-mode-inline-card.is-active {
  background: var(--mode-card-active-bg);
  border-color: var(--mode-card-active-border);
  color: var(--mode-card-active-text);
}

.app-main {
  padding: 1.6rem 0 0;
}

.page-container {
  max-width: 1500px;
  padding: 0 1.2rem 2rem;
}

.page-content {
  min-height: calc(100vh - 320px);
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 1.18rem;
}

.page-hero {
  background:
    linear-gradient(135deg, var(--hero-start), var(--hero-end)),
    var(--hero-solid);
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(15, 39, 67, 0.16);
  color: var(--hero-text);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  overflow: hidden;
  padding: 3rem 2.5rem;
  position: relative;
}

.page-hero::before,
.page-hero::after {
  border-radius: 50%;
  content: "";
  position: absolute;
}

.page-hero::before {
  background: radial-gradient(circle, var(--hero-glow-warm) 0%, rgba(212, 171, 85, 0) 72%);
  height: 420px;
  right: -120px;
  top: -180px;
  width: 420px;
}

.page-hero::after {
  background: radial-gradient(circle, var(--hero-glow-brand) 0%, rgba(59, 130, 166, 0) 74%);
  bottom: -210px;
  height: 420px;
  left: -150px;
  width: 420px;
}

.page-hero-main,
.page-hero-side {
  position: relative;
  z-index: 1;
}

.page-title {
  color: var(--hero-title-color);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0.35rem 0 1rem;
}

.page-subtitle {
  color: var(--hero-subtitle-color);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  max-width: 780px;
}

.page-hero.page-hero-compact {
  gap: 1rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.78fr);
  padding: 1.3rem 1.45rem;
}

.page-hero.page-hero-compact .page-title {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  margin: 0.2rem 0 0.45rem;
}

.page-hero.page-hero-compact .page-subtitle {
  font-size: 0.94rem;
  line-height: 1.62;
  max-width: 720px;
}

.page-hero.page-hero-compact .page-hero-metrics {
  gap: 0.7rem;
}

.page-hero.page-hero-compact .hero-metric-card {
  gap: 0.22rem;
  min-height: 88px;
  padding: 0.75rem 0.9rem;
}

.page-hero.page-hero-compact .hero-metric-label {
  font-size: 0.72rem;
}

.page-hero.page-hero-compact .hero-metric-value {
  font-size: 1.12rem;
}

.page-hero.page-hero-compact .hero-metric-detail {
  font-size: 0.8rem;
  line-height: 1.45;
}

.page-hero.page-hero-compact .page-hero-aside {
  gap: 0.65rem;
  margin-top: 0.7rem;
  padding: 0.85rem 0.95rem;
}

.page-hero.page-hero-compact .aside-copy,
.page-hero.page-hero-compact .aside-list {
  font-size: 0.84rem;
  line-height: 1.6;
}

.page-hero.page-hero-mini {
  background: linear-gradient(135deg, rgba(250, 252, 255, 0.98), rgba(238, 244, 250, 0.97));
  border: 1px solid rgba(23, 59, 102, 0.1);
  box-shadow: 0 10px 24px rgba(20, 42, 67, 0.06);
  color: var(--ink-strong);
  gap: 0.58rem;
  grid-template-columns: minmax(0, 1.75fr) minmax(220px, 0.68fr);
  padding: 0.64rem 0.78rem;
}

.page-hero.page-hero-mini::before,
.page-hero.page-hero-mini::after {
  display: none;
}

.page-hero.page-hero-mini .page-hero-eyebrow {
  color: var(--brand-700);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.page-hero.page-hero-mini .page-title {
  color: var(--ink-strong);
  font-size: clamp(1.02rem, 1.55vw, 1.26rem);
  line-height: 1.18;
  margin: 0.02rem 0 0.15rem;
}

.page-hero.page-hero-mini .page-subtitle {
  color: var(--ink-base);
  font-size: 0.81rem;
  line-height: 1.45;
  max-width: 760px;
}

.page-hero.page-hero-mini .page-hero-metrics {
  gap: 0.38rem;
}

.page-hero.page-hero-mini .hero-metric-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 59, 102, 0.08);
  box-shadow: none;
  gap: 0.12rem;
  min-height: 54px;
  padding: 0.4rem 0.5rem;
}

.page-hero.page-hero-mini .hero-metric-card.hero-metric-gold {
  background: linear-gradient(180deg, rgba(212, 171, 85, 0.12), rgba(255, 255, 255, 0.98));
  border-color: rgba(185, 138, 50, 0.18);
}

.page-hero.page-hero-mini .hero-metric-card.hero-metric-success {
  background: linear-gradient(180deg, rgba(45, 122, 85, 0.1), rgba(255, 255, 255, 0.98));
  border-color: rgba(45, 122, 85, 0.16);
}

.page-hero.page-hero-mini .hero-metric-card.hero-metric-info {
  background: linear-gradient(180deg, rgba(74, 119, 145, 0.1), rgba(255, 255, 255, 0.98));
  border-color: rgba(74, 119, 145, 0.16);
}

.page-hero.page-hero-mini .hero-metric-label {
  color: var(--ink-soft);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.page-hero.page-hero-mini .hero-metric-value {
  color: var(--ink-strong);
  font-size: 0.82rem;
}

.page-hero.page-hero-mini .hero-metric-detail {
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.22;
}

.page-hero.page-hero-mini .page-hero-aside {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 59, 102, 0.08);
  gap: 0.28rem;
  margin-top: 0.3rem;
  padding: 0.42rem 0.56rem;
}

.page-hero.page-hero-mini .aside-title {
  color: var(--ink-strong);
  font-size: 0.76rem;
}

.page-hero.page-hero-mini .aside-copy,
.page-hero.page-hero-mini .aside-list {
  color: var(--ink-base);
  font-size: 0.7rem;
  line-height: 1.3;
}

.page-hero.page-hero-dashboard,
.page-hero.home-hero-mini {
  grid-template-columns: minmax(0, 1.48fr) minmax(340px, 0.96fr);
}

.page-hero.page-hero-dashboard .page-hero-main,
.page-hero.home-hero-mini .page-hero-main {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  justify-content: space-between;
}

.page-hero.page-hero-dashboard .page-hero-actions,
.page-hero.home-hero-mini .page-hero-actions {
  gap: 0.35rem;
  margin-top: 0.28rem;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.home-value-props {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0.9rem;
  width: 100%;
  margin-top: 0.35rem;
}

@media (max-width: 1100px) {
  .home-value-props {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

.home-value-props .summary-card {
  margin-bottom: 0;
}

.home-fit-positioning-copy {
  color: #c63c32;
  text-align: center;
}

.adapt-fit-positioning-alert {
  text-align: center;
  color: #c63c32;
  font-weight: 700;
}

.adapt-fit-positioning-alert,
.adapt-fit-positioning-alert * {
  text-align: center;
  color: #c63c32;
}

.hero-inline-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(23, 59, 102, 0.1);
  border-radius: 999px;
  color: var(--ink-base);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.42rem 0.72rem;
}

.hero-inline-chip-accent {
  background: linear-gradient(135deg, rgba(23, 59, 102, 0.92), rgba(74, 119, 145, 0.9));
  border-color: rgba(23, 59, 102, 0.16);
  color: #ffffff;
}

.page-hero-metrics {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 118px;
  padding: 1rem 1.05rem;
}

.hero-metric-card.hero-metric-gold {
  background: linear-gradient(180deg, rgba(212, 171, 85, 0.18), rgba(212, 171, 85, 0.08));
  border-color: rgba(212, 171, 85, 0.28);
}

.hero-metric-card.hero-metric-success {
  background: linear-gradient(180deg, rgba(45, 122, 85, 0.24), rgba(45, 122, 85, 0.12));
}

.hero-metric-card.hero-metric-info {
  background: linear-gradient(180deg, rgba(59, 130, 166, 0.24), rgba(59, 130, 166, 0.12));
}

.hero-metric-label {
  color: rgba(231, 239, 247, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-metric-value {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
}

.hero-metric-detail {
  color: rgba(231, 239, 247, 0.82);
  font-size: 0.86rem;
  line-height: 1.5;
}

.page-hero-aside {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.9rem;
  padding: 1rem 1.1rem;
}

.aside-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.aside-copy,
.aside-list,
.muted-note {
  color: rgba(236, 243, 249, 0.82);
  font-size: 0.92rem;
  line-height: 1.75;
}

.aside-list {
  margin: 0;
  padding-left: 1.15rem;
}

.section-header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.page-shell > section,
.section-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(249, 251, 254, 0.96));
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.05rem;
}

.page-shell > section .section-header,
.section-shell .section-header {
  margin-bottom: 0.82rem;
}

.section-title {
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.7vw, 1.56rem);
  line-height: 1.35;
  margin: 0;
}

.section-description {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0.35rem 0 0;
  max-width: 860px;
}

.executive-card,
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.94));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.95), rgba(239, 244, 248, 0.95));
  border-bottom: 1px solid rgba(15, 39, 67, 0.06);
  color: var(--ink-strong);
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.95rem 1.2rem;
}

.card-body {
  padding: 1rem 1.06rem;
}

.card-footer {
  background: rgba(246, 249, 252, 0.92);
  border-top: 1px solid rgba(15, 39, 67, 0.06);
  padding: 1rem 1.25rem;
}

.summary-card {
  height: 100%;
}

.summary-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.overview-metric-col {
  width: 100%;
}

.summary-card-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card-value {
  color: var(--ink-strong);
  font-size: clamp(1.42rem, 1.85vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}

.summary-card-detail {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.68;
  margin: 0;
}

.tone-primary {
  border-top: 4px solid var(--brand-700);
}

.tone-success {
  border-top: 4px solid var(--success-500);
}

.tone-gold,
.tone-warning {
  border-top: 4px solid var(--gold-500);
}

.tone-danger {
  border-top: 4px solid var(--danger-500);
}

.dashboard-grid,
.feature-grid,
.kpi-grid,
.action-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid,
.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.info-card,
.glass-card {
  height: 100%;
}

.feature-card .card-body,
.info-card .card-body,
.glass-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-card-title,
.info-card-title {
  color: var(--ink-strong);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.feature-card-copy,
.info-card-copy {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.72;
  margin: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-pill,
.badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-pill {
  background: rgba(37, 81, 125, 0.08);
  border: 1px solid rgba(37, 81, 125, 0.12);
  color: var(--brand-800);
  display: inline-flex;
  font-size: 0.84rem;
  padding: 0.42rem 0.72rem;
}

.label-pair {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.label-pair-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.label-pair-value {
  color: var(--ink-strong);
  font-size: 0.98rem;
  font-weight: 700;
}

.data-panel,
.table-shell,
.results-shell {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.btn {
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.66rem 1.18rem;
  position: relative;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    filter 0.14s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  will-change: transform, box-shadow, filter;
}

/* Button loading spinner */
@keyframes btn-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-loading {
  pointer-events: none;
  opacity: 0.82;
  cursor: wait;
}

.btn-loading::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.45em;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: -0.12em;
}

.btn-primary.btn-loading::before,
.btn-warning.btn-loading::before {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
}

.btn-secondary.btn-loading::before,
.btn-outline-secondary.btn-loading::before,
.btn-outline-primary.btn-loading::before {
  border-color: rgba(37, 81, 125, 0.18);
  border-top-color: var(--brand-700);
}

.btn-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.btn:hover,
.adapt-collapse-btn:hover,
.adapt-assessment-launch-btn:hover,
.adapt-subject-nav-btn:hover,
.adapt-assessment-nav-btn:hover,
.global-mode-inline-card:hover {
  transform: translateY(-1px);
  filter: saturate(1.03);
}

.btn:active,
.btn.is-pressing,
.adapt-collapse-btn:active,
.adapt-collapse-btn.is-pressing,
.adapt-assessment-launch-btn:active,
.adapt-assessment-launch-btn.is-pressing,
.adapt-subject-nav-btn:active,
.adapt-subject-nav-btn.is-pressing,
.adapt-assessment-nav-btn:active,
.adapt-assessment-nav-btn.is-pressing,
.global-mode-inline-card:active,
.global-mode-inline-card.is-pressing {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.96);
}

.btn:focus-visible,
.adapt-collapse-btn:focus-visible,
.adapt-assessment-launch-btn:focus-visible,
.adapt-subject-nav-btn:focus-visible,
.adapt-assessment-nav-btn:focus-visible,
.global-mode-inline-link:focus-visible .global-mode-inline-card,
.app-nav-link:focus-visible,
.navbar-toggler:focus-visible {
  outline: 3px solid rgba(212, 171, 85, 0.35);
  outline-offset: 3px;
}

.btn::after,
.adapt-collapse-btn::after,
.adapt-assessment-launch-btn::after,
.adapt-subject-nav-btn::after,
.adapt-assessment-nav-btn::after,
.global-mode-inline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 68%);
  opacity: 0;
  transform: scale(0.82);
  pointer-events: none;
}

.btn.is-pressing::after,
.adapt-collapse-btn.is-pressing::after,
.adapt-assessment-launch-btn.is-pressing::after,
.adapt-subject-nav-btn.is-pressing::after,
.adapt-assessment-nav-btn.is-pressing::after,
.global-mode-inline-card.is-pressing::after {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  border-color: rgba(21, 60, 102, 0.9);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #143c68, #1c568a);
  border-color: #143c68;
}

.btn-secondary {
  background: linear-gradient(135deg, #eef3f8, #dde7f0);
  border-color: rgba(37, 81, 125, 0.14);
  color: var(--brand-800);
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger {
  background: transparent;
}

.btn-success {
  background: linear-gradient(135deg, #2f835c, #256648);
  border-color: #256648;
}

.btn-warning {
  background: linear-gradient(135deg, #d49b37, #b9791c);
  border-color: #b9791c;
  color: #ffffff;
}

.btn-info {
  background: linear-gradient(135deg, #4d88a5, #2d6f90);
  border-color: #2d6f90;
  color: #ffffff;
}

.form-control,
.form-select,
.Select-control,
.dash-input,
textarea {
  background: rgba(250, 252, 255, 0.98) !important;
  border: 1px solid rgba(15, 39, 67, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  color: var(--ink-strong) !important;
  font-size: 0.95rem !important;
  min-height: 48px;
}

textarea.form-control {
  min-height: 120px;
}

.form-control:focus,
.form-select:focus,
.Select-control.is-focused,
.is-focused:not(.is-open) > .Select-control {
  border-color: rgba(37, 81, 125, 0.42) !important;
  box-shadow: 0 0 0 4px rgba(37, 81, 125, 0.08) !important;
}

.Select-placeholder,
.Select--single > .Select-control .Select-value,
.Select-value-label,
.Select-input > input {
  color: var(--ink-base) !important;
}

.Select-menu-outer,
.VirtualizedSelectOption,
.VirtualizedSelectFocusedOption {
  background: #ffffff;
  color: var(--ink-strong);
}

.Select-menu-outer {
  max-height: 320px;
  z-index: 1200;
}

.upload-dropzone {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 252, 0.98)),
    #ffffff;
  border: 2px dashed rgba(37, 81, 125, 0.24);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  min-height: 220px;
  padding: 1.4rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.upload-dropzone:hover {
  border-color: rgba(185, 138, 50, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rc-slider-track {
  background: linear-gradient(90deg, var(--brand-700), var(--gold-400));
}

.rc-slider-handle {
  background: #ffffff;
  border: 2px solid var(--brand-700);
  box-shadow: 0 0 0 4px rgba(37, 81, 125, 0.12);
}

.rc-slider-dot-active {
  border-color: var(--brand-700);
}

.dropzone-title {
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 700;
}

.dropzone-copy {
  color: var(--ink-soft);
  margin: 0;
}

.dropzone-tag {
  background: rgba(37, 81, 125, 0.08);
  border-radius: 999px;
  color: var(--brand-800);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.8rem;
}

.nav-tabs {
  border-bottom: none;
  gap: 0.55rem;
}

.nav-tabs .nav-link {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 700;
  margin-bottom: 0;
  padding: 0.82rem 1.18rem;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
  background: linear-gradient(135deg, rgba(15, 39, 67, 0.95), rgba(37, 81, 125, 0.92));
  border-color: rgba(15, 39, 67, 0.15);
  color: #ffffff;
}

.tab-content {
  margin-top: 1.2rem;
}

table {
  color: var(--ink-base);
}

.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  background: transparent;
  border-bottom-color: rgba(15, 39, 67, 0.08);
  font-size: 0.93rem;
  padding: 0.9rem 0.8rem;
  vertical-align: middle;
}

.table thead th {
  background: rgba(240, 244, 248, 0.9);
  color: var(--ink-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.table-hover > tbody > tr:hover > * {
  background: rgba(245, 248, 252, 0.9);
}

.pagination .page-link {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 999px;
  color: var(--brand-800);
  margin: 0 0.18rem;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  border-color: transparent;
}

.alert {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.alert-info {
  background: rgba(59, 130, 166, 0.1);
  border-color: rgba(59, 130, 166, 0.16);
  color: #20536f;
}

.alert-warning {
  background: rgba(212, 171, 85, 0.12);
  border-color: rgba(212, 171, 85, 0.18);
  color: #7f5a1c;
}

.alert-light,
.alert-secondary {
  background: rgba(245, 248, 252, 0.92);
  border-color: rgba(15, 39, 67, 0.08);
  color: var(--ink-base);
}

.modal-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  border: 1px solid rgba(15, 39, 67, 0.1);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
  border-color: rgba(15, 39, 67, 0.08);
}

.modal-header {
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.95), rgba(239, 244, 248, 0.95));
}

.modal-title {
  color: var(--ink-strong);
  font-family: var(--font-display);
}

label {
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-700);
}

.table-shell .dash-table-container,
.table-shell .dash-spreadsheet-container {
  border-radius: 16px;
  overflow: hidden;
}

.chart-panel {
  overflow: hidden;
}

.chart-panel .card-body {
  padding: 1.18rem 1.18rem 1rem;
}

.chart-panel .card-header {
  padding: 1.05rem 1.18rem 0.92rem;
}

.analysis-panel,
.compare-control-card {
  overflow: hidden;
}

.analysis-selector-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 40px;
}

.analysis-selector-tip {
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.98), rgba(241, 246, 251, 0.94));
  border: 1px solid rgba(15, 39, 67, 0.08);
}

.analysis-result-tabs .tab-content {
  margin-top: 1.2rem;
}

.analysis-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.analysis-action-row,
.compare-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.selection-preview-shell,
.compare-results-host,
.analysis-inline-chart {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.compare-control-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.executive-graph .js-plotly-plot,
.js-plotly-plot {
  border-radius: 18px;
}

.executive-graph .js-plotly-plot .plot-container,
.js-plotly-plot .plot-container {
  border-radius: 18px;
  overflow: hidden;
}

.executive-graph .js-plotly-plot .barlayer .trace .points path,
.js-plotly-plot .barlayer .trace .points path {
  filter:
    drop-shadow(0 12px 16px rgba(17, 37, 59, 0.14))
    drop-shadow(6px 0 0 rgba(255, 255, 255, 0.12))
    drop-shadow(-4px 0 0 rgba(11, 30, 48, 0.08));
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.executive-graph .js-plotly-plot:hover .barlayer .trace .points path,
.js-plotly-plot:hover .barlayer .trace .points path {
  filter:
    drop-shadow(0 16px 20px rgba(17, 37, 59, 0.16))
    drop-shadow(8px 0 0 rgba(255, 255, 255, 0.16))
    drop-shadow(-5px 0 0 rgba(11, 30, 48, 0.1));
}

.js-plotly-plot .plotly .modebar {
  background: rgba(255, 255, 255, 0.76) !important;
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 39, 67, 0.08);
  padding: 2px 6px;
}

.js-plotly-plot .plotly .modebar-btn path {
  fill: var(--brand-800) !important;
}

.js-plotly-plot .plotly .modebar-group {
  border-right: 1px solid rgba(15, 39, 67, 0.08);
  padding: 0 2px;
}

.js-plotly-plot .plotly .modebar-group:last-child {
  border-right: none;
}

.compare-results-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.compare-ranking-card {
  border-top: 4px solid var(--brand-700);
}

.insight-stat-card {
  border-top: 4px solid rgba(37, 81, 125, 0.14);
}

.insight-stat-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.insight-stat-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.insight-stat-value {
  color: var(--brand-800);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.25;
}

.insight-stat-value.tone-gold {
  color: #9f6a10;
}

.insight-stat-value.tone-success {
  color: var(--success-500);
}

.insight-stat-value.tone-warning {
  color: #9b5f00;
}

.insight-stat-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.68;
  margin: 0;
}

.insight-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.insight-timeline-item {
  background: rgba(248, 250, 253, 0.94);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.insight-timeline-stage {
  color: var(--brand-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.32rem;
  text-transform: uppercase;
}

.insight-timeline-copy {
  color: var(--ink-base);
  line-height: 1.72;
}

.insight-scenario-group {
  background: rgba(248, 250, 253, 0.94);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  padding: 0.9rem 1rem 0.3rem;
}

.insight-scenario-title {
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.insight-table th,
.insight-table td {
  line-height: 1.72;
  vertical-align: top;
}

.graduation-metric-card {
  border-top: 4px solid rgba(37, 81, 125, 0.14);
}

.graduation-metric-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.graduation-metric-head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.graduation-metric-title {
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.graduation-metric-value {
  color: var(--brand-800);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
}

.graduation-metric-copy {
  color: var(--ink-base);
  font-size: 0.92rem;
  line-height: 1.72;
  margin: 0;
}

.graduation-metric-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.72;
  margin: 0;
}

.graduation-score-pill {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.44rem 0.78rem;
  white-space: nowrap;
}

.graduation-score-pill.is-good {
  background: rgba(45, 122, 85, 0.12);
  border: 1px solid rgba(45, 122, 85, 0.18);
  color: var(--success-500);
}

.graduation-score-pill.is-mid {
  background: rgba(37, 81, 125, 0.1);
  border: 1px solid rgba(37, 81, 125, 0.14);
  color: var(--brand-800);
}

.graduation-score-pill.is-warn {
  background: rgba(212, 171, 85, 0.14);
  border: 1px solid rgba(212, 171, 85, 0.2);
  color: #8c641d;
}

.graduation-score-pill.is-risk {
  background: rgba(181, 74, 68, 0.12);
  border: 1px solid rgba(181, 74, 68, 0.18);
  color: var(--danger-500);
}

.journey-card {
  border-top: 4px solid rgba(37, 81, 125, 0.14);
}

.journey-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.journey-step {
  color: var(--brand-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-copy {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.76;
  margin: 0;
}

.journey-list {
  color: var(--ink-base);
  line-height: 1.8;
  margin: 0;
  padding-left: 1.2rem;
}

.selector-guide-card,
.compare-weights-note {
  box-shadow: none;
}

.selection-preview-title {
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.selection-preview-shell {
  padding: 0.82rem 0.92rem;
}

.analysis-selector-meta .badge,
.selection-preview-shell .badge {
  font-size: 0.84rem;
  padding: 0.46rem 0.78rem;
}

.analysis-panel .card-body,
.compare-control-card .card-body,
.selector-guide-card .card-body {
  gap: 0.62rem;
}

.adapt-workbench-shell {
  overflow: visible;
}

.adapt-input-col,
.adapt-results-col {
  min-width: 0;
}

.adapt-input-accordion .accordion-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.8rem;
  overflow: visible;
}

.adapt-input-accordion .accordion-button {
  background: rgba(248, 250, 253, 0.9);
  color: var(--ink-strong);
  font-weight: 800;
}

.adapt-input-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(37, 81, 125, 0.08), rgba(212, 171, 85, 0.10));
  color: var(--brand-800);
}

.adapt-field {
  margin-bottom: 0.9rem;
}

.adapt-field .form-control,
.adapt-field .Select-control,
.adapt-field .dash-dropdown,
.adapt-field input,
.adapt-field select {
  min-height: 38px;
  width: 100%;
  font-size: 0.9rem !important;
}

/* 鐭瓧娈典紭鍖栵細闄愬埗鏈€澶у搴︼紝閬垮厤娴垂绌洪棿 */
.adapt-field input[type="number"],
.adapt-field input[type="text"].form-control {
  max-width: 100%;
}

/* 鎬у埆銆佸勾榫勭瓑鐭瓧娈?*/
#adapt-student-gender .Select-control,
#adapt-student-age .form-control {
  max-width: 140px;
}

/* 鎬诲垎銆佹帓鍚嶏紙绗簩琛岋紝鏇村锛?*/
#adapt-total-score .form-control,
#adapt-rank .form-control {
  max-width: 280px;
}

/* 绗竴琛屼笁涓瓧娈靛搴﹀崗璋?*/
#adapt-exam-name .Select-control {
  max-width: 100%;
}

#adapt-subject-first .Select-control {
  max-width: 100%;
}

#adapt-subject-reselect .Select-control {
  max-width: 100%;
}

/* 閫夌璇存槑妯法鏁翠釜鍖哄煙锛屽崟琛屾樉绀?*/
#adapt-subject-selection-hint {
  width: 100%;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 鎶樺彔闈㈡澘鎸夐挳鏍峰紡 */
.adapt-collapse-btn {
  width: 100%;
  text-align: left;
  background: rgba(248, 250, 253, 0.8);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(23, 59, 102, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.adapt-collapse-btn:hover {
  background: rgba(242, 247, 253, 0.95);
  border-color: rgba(15, 39, 67, 0.12);
}

/* 鎶樺彔鍥炬爣鏃嬭浆鍔ㄧ敾 */
.collapse-toggle-icon {
  transition: transform 0.25s ease;
}

.adapt-collapse-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.adapt-collapse-hint {
  color: rgba(23, 59, 102, 0.6);
  font-size: 0.8rem;
}

.adapt-input-accordion .accordion-body,
.adapt-field,
.adapt-field .dash-dropdown {
  overflow: visible;
}

.adapt-field-meta {
  margin-top: 0.35rem;
  color: rgba(23, 59, 102, 0.72);
  font-size: 0.8rem;
  line-height: 1.35;
}

.adapt-action-direction-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.adapt-action-direction-help {
  color: var(--ink-soft);
  display: grid;
  gap: 0.18rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

/* 鐜板湪棣栭€?鍐嶉€夌鐩槸鐙珛鍒楋紝涓嶉渶瑕乬rid甯冨眬浜?*/
.adapt-subject-selection-grid {
  display: none;
}

.adapt-subfield {
  min-width: 0;
}

.adapt-subject-first-col,
.adapt-subject-reselect-col {
  min-height: 68px;
}

/* 鎵€鏈夊瓧娈垫爣绛剧粺涓€瀛楀彿鏍峰紡 */
.adapt-field label,
.adapt-field .form-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(23, 59, 102, 0.86);
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

/* 绉婚櫎鍘熼閫?鍐嶉€夌鐩崟鐙殑label鏍峰紡 */
.adapt-subfield-label {
  display: none;
}

@media (max-width: 900px) {
  .adapt-subject-selection-grid {
    grid-template-columns: 1fr;
  }
}

.adapt-assessment-grid {
  background: rgba(248, 250, 253, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  margin: 0 0 1rem;
  padding: 0.95rem;
}

.adapt-assessment-nav {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  padding: 1rem;
}

.adapt-assessment-result-slot {
  margin-top: 0.72rem;
}

.adapt-assessment-composite-wrap {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  margin-bottom: 0.9rem;
}

.adapt-assessment-composite-wrap .adapt-assessment-result-slot {
  margin-top: 0;
}

.adapt-assessment-composite-title {
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
}

.adapt-assessment-sidehead {
  margin-bottom: 0.35rem;
}

.adapt-assessment-launch-btn {
  background: linear-gradient(135deg, rgba(37, 81, 125, 0.96), rgba(74, 112, 170, 0.94));
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  min-height: 44px;
  padding: 0.7rem 1rem;
}

.adapt-subject-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.adapt-subject-nav-btn {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 39, 67, 0.10);
  border-radius: 14px;
  color: var(--ink-strong);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-height: 74px;
  padding: 0.78rem 0.9rem;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.adapt-subject-nav-btn strong {
  font-size: 0.96rem;
  font-weight: 800;
}

.adapt-subject-nav-btn span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.adapt-subject-nav-btn.is-active,
.adapt-subject-nav-btn:hover {
  background: linear-gradient(135deg, rgba(37, 81, 125, 0.08), rgba(212, 171, 85, 0.12));
  border-color: rgba(37, 81, 125, 0.28);
  box-shadow: var(--shadow-sm);
}

.adapt-subject-workspace {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  min-height: 240px;
  padding: 1rem;
}

.adapt-exam-records-summary {
  margin: 0.25rem 0 0.85rem;
}

.adapt-exam-record-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.adapt-exam-record-chip {
  background: rgba(37, 81, 125, 0.08);
  border: 1px solid rgba(37, 81, 125, 0.14);
  border-radius: 999px;
  color: var(--ink-base);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.24rem 0.58rem;
}

.adapt-exam-record-chip.muted {
  background: rgba(15, 39, 67, 0.05);
  border-color: rgba(15, 39, 67, 0.08);
  color: var(--ink-soft);
}

.adapt-subject-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.adapt-subject-radar {
  background: rgba(248, 250, 253, 0.68);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 14px;
  padding: 0.35rem;
}

.adapt-subject-mini-chart {
  background: rgba(248, 250, 253, 0.68);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 14px;
  min-height: 230px;
  padding: 0.25rem;
}

.adapt-subject-gap-text {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.adapt-subject-gap-copy {
  display: grid;
  gap: 0.55rem;
}

.adapt-subject-gap-note {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 39, 67, 0.08);
  color: #48627f;
  line-height: 1.7;
}

.adapt-subject-table {
  background: rgba(248, 250, 253, 0.68);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.adapt-subject-table-row {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.6fr;
  padding: 0.7rem 0.85rem;
}

.adapt-subject-table-head {
  background: rgba(15, 39, 67, 0.04);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.adapt-subject-summary-card,
.adapt-subject-match-card,
.adapt-subject-alert-item,
.adapt-subject-plan-preview {
  background: rgba(248, 250, 253, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}

.adapt-subject-major-match,
.adapt-subject-gap-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adapt-subject-match-title {
  color: var(--ink-strong);
  display: block;
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.adapt-subject-match-note,
.adapt-subject-match-copy,
.adapt-subject-preview-copy {
  color: var(--ink-base);
  display: block;
  font-size: 0.88rem;
  line-height: 1.7;
}

.adapt-subject-preview-title {
  color: var(--ink-strong);
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.adapt-assessment-nav-btn {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 39, 67, 0.10);
  border-radius: 14px;
  color: var(--ink-strong);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-height: 76px;
  padding: 0.78rem 0.9rem;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.adapt-assessment-nav-btn strong {
  font-size: 0.98rem;
  font-weight: 850;
}

.adapt-assessment-nav-btn span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.adapt-assessment-nav-btn:hover,
.adapt-assessment-nav-btn.is-active {
  border-color: rgba(37, 81, 125, 0.34);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.adapt-assessment-nav-btn.is-active {
  background: linear-gradient(135deg, rgba(37, 81, 125, 0.10), rgba(212, 171, 85, 0.14));
}

.adapt-assessment-start-wrap {
  margin-bottom: 0.9rem;
}

.adapt-assessment-workspace {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  min-height: 194px;
  padding: 1rem;
}

#adapt-assessment-workspace-col {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.adapt-assessment-title {
  color: var(--ink-strong);
  font-size: 1.04rem;
  font-weight: 850;
  margin: 0.35rem 0 0.32rem;
}

.adapt-assessment-insight-stack {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.95rem;
  padding: 1rem;
}

.adapt-assessment-result-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.78rem;
}

.adapt-assessment-result-col {
  display: flex;
  flex-direction: column;
}

.adapt-assessment-result-title {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.42rem;
}

.adapt-career-preview-title {
  color: var(--brand-700);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.42rem;
}

.adapt-career-preview-card {
  background: rgba(214, 233, 255, 0.96);
  border: 1px solid rgba(41, 98, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.adapt-composite-tag {
  border-radius: 999px;
  display: inline-flex;
  padding: 0.18rem 0.62rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
}

.adapt-composite-tag-neutral {
  background: rgba(15, 39, 67, 0.08);
  color: var(--ink-soft);
}

.adapt-composite-tag-0 {
  background: rgba(200, 59, 59, 0.14);
  color: #b42323;
}

.adapt-composite-tag-1 {
  background: rgba(209, 120, 52, 0.16);
  color: #b85f1f;
}

.adapt-composite-tag-2 {
  background: rgba(210, 161, 52, 0.18);
  color: #9a7208;
}

.adapt-composite-tag-3 {
  background: rgba(74, 150, 112, 0.16);
  color: #2f7d54;
}

.adapt-composite-tag-4 {
  background: rgba(51, 143, 132, 0.16);
  color: #22756b;
}

.adapt-composite-tag-5 {
  background: rgba(70, 116, 214, 0.15);
  color: #315fc0;
}

.adapt-composite-tag-6 {
  background: rgba(125, 92, 214, 0.16);
  color: #6743c1;
}

.adapt-composite-tag-7 {
  background: rgba(180, 78, 160, 0.16);
  color: #9b3f89;
}

.adapt-assessment-result-card.is-active {
  background: linear-gradient(135deg, rgba(37, 81, 125, 0.08), rgba(212, 171, 85, 0.12));
  border-color: rgba(37, 81, 125, 0.22);
  box-shadow: var(--shadow-sm);
}

.adapt-assessment-panel + .adapt-assessment-panel {
  margin-top: 0.15rem;
}

.adapt-panel-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.adapt-panel-title {
  color: var(--ink-strong);
  font-size: 1.08rem;
  font-weight: 850;
  margin: 0 0 0.25rem;
}

.adapt-panel-copy {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.85rem;
}

.adapt-tone-holland.adapt-assessment-panel,
.adapt-tone-holland.adapt-assessment-result-card.is-active {
  border-color: rgba(209, 120, 52, 0.24);
  box-shadow: 0 8px 18px rgba(209, 120, 52, 0.08);
}

.adapt-tone-holland .adapt-panel-eyebrow {
  color: #c9722b;
}

.adapt-tone-mbti.adapt-assessment-panel,
.adapt-tone-mbti.adapt-assessment-result-card.is-active {
  border-color: rgba(70, 116, 214, 0.24);
  box-shadow: 0 8px 18px rgba(70, 116, 214, 0.08);
}

.adapt-tone-mbti .adapt-panel-eyebrow {
  color: #466fd6;
}

.adapt-tone-gallup.adapt-assessment-panel,
.adapt-tone-gallup.adapt-assessment-result-card.is-active {
  border-color: rgba(74, 150, 112, 0.24);
  box-shadow: 0 8px 18px rgba(74, 150, 112, 0.08);
}

.adapt-tone-gallup .adapt-panel-eyebrow {
  color: #4a9670;
}

.adapt-tone-mixed.adapt-assessment-panel {
  border-color: rgba(125, 92, 214, 0.22);
  box-shadow: 0 8px 18px rgba(125, 92, 214, 0.08);
}

.adapt-tone-mixed .adapt-panel-eyebrow {
  color: #7d5cd6;
}

.adapt-scale-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.adapt-scale-guide {
  background: rgba(248, 250, 253, 0.78);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 14px;
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.85rem;
}

.adapt-scale-guide-title {
  color: var(--ink-strong);
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.adapt-scale-guide-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.adapt-scale-guide-chip {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
}

.adapt-scale-question {
  background: rgba(248, 250, 253, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

.adapt-scale-question.adapt-tone-holland {
  background: linear-gradient(135deg, rgba(255, 237, 219, 0.96), rgba(255, 247, 240, 0.98));
  border-color: rgba(209, 120, 52, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.adapt-scale-question.adapt-tone-mbti {
  background: linear-gradient(135deg, rgba(228, 238, 255, 0.97), rgba(242, 246, 255, 0.99));
  border-color: rgba(70, 116, 214, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.adapt-scale-question.adapt-tone-gallup {
  background: linear-gradient(135deg, rgba(227, 245, 234, 0.97), rgba(241, 250, 245, 0.99));
  border-color: rgba(74, 150, 112, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.adapt-scale-prompt {
  color: var(--ink-strong);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 0.65rem;
}

.adapt-scale-options,
.adapt-binary-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
}

.adapt-scale-option,
.adapt-binary-option {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0.32rem 0.72rem;
}

.adapt-binary-option {
  border-radius: 12px;
  line-height: 1.5;
  padding: 0.55rem 0.75rem;
}

.adapt-assessment-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.adapt-round-status-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.adapt-round-chip {
  background: rgba(15, 39, 67, 0.06);
  border-radius: 999px;
  color: var(--ink-strong);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.7rem;
}

.adapt-round-chip-muted {
  color: var(--ink-soft);
}

.adapt-round-summary {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.adapt-assessment-history {
  margin-bottom: 0.9rem;
}

.adapt-history-list {
  display: grid;
  gap: 0.6rem;
}

.adapt-history-item,
.adapt-history-empty {
  background: rgba(248, 250, 253, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}

.adapt-history-round {
  color: var(--ink-soft);
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.18rem;
}

.adapt-history-value {
  color: var(--ink-strong);
  font-size: 0.96rem;
}

.adapt-subsection {
  background: rgba(248, 250, 253, 0.68);
  border: 1px solid rgba(15, 39, 67, 0.06);
  border-radius: 16px;
  margin: 0.25rem 0 0.95rem;
  padding: 0.95rem 0.95rem 0.05rem;
}

.adapt-action-row,
.adapt-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.adapt-action-row {
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.9rem;
  position: sticky;
  z-index: 4;
}

.adapt-action-direction-field {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: 0.32rem;
  max-width: 320px;
  min-width: 220px;
}

.adapt-action-direction-field label {
  color: var(--brand-700);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.adapt-action-direction-help {
  color: #5f6f86;
  font-size: 0.82rem;
  line-height: 1.45;
}

.adapt-major-direction-field {
  gap: 0.45rem;
}

.adapt-target-major-picker {
  border: 1px solid rgba(34, 58, 94, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.adapt-target-major-input-group {
  position: relative;
  border-bottom: 1px solid rgba(34, 58, 94, 0.08);
}

.adapt-target-major-input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding-right: 3rem;
}

.adapt-target-major-input:focus {
  box-shadow: none;
}

.adapt-target-major-suggest-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(34, 58, 94, 0.08);
  border-radius: 0;
  color: #24476f;
  background: #f6f9fc;
  min-width: 46px;
  padding: 0 0.8rem;
}

.adapt-target-major-suggest-toggle:hover,
.adapt-target-major-suggest-toggle:focus,
.adapt-target-major-suggest-toggle:active {
  background: #eaf1f8;
  border-left: 1px solid rgba(34, 58, 94, 0.08);
  box-shadow: none;
  color: #24476f;
}

.adapt-target-major-suggest-toggle-icon {
  line-height: 1;
  font-size: 1.02rem;
  font-weight: 800;
}

.adapt-target-major-suggest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.7rem 0.8rem 0.15rem;
  border-top: 1px solid rgba(34, 58, 94, 0.08);
}

.adapt-target-major-suggest-option {
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 0.28rem 0.72rem;
}

.adapt-target-major-suggest-empty {
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0 0.8rem 0.8rem;
}

.adapt-target-major-alias-hint {
  color: var(--brand-700);
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: -0.1rem;
}

.adapt-action-direction-select {
  min-width: 0;
}

.adapt-action-direction-select .Select-control {
  border-radius: 10px;
  min-height: 36px;
}

.adapt-action-direction-select .Select-placeholder,
.adapt-action-direction-select .Select--single > .Select-control .Select-value,
.adapt-action-direction-select .Select-input {
  height: 36px;
  line-height: 34px;
}

.adapt-action-buttons {
  align-items: center;
  display: flex;
  flex: 1 1 420px;
  flex-wrap: wrap;
  column-gap: 0.9rem;
  row-gap: 0.85rem;
  justify-content: flex-start;
}

.adapt-generation-status {
  color: #5f6f86;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 0.65rem;
  min-height: 1.6rem;
  padding: 0 0.2rem;
}

.adapt-generation-prehint {
  margin-top: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(49, 95, 192, 0.08);
  border: 1px solid rgba(49, 95, 192, 0.14);
  color: #35506f;
  font-size: 0.9rem;
  line-height: 1.7;
}

.adapt-generation-status.is-active {
  background: rgba(23, 59, 102, 0.08);
  border: 1px solid rgba(23, 59, 102, 0.12);
  border-radius: 12px;
  color: #173b66;
  font-weight: 600;
  padding: 0.75rem 0.9rem;
}

.adapt-history-usage-hint {
  color: #6d7d92;
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 1.4rem;
  padding: 0 0.2rem;
}

.adapt-history-usage-hint.is-active {
  color: #4f6179;
}

.adapt-profile-summary,
.adapt-results-host {
  min-width: 0;
}

.adapt-summary-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 106px;
  padding: 1rem;
}

.adapt-summary-label,
.adapt-metric-label,
.adapt-rank-badge {
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.adapt-summary-value {
  color: var(--ink-strong);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}

.adapt-summary-note,
.adapt-results-copy,
.adapt-result-meta,
.adapt-metric-source {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.adapt-results-host {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  padding: 1rem;
}

.adapt-assessment-page-workspace {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 46rem;
}

.adapt-guide-section {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.adapt-guide-directory {
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.adapt-guide-directory-summary {
  color: var(--ink-strong, #142235);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  list-style: none;
}

.adapt-guide-directory-summary::-webkit-details-marker {
  display: none;
}

.adapt-guide-directory-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.adapt-guide-directory-link {
  color: var(--brand-700, #25517d);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.adapt-guide-directory-link:hover {
  color: var(--brand-500, #3b82a6);
  text-decoration: underline;
}

.adapt-guide-fold-summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

.adapt-guide-fold-summary::-webkit-details-marker {
  display: none;
}

.adapt-guide-fold-body {
  margin-top: 0.9rem;
}

.adapt-guide-section + .adapt-guide-section {
  margin-top: 1rem;
}

.adapt-guide-section-title {
  color: var(--ink-strong, #142235);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.adapt-guide-kicker,
.adapt-guide-lane-title {
  color: var(--brand-700, #25517d);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.adapt-guide-graph-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adapt-guide-graph-lane {
  background: rgba(247, 250, 252, 0.9);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 12px;
  padding: 0.9rem;
}

.adapt-guide-flow-lane {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.adapt-guide-flow-map {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.adapt-guide-flow-node {
  background: rgba(37, 81, 125, 0.08);
  border: 1px solid rgba(37, 81, 125, 0.16);
  border-radius: 999px;
  color: var(--brand-700, #25517d);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.45rem 0.8rem;
}

.adapt-guide-flow-node-accent {
  background: rgba(185, 138, 50, 0.14);
  border-color: rgba(185, 138, 50, 0.22);
  color: #8a6520;
}

.adapt-guide-flow-arrow {
  color: var(--ink-soft, #698098);
  font-size: 1rem;
  font-weight: 700;
}

.adapt-guide-flow-down {
  color: var(--ink-soft, #698098);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.adapt-guide-table th {
  background: rgba(37, 81, 125, 0.06);
  color: var(--ink-strong, #142235);
  font-weight: 800;
  white-space: nowrap;
}

.adapt-guide-table td {
  vertical-align: top;
}

.adapt-recommendation-workspace-shell {
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
}

.adapt-results-col {
  position: relative;
}

.adapt-results-col.adapt-business-area-flash {
  animation: adapt-business-area-flash 0.42s ease;
}

@keyframes adapt-business-area-flash {
  0% {
    filter: brightness(1);
  }
  20% {
    filter: brightness(1.04);
  }
  45% {
    filter: brightness(1.06);
  }
  100% {
    filter: brightness(1);
  }
}

.adapt-ai-wait-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  inset: auto;
  transform: translate(-50%, -50%);
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: min(360px, calc(100vw - 2rem));
  min-height: 320px;
  background: rgba(250, 252, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 22px 54px rgba(23, 59, 102, 0.2);
  border: 1px solid rgba(23, 59, 102, 0.08);
  border-radius: 20px;
  text-align: center;
  padding: 2rem 1.5rem;
  cursor: grab;
  user-select: none;
}

.adapt-ai-wait-overlay-compact {
  width: min(262px, calc(100vw - 2rem));
  min-height: 220px;
  gap: 0.38rem;
  padding: 0.82rem 0.72rem;
}

.adapt-ai-wait-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.adapt-ai-wait-ring {
  --progress: 0deg;
  width: 188px;
  min-height: 168px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 252, 0.94));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  box-shadow: 0 16px 34px rgba(23, 59, 102, 0.14);
  animation: adapt-ai-wait-pulse 1.6s ease-in-out infinite;
  padding: 1rem 1rem 1.1rem;
  overflow: hidden;
}

.adapt-ai-wait-ring-compact {
  width: 150px;
  min-height: 122px;
  border-radius: 16px;
  gap: 0.35rem;
  padding: 0.66rem 0.66rem 0.74rem;
}

.adapt-ai-wait-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(93, 143, 174, 0.08), rgba(212, 171, 85, 0.12));
  pointer-events: none;
}

.adapt-ai-wait-stairs {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.adapt-ai-wait-ring-compact .adapt-ai-wait-stairs {
  height: 48px;
  gap: 4px;
}

.adapt-ai-wait-step {
  display: block;
  width: 24px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #8bb0c9 0%, #4f84a3 100%);
  box-shadow: 0 10px 18px rgba(23, 59, 102, 0.12);
  opacity: 0.38;
  transform: translateY(8px) scaleY(0.94);
}

.adapt-ai-wait-ring-compact .adapt-ai-wait-step {
  width: 16px;
}

.adapt-ai-wait-step-1 {
  height: 22px;
  animation: adapt-ai-step-rise 1.6s ease-in-out infinite 0s;
}

.adapt-ai-wait-step-2 {
  height: 32px;
  animation: adapt-ai-step-rise 1.6s ease-in-out infinite 0.16s;
}

.adapt-ai-wait-step-3 {
  height: 44px;
  animation: adapt-ai-step-rise 1.6s ease-in-out infinite 0.32s;
}

.adapt-ai-wait-step-4 {
  height: 58px;
  animation: adapt-ai-step-rise 1.6s ease-in-out infinite 0.48s;
}

.adapt-ai-wait-step-5 {
  height: 72px;
  background: linear-gradient(180deg, #d9b15a 0%, #c3923c 100%);
  animation: adapt-ai-step-rise 1.6s ease-in-out infinite 0.64s;
}

.adapt-ai-wait-ring-compact .adapt-ai-wait-step-1 {
  height: 14px;
}

.adapt-ai-wait-ring-compact .adapt-ai-wait-step-2 {
  height: 19px;
}

.adapt-ai-wait-ring-compact .adapt-ai-wait-step-3 {
  height: 26px;
}

.adapt-ai-wait-ring-compact .adapt-ai-wait-step-4 {
  height: 34px;
}

.adapt-ai-wait-ring-compact .adapt-ai-wait-step-5 {
  height: 44px;
}

.adapt-ai-wait-blessing {
  position: relative;
  z-index: 1;
  color: #2f648f;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.adapt-ai-wait-title {
  color: #c44949;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 0.28rem;
  white-space: nowrap;
}

.adapt-ai-wait-stopwatch {
  position: relative;
  z-index: 1;
  color: #17324d;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-family: "Consolas", "Menlo", "Microsoft YaHei UI", sans-serif;
  white-space: nowrap;
}

.adapt-ai-wait-elapsed {
  color: #5f7286;
  font-size: 1rem;
}

@keyframes adapt-ai-wait-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 59, 102, 0.12), 0 14px 28px rgba(23, 59, 102, 0.12);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(23, 59, 102, 0.02), 0 18px 34px rgba(23, 59, 102, 0.16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 59, 102, 0.0), 0 14px 28px rgba(23, 59, 102, 0.12);
  }
}

@keyframes adapt-ai-step-rise {
  0%,
  100% {
    opacity: 0.38;
    transform: translateY(8px) scaleY(0.94);
    filter: saturate(0.92);
  }
  45% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: saturate(1.08);
  }
}

.adapt-workspace-loading {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.adapt-workspace-loading > div,
.adapt-workspace-loading .dash-spinner-container {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.adapt-workspace-loading .dash-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1070;
}

.adapt-profile-summary {
  flex: 0 0 auto;
}

.adapt-download-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  min-height: 42px;
}

.adapt-download-hint {
  color: #6a7f93;
  font-size: 0.84rem;
  line-height: 1.35;
}

.adapt-results-header {
  border-bottom: 1px solid rgba(15, 39, 67, 0.08);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.adapt-source-head {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-start;
  margin-bottom: 0.1rem;
}

.adapt-source-badge {
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.7rem;
}

.adapt-source-badge.is-local {
  background: rgba(37, 81, 125, 0.12);
  color: #25517d;
}

.adapt-source-badge.is-ai {
  background: rgba(212, 171, 85, 0.18);
  color: #9a6a00;
}

.adapt-results-title {
  color: var(--ink-strong);
  font-size: 1.45rem;
  margin: 0.2rem 0 0.35rem;
}

.adapt-results-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1rem;
}

.adapt-results-header {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem 0.95rem;
}

.adapt-results-shell.is-ai .adapt-results-header {
  background: linear-gradient(180deg, rgba(212, 171, 85, 0.08), rgba(255, 255, 255, 0.92));
}

.adapt-results-heading-group {
  display: grid;
  gap: 0.1rem;
}

.adapt-results-count {
  align-items: baseline;
  display: flex;
  gap: 0.45rem;
  margin: 0;
}

.adapt-results-count-label {
  color: #5f6f86;
  font-size: 0.9rem;
  font-weight: 600;
}

.adapt-results-count-value {
  color: #173b66;
  font-size: 1rem;
  font-weight: 800;
}

.adapt-results-toolbar {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.adapt-results-meta {
  display: grid;
  gap: 0.55rem;
}

.adapt-excluded-hint {
  align-items: flex-start;
  background: rgba(212, 171, 85, 0.1);
  border: 1px solid rgba(212, 171, 85, 0.22);
  border-radius: 12px;
  color: #6f5522;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.65rem;
  padding: 0.6rem 0.8rem;
}

.adapt-excluded-hint.is-history {
  background: rgba(23, 59, 102, 0.08);
  border-color: rgba(23, 59, 102, 0.16);
  color: #315377;
}

.adapt-excluded-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.adapt-excluded-value {
  font-size: 0.88rem;
  line-height: 1.5;
}

.adapt-history-panel {
  background: linear-gradient(180deg, rgba(219, 233, 248, 0.82) 0%, rgba(207, 224, 242, 0.92) 100%);
  border: 1px solid rgba(39, 88, 140, 0.22);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(26, 63, 107, 0.08);
  display: grid;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
}

.adapt-history-panel-head {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
}

.adapt-history-panel-title {
  color: #24476d;
  font-size: 1rem;
  font-weight: 700;
}

.adapt-history-panel-count {
  color: #406487;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.adapt-history-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.adapt-history-chip {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 59, 102, 0.12);
  border-radius: 999px;
  color: #24476d;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.32rem 0.7rem;
}

.adapt-history-chip-button {
  appearance: none;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 59, 102, 0.12);
  border-radius: 999px;
  color: #24476d;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 2rem;
  padding: 0.32rem 0.7rem;
  transform: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.adapt-history-chip-button:hover {
  background: rgba(23, 59, 102, 0.08);
  border-color: rgba(23, 59, 102, 0.18);
}

.adapt-history-chip-button:active {
  transform: none;
}

.adapt-history-chip-button:focus-visible {
  outline: 2px solid rgba(185, 122, 24, 0.28);
  outline-offset: 2px;
}

.adapt-school-major-selection-summary {
  margin-top: 0.7rem;
}

.adapt-school-major-selected-box {
  background: var(--surface, rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line-soft, rgba(16, 42, 67, 0.08));
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 0.8rem;
}

.adapt-school-major-selected-title {
  color: var(--brand-800);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.adapt-school-major-selected-list {
  display: grid;
  gap: 0.45rem;
}

.adapt-school-major-selected-item {
  display: grid;
  gap: 0.18rem;
}

.adapt-school-major-selected-major {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.adapt-school-major-selected-choice {
  color: var(--ink-strong);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.adapt-school-major-selected-choices {
  display: grid;
  gap: 0.18rem;
}

.adapt-school-major-modal .modal-content,
.adapt-school-major-modal-content {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink-base);
  overflow: hidden;
}

.adapt-school-major-modal .modal-header {
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  border-color: var(--hero-border);
  color: var(--hero-text);
}

.adapt-school-major-modal .modal-title {
  color: var(--hero-title-color);
  font-family: var(--font-display);
}

.adapt-school-major-modal .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.82;
}

.adapt-school-major-modal .modal-body {
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.adapt-school-major-modal .modal-footer {
  background: var(--surface);
  border-color: var(--line-soft);
}

.adapt-school-major-modal .modal-footer .btn {
  border-color: var(--line-strong);
  color: var(--ink-base);
}

.adapt-school-major-modal .modal-footer .btn:hover {
  background: var(--surface-muted);
  border-color: var(--brand-500);
  color: var(--brand-800);
}

.adapt-school-major-modal-summary {
  margin-bottom: 0.85rem;
}

.adapt-school-major-query-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.adapt-school-major-query-meta span {
  background: var(--surface);
  background: color-mix(in srgb, var(--brand-500) 8%, var(--surface));
  border: 1px solid var(--line-soft);
  border-color: color-mix(in srgb, var(--brand-500) 18%, var(--line-soft));
  border-radius: 999px;
  color: var(--brand-800);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
}

.adapt-school-major-modal-results {
  display: grid;
  gap: 0.65rem;
}

.adapt-school-major-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 0.72rem 0.8rem;
  text-align: left;
  width: 100%;
}

.adapt-school-major-row:hover {
  background: var(--surface-muted);
  background: color-mix(in srgb, var(--brand-500) 7%, var(--surface));
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.adapt-school-major-row:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.adapt-school-major-row.is-selected {
  background: var(--surface);
  background: color-mix(in srgb, var(--gold-400) 20%, var(--surface));
  border-color: var(--gold-500);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-500) 35%, transparent);
}

.adapt-school-major-row.is-selected:hover {
  background: color-mix(in srgb, var(--gold-400) 28%, var(--surface));
}

.adapt-school-major-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.adapt-school-major-title {
  color: var(--ink-strong);
  font-size: 0.96rem;
}

.adapt-school-major-meta {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.adapt-school-major-action {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.7rem;
}

.adapt-school-major-action.is-selected {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--brand-900);
}

.adapt-school-major-pagination {
  justify-content: center;
  margin: 0.9rem 0 0;
}

.adapt-school-major-pagination .page-link {
  background: var(--surface);
  border-color: var(--line-soft);
  color: var(--brand-800);
}

.adapt-school-major-pagination .page-link:hover {
  background: var(--surface-muted);
  border-color: var(--brand-500);
  color: var(--brand-900);
}

.adapt-school-major-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  border-color: transparent;
  color: #fff;
}

.adapt-results-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1rem;
  max-height: min(62vh, 36rem);
  overflow-y: auto;
  overflow-anchor: none;
  padding-right: 0.35rem;
  scroll-behavior: auto;
}

.adapt-results-list::-webkit-scrollbar {
  width: 10px;
}

.adapt-results-list::-webkit-scrollbar-thumb {
  background: rgba(23, 59, 102, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
}

.adapt-results-list::-webkit-scrollbar-track {
  background: rgba(23, 59, 102, 0.05);
  border-radius: 999px;
}

.adapt-results-shell.is-ai .adapt-results-list {
  height: min(58vh, 31.5rem);
  max-height: min(58vh, 31.5rem);
}

.adapt-ai-pending-panel {
  background: linear-gradient(135deg, rgba(212, 171, 85, 0.14), rgba(255, 247, 230, 0.92));
  border: 1px solid rgba(212, 171, 85, 0.45);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(212, 171, 85, 0.12);
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
}

.adapt-ai-pending-head {
  align-items: center;
  display: flex;
  gap: 0.85rem;
}

.adapt-ai-pending-spinner {
  flex: 0 0 auto;
  height: 1.45rem;
  width: 1.45rem;
}

.adapt-ai-pending-copy {
  display: grid;
  gap: 0.18rem;
}

.adapt-ai-pending-title {
  color: #8a5a0b;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.adapt-ai-pending-title-text {
  display: inline;
}

.adapt-ai-pending-elapsed {
  display: inline-block;
  min-width: 3.4rem;
  text-align: left;
}

.adapt-ai-pending-text,
.adapt-ai-pending-subtext {
  color: #775d33;
  font-size: 0.88rem;
  line-height: 1.55;
}

.adapt-overview-shell {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.adapt-overview-shell-compact {
  display: grid;
  gap: 0;
  margin-top: -0.7rem;
}

.adapt-overview-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 0.9fr);
}

.adapt-overview-history {
  margin-top: 1rem;
}

.adapt-overview-bars {
  background: rgba(248, 250, 253, 0.82);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.adapt-scorebar-item {
  display: grid;
  gap: 0.42rem;
}

.adapt-scorebar-head {
  align-items: baseline;
  display: flex;
  gap: 0.45rem;
}

.adapt-scorebar-label {
  color: var(--ink-strong);
  font-size: 1.05rem;
  font-weight: 700;
}

.adapt-scorebar-weight,
.adapt-scorebar-points,
.adapt-overview-total-note,
.adapt-fit-stars {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.adapt-scorebar-track {
  background: rgba(15, 39, 67, 0.08);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.adapt-scorebar-fill {
  background: linear-gradient(90deg, rgba(37, 81, 125, 0.92), rgba(212, 171, 85, 0.92));
  border-radius: 999px;
  height: 100%;
}

.adapt-overview-total {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(37, 81, 125, 0.1), rgba(212, 171, 85, 0.14));
  border: 1px solid rgba(37, 81, 125, 0.12);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  justify-content: center;
  min-height: 100%;
  padding: 1rem 1.05rem;
}

.adapt-overview-total-label {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.adapt-overview-total-score {
  color: var(--brand-800);
  font-size: 2rem;
  line-height: 1;
}

.adapt-overview-total-badge {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(37, 81, 125, 0.12);
  border-radius: 999px;
  color: var(--brand-700);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
}

.adapt-result-card {
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-left: 4px solid var(--brand-700);
  border-radius: 16px;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
  overflow: hidden;
  transform: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.adapt-result-card.is-selected {
  border-color: rgba(185, 122, 24, 0.28);
  border-left-color: #b97a18;
  box-shadow: var(--shadow-sm), inset 0 0 0 2px rgba(185, 122, 24, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(255, 248, 236, 0.98));
  transform: none;
}

.adapt-result-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.adapt-result-title {
  color: var(--ink-strong);
  font-size: 1.25rem;
  margin: 0.2rem 0 0.18rem;
}

.adapt-fit-box {
  align-items: center;
  background: linear-gradient(135deg, rgba(37, 81, 125, 0.10), rgba(212, 171, 85, 0.13));
  border: 1px solid rgba(37, 81, 125, 0.10);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-width: 86px;
  padding: 0.75rem 0.85rem;
}

.adapt-fit-score {
  color: var(--brand-800);
  font-size: 1.55rem;
  line-height: 1;
}

.adapt-fit-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.adapt-fit-stars {
  letter-spacing: 0.04em;
  margin-top: 0.16rem;
}

.adapt-metric-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.95rem 0;
}

.adapt-metric-pill {
  background: rgba(248, 250, 253, 0.86);
  border: 1px solid rgba(15, 39, 67, 0.07);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 112px;
  padding: 0.75rem;
}

.adapt-metric-value {
  color: var(--brand-800);
  font-size: 1.25rem;
  line-height: 1.1;
}

.adapt-explain-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

.adapt-explain-block {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 39, 67, 0.07);
  border-radius: 14px;
  padding: 0.85rem;
}

.adapt-explain-block h4 {
  color: var(--ink-strong);
  font-size: 1.05rem;
  margin-bottom: 0.42rem;
}

.adapt-explain-block p {
  color: var(--ink-base);
  font-size: 0.9rem;
  line-height: 1.72;
  margin: 0;
}

.adapt-gap-section {
  background: rgba(248, 250, 253, 0.84);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  margin-top: 1rem;
  padding: 1rem;
}

.adapt-gap-section-title {
  color: var(--ink-strong);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.adapt-gap-summary {
  color: var(--ink-base);
  font-size: 0.92rem;
  line-height: 1.72;
  margin-bottom: 0.72rem;
}

.adapt-gap-list {
  display: grid;
  gap: 0.72rem;
}

.adapt-gap-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 39, 67, 0.07);
  border-radius: 14px;
  display: grid;
  gap: 0.2rem;
  padding: 0.78rem 0.85rem;
}

.adapt-gap-item strong {
  color: var(--ink-strong);
  font-size: 0.92rem;
}

.adapt-gap-item span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

@media (max-width: 1199.98px) {
  .adapt-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adapt-explain-grid {
    grid-template-columns: 1fr;
  }

  .adapt-overview-panel {
    grid-template-columns: 1fr;
  }

  .adapt-results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .adapt-result-head {
    flex-direction: column;
  }

  .adapt-fit-box {
    align-items: flex-start;
    width: 100%;
  }

  .adapt-metric-grid {
    grid-template-columns: 1fr;
  }

  .adapt-action-row {
    position: static;
  }

  .adapt-action-row {
    align-items: stretch;
  }

  .adapt-action-direction-field {
    max-width: none;
  }

  .adapt-action-buttons {
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) {
  .page-hero.page-hero-dashboard,
  .page-hero.home-hero-mini {
    grid-template-columns: minmax(0, 1.5fr) minmax(420px, 1.02fr);
  }

  .page-hero.page-hero-dashboard .page-hero-metrics {
    gap: 0.34rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-hero.home-hero-mini .page-hero-metrics {
    gap: 0.34rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.list-group-item {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(15, 39, 67, 0.08);
  color: var(--ink-base);
  display: flex;
  gap: 0.5rem;
  line-height: 1.74;
}

.list-group-item strong {
  color: var(--ink-strong);
  min-width: 7.2rem;
}

pre {
  background: rgba(244, 247, 251, 0.96);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: var(--radius-md);
  color: var(--ink-base);
  font-family: "Consolas", "SFMono-Regular", monospace;
  padding: 1rem;
}

.app-footer {
  margin-top: 2.5rem;
  padding: 0 0 2rem;
}

.app-footer-container {
  background: linear-gradient(135deg, var(--footer-start), var(--footer-end));
  border: 1px solid var(--footer-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: #ecf2f8;
  padding: 1.75rem 1.6rem;
}

.footer-title {
  color: var(--footer-title-color);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.4rem 0 0.7rem;
}

.footer-copy,
.footer-meta,
.footer-disclaimer {
  color: var(--footer-copy-color);
  line-height: 1.75;
}

.footer-ai-disclaimer {
  color: var(--footer-copy-color);
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.75;
  margin-top: 0.25rem;
  line-height: 1.6;
}

.footer-section-title {
  color: var(--footer-section-color);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-side-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.4rem;
  justify-content: center;
}

.footer-meta-block {
  align-items: center;
  display: flex;
  flex: 0 0 180px;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
  text-align: center;
}

.footer-meta-block .footer-section-title {
  margin-bottom: 0.55rem;
}

.footer-meta-block .footer-ai-disclaimer {
  margin-bottom: 0;
  margin-top: 0;
}

.footer-theme-switcher {
  flex: 0 1 320px;
  margin-left: 0;
  min-width: 280px;
}

.footer-theme-switcher .theme-switcher-top {
  gap: 0.55rem;
}

.footer-theme-switcher .theme-switcher-label {
  min-width: 4.4rem;
}

.footer-theme-switcher .theme-switcher-control.form-select {
  min-width: 128px;
}

.footer-tech-support {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.25rem;
  padding-top: 0.95rem;
  text-align: center;
}

.footer-tech-support-line {
  color: var(--footer-copy-color);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.7;
  margin: 0;
}

.footer-beian-line {
  color: var(--footer-copy-color);
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.footer-beian-line a {
  color: inherit;
  text-decoration: none;
}

.footer-beian-line a:hover {
  text-decoration: underline;
  opacity: 1;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.text-muted {
  color: var(--ink-soft) !important;
}

@media (max-width: 1199.98px) {
  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero.page-hero-compact .page-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .overview-metric-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (max-width: 991.98px) {
  /* Navbar: mobile dropdown replaces toggler+nav */
  .app-navbar-toggler.navbar-toggler {
    display: none;
  }

  .app-navbar-toprow {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .app-brand-block {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .app-brand-shell {
    align-items: center;
    gap: 0.4rem;
    padding: 0;
  }

  .app-brand-logo {
    height: 30px;
    max-width: 90px;
  }

  .app-brand-title {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .app-brand-subtitle {
    display: none;
  }

  .app-brand-copy {
    display: none;
  }

  .app-navbar-bottomrow {
    display: none;
  }

  /* Mode cards hidden on mobile — all nav in dropdown */
  .global-mode-inline-cards {
    display: none;
  }

  .app-navbar-inner {
    gap: 0.5rem;
  }

  #nav-user-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    white-space: nowrap;
    width: auto;
  }

  #nav-user-summary {
    white-space: nowrap;
  }

  .theme-switcher {
    min-width: 100%;
  }

  .footer-side-row {
    flex-wrap: wrap;
  }

  .footer-meta-block,
  .footer-theme-switcher {
    width: 100%;
  }

  /* Mobile dropdown — primary nav */
  .app-nav-dropdown-mobile {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .app-nav-dropdown-mobile .btn-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
  }

  .app-nav-dropdown-mobile .btn-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
  }

  .app-nav-dropdown-mobile .dropdown-menu {
    background: var(--surface-strong);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.4rem;
    right: 0;
    left: auto;
  }

  .app-nav-dropdown-mobile .dropdown-item {
    border-radius: 10px;
    color: var(--ink-strong);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 0.9rem;
  }

  .app-nav-dropdown-mobile .dropdown-item:hover {
    background: rgba(37, 81, 125, 0.08);
    color: var(--brand-800);
  }

  .app-nav-dropdown-mobile .dropdown-divider {
    margin: 0.3rem 0;
    border-color: rgba(15, 39, 67, 0.08);
  }

  .feature-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-group-item {
    flex-direction: column;
    gap: 0.2rem;
  }

  .list-group-item strong {
    min-width: 0;
  }

  .graduation-metric-head {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .page-container,
  .app-navbar-container {
    width: 100%;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .page-hero,
  .app-footer-container {
    border-radius: 22px;
    padding: 1.35rem;
  }

  .page-hero-actions,
  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-switcher-top {
    align-items: stretch;
    flex-direction: column;
  }

  .analysis-action-row,
  .compare-action-row {
    flex-direction: column;
  }

  .analysis-action-row .btn,
  .compare-action-row .btn {
    width: 100%;
  }

  .page-hero-metrics,
  .dashboard-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.7rem;
  }
}

/* ============================================
   Flow Section 鈥?浣跨敤娴佺▼姝ラ鏉?   ============================================ */
.flow-section {
  padding: 0 0 1.5rem 0;
}
.flow-section .section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-500, #3b82a6);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.flow-section .section-description {
  font-size: 0.92rem;
  color: var(--ink-soft, #698098);
  max-width: 600px;
}
.flow-step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.flow-step-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line-soft, rgba(16,42,67,0.08));
  border-radius: 12px;
  padding: 0.85rem 0.6rem;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}
.flow-step-button {
  width: 100%;
  appearance: none;
  cursor: pointer;
}
.flow-step-link,
.flow-step-link:link,
.flow-step-link:visited,
.flow-step-link:hover,
.flow-step-link:active {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.flow-step-link:hover .flow-step-card {
  box-shadow: 0 4px 20px rgba(16,42,67,0.06);
  transform: translateY(-2px);
}
.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700, #25517d), var(--brand-500, #3b82a6));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.flow-step-title {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-strong, #142235);
  margin-bottom: 0.3rem;
}
.flow-step-desc {
  font-size: 0.7rem;
  color: var(--ink-soft, #698098);
  line-height: 1.35;
  margin: 0 auto;
  max-width: 12em;
  text-align: center;
}

/* --- 绗?姝ラ珮浜?--- */
.flow-step-number-accent {
  background: linear-gradient(135deg, var(--gold-500, #b98a32), var(--gold-400, #d4ab55)) !important;
}
.flow-step-card-accent {
  border-color: rgba(185, 138, 50, 0.25) !important;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(249,246,238,1) 100%) !important;
}
.adapt-operation-guide-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-strong, #142235);
  margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
  .flow-step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .flow-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .flow-step-grid {
    grid-template-columns: 1fr;
  }
}

.home-major-search-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-major-scope-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-major-scope-label {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 81, 125, 0.14);
  background: rgba(37, 81, 125, 0.06);
  color: var(--ink-strong);
  cursor: pointer;
  margin-bottom: 0;
}

.home-major-scope-input {
  margin-right: 0.4rem;
}

.home-major-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.home-major-toolbar-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.home-major-filter-btn {
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.home-major-sort-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-overview-tabs .nav-link {
  min-width: 140px;
  text-align: center;
  font-weight: 700;
}

.analysis-business-tabs .nav-link {
  min-width: 140px;
  text-align: center;
  font-weight: 700;
}

.analysis-business-tabs-inline .nav {
  gap: 0.45rem;
}

.analysis-business-tabs-inline .nav-link {
  border-radius: 999px !important;
  min-width: auto;
  padding: 0.62rem 0.95rem;
  white-space: nowrap;
}

#analysis-next-actions .aside-list {
  line-height: 1.85;
  margin-bottom: 0;
  padding-bottom: 0.2rem;
}

#analysis-next-actions,
#analysis-next-actions .table,
#analysis-next-actions .journey-list,
#analysis-next-actions .aside-list,
#analysis-next-actions li,
#analysis-next-actions td,
#analysis-next-actions th,
#analysis-next-actions h6 {
  color: var(--ink-strong);
}

#analysis-next-actions .journey-list,
#analysis-next-actions .aside-list {
  padding-left: 1.15rem;
}

#analysis-next-actions .journey-list li,
#analysis-next-actions .aside-list li {
  color: var(--ink-base);
}

#analysis-next-actions .insight-table th {
  color: var(--ink-strong);
}

#analysis-next-actions .insight-table td {
  color: var(--ink-base);
}

.analysis-metrics-shell .card-body {
  padding: 1.15rem 1.1rem 1rem;
}

.analysis-metrics-shell .aside-list {
  line-height: 1.8;
}

.analysis-metrics-shell .analysis-metric-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 248, 252, 0.98));
  border: 1px solid rgba(37, 81, 125, 0.16);
  box-shadow: 0 10px 24px rgba(15, 39, 67, 0.08);
}

.analysis-metrics-shell .analysis-metric-card .card-body {
  position: relative;
  padding: 1.2rem 1.2rem 1.05rem;
}

.analysis-metrics-shell .analysis-metric-card .card-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, rgba(37, 81, 125, 0.92), rgba(212, 171, 85, 0.8));
}

.analysis-metrics-shell .analysis-metric-card .card-title {
  color: var(--ink-strong);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  padding-left: 0.7rem;
}

.analysis-metrics-shell .analysis-metric-card .aside-list {
  color: #34495e;
  margin-bottom: 0;
  padding-left: 1.8rem;
}

.analysis-metrics-shell .analysis-metric-card .aside-list li + li {
  margin-top: 0.55rem;
}

.analysis-metrics-shell .analysis-metric-card-overview {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.99), rgba(238, 245, 251, 0.98));
}

.analysis-metrics-shell .analysis-metric-card-employment {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.99), rgba(240, 247, 245, 0.98));
}

.analysis-metrics-shell .analysis-metric-card-graduation {
  background: linear-gradient(180deg, rgba(252, 252, 255, 0.99), rgba(245, 245, 250, 0.98));
}

.analysis-metrics-shell .analysis-metric-card-ai-career {
  background: linear-gradient(180deg, rgba(251, 251, 255, 0.99), rgba(244, 247, 252, 0.98));
}

.analysis-detail-accordion {
  display: grid;
  gap: 0.9rem;
}

.analysis-detail-accordion .accordion-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 39, 67, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.analysis-detail-accordion .accordion-button {
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.98), rgba(242, 246, 251, 0.96));
  color: var(--ink-strong);
  font-weight: 700;
  padding: 1rem 1.15rem;
}

.analysis-detail-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(180deg, rgba(238, 245, 252, 0.98), rgba(245, 248, 252, 0.96));
  color: var(--brand-800);
  box-shadow: inset 0 -1px 0 rgba(15, 39, 67, 0.05);
}

.analysis-detail-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.22rem rgba(37, 81, 125, 0.14);
}

.analysis-detail-accordion .accordion-body {
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem 1rem 0.4rem;
}

.analysis-page-order-pills {
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 0.15rem;
}

.analysis-page-order-pills .status-pill {
  flex: 0 0 auto;
}

.analysis-page-pagination {
  position: sticky;
  top: 88px;
  z-index: 20;
  margin-bottom: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 39, 67, 0.08);
  box-shadow: 0 8px 20px rgba(15, 39, 67, 0.06);
}

@media (max-width: 768px) {
  .home-value-props {
    grid-template-columns: 1fr;
  }

  .home-major-toolbar-group {
    align-items: flex-start;
  }
}

/* ============================================
   Mobile-first responsive overrides
   Phone portrait: ≤576px
   ============================================ */
@media (max-width: 576px) {
  /* --- Global --- */
  html, body, #app-shell, .app-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-container,
  .app-navbar-container {
    width: 100%;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .app-main {
    padding-top: 0.9rem;
  }

  /* --- Navbar --- */
  .app-navbar-inner {
    gap: 0.25rem;
    padding: 0.3rem 0 0.25rem;
  }

  .app-navbar-toprow {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .app-brand-block {
    min-width: 0;
    flex: 0 0 auto;
    width: auto;
    padding: 0;
  }

  .app-brand-shell {
    gap: 0;
    padding: 0;
  }

  .app-brand-logo {
    height: 24px;
    max-width: 64px;
  }

  .app-brand-title {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .app-brand-subtitle {
    display: none;
  }

  .app-brand-copy {
    display: none;
  }

  /* Mode cards hidden on mobile — all nav in dropdown */
  .global-mode-inline-cards {
    display: none;
  }

  /* User actions — compact */
  #nav-user-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    white-space: nowrap;
    width: auto;
    gap: 0.2rem;
  }

  #nav-user-summary,
  #nav-login-btn.btn,
  #nav-register-btn.btn,
  #nav-logout-btn.btn {
    font-size: 0.62rem;
    min-height: 26px;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fdfefe;
    font-family: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-shadow: none;
  }

  #nav-user-summary:hover,
  #nav-user-summary:focus,
  #nav-login-btn.btn:hover,
  #nav-login-btn.btn:focus,
  #nav-register-btn.btn:hover,
  #nav-register-btn.btn:focus,
  #nav-logout-btn.btn:hover,
  #nav-logout-btn.btn:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    text-decoration: none;
  }

  /* Mobile dropdown menu — primary nav entry */
  .app-nav-dropdown-mobile {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .app-nav-dropdown-mobile .btn-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.45rem;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
  }

  .app-nav-dropdown-mobile .btn-link:hover,
  .app-nav-dropdown-mobile .btn-link:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
  }

  .app-nav-dropdown-mobile .dropdown-toggle::after {
    margin-left: 0.3rem;
    vertical-align: 0.1em;
  }

  .app-nav-dropdown-mobile .dropdown-menu {
    background: var(--surface-strong);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.4rem;
    right: 0;
    left: auto;
  }

  .app-nav-dropdown-mobile .dropdown-item {
    border-radius: 10px;
    color: var(--ink-strong);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 0.85rem;
  }

  .app-nav-dropdown-mobile .dropdown-item:hover {
    background: rgba(37, 81, 125, 0.08);
    color: var(--brand-800);
  }

  .app-nav-dropdown-mobile .dropdown-divider {
    margin: 0.3rem 0;
    border-color: rgba(15, 39, 67, 0.08);
  }

  /* Hide bottom row (secondary nav) on mobile — replaced by dropdown */
  .app-navbar-bottomrow {
    display: none;
  }

  /* Hide desktop toggler on mobile */
  .app-navbar-toggler.navbar-toggler {
    display: none;
  }

  .theme-switcher {
    min-width: 100%;
  }

  .theme-switcher-top {
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
  }

  .theme-switcher-label {
    font-size: 0.7rem;
  }

  .theme-switcher-control.form-select {
    font-size: 0.78rem;
    min-height: 34px;
  }

  .theme-switcher-inline {
    min-width: 100%;
    padding: 0.4rem 0.5rem;
  }

  /* --- Hero panels --- */
  .page-hero {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.15rem 1rem;
    border-radius: 18px;
  }

  .page-hero::before,
  .page-hero::after {
    display: none;
  }

  .page-hero-eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .page-title {
    font-size: 1.25rem;
    margin: 0.15rem 0 0.45rem;
    line-height: 1.2;
  }

  .page-subtitle {
    font-size: 0.8rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .page-hero-actions {
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.4rem;
  }

  .page-hero-actions .btn,
  .page-hero-actions .hero-inline-chip {
    width: 100%;
    text-align: center;
  }

  .page-hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hero-metric-card {
    min-height: auto;
    padding: 0.65rem 0.75rem;
    gap: 0.15rem;
  }

  .hero-metric-label {
    font-size: 0.64rem;
  }

  .hero-metric-value {
    font-size: 1.05rem;
  }

  .hero-metric-detail {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .page-hero-aside {
    margin-top: 0.4rem;
    padding: 0.7rem 0.8rem;
    gap: 0.4rem;
  }

  .aside-title {
    font-size: 0.82rem;
  }

  .aside-copy,
  .aside-list {
    font-size: 0.75rem;
    line-height: 1.55;
  }

  .page-hero.page-hero-compact {
    padding: 0.9rem 0.85rem;
    gap: 0.5rem;
  }

  .page-hero.page-hero-compact .page-title {
    font-size: 1.15rem;
  }

  .page-hero.page-hero-compact .page-subtitle {
    font-size: 0.78rem;
  }

  .page-hero.page-hero-mini {
    padding: 0.55rem 0.6rem;
    border-radius: 14px;
  }

  .page-hero.page-hero-mini .page-title {
    font-size: 0.95rem;
  }

  /* --- Section header --- */
  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1.05rem;
  }

  .section-description {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .page-shell > section,
  .section-shell {
    padding: 0.7rem;
    border-radius: 14px;
  }

  .page-shell {
    gap: 0.7rem;
  }

  /* --- Grids — all single column --- */
  .dashboard-grid,
  .feature-grid,
  .action-grid,
  .kpi-grid,
  .home-value-props {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  /* --- Cards --- */
  .card-header {
    padding: 0.65rem 0.8rem;
    font-size: 0.85rem;
  }

  .card-body {
    padding: 0.7rem 0.75rem;
  }

  .summary-card-label {
    font-size: 0.65rem;
  }

  .summary-card-value {
    font-size: 1.15rem;
  }

  .summary-card-detail {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .feature-card-title,
  .info-card-title {
    font-size: 0.88rem;
  }

  .feature-card-copy,
  .info-card-copy {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* --- Buttons --- */
  .btn {
    font-size: 0.82rem;
    padding: 0.5rem 0.9rem;
  }

  .analysis-action-row,
  .compare-action-row {
    flex-direction: column;
    gap: 0.45rem;
  }

  .analysis-action-row .btn,
  .compare-action-row .btn {
    width: 100%;
  }

  /* --- Forms --- */
  .form-control,
  .form-select,
  .Select-control,
  .dash-input,
  textarea {
    font-size: 0.88rem;
    min-height: 40px;
    border-radius: 10px;
  }

  label {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
  }

  /* --- Tabs --- */
  .nav-tabs {
    gap: 0.3rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
  }

  .nav-tabs .nav-link {
    font-size: 0.72rem;
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .analysis-business-tabs-inline .nav-link,
  .home-overview-tabs .nav-link,
  .analysis-business-tabs .nav-link {
    min-width: auto;
    font-size: 0.68rem;
    padding: 0.4rem 0.6rem;
  }

  .tab-content {
    margin-top: 0.7rem;
  }

  /* --- Tables --- */
  .table-shell,
  .data-panel,
  .results-shell {
    padding: 0.55rem;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table > :not(caption) > * > * {
    font-size: 0.78rem;
    padding: 0.55rem 0.5rem;
  }

  .table thead th {
    font-size: 0.72rem;
  }

  /* --- Charts --- */
  .executive-graph .js-plotly-plot,
  .js-plotly-plot {
    min-height: 220px;
  }

  .chart-panel .card-body {
    padding: 0.6rem 0.5rem 0.5rem;
  }

  /* --- Modals --- */
  .modal-content {
    border-radius: 16px;
  }

  .modal-header,
  .modal-footer {
    padding: 0.7rem 0.9rem;
  }

  .modal-body {
    padding: 0.7rem 0.9rem;
  }

  /* --- Accordion --- */
  .adapt-input-accordion .accordion-item {
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }

  .adapt-input-accordion .accordion-button {
    font-size: 0.88rem;
    padding: 0.7rem 0.9rem;
  }

  .analysis-detail-accordion .accordion-button {
    font-size: 0.85rem;
    padding: 0.7rem 0.85rem;
  }

  .analysis-detail-accordion .accordion-body {
    padding: 0.6rem 0.6rem 0.25rem;
  }

  /* --- Footer --- */
  .app-footer {
    margin-top: 1rem;
    padding: 0 0 0.8rem;
  }

  .app-footer-container {
    padding: 0.7rem 0.6rem;
    border-radius: 14px;
  }

  /* Footer row: 3 columns compact */
  .app-footer .row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.35rem;
  }

  .app-footer .row > [class*="col-"] {
    flex: 0 0 auto;
    max-width: none;
    padding: 0;
  }

  .app-footer .mb-4 {
    margin-bottom: 0 !important;
  }

  .footer-section-title {
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
    text-align: center;
  }

  .footer-ai-disclaimer {
    font-size: 0.55rem;
    line-height: 1.35;
    text-align: center;
  }

  .footer-meta-block {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    text-align: center;
    align-items: center;
  }

  /* Theme switcher: match the other two columns */
  .footer-theme-switcher {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    gap: 0.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-theme-switcher .theme-switcher-top {
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    width: 100%;
  }

  .footer-theme-switcher .theme-switcher-label {
    font-size: 0.65rem;
    min-width: 0;
    text-align: center;
    font-weight: 700;
    color: inherit;
  }

  .footer-theme-switcher .theme-switcher-control.form-select {
    font-size: 0.6rem;
    min-height: 24px;
    min-width: 0;
    width: 100%;
    padding: 0.1rem 0.25rem;
  }

  .footer-theme-switcher .theme-switcher-label {
    display: none;
  }

  .footer-theme-switcher .theme-switcher-preview,
  .footer-theme-switcher .theme-switcher-meta {
    display: none;
  }

  .footer-tech-support {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
  }

  .footer-tech-support-line {
    font-size: 0.6rem;
  }

  .footer-beian-line {
    font-size: 0.55rem;
    margin-top: 0.1rem;
  }

  /* --- Adapt page --- */
  .adapt-subject-table-row {
    grid-template-columns: 1.2fr 0.8fr 0.7fr 0.5fr;
    padding: 0.45rem 0.5rem;
    gap: 0.3rem;
    font-size: 0.72rem;
  }

  .adapt-subject-table-head {
    font-size: 0.65rem;
  }

  .adapt-metric-grid {
    grid-template-columns: 1fr;
  }

  .adapt-overview-panel {
    grid-template-columns: 1fr;
  }

  .adapt-results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .adapt-result-head {
    flex-direction: column;
  }

  .adapt-fit-box {
    align-items: flex-start;
    width: 100%;
  }

  .adapt-explain-grid {
    grid-template-columns: 1fr;
  }

  .adapt-action-row {
    position: static;
    align-items: stretch;
  }

  .adapt-action-direction-field {
    max-width: none;
  }

  .adapt-action-buttons {
    justify-content: flex-start;
  }

  .adapt-assessment-nav {
    gap: 0.4rem;
    padding: 0.6rem;
  }

  .adapt-assessment-nav-btn {
    min-height: auto;
    padding: 0.5rem 0.6rem;
    gap: 0.1rem;
  }

  .adapt-assessment-nav-btn strong {
    font-size: 0.82rem;
  }

  .adapt-assessment-nav-btn span {
    font-size: 0.7rem;
  }

  .adapt-subject-nav-btn {
    min-height: auto;
    padding: 0.55rem 0.65rem;
    gap: 0.1rem;
  }

  .adapt-subject-nav-btn strong {
    font-size: 0.82rem;
  }

  .adapt-subject-nav-btn span {
    font-size: 0.7rem;
  }

  .adapt-collapse-btn {
    font-size: 0.88rem;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
  }

  .adapt-assessment-launch-btn {
    font-size: 0.88rem;
    min-height: 38px;
    padding: 0.5rem 0.7rem;
  }

  .adapt-field .form-control,
  .adapt-field .Select-control {
    min-height: 34px;
    font-size: 0.82rem;
  }

  .adapt-field label,
  .adapt-field .form-label {
    font-size: 0.7rem;
  }

  .adapt-assessment-workspace,
  #adapt-assessment-workspace-col {
    padding: 0.6rem;
    border-radius: 12px;
    min-height: auto;
  }

  .adapt-subject-workspace {
    padding: 0.6rem;
    border-radius: 12px;
    min-height: auto;
  }

  .adapt-subject-panel {
    gap: 0.5rem;
  }

  .adapt-assessment-composite-wrap {
    gap: 0.25rem 0.4rem;
    margin-bottom: 0.5rem;
  }

  .adapt-assessment-composite-title {
    font-size: 0.82rem;
  }

  /* --- Compare page --- */
  .compare-selector-col {
    margin-bottom: 0.4rem;
  }

  .compare-control-card .card-body {
    gap: 0.4rem;
  }

  .compare-results-shell {
    gap: 0.7rem;
  }

  /* --- Analysis page --- */
  .analysis-page-pagination {
    position: static;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
  }

  .analysis-page-order-pills {
    gap: 0.25rem;
  }

  .analysis-selector-meta {
    gap: 0.3rem;
  }

  /* --- Admin dashboard --- */
  .manage-stat-grid .col,
  .manage-stat-grid [class*="col-"] {
    margin-bottom: 0.4rem;
  }

  /* --- List groups --- */
  .list-group-item {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 0.7rem;
  }

  .list-group-item strong {
    min-width: 0;
  }

  /* --- Pagination --- */
  .pagination .page-link {
    font-size: 0.78rem;
    padding: 0.3rem 0.55rem;
  }

  /* --- Upload dropzone --- */
  .upload-dropzone {
    min-height: 140px;
    padding: 0.9rem;
    gap: 0.4rem;
  }

  .dropzone-title {
    font-size: 0.88rem;
  }

  .dropzone-copy {
    font-size: 0.75rem;
  }

  /* --- Account page --- */
  .account-payment-actions {
    flex-direction: column;
  }

  .account-payment-actions .btn {
    min-width: 0;
    width: 100%;
  }

  /* --- Alerts --- */
  .alert {
    padding: 0.7rem 0.85rem;
    font-size: 0.82rem;
  }

  /* --- Graduation metric --- */
  .graduation-metric-head {
    flex-direction: column;
    gap: 0.35rem;
  }

  .graduation-metric-title {
    font-size: 0.85rem;
  }

  .graduation-metric-value {
    font-size: 1.05rem;
  }

  .graduation-metric-copy,
  .graduation-metric-note {
    font-size: 0.78rem;
  }

  /* --- Insight items --- */
  .insight-stat-value {
    font-size: 1.1rem;
  }

  .insight-stat-note {
    font-size: 0.75rem;
  }

  .insight-timeline-item {
    padding: 0.6rem 0.7rem;
  }

  /* --- Flow steps --- */
  .flow-step-card {
    padding: 0.6rem 0.45rem;
  }

  .flow-step-number {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
    margin-bottom: 0.35rem;
  }

  .flow-step-title {
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
  }

  .flow-step-desc {
    font-size: 0.62rem;
  }

  /* --- Bootstrap row columns: force full-width on phone --- */
  .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* --- Home search --- */
  .home-major-scope-switch {
    flex-direction: column;
    gap: 0.35rem;
  }

  .home-major-scope-label {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }
}

/* ============================================
   Phone landscape / Small tablet: ≤768px
   (extending existing rules)
   ============================================ */
@media (max-width: 768px) {
  /* Table scrolling */
  .table-responsive-stack {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Hero compact fixes */
  .page-hero.page-hero-dashboard .page-hero-metrics,
  .page-hero.home-hero-mini .page-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Chart containers */
  .executive-graph .js-plotly-plot {
    min-height: 260px;
  }

  /* Smaller spacing */
  .analysis-detail-accordion {
    gap: 0.6rem;
  }

  /* Navbar: mobile dropdown replaces toggler+nav */
  .app-navbar-toggler.navbar-toggler {
    display: none;
  }

  .app-navbar-toprow {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .app-brand-block {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .app-brand-logo {
    height: 26px;
    max-width: 72px;
  }

  .app-brand-title {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .app-brand-subtitle {
    display: none;
  }

  .app-brand-copy {
    display: none;
  }

  .app-navbar-bottomrow {
    display: none;
  }

  /* Mode cards hidden on mobile — all nav in dropdown */
  .global-mode-inline-cards {
    display: none;
  }

  #nav-user-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    width: auto;
  }

  .page-container,
  .app-navbar-container {
    width: 100%;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .page-hero {
    padding: 1.35rem 1.2rem;
    border-radius: 18px;
  }

  .app-footer-container {
    border-radius: 18px;
    padding: 1.15rem 1rem;
  }
}

body.wechat-browser #account-alipay-pay-btn,
body.wechat-browser #account-register-alipay-btn {
  display: none !important;
}

.mobile-theme-entry {
  display: none;
}

.mobile-theme-open-btn.btn {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.34rem 0.68rem;
  text-decoration: none;
}

.mobile-theme-option-list {
  display: grid;
  gap: 0.55rem;
}

.mobile-theme-option.btn {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--ink-base);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.72rem 0.78rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.mobile-theme-option.btn:hover,
.mobile-theme-option.btn:focus {
  background: var(--surface-muted);
  border-color: var(--brand-300);
  color: var(--brand-800);
}

.mobile-theme-option-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.mobile-theme-option-swatches {
  display: flex;
  gap: 0.26rem;
}

.mobile-theme-option-swatch {
  border: 1px solid rgba(15, 39, 67, 0.12);
  border-radius: 999px;
  height: 14px;
  width: 14px;
}

@media (max-width: 767.98px) {
  .footer-theme-switcher {
    display: none;
  }

  .mobile-theme-entry {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100%;
    width: 100%;
  }

  .mobile-theme-open-btn.btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--footer-section-color);
    max-width: 100%;
    min-height: 30px;
    white-space: nowrap;
  }

  .mobile-theme-open-btn.btn:hover,
  .mobile-theme-open-btn.btn:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .mobile-theme-modal .modal-dialog {
    bottom: 0;
    left: 0;
    margin: 0;
    max-width: none;
    position: fixed;
    right: 0;
    width: 100%;
  }

  .mobile-theme-modal .modal-content {
    background: var(--surface);
    border: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 46px rgba(15, 39, 67, 0.18);
  }

  .mobile-theme-modal-header,
  .mobile-theme-modal-body,
  .mobile-theme-modal-footer {
    border-color: var(--line-soft);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-theme-modal-header .modal-title {
    color: var(--ink-strong);
    font-size: 1rem;
    font-weight: 800;
  }

  .mobile-theme-modal-footer {
    justify-content: stretch;
  }

  .mobile-theme-close-btn.btn {
    width: 100%;
  }
}


