:root {
  --red: #d71920;
  --red-dark: #a80f16;
  --red-soft: #fff0f0;
  --ink: #171a1f;
  --ink-2: #333943;
  --muted: #68707c;
  --line: #dedbd4;
  --line-dark: #c8c3ba;
  --paper: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #eeece6;
  --blue: #1769aa;
  --blue-soft: #edf6fc;
  --green: #18794e;
  --green-soft: #edf8f2;
  --amber: #a95e00;
  --amber-soft: #fff6e8;
  --shadow: 0 16px 40px rgba(30, 25, 20, 0.08);
  --shadow-soft: 0 6px 20px rgba(30, 25, 20, 0.06);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --sidebar: 248px;
  --motion: 220ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 26, 31, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 31, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(23, 105, 170, .42);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Login — industrial editorial split screen */
.auth-view { padding: 0; overflow-x: hidden; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(520px, 1.08fr) minmax(460px, .92fr); background: var(--paper); }
.login-story {
  position: relative;
  min-height: 100vh;
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--ink);
  background-size: 36px 36px;
  display: flex;
  flex-direction: column;
}
.login-story::before { content: ""; position: absolute; width: 310px; height: 130%; right: 7%; top: -15%; background: var(--red); transform: skewX(-28deg); opacity: .94; }
.login-story::after { content: "PRACTICE"; position: absolute; right: -44px; top: 45%; transform: rotate(90deg); color: rgba(255,255,255,.1); font-family: "Bahnschrift Condensed", "Microsoft YaHei", sans-serif; font-size: clamp(72px, 8vw, 132px); font-weight: 800; letter-spacing: .05em; line-height: 1; }
.login-brand { position: relative; z-index: 2; align-self: flex-start; }
.login-story-copy { position: relative; z-index: 2; max-width: 760px; margin: auto 0; padding: 10vh 0 8vh; }
.login-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; color: #c5cad1; font-family: "Bahnschrift", "Microsoft YaHei", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.login-kicker span { width: 38px; height: 2px; background: #fff; }
.login-display { margin: 0; font-family: "Bahnschrift Condensed", "Microsoft YaHei", sans-serif; font-size: clamp(52px, 5.7vw, 92px); font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.login-display em { color: #fff; font-style: normal; }
.login-story-copy > p:last-child { max-width: 590px; margin: 30px 0 0; color: #c5cad1; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.8; }
.login-dimensions { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.login-dimensions div { min-width: 0; padding: 16px 10px 0 0; }
.login-dimensions span { display: block; color: #ff7176; font-family: "Bahnschrift", sans-serif; font-size: 11px; font-weight: 700; }
.login-dimensions strong { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.login-edition { position: relative; z-index: 2; margin: 30px 0 0; color: #777f89; font-family: "Bahnschrift", sans-serif; font-size: 10px; letter-spacing: .14em; }
.login-access { min-height: 100vh; padding: clamp(32px, 6vw, 96px); display: grid; place-items: center; background: rgba(245,243,238,.92); }
.login-form-wrap { width: 100%; max-width: 480px; }
.login-mobile-brand { display: none; margin-bottom: 54px; }
.login-heading { margin-bottom: 34px; }
.login-index { display: block; margin-bottom: 15px; color: var(--red); font-family: "Bahnschrift", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.login-heading h2 { margin: 0; font-family: "Bahnschrift Condensed", "Microsoft YaHei", sans-serif; font-size: clamp(40px, 4vw, 58px); line-height: 1; letter-spacing: -.04em; }
.login-heading p { margin: 14px 0 0; color: var(--muted); }
.login-form { display: grid; gap: 21px; }
.login-field label { display: inline-block; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 800; }
.login-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-label-row span { color: var(--muted); font-size: 11px; }
.login-control { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid var(--line-dark); border-radius: 10px; background: #fff; transition: border-color var(--motion), box-shadow var(--motion); }
.login-control:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23,26,31,.07); }
.login-control > svg { width: 20px; height: 20px; flex: 0 0 auto; color: #777f89; }
.login-control input { width: 100%; min-width: 0; height: 56px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.login-control input::placeholder { color: #9a9fa7; }
.password-toggle { width: 40px; height: 40px; margin-right: -7px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.password-toggle:hover { color: var(--ink); background: var(--surface-2); }
.password-toggle svg { width: 19px; height: 19px; }
.login-options { margin-top: -4px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12px; }
.check-option { display: flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; }
.check-option input { width: 16px; height: 16px; accent-color: var(--red); }
.text-button { padding: 4px 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.text-button:hover { color: var(--red); }
.login-error { margin: -7px 0 0; padding: 10px 12px; color: var(--red-dark); background: var(--red-soft); border-left: 3px solid var(--red); border-radius: 0 7px 7px 0; font-size: 12px; }
.login-submit { min-height: 58px; padding: 0 18px 0 22px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 10px; color: #fff; background: var(--red); box-shadow: 0 12px 28px rgba(215,25,32,.24); font-weight: 800; transition: background var(--motion), transform var(--motion), box-shadow var(--motion); }
.login-submit:hover { background: var(--red-dark); box-shadow: 0 15px 34px rgba(168,15,22,.28); transform: translateY(-2px); }
.login-submit:active { transform: translateY(0); }
.login-submit svg { width: 20px; height: 20px; }
.login-notice { margin: 24px 0 0; color: #747b85; font-size: 12px; text-align: center; }
.modal-kicker { display: block; margin-bottom: 9px; color: var(--red); font-family: "Bahnschrift", sans-serif; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.credential-form { margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.credential-form label { display: grid; gap: 7px; color: var(--ink-2); font-size: 11px; font-weight: 800; }
.credential-form label:nth-child(-n+2),.credential-form .credential-form-error,.credential-form .modal-actions { grid-column: 1 / -1; }
.credential-form input { width: 100%; min-height: 48px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-dark); border-radius: 9px; outline: 0; }
.credential-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,170,.12); }
.credential-form label small { color: var(--muted); font-size: 9px; font-weight: 500; }
.credential-form-error { margin: 0; padding: 9px 11px; color: var(--red-dark); background: var(--red-soft); border-left: 3px solid var(--red); font-size: 11px; }
.credential-ticket { margin-top: 20px; padding: 16px; display: grid; gap: 8px; background: var(--ink); border-radius: 12px; }
.credential-ticket span { color: #ff9da0; font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.credential-ticket textarea { width: 100%; min-height: 72px; resize: none; padding: 12px; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; font-family: Consolas, monospace; font-size: 14px; line-height: 1.5; }
.credential-ticket small { color: #aeb5bf; font-size: 9px; }

@keyframes login-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.login-story-copy, .login-form-wrap { animation: login-rise 520ms cubic-bezier(.2,.8,.2,1) both; }
.login-form-wrap { animation-delay: 80ms; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  padding: 24px 18px;
  color: #fff;
  background: #171a1f;
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--red);
  border-radius: 10px 10px 2px 10px;
  font-size: 13px; font-weight: 900; letter-spacing: -.5px;
}
.brand-copy strong { display: block; font-size: 16px; letter-spacing: .04em; }
.brand-copy span { color: #aeb4bd; font-size: 12px; }

.portal-switcher { margin: 22px 0 12px; padding-bottom: 12px; display: grid; gap: 5px; border-bottom: 1px solid rgba(255,255,255,.1); }
.portal-switcher button {
  position: relative;
  min-height: 46px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 21px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  color: #aeb4bd;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  transition: color var(--motion), background var(--motion), border-color var(--motion);
}
.portal-switcher button:hover { color: #fff; background: rgba(255,255,255,.06); }
.portal-switcher button[aria-pressed="true"] { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); box-shadow: inset 3px 0 var(--red); }
.portal-switcher svg { width: 20px; height: 20px; }
.portal-switcher span { min-width: 0; font-size: 12px; font-weight: 800; }
.portal-switcher small { padding: 2px 5px; color: #d5d8dd; background: rgba(255,255,255,.08); border-radius: 999px; font-size: 9px; }
.mobile-portal-switcher { display: none; }

.role-lock {
  margin: 0 0 18px;
  padding: 13px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
}
.role-lock small { display: block; color: #aeb4bd; margin-bottom: 3px; }
.role-lock strong { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.role-lock em { display: block; margin-top: 4px; color: #929aa5; font-size: 10px; font-style: normal; }
.role-dot { width: 8px; height: 8px; background: #ff4047; border-radius: 50%; box-shadow: 0 0 0 4px rgba(215,25,32,.18); }

.primary-nav { display: grid; gap: 6px; }
.nav-button {
  width: 100%; min-height: 48px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: #cdd1d7;
  background: transparent;
  text-align: left;
  transition: color var(--motion), background var(--motion), transform var(--motion);
}
.nav-button:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-button[aria-current="page"] { color: #fff; background: var(--red); }
.nav-button svg { width: 21px; height: 21px; flex: 0 0 auto; }

.sidebar-foot {
  margin-top: auto;
  padding: 15px 12px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user { min-width: 0; flex: 1; }
.sidebar-logout { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 8px; color: #929aa5; background: transparent; }
.sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-logout svg { width: 18px; height: 18px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; }
.sidebar-foot strong { display: block; font-size: 13px; }
.sidebar-foot span { color: #929aa5; font-size: 11px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  margin-left: var(--sidebar);
  height: 76px;
  padding: 0 clamp(20px, 4vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(245,243,238,.9);
  border-bottom: 1px solid rgba(200,195,186,.78);
  backdrop-filter: blur(14px);
}
.mobile-brand { display: none; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-2); background: rgba(255,255,255,.72);
}
.icon-button:hover { border-color: var(--line-dark); background: #fff; }
.icon-button svg { width: 20px; height: 20px; }

.main {
  margin-left: var(--sidebar);
  padding: 36px clamp(20px, 4vw, 52px) 72px;
}
.demo-notice {
  max-width: 1420px;
  min-height: 54px;
  margin: 0 auto 24px;
  padding: 11px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #754300;
  background: var(--amber-soft);
  border: 1px solid #edd1aa;
  border-left: 4px solid var(--amber);
  border-radius: 0 11px 11px 0;
}
.demo-notice svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.demo-notice strong, .demo-notice span { display: block; }
.demo-notice strong { font-size: 13px; }
.demo-notice span { margin-top: 1px; color: #755826; font-size: 12px; }
.page { max-width: 1420px; margin: 0 auto; animation: page-in 320ms ease-out both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow { margin: 0 0 8px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.14; letter-spacing: -.04em; }
.page-heading p { max-width: 680px; margin: 9px 0 0; color: var(--muted); }
.date-block { min-width: 120px; padding-left: 18px; border-left: 2px solid var(--red); }
.date-block strong { display: block; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.date-block span { color: var(--muted); font-size: 12px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); align-items: start; }
.overview-performance { margin-top: 34px; display: grid; gap: 18px; }
.overview-section-head { padding: 0 2px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.overview-section-head h2 { margin: 0; font-size: 25px; letter-spacing: -.02em; }
.overview-section-head p { max-width: 680px; margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.overview-section-head .eyebrow { margin-bottom: 5px; }
.overview-section-head .button { flex: 0 0 auto; }
.overview-drill-card { border-top: 3px solid var(--ink); }
.overview-drill-card .radar-wrap { grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr); }
.overview-drill-card .radar { max-width: 280px; }
.overview-kpi-grid .card { min-width: 0; }

.card {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head h2 { font-size: 20px; }
.card-head h3 { font-size: 17px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.card-head > svg { width: 22px; height: 22px; flex: 0 0 auto; }

.hero-card {
  overflow: hidden;
  min-height: 306px;
  padding: clamp(24px, 4vw, 44px);
  color: #fff;
  background: var(--ink);
  border: 0;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, transparent 0 55%, rgba(215,25,32,.9) 55% 67%, transparent 67%),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(255,255,255,.035) 64px);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 620px; z-index: 1; }
.mode-label { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: 12px; }
.mode-label svg { width: 18px; height: 18px; flex: 0 0 auto; }
.hero-card h2 { margin: 20px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.hero-card p { max-width: 550px; margin: 0; color: #c9cdd3; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0; color: #f5f5f5; font-size: 13px; }
.meta-item { display: flex; align-items: center; gap: 7px; }
.meta-item svg { width: 17px; height: 17px; color: #ff7277; }

.button {
  min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: background var(--motion), border-color var(--motion), color var(--motion), transform var(--motion), box-shadow var(--motion);
}
.button:active { transform: scale(.98); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 8px 20px rgba(215,25,32,.22); }
.button-primary:hover { background: var(--red-dark); }
.button-light { color: var(--ink); background: #fff; }
.button-light:hover { background: #f4f4f4; }
.button-outline { color: var(--ink); background: transparent; border-color: var(--line-dark); }
.button-outline:hover { background: var(--surface-2); }
.button-ghost { color: var(--muted); background: transparent; }
.button-ghost:hover { color: var(--ink); background: var(--surface-2); }
.button-danger-outline { color: var(--red-dark); border-color: #e9b7b9; background: #fff; }
.button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }

.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 20px 16px 2px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric strong { display: block; font-size: 25px; font-variant-numeric: tabular-nums; }
.metric span { color: var(--muted); font-size: 13px; }

.task-list, .history-list { display: grid; gap: 10px; }
.task-item, .history-item {
  display: flex; align-items: center; gap: 13px;
  min-height: 64px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
}
.task-check { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--red); background: var(--red-soft); }
.task-check svg { width: 17px; height: 17px; }
.task-copy { min-width: 0; flex: 1; }
.task-copy strong { display: block; font-size: 14px; }
.task-copy span { display: block; color: var(--muted); font-size: 13px; }
.task-time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.radar-wrap { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(170px, .82fr); align-items: center; gap: 18px; }
.radar { width: 100%; max-width: 300px; margin: auto; overflow: visible; }
.radar-grid { fill: none; stroke: #dedbd4; stroke-width: 1; }
.radar-axis { stroke: #e5e2dc; stroke-width: 1; }
.radar-shape { fill: rgba(215,25,32,.16); stroke: var(--red); stroke-width: 2.5; }
.radar-dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.radar text { fill: var(--ink-2); font-size: 11px; font-family: inherit; font-weight: 700; }
.legend-list { display: grid; gap: 12px; }
.legend-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.legend-row strong { font-variant-numeric: tabular-nums; }
.mini-bar { grid-column: 1 / -1; height: 5px; overflow: hidden; background: var(--surface-2); border-radius: 999px; }
.mini-bar span { display: block; height: 100%; background: var(--red); border-radius: inherit; }

.section-title { margin: 34px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title h2 { margin: 0; font-size: 21px; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  min-height: 42px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); background: rgba(255,255,255,.72); font-size: 13px;
}
.chip:hover { border-color: var(--line-dark); background: #fff; }
.chip[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }

.auto-context-card { padding: 22px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 18px; border-left: 4px solid var(--red); }
.auto-context-mark { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 14px 14px 3px 14px; }
.auto-context-mark svg { width: 24px; height: 24px; }
.auto-context-card h2 { margin: 9px 0 3px; font-size: 20px; }
.auto-context-card p { margin: 0; color: var(--muted); font-size: 13px; }
.auto-context-card > small { max-width: 220px; padding: 10px 12px; color: var(--amber); background: var(--amber-soft); border-radius: 9px; font-size: 11px; }

.industry-selector { padding: 20px 22px; display: grid; grid-template-columns: minmax(210px,.42fr) minmax(0,1fr); align-items: center; gap: 22px; border-top: 3px solid var(--red); }
.industry-selector h2 { margin: 5px 0 3px; font-size: 20px; }
.industry-selector p { margin: 0; color: var(--muted); font-size: 12px; }
.industry-buttons { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.industry-buttons button { min-height: 42px; padding: 8px 10px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 800; transition: transform var(--motion),background var(--motion),color var(--motion); }
.industry-buttons button:hover { transform: translateY(-1px); border-color: var(--line-dark); }
.industry-buttons button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: inset 3px 0 var(--red); }
.industry-context { margin-top: 12px; padding: 18px 22px; display: grid; grid-template-columns: 44px minmax(0,1fr) minmax(240px,.7fr); align-items: center; gap: 16px; background: linear-gradient(110deg,#fff 0 70%,var(--blue-soft) 70%); }
.industry-context-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 11px 11px 3px 11px; }
.industry-context-mark svg { width: 22px; height: 22px; }
.industry-context h2 { margin: 6px 0 2px; font-size: 17px; }
.industry-context p { margin: 0; color: var(--muted); font-size: 12px; }
.industry-context ol { margin: 0; padding-left: 22px; color: var(--ink-2); font-size: 12px; }
.industry-context li + li { margin-top: 6px; }
.standard-notice { margin: 14px 0 0; color: var(--amber); font-size: 11px; text-align: right; }

.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.scenario-card {
  min-height: 250px; padding: 20px;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); transition: transform var(--motion), box-shadow var(--motion), border-color var(--motion);
}
.scenario-card:hover { transform: translateY(-3px); border-color: #c2bdb4; box-shadow: var(--shadow); }
.scenario-card.max { color: #fff; background: var(--ink); border-color: var(--ink); }
.scenario-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px 10px 2px 10px; color: var(--red); background: var(--red-soft); font-size: 12px; font-weight: 900; }
.scenario-card.max .scenario-number { color: #fff; background: var(--red); }
.scenario-card-head { margin: 18px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scenario-card-head h3 { margin: 0; font-size: 19px; }
.scenario-card-head > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.scenario-card.max .scenario-card-head > span { color: #ff8f93; }
.scenario-checks { margin: 15px 0 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.scenario-checks li { display: flex; align-items: flex-start; gap: 7px; color: var(--ink-2); font-size: 12px; }
.scenario-checks svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--green); }
.scenario-card.max .scenario-checks li { color: #d5d8dd; }
.scenario-card.max .scenario-checks svg { color: #75d9aa; }
.scenario-card p { margin: 0; color: var(--muted); font-size: 13px; }
.scenario-card.max p { color: #bfc4cb; }
.scenario-footer { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.progress-label { color: var(--muted); font-size: 13px; }
.scenario-card.max .progress-label { color: #aeb4bd; }
.scenario-action { min-height: 44px; padding: 0 13px 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; border: 1px solid var(--red); border-radius: 9px; color: #fff; background: var(--red); font-size: 13px; font-weight: 800; transition: background var(--motion), border-color var(--motion), transform var(--motion), box-shadow var(--motion); }
.scenario-action:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 8px 18px rgba(215,25,32,.2); transform: translateY(-1px); }
.scenario-action:active { transform: translateY(0); }
.scenario-action svg { width: 17px; height: 17px; }
.scenario-card.max .scenario-action { color: var(--ink); background: #fff; border-color: #fff; }
.scenario-card.max .scenario-action:hover { background: #f1f1f1; border-color: #f1f1f1; box-shadow: 0 8px 20px rgba(0,0,0,.2); }

.exam-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 18px; }
.exam-hero { min-height: 400px; padding: clamp(26px, 5vw, 50px); color: #fff; background: var(--ink); border: 0; overflow: hidden; }
.exam-hero::after { content: "MAX"; position: absolute; right: -20px; bottom: -52px; color: rgba(255,255,255,.045); font-size: clamp(130px, 18vw, 260px); font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.exam-content { position: relative; z-index: 1; max-width: 660px; }
.exam-content h1 { margin: 24px 0 12px; font-size: clamp(34px, 6vw, 66px); line-height: 1; letter-spacing: -.05em; }
.exam-content p { color: #c8cdd4; }
.attempts-head { margin-top: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.attempts-head span { display: block; color: #aeb4bd; font-size: 12px; }
.attempts-head strong { display: block; margin-top: 2px; font-size: 17px; }
.attempts-head > small { color: #aeb4bd; font-size: 12px; }
.attempts { margin: 12px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; }
.attempt { min-height: 92px; padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.attempt-index { color: #8f97a2; font-size: 11px; font-weight: 800; }
.attempt strong { display: block; margin-top: 4px; font-size: 13px; }
.attempt small { display: block; margin-top: 2px; color: #aeb4bd; font-size: 12px; }
.attempt.used { opacity: .54; }
.attempt.current { border-color: #ff7479; background: rgba(215,25,32,.18); box-shadow: inset 3px 0 0 var(--red); }
.attempt.current .attempt-index, .attempt.current small { color: #ff9ca0; }
.attempt.pending { border-style: dashed; }
.exam-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.exam-actions .button-outline { color: #fff; border-color: #555c66; background: rgba(255,255,255,.03); }
.exam-actions .button-outline:hover { border-color: #777f8a; background: rgba(255,255,255,.09); }
.exam-actions .button small { padding: 2px 5px; color: #ffb0b3; background: rgba(215,25,32,.22); border-radius: 4px; font-size: 10px; letter-spacing: .08em; }
.rule-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.rule-list li { display: flex; gap: 12px; color: var(--ink-2); font-size: 14px; }
.rule-index { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: var(--red); background: var(--red-soft); border-radius: 7px; font-size: 11px; font-weight: 900; }

.tabs { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.resource-strip { margin: -6px 0 16px; padding: 11px 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 10px; font-size: 12px; }
.resource-strip strong { margin-right: 3px; }
.resource-strip a { padding: 7px 9px; display: inline-flex; align-items: center; gap: 5px; color: var(--red); background: var(--red-soft); border-radius: 7px; text-decoration: none; font-weight: 800; }
.resource-strip a:hover { background: #f7d9da; }
.resource-strip a svg { width: 14px; height: 14px; }
.resource-strip > span { margin-left: auto; color: var(--muted); }
.tab { min-height: 42px; padding: 0 18px; border: 0; border-radius: 9px; color: var(--ink-2); background: transparent; font-weight: 700; }
.tab[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 3px 10px rgba(30,25,20,.08); }
.card-head h2.advisor-side-title { font-size: 17px; }
.advisor-shell { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.chat-card { height: clamp(590px, calc(100vh - 220px), 680px); min-height: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { padding: 18px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.ai-mark { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 12px 12px 3px 12px; }
.ai-mark svg { width: 20px; height: 20px; }
.online { width: 8px; height: 8px; display: inline-block; margin-right: 5px; background: var(--green); border-radius: 50%; }
.chat-messages { min-height: 390px; max-height: 540px; padding: 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: #faf9f6; }
.chat-card .chat-messages { min-height: 0; max-height: none; flex: 1; }
.message { display: flex; gap: 10px; max-width: 84%; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 800; }
.message.user .message-avatar { background: var(--red); }
.bubble { padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; font-size: 14px; }
.message.user .bubble { color: #fff; background: var(--red); border-color: var(--red); border-radius: 14px 4px 14px 14px; }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul { margin: 8px 0 0; padding-left: 18px; }
.message-time { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.message.user .message-time { color: rgba(255,255,255,.76); }
.training-thinking .bubble { min-width: 150px; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.thinking-dots { display: inline-flex; align-items: center; gap: 3px; }
.thinking-dots i { width: 5px; height: 5px; display: block; background: var(--muted); border-radius: 50%; animation: thinking-pulse 1s ease-in-out infinite; }
.thinking-dots i:nth-child(2) { animation-delay: 120ms; }
.thinking-dots i:nth-child(3) { animation-delay: 240ms; }
@keyframes thinking-pulse { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }
.chat-form { padding: 14px; display: flex; gap: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-input { min-width: 0; min-height: 48px; flex: 1; padding: 0 15px; border: 1px solid var(--line-dark); border-radius: 10px; color: var(--ink); background: #fff; }
.chat-input::placeholder { color: #8c929b; }
.quick-list { display: grid; gap: 10px; }
.quick-question { width: 100%; min-height: 54px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-2); background: #fff; text-align: left; }
.quick-question:hover { border-color: var(--red); background: var(--red-soft); }
.quick-question svg { width: 17px; height: 17px; color: var(--red); flex: 0 0 auto; }

.competitor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.competitor-card { display: flex; flex-direction: column; }
.competitor-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.competitor-card h2 { margin: 3px 0 0; font-size: 21px; }
.competitor-card ol { margin: 20px 0 14px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.competitor-card ol li { min-height: 48px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.competitor-card ol span { color: var(--red); font-family: "Bahnschrift", sans-serif; font-size: 11px; font-weight: 800; }
.competitor-card ol strong { font-size: 14px; }
.competitor-card ol li.pending { color: var(--amber); border-bottom-style: dashed; }
.competitor-card ol li.pending span { color: var(--amber); }
.competitor-card > p { margin: 16px 0; color: var(--muted); font-size: 12px; }
.competitor-card > .button { margin-top: auto; align-self: flex-start; }

.search-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 10px; margin-bottom: 18px; }
.field { min-height: 48px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 10px; color: var(--ink); background: #fff; }
.case-list { display: grid; gap: 13px; }
.case-card { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.case-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.case-card h3 { margin: 0 0 6px; font-size: 17px; }
.case-card p { margin: 0; color: var(--muted); font-size: 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.tag { display: inline-flex; align-items: center; min-height: 29px; padding: 0 9px; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; font-size: 12px; font-weight: 700; }
.tag.red { color: var(--red-dark); background: var(--red-soft); }
.score { min-width: 54px; text-align: right; }
.score strong { display: block; color: var(--green); font-size: 18px; }
.score span { color: var(--muted); font-size: 11px; }

.profile-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
.profile-banner { padding: 26px; color: #fff; background: var(--ink); border: 0; display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 72px; height: 72px; display: grid; place-items: center; flex: 0 0 auto; color: var(--ink); background: #fff; border-radius: 18px 18px 4px 18px; font-size: 25px; font-weight: 900; }
.profile-banner h2 { margin: 0; font-size: 24px; }
.profile-banner p { margin: 4px 0 0; color: #bfc4cb; }
.kpi { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.kpi:last-child { border-bottom: 0; }
.kpi-label strong { display: block; }
.kpi-label span { color: var(--muted); font-size: 13px; }
.kpi-value { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dimension-buttons { display: grid; grid-template-columns: repeat(auto-fit,minmax(112px,1fr)); gap: 6px; margin-top: 12px; }
.dimension-buttons button { min-width: 0; padding: 9px 6px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; }
.dimension-buttons button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.dimension-buttons button strong { display: block; margin-top: 2px; color: var(--ink); font-size: 17px; }
.dimension-buttons button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.dimension-buttons button[aria-pressed="true"] strong { color: #fff; }
.dimension-detail { position: relative; overflow: hidden; background: linear-gradient(145deg,#fff 0 68%,var(--red-soft) 68%); }
.dimension-score { color: var(--red); font-family: "Bahnschrift Condensed","Microsoft YaHei",sans-serif; font-size: 62px; font-weight: 800; line-height: 1; }
.detail-metrics { display: grid; grid-template-columns: repeat(3,1fr); margin: 28px 0 20px; border-block: 1px solid var(--line); }
.detail-metrics div { padding: 17px 12px; }
.detail-metrics div + div { border-left: 1px solid var(--line); }
.detail-metrics small { display: block; color: var(--muted); }
.detail-metrics strong { display: block; margin-top: 4px; font-size: 20px; }
.score-distribution { height: 9px; overflow: hidden; background: var(--surface-2); border-radius: 999px; }
.score-distribution span { width: var(--score); height: 100%; display: block; background: var(--red); border-radius: inherit; }
.dimension-detail > p { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.score-history { margin-top: 14px; }
.score-history > strong { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 12px; }
.score-history > div { display: flex; flex-wrap: wrap; gap: 6px; }
.score-history span { min-width: 34px; padding: 6px 8px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; text-align: center; font-size: 12px; font-weight: 900; }
.score-history small { color: var(--muted); }
.session-history-list { display: grid; gap: 8px; }
.session-history-list button { width: 100%; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: 10px; text-align: left; }
.session-history-list button:hover { background: #fff; border-color: var(--line-dark); }
.session-history-list strong,.session-history-list small { display: block; }
.session-history-list small { margin-top: 3px; color: var(--muted); }
.session-history-list em { display: flex; align-items: center; gap: 5px; color: var(--red); font-style: normal; font-weight: 900; white-space: nowrap; }
.session-history-list svg { width: 15px; height: 15px; }
.review-replay { width: 100%; min-width: 0; }
.replay-messages { max-height: 50vh; min-width: 0; margin-top: 18px; padding: 12px; overflow-x: hidden; overflow-y: auto; display: grid; gap: 9px; background: var(--surface-2); border-radius: 12px; }
.replay-row { min-width: 0; max-width: 82%; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; }
.replay-row.user { margin-left: auto; background: var(--red-soft); border-color: #f3c9cb; border-radius: 12px 4px 12px 12px; }
.replay-row small { color: var(--muted); overflow-wrap: anywhere; }
.replay-row p { margin: 4px 0 0; overflow-wrap: anywhere; }
.distribution-bars { display: grid; gap: 12px; }
.distribution-bars > div { display: grid; grid-template-columns: 80px minmax(0,1fr) 42px; align-items: center; gap: 10px; font-size: 12px; }
.distribution-bars i { height: 8px; overflow: hidden; background: var(--surface-2); border-radius: 999px; }
.distribution-bars b { height: 100%; display: block; background: var(--red); border-radius: inherit; }
.distribution-bars strong { text-align: right; }
.privacy-note { margin: 18px 0 0; padding-top: 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-pill.success { color: var(--green); background: var(--green-soft); }
.status-pill.warning { color: var(--amber); background: var(--amber-soft); }
.status-pill.info { color: var(--blue); background: var(--blue-soft); }
.status-pill.demo { color: #7b3d00; background: #fff0d8; border: 1px solid #efd0a4; }

/* Management demo dashboard — industrial command center */
.management-command-bar { padding: 22px; display: grid; grid-template-columns: minmax(230px,.72fr) minmax(600px,1.5fr); align-items: end; gap: 28px; color: #fff; background: var(--ink); border-radius: 16px; box-shadow: var(--shadow); }
.management-command-copy h2 { margin: 4px 0 3px; font-family: "Bahnschrift Condensed","Microsoft YaHei",sans-serif; font-size: 28px; letter-spacing: -.02em; }
.management-command-copy p { max-width: 480px; margin: 0; color: #b8bec7; font-size: 12px; }
.management-command-copy .eyebrow { color: #ff777b; }
.management-filters { min-width: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; border: 0; }
.management-filters label { min-width: 0; }
.management-filters label > span { display: block; margin-bottom: 6px; color: #b8bec7; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.management-filters select, .management-filters input { width: 100%; min-height: 46px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid #4e545d; border-radius: 9px; font-size: 12px; font-weight: 800; }
.management-filters select { padding-right: 34px; }
.management-dashboard-content { margin-top: 16px; display: grid; gap: 16px; }
.management-overview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.management-metric { min-width: 0; min-height: 126px; padding: 17px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: start; gap: 12px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 13px; box-shadow: var(--shadow-soft); }
.management-metric.ink { border-top-color: var(--ink); }
.management-metric.blue { border-top-color: var(--blue); }
.management-metric.amber { border-top-color: var(--amber); }
.management-metric.green { border-top-color: var(--green); }
.management-metric-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 10px 10px 3px 10px; }
.management-metric.ink .management-metric-icon { color: var(--ink); background: var(--surface-2); }
.management-metric.blue .management-metric-icon { color: var(--blue); background: var(--blue-soft); }
.management-metric.amber .management-metric-icon { color: var(--amber); background: var(--amber-soft); }
.management-metric.green .management-metric-icon { color: var(--green); background: var(--green-soft); }
.management-metric-icon svg { width: 19px; height: 19px; }
.management-metric span,.management-metric small { display: block; }
.management-metric span { color: var(--muted); font-size: 11px; font-weight: 750; }
.management-metric strong { display: block; margin: 2px 0 1px; font-family: "Bahnschrift Condensed","Microsoft YaHei",sans-serif; font-size: 31px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.management-metric small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.management-insight { padding: 20px 22px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 16px; color: #fff; background: linear-gradient(105deg,#292e35,#171a1f); border-left: 4px solid var(--red); border-radius: 4px 14px 14px 4px; }
.management-insight-mark { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 13px 13px 4px 13px; }
.management-insight-mark svg { width: 23px; height: 23px; }
.management-insight span { color: #ff8a8e; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.management-insight strong { display: block; margin-top: 2px; font-size: 17px; }
.management-insight p { margin: 4px 0 0; color: #c4c9d0; font-size: 12px; }
.management-demo-actions { display: flex; gap: 8px; }
.management-demo-actions .button-outline { color: #fff; border-color: #555c66; }
.management-demo-actions .button-outline:hover { background: rgba(255,255,255,.08); }
.management-chart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.management-chart-card { min-width: 0; }
.management-chart-card .radar-wrap { margin-top: 4px; }
.chart-summary { margin: 10px 0 0; padding: 11px 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; font-size: 11px; }
.management-ranking { padding: 0; overflow: hidden; }
.management-ranking-head { padding: 22px 22px 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.management-ranking-head h2 { margin: 2px 0; font-size: 24px; }
.management-ranking-head p { margin: 0; color: var(--muted); font-size: 11px; }
.ranking-legend { display: flex; flex-wrap: wrap; gap: 7px; }
.ranking-legend span,.management-status { display: inline-flex; min-height: 28px; padding: 0 9px; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.ranking-legend .excellent,.management-status.excellent { color: var(--green); background: var(--green-soft); }
.ranking-legend .attention,.management-status.attention { color: var(--amber); background: var(--amber-soft); }
.ranking-legend .missing,.management-status.missing { color: var(--red-dark); background: var(--red-soft); }
.management-status.stable { color: var(--blue); background: var(--blue-soft); }
.management-table-wrap { width: 100%; }
.management-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.management-table th,.management-table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.management-table th { color: var(--muted); background: #faf9f6; font-size: 10px; letter-spacing: .04em; }
.management-table th:first-child { width: 29%; }
.management-table th:last-child { width: 15%; }
.management-table th button { min-height: 44px; margin: -10px -9px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; color: inherit; background: transparent; border: 0; font-size: inherit; font-weight: 850; }
.management-table th button:hover { color: var(--ink); }
.management-table th button span { color: var(--red); font-size: 12px; }
.management-table tbody tr:hover { background: #fffafa; }
.management-table td > strong,.management-table td > small { display: block; font-variant-numeric: tabular-nums; }
.management-table td > strong { font-size: 14px; }
.management-table td > small { color: var(--muted); font-size: 9px; }
.person-cell { display: flex; align-items: center; gap: 10px; }
.person-cell > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--ink); border-radius: 9px 9px 3px 9px; font-family: "Bahnschrift",sans-serif; font-size: 10px; font-weight: 900; }
.person-cell strong,.person-cell small { display: block; }
.person-cell strong { font-size: 13px; }
.person-cell small { color: var(--muted); font-size: 9px; }
.ability-score { color: var(--red-dark); font-size: 18px !important; }
.management-data-note { margin: 0; padding: 12px 22px; color: var(--muted); background: #faf9f6; font-size: 10px; }

/* Admin import demo — precise, auditable data intake */
.admin-import-content { margin-top: 16px; display: grid; gap: 16px; }
.admin-import-command { padding: 22px; display: grid; grid-template-columns: 54px minmax(240px,1fr) auto; align-items: center; gap: 15px 18px; color: #fff; background: linear-gradient(112deg,#171a1f 0%,#252a31 72%,#32191b 100%); border-radius: 16px; box-shadow: var(--shadow); }
.admin-import-file-mark { width: 54px; height: 54px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 14px 14px 4px 14px; }
.admin-import-file-mark svg { width: 25px; height: 25px; }
.admin-import-file-copy { min-width: 0; }
.admin-import-file-copy .eyebrow { color: #ff8a8e; }
.admin-import-file-copy h2 { margin: 3px 0; overflow: hidden; font-family: "Bahnschrift Condensed","Microsoft YaHei",sans-serif; font-size: 26px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.admin-import-file-copy p { margin: 0; color: #b8bec7; font-size: 11px; }
.admin-import-file-actions { display: flex; gap: 8px; }
.admin-import-file-actions .button-outline { color: #fff; border-color: #5c626b; background: rgba(255,255,255,.02); }
.admin-import-file-actions .button-outline:hover { background: rgba(255,255,255,.08); }
.admin-import-picker { position: relative; overflow: hidden; cursor: pointer; }
.admin-import-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-import-picker:focus-within { outline: 3px solid rgba(215,25,32,.2); outline-offset: 2px; }
.admin-import-privacy { grid-column: 2 / -1; margin: -3px 0 0; padding-top: 12px; display: flex; align-items: center; gap: 8px; color: #c8cdd4; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; }
.admin-import-privacy svg { width: 16px; height: 16px; flex: 0 0 auto; color: #72dca7; }
.admin-import-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-soft); }
.admin-import-steps li { position: relative; min-height: 82px; padding: 16px; display: flex; align-items: center; gap: 11px; }
.admin-import-steps li + li { border-left: 1px solid var(--line); }
.admin-import-steps li > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-dark); border-radius: 50%; font-size: 12px; font-weight: 900; }
.admin-import-steps li > span svg { width: 16px; height: 16px; }
.admin-import-steps small,.admin-import-steps strong { display: block; }
.admin-import-steps small { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.admin-import-steps strong { margin-top: 2px; font-size: 13px; }
.admin-import-steps .done > span { color: #fff; background: var(--green); border-color: var(--green); }
.admin-import-steps .active { background: linear-gradient(180deg,#fff,#fff8f8); box-shadow: inset 0 -3px var(--red); }
.admin-import-steps .active > span { color: #fff; background: var(--red); border-color: var(--red); }
.admin-import-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.admin-import-metrics article { min-height: 112px; padding: 17px 18px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-soft); }
.admin-import-metrics article.valid { border-top-color: var(--green); }
.admin-import-metrics article.error { border-top-color: var(--red); }
.admin-import-metrics article.field { border-top-color: var(--blue); }
.admin-import-metrics span,.admin-import-metrics small { display: block; color: var(--muted); }
.admin-import-metrics span { font-size: 10px; font-weight: 800; }
.admin-import-metrics strong { display: block; margin: 3px 0 1px; font-family: "Bahnschrift Condensed","Microsoft YaHei",sans-serif; font-size: 31px; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-import-metrics article.valid strong { color: var(--green); }
.admin-import-metrics article.error strong { color: var(--red-dark); }
.admin-import-metrics article.field strong { color: var(--blue); }
.admin-import-metrics small { font-size: 10px; }
.admin-import-preview { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
.admin-import-preview-head { padding: 21px 22px 17px; display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.admin-import-preview-head h2 { margin: 2px 0; font-size: 23px; }
.admin-import-preview-head p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-import-filters { padding: 3px; display: flex; gap: 3px; background: var(--surface-2); border-radius: 9px; }
.admin-import-filters button { min-height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 7px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: 11px; font-weight: 850; }
.admin-import-filters button span { min-width: 20px; padding: 2px 5px; color: inherit; background: rgba(0,0,0,.06); border-radius: 999px; font-size: 9px; }
.admin-import-filters button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(21,24,29,.08); }
.admin-import-table-wrap { width: 100%; overflow-x: auto; }
.admin-import-table { width: 100%; min-width: 850px; border-collapse: collapse; table-layout: fixed; }
.admin-import-table th,.admin-import-table td { padding: 12px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin-import-table th { color: var(--muted); background: #faf9f6; font-size: 9px; letter-spacing: .05em; }
.admin-import-table th:first-child { width: 7%; }
.admin-import-table th:nth-child(2) { width: 19%; }
.admin-import-table th:nth-child(3) { width: 9%; }
.admin-import-table th:nth-child(4) { width: 18%; }
.admin-import-table th:nth-child(5) { width: 15%; }
.admin-import-table tr.error { background: #fffafa; }
.admin-import-table td > strong,.admin-import-table td > small { display: block; }
.admin-import-table td > strong { font-size: 12px; }
.admin-import-table td > small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.admin-import-person { display: flex; align-items: center; gap: 9px; }
.admin-import-person > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--ink); border-radius: 9px 9px 3px 9px; font-size: 10px; font-weight: 900; }
.admin-import-person strong,.admin-import-person small { display: block; }
.admin-import-person strong { font-size: 12px; }
.admin-import-person small { color: var(--muted); font-size: 9px; }
.admin-import-status { min-height: 26px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.admin-import-status.valid { color: var(--green); background: var(--green-soft); }
.admin-import-status.error { color: var(--red-dark); background: var(--red-soft); }
.admin-import-errors { margin: 6px 0 0; padding-left: 16px; color: var(--red-dark); font-size: 9px; }
.admin-import-errors li + li { margin-top: 3px; }
.admin-import-pass-note { margin-top: 5px !important; }
.admin-import-empty { padding: 36px 20px !important; color: var(--muted); text-align: center !important; }
.admin-import-footer { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--amber-soft); border-top: 1px solid #edd5aa; }
.admin-import-footer.confirmed { background: var(--green-soft); border-top-color: #bfe4ce; }
.admin-import-footer > div:first-child { min-width: 0; display: flex; align-items: center; gap: 10px; }
.admin-import-footer > div:first-child > svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--amber); }
.admin-import-footer.confirmed > div:first-child > svg { color: var(--green); }
.admin-import-footer p { margin: 0; }
.admin-import-footer strong,.admin-import-footer span { display: block; }
.admin-import-footer strong { font-size: 12px; }
.admin-import-footer span { color: var(--muted); font-size: 10px; }
.admin-import-footer-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.admin-import-modal-summary { margin-top: 18px; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.admin-import-modal-summary span { padding: 12px; color: var(--muted); background: var(--surface-2); border-radius: 9px; font-size: 11px; }
.admin-import-modal-summary strong { display: block; margin-top: 2px; color: var(--ink); font-size: 22px; }

/* Account console — compact industrial access ledger */
.account-console { margin-top: 16px; display: grid; gap: 14px; }
.account-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.account-summary article { min-height: 108px; padding: 17px 18px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-soft); }
.account-summary article.pending { border-top-color: var(--amber); }
.account-summary article.active { border-top-color: var(--green); }
.account-summary article.disabled { border-top-color: var(--red); }
.account-summary span,.account-summary small { display: block; color: var(--muted); }
.account-summary span { font-size: 10px; font-weight: 850; }
.account-summary strong { display: block; margin: 3px 0 1px; font-family: "Bahnschrift Condensed","Microsoft YaHei",sans-serif; font-size: 31px; line-height: 1; }
.account-summary small { font-size: 9px; }
.account-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
.account-panel > header { padding: 20px 22px 17px; display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.account-panel > header h2 { margin: 2px 0; font-size: 23px; }
.account-panel > header p { margin: 0; color: var(--muted); font-size: 11px; }
.account-panel > header .button { flex: 0 0 auto; }
.account-table-wrap { width: 100%; overflow-x: auto; }
.account-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; }
.account-table th,.account-table td { padding: 13px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.account-table th { color: var(--muted); background: #faf9f6; font-size: 9px; letter-spacing: .05em; }
.account-table th:first-child { width: 23%; }
.account-table th:nth-child(2) { width: 19%; }
.account-table th:nth-child(3) { width: 17%; }
.account-table th:nth-child(4) { width: 13%; }
.account-table th:last-child { width: 28%; }
.account-table td > strong,.account-table td > small { display: block; }
.account-table td > strong { font-size: 11px; }
.account-table td > small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.account-person { display: flex; align-items: center; gap: 10px; }
.account-person > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--ink); border-radius: 10px 10px 3px 10px; font-size: 11px; font-weight: 900; }
.account-person strong,.account-person small { display: block; }
.account-person strong { font-size: 12px; }
.account-person small { color: var(--muted); font-family: "Bahnschrift", sans-serif; font-size: 9px; letter-spacing: .03em; }
.account-status { min-height: 27px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 9px; font-weight: 900; }
.account-status.pending { color: var(--amber); background: var(--amber-soft); }
.account-status.active { color: var(--green); background: var(--green-soft); }
.account-status.disabled { color: var(--red-dark); background: var(--red-soft); }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
.account-actions .button { min-height: 36px; padding: 0 11px; font-size: 10px; }
.account-actions .text-button { font-size: 10px; font-weight: 800; }
.account-actions .text-button.danger { color: var(--red-dark); }
.account-actions .text-button.restore { color: var(--green); }
.account-actions .text-button:disabled { color: #aaa; cursor: not-allowed; }
.account-load-state { padding: 30px !important; color: var(--muted); text-align: center !important; }
.account-load-state.error { display: flex; align-items: center; gap: 8px; color: var(--red-dark); background: var(--red-soft); border-bottom: 1px solid #f1c7c9; text-align: left !important; }
.account-load-state svg { width: 18px; height: 18px; }
.button-danger { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.button-danger:hover { background: #7f0b10; }

@media (max-width: 860px) {
  .account-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-panel > header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767px) {
  .credential-form { grid-template-columns: 1fr; }
  .credential-form label { grid-column: 1 !important; }
  .account-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-summary article { min-height: 100px; padding: 14px; }
  .account-panel { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .account-panel > header { padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
  .account-panel > header .button { width: 100%; min-height: 46px; }
  .account-table-wrap { overflow: visible; }
  .account-table,.account-table tbody,.account-table tr,.account-table td { display: block; min-width: 0; }
  .account-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
  .account-table tbody { margin-top: 10px; display: grid; gap: 10px; }
  .account-table tbody tr { padding: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 11px; box-shadow: var(--shadow-soft); }
  .account-table td { padding: 0; border: 0; }
  .account-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 850; }
  .account-table td:first-child,.account-table td:last-child { grid-column: 1 / -1; }
  .account-table td:first-child { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .account-table td:first-child::before { display: none; }
  .account-actions { display: grid; grid-template-columns: 1fr auto; }
  .account-actions .button { min-height: 44px; }
}

/* Three-portal demo scope pages */
.scope-hero-card {
  position: relative;
  min-height: 250px;
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(330px,.62fr);
  align-items: end;
  gap: 36px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.scope-hero-card::after { content: "DEMO"; position: absolute; right: -22px; top: -28px; color: rgba(255,255,255,.04); font-size: clamp(100px, 14vw, 190px); font-weight: 900; letter-spacing: -.07em; line-height: 1; pointer-events: none; }
.scope-hero-card > * { position: relative; z-index: 1; }
.scope-hero-card h2 { max-width: 720px; margin: 19px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.04em; }
.scope-hero-card p { max-width: 700px; margin: 0; color: #c7ccd3; }
.scope-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.06); }
.scope-facts div { min-width: 0; padding: 17px 14px; }
.scope-facts div + div { border-left: 1px solid rgba(255,255,255,.12); }
.scope-facts small, .scope-facts strong { display: block; }
.scope-facts small { color: #aeb4bd; font-size: 10px; }
.scope-facts strong { margin-top: 4px; font-size: 14px; }
.scope-section-head { margin: 34px 0 16px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.scope-section-head h2 { margin: 0; font-size: 24px; }
.scope-section-head p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.scope-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.scope-feature-card { min-height: 190px; padding: 20px; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-soft); }
.scope-feature-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 11px 11px 3px 11px; }
.scope-feature-icon svg { width: 22px; height: 22px; }
.scope-feature-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scope-feature-copy h3 { margin: 0; font-size: 17px; }
.scope-feature-copy p { margin: 8px 0 4px; color: var(--ink-2); font-size: 13px; }
.scope-feature-copy small { display: block; color: var(--muted); font-size: 11px; }
.scope-entry { grid-column: 2; min-height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7b8088; background: var(--surface-2); border: 1px dashed var(--line-dark); border-radius: 9px; font-size: 12px; font-weight: 800; cursor: not-allowed; }
.scope-entry svg { width: 17px; height: 17px; }
.scope-boundary-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.scope-boundary-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.scope-boundary-card.ready { border-top: 3px solid var(--green); }
.scope-boundary-card.pending { border-top: 3px solid var(--amber); }
.scope-boundary-title { display: flex; align-items: center; gap: 12px; }
.scope-boundary-title > svg { width: 25px; height: 25px; flex: 0 0 auto; }
.scope-boundary-card.ready .scope-boundary-title > svg { color: var(--green); }
.scope-boundary-card.pending .scope-boundary-title > svg { color: var(--amber); }
.scope-boundary-title span, .scope-boundary-title strong { display: block; }
.scope-boundary-title span { color: var(--muted); font-size: 11px; }
.scope-boundary-title strong { font-size: 16px; }
.scope-boundary-card ul { margin: 17px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 13px; }
.scope-boundary-card li + li { margin-top: 7px; }

.training-overlay { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: 72px minmax(0, 1fr); background: var(--paper); animation: overlay-in 240ms ease-out both; }
@keyframes overlay-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.training-top { height: 72px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; background: var(--ink); }
.training-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.training-title strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.training-title span { display: block; color: #b9bec6; font-size: 12px; }
.training-timer { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.training-body { min-height: 0; display: grid; grid-template-columns: 310px minmax(0, 1fr) 300px; }
.training-panel { min-height: 0; padding: 22px; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); }
.training-panel.right { border-right: 0; border-left: 1px solid var(--line); background: #faf9f6; }
.training-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.training-panel h2 { margin: 0 0 4px; font-size: 18px; }
.panel-close { display: none; width: 40px; height: 40px; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); background: #fff; }
.panel-close svg { width: 18px; height: 18px; }
.training-panel > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.brief-item { padding: 14px 0; border-top: 1px solid var(--line); }
.brief-item small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.brief-item strong { display: block; font-size: 14px; }
.fact-card-banner { margin: 0 0 18px; padding: 16px; color: #fff; background: linear-gradient(145deg,#171b21,#2a3038); border: 1px solid rgba(255,255,255,.12); border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; box-shadow: 0 12px 28px rgba(19,23,28,.14); }
.fact-card-banner > span { display: flex; align-items: center; gap: 7px; color: #ff9296; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.fact-card-banner > span svg { width: 15px; height: 15px; }
.fact-card-banner strong { display: block; margin-top: 8px; font-size: 15px; }
.fact-card-banner p { margin: 7px 0 10px; color: #d7dbe0; font-size: 11px; line-height: 1.55; }
.fact-card-banner small { display: block; padding-top: 9px; color: #aab1ba; border-top: 1px solid rgba(255,255,255,.1); font-size: 9px; overflow-wrap: anywhere; }
.goal-list { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.training-chat { min-height: 0; display: flex; flex-direction: column; background: var(--paper); }
.training-chat .chat-messages { flex: 1; max-height: none; min-height: 0; }
.robot-video-stage { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; padding: 1px; color: #f7f5ef; background: #343941; border-bottom: 1px solid #343941; overflow: hidden; }
.video-tile { position: relative; min-height: 178px; overflow: hidden; background: #15191f; }
.video-tile video { width: 100%; height: 100%; min-height: 178px; display: block; object-fit: cover; transform: scaleX(-1); background: #11151a; }
.video-tile footer { position: absolute; z-index: 4; inset: auto 0 0; min-height: 38px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: linear-gradient(transparent,rgba(5,7,10,.9)); font-size: 12px; }
.video-tile footer span { font-weight: 800; }
.video-tile footer strong { color: #c9cdd2; font-size: 11px; font-weight: 600; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 22px; color: #aeb4bc; text-align: center; font-size: 13px; background: radial-gradient(circle at 50% 36%,#29313a 0,#181d23 56%,#12161b 100%); }
.video-placeholder.is-hidden { display: none; }
.video-placeholder svg { width: 30px; height: 30px; color: #ece8df; }
.robot-room { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%,rgba(191,31,37,.24),transparent 34%),linear-gradient(140deg,#252b32,#101419 72%); }
.robot-room::before { content: ''; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px); background-size: 28px 28px; transform: perspective(360px) rotateX(60deg) scale(1.35); transform-origin: bottom; }
.robot-head { position: relative; z-index: 2; width: 104px; height: 78px; margin-top: -18px; border: 2px solid #d9dde2; border-radius: 36px 36px 28px 28px; background: linear-gradient(145deg,#f3f5f6,#9ca5ae); box-shadow: 0 18px 42px rgba(0,0,0,.38),inset 0 0 0 7px #20262d; }
.robot-ear { position: absolute; top: 24px; width: 12px; height: 30px; border: 2px solid #aeb6be; background: #343c45; }
.robot-ear.left { left: -13px; border-radius: 8px 0 0 8px; }
.robot-ear.right { right: -13px; border-radius: 0 8px 8px 0; }
.robot-eye { position: absolute; top: 24px; width: 12px; height: 8px; border-radius: 50%; background: #bc1f25; box-shadow: 0 0 11px rgba(255,65,72,.86); }
.robot-eye.left { left: 27px; }
.robot-eye.right { right: 27px; }
.robot-mouth { position: absolute; left: 50%; bottom: 16px; width: 34px; height: 4px; border-radius: 4px; background: #323a42; transform: translateX(-50%); }
.robot-body { position: absolute; z-index: 1; top: calc(50% + 42px); width: 132px; height: 86px; border: 2px solid #89939d; border-radius: 52% 52% 12px 12px; background: linear-gradient(145deg,#aeb6be,#49525c); }
.robot-body i { position: absolute; left: 50%; top: 20px; width: 22px; height: 22px; border: 2px solid #e6e9eb; border-radius: 50%; background: #9c171c; transform: translateX(-50%); box-shadow: 0 0 16px rgba(210,32,40,.68); }
.robot-signal { position: absolute; z-index: 3; top: 14px; right: 14px; height: 20px; display: flex; align-items: flex-end; gap: 3px; }
.robot-signal i { width: 3px; height: 6px; border-radius: 3px; background: #e4e7ea; opacity: .5; }
.robot-status { position: absolute; z-index: 4; left: 12px; top: 12px; min-height: 28px; padding: 6px 10px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(9,12,16,.76); backdrop-filter: blur(10px); font-size: 11px; }
.robot-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8c949d; }
.robot-video-stage[data-state="listening"] .robot-status-dot { background: #59c68c; box-shadow: 0 0 0 5px rgba(89,198,140,.14); }
.robot-video-stage[data-state="thinking"] .robot-status-dot { background: #e2b649; box-shadow: 0 0 0 5px rgba(226,182,73,.14); }
.robot-video-stage[data-state="speaking"] .robot-status-dot { background: #ed3840; box-shadow: 0 0 0 5px rgba(237,56,64,.16); }
.robot-video-stage[data-state="error"] .robot-status-dot { background: #ed3840; }
.robot-video-stage[data-state="speaking"] .robot-mouth { animation: robot-talk .34s ease-in-out infinite alternate; background: #7e1217; }
.robot-video-stage[data-state="speaking"] .robot-eye { animation: robot-glow .9s ease-in-out infinite alternate; }
.robot-video-stage[data-state="thinking"] .robot-head { animation: robot-think 1.1s ease-in-out infinite alternate; }
.robot-video-stage[data-state="speaking"] .robot-signal i { animation: robot-signal .52s ease-in-out infinite alternate; opacity: 1; background: #ed3840; }
.robot-video-stage[data-state="speaking"] .robot-signal i:nth-child(2) { animation-delay: .12s; }
.robot-video-stage[data-state="speaking"] .robot-signal i:nth-child(3) { animation-delay: .24s; }
.robot-audio-level { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; background: rgba(255,255,255,.08); }
.robot-audio-level i { display: block; width: 100%; height: 100%; background: #d5232a; transform: scaleX(.04); transform-origin: left; transition: transform 80ms linear; }
.robot-enable-button.is-active { color: #146b46; border-color: #9ed5ba; background: #edf8f2; }
.robot-talk-button:not(:disabled):not(.is-paused):not(.is-recording) { border-color: #237a55; background: #176b4b; box-shadow: 0 0 0 3px rgba(35,122,85,.12); }
.robot-talk-button.is-recording { background: #9f171d; animation: robot-record 1s ease-in-out infinite; }
.robot-talk-button.is-paused { color: var(--ink-2); border-color: var(--line-dark); background: #f1f0ec; box-shadow: none; }
@keyframes robot-talk { from { height: 4px; width: 30px; } to { height: 13px; width: 24px; border-radius: 45%; } }
@keyframes robot-glow { to { box-shadow: 0 0 20px rgba(255,65,72,1); } }
@keyframes robot-think { to { transform: translateY(-4px) rotate(1.5deg); } }
@keyframes robot-signal { to { height: 18px; } }
@keyframes robot-record { 50% { box-shadow: 0 0 0 5px rgba(188,31,37,.16); } }
.coach-tip { padding: 16px; border-left: 3px solid var(--amber); background: var(--amber-soft); border-radius: 0 10px 10px 0; }
.coach-tip strong { display: flex; align-items: center; gap: 7px; color: #7e4700; }
.coach-tip svg { width: 18px; height: 18px; flex: 0 0 auto; }
.coach-tip p { margin: 7px 0 0; color: #704a1b; font-size: 13px; }
.step-list { display: grid; gap: 12px; margin-top: 18px; }
.case-progress { margin-top: 12px; display: grid; gap: 7px; }
.case-progress-summary { padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; background: var(--ink); border-radius: 10px; }
.case-progress-summary strong { color: #ff8589; font-family: "Bahnschrift Condensed","Microsoft YaHei",sans-serif; font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.case-progress-summary span { color: #c8cdd3; font-size: 9px; text-align: right; }
.case-progress-item { min-height: 52px; padding: 10px 11px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-left: 3px solid #c7cbd0; border-radius: 8px; }
.case-progress-item > span { width: 26px; height: 26px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); border-radius: 50%; }
.case-progress-item > span svg { width: 14px; height: 14px; }
.case-progress-item strong,.case-progress-item small { display: block; }
.case-progress-item strong { font-size: 11px; }
.case-progress-item small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.case-progress-item em { color: var(--muted); font-size: 9px; font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-progress-item.completed { border-left-color: var(--green); background: #f8fdf9; }
.case-progress-item.completed > span { color: #fff; background: var(--green); }
.case-progress-item.next { border-left-color: var(--red); background: #fff8f8; box-shadow: 0 5px 16px rgba(215,25,32,.08); }
.case-progress-item.next > span { color: #fff; background: var(--red); }
.case-next-action { padding: 12px 13px; background: var(--amber-soft); border: 1px solid #edd5aa; border-radius: 9px; }
.case-next-action small,.case-next-action strong { display: block; }
.case-next-action small { color: #8b5b13; font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.case-next-action strong { margin-top: 3px; color: #65410f; font-size: 11px; line-height: 1.5; }
.step { display: flex; gap: 10px; color: var(--muted); font-size: 13px; }
.step-dot { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-dark); border-radius: 50%; font-size: 11px; }
.step.active { color: var(--ink); font-weight: 700; }
.step.active .step-dot { color: #fff; background: var(--red); border-color: var(--red); }
.step.completed { color: var(--green); }
.step.completed .step-dot { color: #fff; background: var(--green); border-color: var(--green); }
.step.completed .step-dot svg { width: 14px; height: 14px; }
.flow-complete { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 12px; color: var(--green); background: color-mix(in srgb, var(--green) 8%, white); border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)); border-radius: 10px; }
.flow-complete > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.flow-complete div { display: grid; gap: 3px; }
.flow-complete strong { color: var(--ink); font-size: 13px; }
.flow-complete span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.flow-caption { margin-top: 22px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.checkpoint-list { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.checkpoint-empty { margin: 0; color: var(--muted); font-size: 11px; }
.checkpoint { padding: 8px 0; display: grid; grid-template-columns: 42px 1fr; gap: 8px; border-bottom: 1px solid var(--line); }
.checkpoint span { color: var(--red); font-size: 10px; font-variant-numeric: tabular-nums; }
.checkpoint strong { font-size: 11px; }
.training-mobile-tools, .training-panel-backdrop { display: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(12,14,17,.58); backdrop-filter: blur(5px); }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; background: #fff; border-radius: 18px; box-shadow: 0 28px 80px rgba(0,0,0,.3); animation: modal-in 220ms ease-out both; }
.modal:has(.review-replay) { width: min(780px, 100%); overflow-x: hidden; }
@keyframes modal-in { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; color: var(--red); background: var(--red-soft); border-radius: 14px; }
.modal-icon svg { width: 24px; height: 24px; }
.modal h2 { margin: 0 0 8px; font-size: 23px; }
.modal > p { margin: 0; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.result-score { margin: 22px 0; display: flex; align-items: baseline; gap: 8px; }
.result-score strong { color: var(--red); font-size: 58px; line-height: 1; font-variant-numeric: tabular-nums; }
.result-score span { color: var(--muted); }
.modal:has(.result-modal) { width: min(900px,100%); }
.result-hero { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; align-items: center; gap: 16px; }
.result-hero .modal-icon { margin: 0; }
.result-hero h2 { margin-top: 7px; }
.result-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.result-hero .result-score { margin: 0; }
.result-review { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.result-review section { padding: 18px; background: #faf9f6; border: 1px solid var(--line); border-radius: 14px; }
.result-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.result-section-head h3 { margin: 0; font-size: 16px; }
.result-section-head span { color: var(--muted); font-size: 10px; }
.audit-list { display: grid; gap: 8px; }
.audit-item { min-height: 48px; padding: 8px; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 8px; background: #fff; border-radius: 9px; }
.audit-item > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; }
.audit-item > span svg { width: 15px; height: 15px; }
.audit-item.pass > span { color: var(--green); background: var(--green-soft); }
.audit-item.gap > span { color: var(--amber); background: var(--amber-soft); }
.audit-item strong,.audit-item small { display: block; }
.audit-item strong { font-size: 12px; }
.audit-item small { color: var(--muted); font-size: 10px; }
.audit-item em { color: var(--muted); font-size: 10px; font-style: normal; }
.timeline-mini { display: grid; }
.timeline-mini > div { min-height: 46px; display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; column-gap: 8px; border-bottom: 1px solid var(--line); }
.timeline-mini span { grid-row: 1/3; color: var(--red); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline-mini strong { align-self: end; font-size: 12px; }
.timeline-mini small { align-self: start; color: var(--muted); font-size: 10px; }
.retrain-callout { margin-top: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--amber-soft); border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; }
.retrain-callout.passed { background: var(--green-soft); border-color: var(--green); }
.retrain-callout > div { display: flex; align-items: center; gap: 10px; }
.retrain-callout svg { width: 20px; height: 20px; }
.retrain-callout strong,.retrain-callout small { display: block; }
.retrain-callout small { color: var(--muted); font-size: 11px; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 300; min-width: 280px; max-width: calc(100vw - 44px); padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: #fff; background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); animation: toast-in 250ms ease-out both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast svg { width: 19px; height: 19px; color: #5bd39a; }

.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-dark); border-radius: 14px; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); }

@media (max-width: 1100px) {
  :root { --sidebar: 112px; }
  .sidebar { padding: 22px 12px; align-items: center; }
  .brand-copy, .role-lock small, .role-lock strong span:last-child, .role-lock em, .sidebar-user, .sidebar-logout { display: none; }
  .portal-switcher { width: 100%; margin-top: 20px; }
  .portal-switcher button { min-height: 48px; padding: 0; display: grid; grid-template-columns: 1fr; place-items: center; }
  .portal-switcher button span, .portal-switcher button small { display: none; }
  .role-lock { width: 52px; height: 52px; margin: 0 0 18px; padding: 0; display: grid; place-items: center; }
  .primary-nav { width: 100%; }
  .nav-button { width: 100%; min-height: 58px; flex-direction: column; justify-content: center; gap: 3px; padding: 5px; font-size: 12px; text-align: center; }
  .nav-button svg { width: 20px; height: 20px; }
  .sidebar-foot { padding: 15px 0 0; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-command-bar { grid-template-columns: 1fr; align-items: start; }
  .management-overview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .management-insight { grid-template-columns: 48px minmax(0,1fr); }
  .management-demo-actions { grid-column: 2; }
  .admin-import-command { grid-template-columns: 54px minmax(0,1fr); }
  .admin-import-file-actions { grid-column: 2; }
  .admin-import-privacy { grid-column: 2; }
  .training-body { grid-template-columns: 1fr; }
  .training-mobile-tools { min-height: 52px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); background: #fff; }
  .training-mobile-tools button { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-2); background: var(--surface); font-size: 13px; font-weight: 750; }
  .training-mobile-tools button:hover { color: var(--red-dark); border-color: #e9b7b9; background: var(--red-soft); }
  .training-mobile-tools svg { width: 17px; height: 17px; }
  .training-panel { position: fixed; z-index: 130; left: 50%; right: auto; bottom: max(18px, env(safe-area-inset-bottom)); width: min(560px, calc(100vw - 32px)); max-height: min(72dvh, 640px); padding: 22px; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 28px 80px rgba(0,0,0,.28); visibility: hidden; opacity: 0; pointer-events: none; transform: translate(-50%, calc(100% + 36px)); transition: visibility 0s linear 220ms, opacity var(--motion), transform var(--motion); }
  .training-panel.right { border: 1px solid var(--line); background: #faf9f6; }
  .training-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
  .panel-close { display: grid; }
  .training-panel-backdrop { position: fixed; inset: 0; z-index: 125; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(12,14,17,.48); opacity: 0; pointer-events: none; transition: opacity var(--motion); }
  .training-panel-backdrop.is-open { display: block; opacity: 1; pointer-events: auto; }
  .login-page { grid-template-columns: minmax(440px, 1fr) minmax(420px, 1fr); }
  .login-story { padding: 34px; }
  .login-dimensions { grid-template-columns: repeat(3, 1fr); gap: 8px 0; }
  .login-access { padding: 48px; }
}

@media (max-width: 860px) {
  .dashboard-grid, .exam-layout, .advisor-shell, .profile-grid, .competitor-grid, .result-review { grid-template-columns: 1fr; }
  .auto-context-card { grid-template-columns: 54px minmax(0,1fr); }
  .auto-context-card > small { grid-column: 1 / -1; max-width: none; }
  .industry-selector { grid-template-columns: 1fr; }
  .industry-context { grid-template-columns: 44px minmax(0,1fr); background: #fff; }
  .industry-context ol { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-hero-card { grid-template-columns: 1fr; align-items: start; }
  .scope-feature-grid { grid-template-columns: 1fr; }
  .management-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .management-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .management-chart-grid { grid-template-columns: 1fr; }
  .overview-drill-card .radar-wrap { grid-template-columns: minmax(240px,.8fr) minmax(300px,1.2fr); }
  .management-ranking-head { align-items: flex-start; flex-direction: column; }
  .admin-import-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-import-preview-head { align-items: flex-start; flex-direction: column; }
  .login-page { display: block; min-height: 100vh; }
  .login-story { display: none; }
  .login-access { min-height: 100vh; padding: 44px clamp(24px, 8vw, 72px); }
  .login-mobile-brand { display: flex; }
  .login-mobile-brand .brand-copy { display: block; }
  .login-mobile-brand .brand-copy strong { color: var(--ink); }
  .login-mobile-brand .brand-copy span { color: var(--muted); }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  body.auth-view { padding-bottom: 0; }
  .sidebar {
    inset: auto 0 0 0;
    width: 100%; height: calc(66px + env(safe-area-inset-bottom));
    padding: 5px 8px env(safe-area-inset-bottom);
    align-items: stretch;
    background: rgba(23,26,31,.97);
    border-right: 0; border-top: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(14px);
  }
  .sidebar .brand, .sidebar .portal-switcher, .sidebar .role-lock, .sidebar-foot { display: none; }
  .primary-nav { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 2px; }
  .nav-button { width: auto; min-height: 56px; gap: 2px; flex-direction: column; justify-content: center; padding: 3px; border-radius: 9px; font-size: 10px; }
  .nav-button span { display: block; }
  .nav-button svg { width: 19px; height: 19px; }
  .topbar { margin-left: 0; height: 64px; padding: 0 16px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; }
  .mobile-brand .brand-mark { width: 34px; height: 34px; font-size: 10px; }
  .mobile-brand strong { font-size: 13px; }
  .breadcrumb { display: none; }
  .top-actions .status-pill, .top-actions [data-toast] { display: none; }
  .mobile-portal-switcher {
    position: sticky;
    top: 64px;
    z-index: 29;
    min-height: 54px;
    padding: 5px 10px;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 5px;
    background: rgba(245,243,238,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }
  .mobile-portal-switcher button { min-height: 44px; padding: 0 7px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 800; }
  .mobile-portal-switcher button[aria-pressed="true"] { color: var(--ink); background: #fff; border-color: var(--line-dark); box-shadow: inset 0 -3px var(--red); }
  .mobile-portal-switcher svg { width: 17px; height: 17px; }
  .mobile-portal-switcher small { padding: 1px 4px; color: #7b3d00; background: #fff0d8; border-radius: 999px; font-size: 8px; }
  .main { margin-left: 0; padding: 25px 16px 34px; }
  .demo-notice { margin-bottom: 20px; }
  .page-heading { align-items: flex-start; margin-bottom: 22px; }
  .page-heading h1 { font-size: 29px; }
  .date-block { display: none; }
  .grid-2, .grid-3, .scenario-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 360px; }
  .hero-card::before { background: linear-gradient(155deg, transparent 0 66%, rgba(215,25,32,.85) 66% 77%, transparent 77%); }
  .metric-strip { grid-template-columns: 1fr; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--line); }
  .radar-wrap { grid-template-columns: 1fr; }
  .overview-section-head { align-items: flex-start; flex-direction: column; }
  .overview-section-head .button { width: 100%; }
  .overview-drill-card .radar-wrap { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
  .chat-card { height: clamp(520px, calc(100vh - 180px), 680px); min-height: 0; }
  .message { max-width: 94%; }
  .chat-form { align-items: center; }
  .chat-form .button { width: 48px; padding: 0; }
  .chat-form .button span { display: none; }
  .exam-hero { min-height: 480px; }
  .attempts-head { align-items: flex-start; }
  .attempts { grid-template-columns: 1fr; }
  .attempt { min-height: 74px; }
  .exam-actions .button { width: 100%; }
  .profile-banner { align-items: flex-start; }
  .profile-avatar { width: 58px; height: 58px; }
  .dimension-buttons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .industry-buttons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .review-replay { min-width: 0; }
  .detail-metrics { grid-template-columns: 1fr; }
  .detail-metrics div + div { border-left: 0; border-top: 1px solid var(--line); }
  .scope-hero-card { min-height: 0; padding: 24px 20px; gap: 25px; }
  .scope-facts { grid-template-columns: 1fr; }
  .scope-facts div { padding: 12px 14px; }
  .scope-facts div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .scope-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .scope-section-head p { text-align: left; }
  .scope-feature-card { grid-template-columns: 40px minmax(0,1fr); padding: 17px; }
  .scope-feature-icon { width: 40px; height: 40px; }
  .scope-feature-copy > div { align-items: flex-start; flex-direction: column; gap: 7px; }
  .scope-entry { grid-column: 1 / -1; }
  .scope-boundary-grid { grid-template-columns: 1fr; }
  .management-command-bar { padding: 19px 17px; gap: 20px; }
  .management-command-copy h2 { font-size: 25px; }
  .management-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .management-filters select, .management-filters input { min-height: 48px; }
  .management-overview { grid-template-columns: 1fr; }
  .management-metric { min-height: 0; grid-template-columns: 40px minmax(0,1fr); }
  .management-insight { grid-template-columns: 42px minmax(0,1fr); align-items: start; padding: 18px 16px; }
  .management-insight-mark { width: 42px; height: 42px; }
  .management-demo-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .management-demo-actions .button { width: 100%; }
  .management-ranking { background: transparent; border: 0; box-shadow: none; }
  .management-ranking-head { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
  .management-table,.management-table tbody,.management-table tr,.management-table td { display: block; }
  .management-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
  .management-table tbody { margin-top: 10px; display: grid; gap: 10px; }
  .management-table tbody tr { padding: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-soft); }
  .management-table th,.management-table td { padding: 0; border: 0; }
  .management-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 800; }
  .management-table td:first-child { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .management-table td:first-child::before { display: none; }
  .management-data-note { margin-top: 10px; padding: 13px 15px; border-radius: 10px; }
  .admin-import-content { gap: 12px; }
  .admin-import-command { padding: 19px 17px; grid-template-columns: 46px minmax(0,1fr); gap: 13px; }
  .admin-import-file-mark { width: 46px; height: 46px; }
  .admin-import-file-copy h2 { font-size: 22px; }
  .admin-import-file-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .admin-import-file-actions .button { width: 100%; min-height: 48px; }
  .admin-import-privacy { grid-column: 1 / -1; margin-top: 0; align-items: flex-start; line-height: 1.5; }
  .admin-import-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-import-steps li { min-height: 72px; padding: 13px; }
  .admin-import-steps li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .admin-import-steps li:nth-child(4) { border-top: 1px solid var(--line); }
  .admin-import-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-import-metrics article { min-height: 104px; padding: 15px; }
  .admin-import-preview { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .admin-import-preview-head { padding: 18px; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
  .admin-import-filters { width: 100%; }
  .admin-import-filters button { flex: 1; justify-content: center; min-height: 44px; }
  .admin-import-table-wrap { overflow: visible; }
  .admin-import-table,.admin-import-table tbody,.admin-import-table tr,.admin-import-table td { display: block; min-width: 0; }
  .admin-import-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
  .admin-import-table tbody { margin-top: 10px; display: grid; gap: 10px; }
  .admin-import-table tbody tr { padding: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 11px; box-shadow: var(--shadow-soft); }
  .admin-import-table tbody tr.error { background: #fff; border-left-color: var(--red); }
  .admin-import-table td { padding: 0; border: 0; }
  .admin-import-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .04em; }
  .admin-import-table td:nth-child(2),.admin-import-table td:last-child { grid-column: 1 / -1; }
  .admin-import-table td:nth-child(2) { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .admin-import-table td:nth-child(2)::before { display: none; }
  .admin-import-footer { margin-top: 10px; padding: 16px; align-items: stretch; flex-direction: column; border: 1px solid #edd5aa; border-radius: 11px; }
  .admin-import-footer.confirmed { border-color: #bfe4ce; }
  .admin-import-footer-actions { display: grid; grid-template-columns: 1fr; }
  .admin-import-footer-actions .button { width: 100%; min-height: 48px; }
  .training-overlay { grid-template-rows: 64px minmax(0, 1fr); }
  .training-top { height: 64px; padding: 0 12px; }
  .training-timer { font-size: 16px; }
  .training-mode-pill { display: none; }
  .training-title { gap: 9px; }
  .training-title > div { min-width: 0; }
  .training-title strong { font-size: 14px; }
  .training-chat .chat-messages { padding: 15px; }
  .robot-video-stage { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .video-tile, .video-tile video { min-height: 132px; }
  .robot-head { width: 78px; height: 60px; margin-top: -12px; border-radius: 28px 28px 22px 22px; }
  .robot-eye { top: 18px; }
  .robot-eye.left { left: 19px; }
  .robot-eye.right { right: 19px; }
  .robot-mouth { bottom: 12px; }
  .robot-body { top: calc(50% + 32px); width: 100px; }
  .robot-status { left: 7px; top: 7px; max-width: calc(100% - 14px); }
  .robot-status strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .video-tile footer { padding: 7px 8px; }
  .video-tile footer strong { display: none; }
  .chat-form { flex-wrap: wrap; }
  .chat-form .chat-input { order: -1; flex: 1 0 calc(100% - 58px); min-width: 0; }
  .chat-form [data-training-submit] { order: -1; }
  .chat-form .robot-enable-button, .chat-form .robot-talk-button { width: 48px; }
  .training-mobile-tools { padding-inline: 12px; }
  .training-mobile-tools button { flex: 1; justify-content: center; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
  .result-hero { grid-template-columns: 48px minmax(0,1fr); }
  .result-hero .result-score { grid-column: 1 / -1; }
  .toast { right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .auth-view .toast { bottom: 18px; }
  .login-access { padding: 26px 20px calc(28px + env(safe-area-inset-bottom)); align-items: start; }
  .login-form-wrap { max-width: none; }
  .login-mobile-brand { margin-bottom: clamp(54px, 12vh, 90px); }
  .login-heading { margin-bottom: 28px; }
  .login-heading h2 { font-size: 42px; }
  .login-heading p { font-size: 14px; }
  .login-control, .login-submit { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
