/* ==========================================================================
   产教智对 · 专业动态调整决策平台
   配色：深海军蓝 + 中性灰，图表使用经色觉校验的分类色板
   ========================================================================== */
:root {
  --navy-900: #0b1f33;
  --navy-800: #0f2742;
  --navy-700: #14365a;
  --navy-600: #1c4a78;
  --accent: #2a78d6;
  --accent-dark: #1c5cab;
  --teal: #1baf7a;
  --orange: #eb6834;
  --amber: #eda100;
  --red: #d03b3b;
  --green: #0ca30c;
  --ink-1: #101828;
  --ink-2: #475467;
  --ink-3: #667085;
  --ink-4: #98a2b3;
  --line: #e4e9f0;
  --line-soft: #eef2f7;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(15, 39, 66, .10);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-1);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
#app { height: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }

/* ---------------- 登录 ---------------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: var(--navy-900);
}
.login-left {
  position: relative;
  padding: 64px 72px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(42, 120, 214, .35), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(27, 175, 122, .18), transparent 55%),
    linear-gradient(160deg, #0b1f33 0%, #0f2f4d 100%);
  overflow: hidden;
}
.login-left::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 30%, black, transparent 75%);
  pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: .5px; }
.login-brand svg { width: 34px; height: 34px; }
.login-title { font-size: 40px; line-height: 1.25; font-weight: 700; margin: 0 0 18px; letter-spacing: .5px; }
.login-sub { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.72); max-width: 460px; }
.login-points { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.login-point { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.85); font-size: 14px; }
.login-point .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 8px; flex: none; }
.login-foot { font-size: 12px; color: rgba(255,255,255,.42); }
.login-right { display: flex; align-items: center; justify-content: center; background: #fff; padding: 40px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 26px; margin: 0 0 8px; }
.login-card .hint { color: var(--ink-3); font-size: 13px; margin-bottom: 28px; }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.login-field input {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 14px; font-size: 14px; outline: none; transition: .15s; background: var(--surface-2);
}
.login-field input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(42,120,214,.12); }
.login-btn {
  width: 100%; height: 46px; border: 0; border-radius: 10px; background: var(--navy-800);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 6px; transition: .15s;
}
.login-btn:hover { background: var(--navy-700); }
.login-err { color: var(--red); font-size: 12px; margin-top: 10px; }
.login-note { font-size: 12px; color: var(--ink-4); margin-top: 22px; line-height: 1.7; }

/* ---------------- 布局 ---------------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex: none; background: linear-gradient(180deg, #0b1f33 0%, #0f2b48 100%);
  color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 24px 22px 20px; }
.side-brand svg { width: 32px; height: 32px; flex: none; }
.side-brand .name { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.side-brand .sub { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 3px; letter-spacing: .3px; }
.side-nav { padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  cursor: pointer; color: rgba(255,255,255,.66); transition: .15s; position: relative; border: 0; background: none;
  text-align: left; width: 100%; font-size: 14px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.10); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: #4f9bea;
}
.nav-no {
  width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7); flex: none;
}
.nav-item.active .nav-no { background: #2a78d6; color: #fff; }
.nav-text { display: flex; flex-direction: column; gap: 2px; }
.nav-text small { font-size: 11px; color: rgba(255,255,255,.38); }
.nav-item.active .nav-text small { color: rgba(255,255,255,.6); }
.side-foot { padding: 16px 20px 22px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot .status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.55); }
.side-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47,191,113,.15); }
.side-foot .ver { font-size: 11px; color: rgba(255,255,255,.28); margin-top: 8px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 66px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 20;
}
.crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.crumb b { color: var(--ink-1); font-weight: 600; font-size: 15px; }
.top-right { display: flex; align-items: center; gap: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-700); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600; }

.content { padding: 28px 30px 60px; max-width: 1440px; width: 100%; margin: 0 auto; }

/* ---------------- 通用 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin: 0 0 6px; font-weight: 700; letter-spacing: .3px; }
.page-head p { margin: 0; color: var(--ink-3); font-size: 13px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 22px;
}
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.card-head .desc { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.kpi .label { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; justify-content: space-between; }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 3px; }
.kpi .foot { font-size: 12px; color: var(--ink-3); }
.kpi .trend-up { color: var(--green); }
.kpi .trend-down { color: var(--red); }
.kpi.accent { background: linear-gradient(150deg, #0f2742, #16406b); border: 0; color: #fff; }
.kpi.accent .label, .kpi.accent .foot { color: rgba(255,255,255,.62); }
.kpi.accent .value { color: #fff; }

.section-title { font-size: 16px; font-weight: 600; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title .bar { width: 3px; height: 15px; border-radius: 2px; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: .15s; background: #fff; color: var(--ink-2);
  border-color: var(--line);
}
.btn:hover { border-color: #cfd8e3; color: var(--ink-1); background: #fbfcfe; }
.btn.primary { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn.primary:hover { background: var(--navy-700); }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tag.red { background: #fdeeee; color: #b42318; }
.tag.orange { background: #fff3e8; color: #b54708; }
.tag.green { background: #e9f7ef; color: #067647; }
.tag.blue { background: #eaf2fd; color: #175cd3; }
.tag.gray { background: #f2f4f7; color: #475467; }
.tag.purple { background: #f0edfd; color: #5727c9; }

.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--line-soft); margin: 16px 0; }

.empty {
  border: 1px dashed #cfd8e3; border-radius: var(--radius); padding: 56px 24px;
  text-align: center; color: var(--ink-3); background: var(--surface-2);
}
.empty .big { font-size: 16px; color: var(--ink-1); font-weight: 600; margin-bottom: 8px; }
.empty .icon { font-size: 30px; margin-bottom: 12px; opacity: .5; }

/* ---------------- 工作台 ---------------- */
.hero {
  background:
    radial-gradient(700px 320px at 88% -20%, rgba(42, 120, 214, .22), transparent 65%),
    linear-gradient(135deg, #0f2742 0%, #123a5f 100%);
  border-radius: 18px; color: #fff; padding: 32px 34px; display: flex;
  justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); margin-bottom: 20px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(27,175,122,.18), transparent 65%);
}
.hero h1 { margin: 0 0 10px; font-size: 27px; letter-spacing: .5px; }
.hero p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.8; max-width: 620px; }
.hero-actions { display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; }
.hero-actions .btn { background: #fff; color: var(--navy-800); border-color: #fff; }
.hero-actions .btn:hover { background: #eef4fb; }
.hero-actions .btn.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.hero-actions .btn.ghost:hover { background: rgba(255,255,255,.16); }

.flow { display: flex; align-items: center; gap: 0; padding: 6px 0; }
.flow-step { display: flex; align-items: center; gap: 10px; flex: 1; }
.flow-step .no {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #eef2f7; color: var(--ink-3); font-size: 12px; font-weight: 600; flex: none;
}
.flow-step.done .no { background: var(--green); color: #fff; }
.flow-step.current .no { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(42,120,214,.14); }
.flow-step .t { font-size: 13px; color: var(--ink-1); font-weight: 500; }
.flow-step .s { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.flow-line { height: 1px; background: var(--line); flex: 1; margin: 0 14px; }

.quick-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.quick-card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 17px; }
.quick-card h4 { margin: 0 0 4px; font-size: 14px; }
.quick-card p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

/* ---------------- 数据中心 ---------------- */
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.upload-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; box-shadow: var(--shadow); }
.upload-card h4 { margin: 0 0 4px; font-size: 15px; }
.upload-card .sub { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.drop {
  border: 1.5px dashed #cfd8e3; border-radius: 12px; padding: 26px 16px; text-align: center;
  background: var(--surface-2); transition: .15s; cursor: pointer;
}
.drop:hover { border-color: var(--accent); background: #f5f9ff; }
.drop .ico { font-size: 24px; opacity: .55; margin-bottom: 8px; }
.drop .t { font-size: 13px; color: var(--ink-2); }
.drop .s { font-size: 11px; color: var(--ink-4); margin-top: 6px; }
.upload-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; color: var(--ink-3); }

.skill-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-chip { background: #f2f5f9; border: 1px solid var(--line-soft); color: var(--ink-2); font-size: 11px; padding: 2px 7px; border-radius: 5px; }

/* ---------------- 分析 / 方案 ---------------- */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.metric-row { display: flex; gap: 26px; flex-wrap: wrap; }
.metric { min-width: 110px; }
.metric .k { font-size: 11px; color: var(--ink-3); margin-bottom: 5px; }
.metric .v { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metric .v small { font-size: 12px; color: var(--ink-3); font-weight: 400; }

.direction-item { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.direction-item:last-child { border-bottom: 0; }
.direction-item .rank { width: 22px; height: 22px; border-radius: 6px; background: #eef2f7; color: var(--ink-3); font-size: 11px; display: grid; place-items: center; flex: none; }
.direction-item .name { font-size: 13px; font-weight: 500; }
.direction-item .sub { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.direction-item .val { margin-left: auto; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

.action-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.action-item:last-child { border-bottom: 0; }
.action-item .type { flex: none; }
.action-item .body { flex: 1; min-width: 0; }
.action-item h4 { margin: 0 0 6px; font-size: 14px; }
.action-item p { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.action-item .ev { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-chip { background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--ink-3); font-size: 11px; padding: 2px 8px; border-radius: 5px; }
.action-item .delta { font-size: 12px; color: var(--ink-3); margin-left: 8px; }

.versions { display: flex; gap: 10px; flex-wrap: wrap; }
.version-card {
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; min-width: 130px;
  background: var(--surface-2); cursor: default;
}
.version-card.best { border-color: var(--accent); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(42,120,214,.08); }
.version-card .v { font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; }
.version-card .m { font-size: 20px; font-weight: 700; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.version-card .s { font-size: 11px; color: var(--ink-4); }

.progress { height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .5s ease; }

.notice {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.7;
  background: #f5f9ff; border: 1px solid #d6e6fb; color: #175cd3;
}
.notice.warn { background: #fffaf0; border-color: #f6e0b5; color: #b54708; }
.notice.ok { background: #f0faf4; border-color: #c9eed9; color: #067647; }

/* ---------------- 模拟 / 风险 ---------------- */
.scenario { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.scenario.base { border-color: #bcd6f5; background: #f7fbff; }
.scenario h4 { margin: 0 0 4px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.scenario .desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; min-height: 36px; }
.scenario .big { font-size: 28px; font-weight: 700; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.scenario .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); padding: 5px 0; border-top: 1px dashed var(--line-soft); }
.scenario .row b { color: var(--ink-1); font-weight: 600; }

.risk-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.risk-card.high { border-left: 3px solid var(--red); }
.risk-card.mid { border-left: 3px solid var(--amber); }
.risk-card.low { border-left: 3px solid var(--green); }
.risk-card h4 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.risk-card .trigger { font-size: 12px; color: var(--ink-2); background: var(--surface-2); border-radius: 7px; padding: 8px 10px; margin: 8px 0 10px; line-height: 1.65; }
.risk-card ol { margin: 0; padding-left: 18px; font-size: 12px; color: var(--ink-2); line-height: 1.9; }

/* ---------------- 报告 ---------------- */
.report-preview { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px 46px; box-shadow: var(--shadow); }
.report-preview h1 { font-size: 26px; margin: 0 0 6px; }
.report-preview .meta { color: var(--ink-3); font-size: 12px; margin-bottom: 24px; }
.report-preview h2 { font-size: 16px; margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.report-preview p { font-size: 13px; line-height: 1.9; color: var(--ink-2); margin: 0 0 8px; }
.report-preview table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.report-preview th { text-align: left; background: var(--surface-2); color: var(--ink-2); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.report-preview td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }

/* ---------------- ECharts ---------------- */
.chart { width: 100%; }
.chart-legend { display: flex; gap: 16px; align-items: center; font-size: 12px; color: var(--ink-3); }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; }

/* ---------------- 打印 ---------------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; }
  .sidebar, .topbar, .no-print, .el-message { display: none !important; }
  .content { padding: 0; max-width: none; }
  .report-preview { border: 0; box-shadow: none; padding: 0; }
  .report-preview h2 { break-after: avoid; }
  .report-preview table { break-inside: auto; }
  .print-block { break-inside: avoid; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1280px) {
  .grid-4, .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .upload-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 210px; }
}

/* ---------------- 表单控件 / 提示 ---------------- */
.select, .input {
  height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--ink-1); outline: none; transition: .15s;
  font-family: inherit;
}
.select { padding-right: 30px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23667085' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; }
.select:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,120,214,.12); }
input[type="range"] { accent-color: var(--accent); height: 22px; }

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 999;
  background: #101828; color: #fff; font-size: 13px; padding: 11px 20px; border-radius: 10px;
  box-shadow: 0 12px 34px rgba(16,24,40,.28); max-width: 76vw; line-height: 1.5;
  animation: toast-in .18s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.loading-mask {
  position: fixed; inset: 0; z-index: 900; background: rgba(243,246,250,.62);
  backdrop-filter: blur(2px); display: grid; place-items: center;
}
.loading-box {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 24px; box-shadow: var(--shadow-lg); font-size: 13px; color: var(--ink-2);
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #dbe4ef;
  border-top-color: var(--accent); animation: spin .7s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-kpi { grid-template-columns: 1fr; }
  .flow { flex-wrap: wrap; gap: 12px; }
  .flow-line { display: none; }
  .content { padding: 20px 16px 50px; }
  .report-preview { padding: 26px 20px; }
}

.topbar-select {
  height: 32px; font-size: 12px; border-radius: 8px; padding: 0 26px 0 10px;
  background-position: right 8px center; color: var(--ink-2); max-width: 210px;
}

.new-major-input { width: 100%; margin-top: 10px; height: 34px; font-size: 12px; }
