:root {
  --ink: #142b38;
  --muted: #647985;
  --line: #dce7e9;
  --canvas: #f3f7f7;
  --surface: #ffffff;
  --teal: #087f78;
  --teal-dark: #05645f;
  --teal-soft: #e5f5f3;
  --blue: #3b6ff5;
  --blue-soft: #eaf0ff;
  --orange: #d47a25;
  --orange-soft: #fff1df;
  --violet: #7959cf;
  --violet-soft: #f1edff;
  --danger: #bd4a4a;
  --danger-soft: #fff0ef;
  --shadow: 0 12px 34px rgba(35, 72, 82, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(8,127,120,.2);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 244px;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 20px;
  color: var(--ink);
  border-right: 1px solid #dfe9ea;
  background:
    radial-gradient(circle at 12% 8%, rgba(70, 188, 174, .13), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f5f9f8 100%);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 11px 24px; }
.brand strong { display: block; color: #173d43; font-size: 20px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 3px; color: #789395; font-size: 12px; letter-spacing: .28em; }
.brand-mark { position: relative; width: 38px; height: 38px; border: 1px solid #b9ded9; border-radius: 12px; background: #e8f6f4; }
.brand-mark span:first-child, .brand-mark span:last-child { position: absolute; left: 10px; top: 17px; width: 18px; height: 4px; border-radius: 8px; background: #168d84; }
.brand-mark span:last-child { transform: rotate(90deg); }

.account-card { width: 100%; margin-bottom: 17px; padding: 12px; border: 1px solid #dce8e8; border-radius: 14px; color: inherit; background: rgba(255,255,255,.78); text-align: left; cursor: pointer; transition: .18s ease; }
.account-card:hover, .account-card:focus-visible { border-color: #8ec9c3; background: #fff; }
.account-card > .account-card-label { display: block; margin-bottom: 8px; color: #789092; font-size: 12px; letter-spacing: .1em; }
.account-summary { display: flex; align-items: center; gap: 9px; color: #27484f; }
.account-summary strong, .account-summary small { display: block; }
.account-summary strong { font-size: 12px; }
.account-summary small { margin-top: 3px; color: #71898d; font-size: 12px; }

.nav-list { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #bdd8d5 transparent; }
.nav-item { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 13px; border: 0; border-radius: 10px; color: #557078; background: transparent; font-size: 13px; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-item:hover { color: #075f5d; background: #edf7f5; }
.nav-item.active { color: #075f5d; background: #dff2ef; box-shadow: inset 3px 0 #15968c; font-weight: 700; }
.nav-item:active { transform: translateY(1px); }
.nav-icon { width: 20px; color: #438e8a; font-size: 18px; text-align: center; }
.nav-count { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 10px; color: #fff; background: #c56b30; font-size: 12px; text-align: center; }
.nav-item-critical { margin-top: 11px; border-top: 1px solid #dce8e8; border-radius: 0 0 10px 10px; }
.status-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #e89544; box-shadow: 0 0 0 4px rgba(232,149,68,.13); }

.sidebar-footer { margin-top: auto; }
.sidebar-note { padding: 15px; border: 1px solid #dce8e8; border-radius: 14px; background: rgba(255,255,255,.72); }
.sidebar-note strong, .sidebar-note span { display: block; }
.sidebar-note strong { color: #27484f; font-size: 13px; }
.sidebar-note span { margin-top: 6px; color: #71898d; font-size: 12px; line-height: 1.65; }

.main-area { width: calc(100% - 244px); margin-left: 244px; }
.topbar { position: sticky; top: 0; z-index: 15; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid #e0e9e9; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.topbar h1 { margin: 2px 0 0; font-size: 22px; }
.eyebrow, .section-kicker { margin: 0; color: #52928f; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.system-status { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #d9e8e7; border-radius: 20px; color: #52706f; background: #f7fbfa; font-size: 13px; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #3cb492; box-shadow: 0 0 0 4px rgba(60,180,146,.1); }
.system-status.checking i { background: #d9a441; box-shadow: 0 0 0 4px rgba(217,164,65,.12); }
.system-status.offline { color: #7b6662; border-color: #eaded9; background: #fffaf7; }
.system-status.offline i { background: #b78b80; box-shadow: 0 0 0 4px rgba(183,139,128,.12); }
.icon-button { position: relative; width: 36px; height: 36px; border: 1px solid #dce7e8; border-radius: 50%; background: #fff; cursor: pointer; }
.icon-button span { position: absolute; top: -3px; right: -1px; width: 15px; height: 15px; border-radius: 50%; color: #fff; background: #e28138; font-size: 12px; line-height: 15px; }
.avatar { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #15998d, #066d69); font-size: 12px; font-weight: 700; }
.avatar-button { padding: 0; border: 0; cursor: pointer; }
.avatar-button:focus-visible { outline: 3px solid rgba(8,127,120,.2); outline-offset: 2px; }
.avatar-small { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; }
.content { width: 100%; max-width: 1580px; margin: 0 auto; padding: 32px 42px 54px; }
.page { display: none; animation: fadeIn .22s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.portrait-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.portrait-heading h2 { margin: 0; font-size: 25px; }
.portrait-grid { max-width: 1180px; }
.function-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.portrait-state { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.portrait-state.state-pending { color: #5c7080; background: #edf3f5; }
.portrait-state.state-weak { color: #a64738; background: #fff0eb; }
.portrait-state.state-basic { color: #94701e; background: #fff5dd; }
.portrait-state.state-stable { color: #167867; background: #e4f5ef; }
.portrait-empty { margin: 0; color: var(--muted); }
.portrait-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.portrait-section-heading h3 { margin: 0; color: var(--ink); font-size: 19px; }
.portrait-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.portrait-overview { padding: 22px 0 26px; border-top: 2px solid var(--teal); border-bottom: 1px solid var(--line); }
.portrait-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.portrait-count { min-height: 86px; display: flex; align-items: baseline; gap: 9px; padding: 21px 22px; border-left: 1px solid var(--line); }
.portrait-count:first-child { border-left: 0; }
.portrait-count strong { color: var(--ink); font-size: 28px; line-height: 1; }
.portrait-count span { color: var(--muted); font-size: 13px; }
.portrait-count.state-weak { border-top: 3px solid #c86d5e; }
.portrait-count.state-pending { border-top: 3px solid #8ba0aa; }
.portrait-count.state-basic { border-top: 3px solid #c9a451; }
.portrait-count.state-stable { border-top: 3px solid #3a9a86; }
.portrait-distribution { height: 9px; display: flex; gap: 2px; margin-top: 12px; overflow: hidden; background: #edf2f2; }
.portrait-distribution span { min-width: 8px; }
.portrait-distribution .state-weak { background: #c86d5e; }
.portrait-distribution .state-pending { background: #8ba0aa; }
.portrait-distribution .state-basic { background: #c9a451; }
.portrait-distribution .state-stable { background: #3a9a86; }
.portrait-priorities { padding: 29px 0; border-bottom: 1px solid var(--line); }
.portrait-priority-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portrait-priority { min-width: 0; min-height: 168px; display: flex; align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(250,250,247,.82); box-shadow: var(--shadow-soft); }
.portrait-priority:last-child { border-bottom: 1px solid var(--line); }
.portrait-priority-type { width: max-content; padding: 5px 8px; border-left: 3px solid currentColor; font-size: 12px; font-weight: 700; }
.portrait-priority-type.state-weak { color: #a64738; background: #fff5f1; }
.portrait-priority-type.state-pending { color: #526a74; background: #f1f5f6; }
.portrait-priority-content { min-width: 0; }
.portrait-priority-content strong { color: var(--ink); font-size: 15px; }
.portrait-priority-content p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.portrait-training-link { min-height: 36px; margin-top: auto; padding: 7px 13px; border: 1px solid #85b9b4; border-radius: 7px; color: var(--teal-dark); background: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.portrait-training-link:hover, .portrait-training-link:focus-visible { border-color: var(--teal-dark); background: var(--teal-soft); }
.portrait-priority-empty { padding: 18px 0; border-top: 1px solid var(--line); }
.portrait-matrix { padding-top: 29px; }
.portrait-matrix-heading, .portrait-ability-summary { display: grid; grid-template-columns: minmax(190px, 2fr) repeat(4, minmax(78px, 1fr)) minmax(88px, .85fr); align-items: center; column-gap: 8px; }
.portrait-matrix-heading { min-height: 43px; padding: 0 38px 0 16px; color: #60767c; background: #f1f5f5; font-size: 12px; font-weight: 700; text-align: center; }
.portrait-matrix-heading span:first-child { text-align: left; }
.portrait-domain { border-bottom: 1px solid #cbd9da; }
.portrait-domain h4 { margin: 0; padding: 20px 16px 8px; color: #31565d; font-size: 14px; letter-spacing: .04em; }
.portrait-domain-empty { margin: 0; padding: 14px 16px 20px; color: var(--muted); font-size: 13px; }
.portrait-ability { border-top: 1px solid var(--line); background: #fff; }
.portrait-ability summary { list-style: none; cursor: pointer; }
.portrait-ability summary::-webkit-details-marker { display: none; }
.portrait-ability-summary { position: relative; min-height: 58px; padding: 10px 38px 10px 16px; }
.portrait-ability-summary::after { content: "+"; position: absolute; right: 14px; top: 50%; color: #60767c; font-size: 19px; font-weight: 400; transform: translateY(-50%); }
.portrait-ability[open] .portrait-ability-summary::after { content: "−"; }
.portrait-ability-summary:hover { background: #f8fbfa; }
.portrait-ability-summary:focus-visible { outline: 3px solid rgba(8,127,120,.18); outline-offset: -3px; }
.portrait-ability-name { color: var(--ink); font-size: 14px; }
.portrait-matrix-state { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; color: #acb8bb; font-size: 12px; text-align: center; }
.portrait-matrix-state.is-current { margin: 0 auto; padding: 4px 8px; color: #fff; font-weight: 700; }
.portrait-matrix-state.is-current.state-pending { background: #738b94; }
.portrait-matrix-state.is-current.state-weak { background: #b95848; }
.portrait-matrix-state.is-current.state-basic { color: #4b3b13; background: #e1bd68; }
.portrait-matrix-state.is-current.state-stable { background: #23836f; }
.portrait-matrix-trend { justify-self: center; padding: 3px 7px; border-bottom: 2px solid transparent; color: #60767c; font-size: 12px; }
.portrait-matrix-trend.trend-up { color: #167867; border-color: #4ba08d; }
.portrait-matrix-trend.trend-down { color: #a64738; border-color: #c86d5e; }
.portrait-matrix-trend.trend-flat { color: #536b73; border-color: #93a5aa; }
.portrait-matrix-trend.trend-none { color: #87979c; }
.portrait-evidence-body { padding: 13px 38px 17px 16px; border-top: 1px dashed #d7e2e2; background: #f9fbfb; }
.portrait-evidence-body > strong { color: #31565d; font-size: 12px; }
.portrait-evidence-body p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.portrait-evidence-list { margin: 8px 0 0; padding-left: 18px; color: #435f66; font-size: 13px; line-height: 1.65; }
.portrait-evidence-list li + li { margin-top: 4px; }
.function-catalog { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(52px, 7vh, 92px) 0 56px; }
.function-group + .function-group { margin-top: 42px; }
.function-group-heading { min-height: 55px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid #cbd9da; }
.function-group-number { padding-top: 3px; color: #789096; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .12em; }
.function-group-heading h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.25; }
.function-group-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.function-grid { display: grid; gap: 16px; margin-top: 18px; }
.function-grid-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.function-grid-support { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(820px, 68%); margin-right: auto; margin-left: auto; }
.function-card { position: relative; min-width: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.function-card:hover, .function-card:focus-visible { border-color: #65aaa4; background: #fbfefd; box-shadow: 0 9px 22px rgba(35,72,82,.08); }
.function-card:active { background: #f1f8f7; box-shadow: none; }
.function-card strong { color: var(--ink); font-size: 18px; }
.function-card-primary { min-height: 188px; display: grid; grid-template-rows: auto auto minmax(36px, 1fr) auto; gap: 10px; padding: 22px 24px 19px; border-radius: 10px; border-top: 3px solid #178d84; box-shadow: 0 7px 18px rgba(35,72,82,.055); }
.function-card-top { display: flex; align-items: center; justify-content: space-between; }
.function-card-index { color: #789096; font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .12em; }
.function-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #bcd9d6; border-radius: 8px; color: #087f78; background: #f1f8f7; font-size: 20px; font-weight: 800; }
.function-card-description { display: block; color: #60767c; font-size: 13px; line-height: 1.55; }
.function-card-enter { color: #087f78; font-size: 13px; font-weight: 700; }
.function-card-enter::after { content: " →"; }
.function-card-support { min-height: 90px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px 19px; border-radius: 8px; box-shadow: none; }
.function-card-support .function-card-icon { color: #526e72; border-color: #d2dede; background: #f5f8f8; }
.function-card-copy { min-width: 0; }
.function-card-copy strong { display: block; font-size: 16px; }
.function-card-copy .function-card-description { margin-top: 4px; }
@media (max-width: 1000px) {
  .portrait-priority-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .portrait-heading { align-items: flex-start; }
  .portrait-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portrait-count:nth-child(3) { border-left: 0; }
  .portrait-count { min-height: 72px; padding: 16px; }
  .portrait-priority-list { grid-template-columns: 1fr; }
  .portrait-priority { min-height: 0; padding: 16px; }
  .portrait-training-link { align-self: stretch; }
  .portrait-matrix-heading { display: none; }
  .portrait-domain h4 { padding-left: 0; }
  .portrait-ability-summary { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 13px 34px 13px 0; }
  .portrait-matrix-state:not(.is-current) { display: none; }
  .portrait-matrix-state.is-current { justify-self: start; margin: 0; }
  .portrait-matrix-trend { justify-self: end; white-space: nowrap; }
  .portrait-evidence-body { padding: 13px 12px 16px 0; }
}

@media (max-width: 440px) {
  .portrait-section-heading p { max-width: 270px; }
  .portrait-priority { grid-template-columns: 1fr; }
  .portrait-training-link { justify-self: start; }
  .portrait-ability-summary { grid-template-columns: 1fr auto; }
  .portrait-ability-name { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .function-grid-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .function-grid-support { width: 100%; }
}

@media (max-width: 700px) {
  .function-catalog { padding-top: 28px; }
  .function-group + .function-group { margin-top: 34px; }
  .function-grid-primary, .function-grid-support { grid-template-columns: 1fr; }
  .function-card-primary { min-height: 158px; }
}

.recommended-home { max-width: 760px; margin: min(8vh, 72px) auto 0; padding: clamp(30px, 4vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(35,72,82,.07); }
.recommended-home-label { display: inline-block; padding: 7px 13px; border-radius: 999px; color: var(--teal-dark); background: var(--teal-soft); font-weight: 700; }
.recommended-home h2 { margin: 22px 0 12px; font-size: clamp(27px, 3vw, 38px); line-height: 1.3; }
.recommended-home p:not(.quiz-feedback) { max-width: 620px; margin: 0 0 26px; color: #435f66; font-size: 16px; line-height: 1.7; }
.recommended-home .button { min-width: 200px; }
.recommended-home .button-secondary { margin-left: 12px; }
@media (max-width: 640px) { .recommended-home { margin-top: 24px; } .recommended-home .button { width: 100%; } .recommended-home .button-secondary { margin: 12px 0 0; } }
.mentor-home { max-width: 1050px; margin: 0 auto; }
.mentor-home h2 { margin: 0 0 20px; font-size: 28px; }
.mentor-overview-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.mentor-overview-stat { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.mentor-overview-stat strong, .mentor-overview-stat span { display: block; }
.mentor-overview-stat strong { color: var(--teal-dark); font-size: 32px; }
.mentor-overview-stat span { margin-top: 5px; color: var(--muted); }
.mentor-overview-section { margin-bottom: 18px; padding: 24px; }
.mentor-overview-section h3 { margin: 0 0 12px; }
.mentor-overview-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.mentor-overview-row p { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 640px) { .mentor-overview-stats { grid-template-columns: 1fr; } .mentor-overview-row { align-items: flex-start; flex-direction: column; } }

.baseline-shell { max-width: 820px; margin: 28px auto; padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.baseline-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.baseline-head h2 { margin: 0; font-size: 27px; }
.baseline-head span { color: var(--teal); font-weight: 700; }
.baseline-intake { display: grid; gap: 17px; }
.baseline-intake label { display: grid; gap: 7px; font-weight: 700; }
.baseline-intake input, .baseline-intake select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #cadbde; border-radius: 10px; background: #fff; }
.baseline-intake .button { justify-self: start; }
.baseline-question-meta { display: flex; gap: 12px; color: var(--teal); font-weight: 700; }
#baselineScenario { margin: 20px 0 8px; color: var(--muted); line-height: 1.7; }
#baselineStem { margin: 16px 0; font-size: 20px; line-height: 1.55; }
#baselineSelectionHint { color: var(--muted); }
.baseline-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.baseline-result-card { min-height: 135px; padding: 17px; border: 1px solid #d6e8e5; border-radius: 14px; background: #f8fcfb; }
.baseline-result-card h3 { margin: 0 0 10px; font-size: 17px; }
.baseline-result-card strong { color: var(--teal); font-size: 20px; }
.baseline-result-card p { margin: 8px 0 0; line-height: 1.6; }
.baseline-feedback { min-height: 20px; margin: 18px 0 0; color: var(--teal); }
.baseline-feedback.error { color: var(--danger); }
.baseline-defer { margin-top: 24px; }
.deferred-home { max-width: 760px; margin: 80px auto; padding: 52px 32px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.deferred-home h2 { margin: 0 0 28px; font-size: clamp(28px, 4vw, 42px); }
.deferred-home .baseline-feedback:empty { display: none; }
.baseline-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid #efcea4; border-radius: 11px; color: #8c5c1d; background: #fff8e9; }
.baseline-notice button { border: 0; color: var(--teal); background: transparent; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) { .baseline-results-grid { grid-template-columns: 1fr; } .baseline-shell { margin: 0; padding: 22px; } }

.hero-card { min-height: 322px; display: grid; grid-template-columns: 1.13fr .87fr; overflow: hidden; border: 1px solid #d9e8e7; border-radius: 24px; color: var(--ink); background: linear-gradient(135deg, #ffffff 0%, #f0f8f7 55%, #e4f3f2 100%); box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 2; padding: 42px 48px; }
.pill { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #dce7e8; border-radius: 20px; color: #637a82; background: #f9fbfb; font-size: 12px; font-weight: 700; }
.pill-light { border-color: #bfdfdb; color: #076b66; background: #e5f5f3; }
.pill-success { border-color: #c9e7df; color: #137b6d; background: #eaf7f3; }
.pill-warning { border-color: #f0d8ba; color: #a66522; background: #fff4e7; }
.pill-danger { border-color: #f0caca; color: #a43b3b; background: #fff0ef; }
.hero-copy h2 { margin: 21px 0 14px; font-size: 32px; line-height: 1.35; letter-spacing: .02em; }
.hero-copy p { max-width: 590px; margin: 0; color: #526e74; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; gap: 11px; margin-top: 26px; }
.button { min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { color: #fff; background: var(--teal); box-shadow: 0 7px 16px rgba(8,127,120,.2); }
.hero-card .button-primary { color: #fff; background: var(--teal); box-shadow: 0 7px 16px rgba(8,127,120,.2); }
.button-ghost { border-color: #bddbd8; color: #075f5d; background: rgba(255,255,255,.72); }
.button-secondary { border-color: #d3e1e2; color: #365b63; background: #fff; }
.button-full { width: 100%; }
.button:disabled { opacity: .62; cursor: wait; transform: none; }
.text-button { padding: 0; border: 0; color: var(--teal); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }

.auth-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 20px; color: var(--ink); background: transparent; box-shadow: 0 28px 90px rgba(7,35,42,.35); }
.auth-dialog::backdrop { background: rgba(8,28,34,.66); backdrop-filter: blur(4px); }
.auth-panel { padding: 26px; border: 1px solid rgba(221,233,234,.9); border-radius: 20px; background: #fff; }
.auth-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.auth-header span { display: block; color: #52928f; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.auth-header h2 { margin: 5px 0 0; font-size: 22px; }
.auth-close { width: 34px; height: 34px; border: 1px solid #dce7e8; border-radius: 10px; color: #597076; background: #f8fbfb; font-size: 20px; line-height: 1; cursor: pointer; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 20px; padding: 4px; border-radius: 12px; background: #eef4f4; }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 9px; color: #668086; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-tabs button.active { color: #fff; background: var(--teal); box-shadow: 0 5px 12px rgba(8,127,120,.18); }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 7px; color: #38545c; font-size: 13px; font-weight: 700; }
.auth-form label small { color: #809398; font-size: 12px; font-weight: 400; line-height: 1.55; }
.auth-form input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #d6e2e4; border-radius: 10px; color: #173d43; background: #fbfdfd; font-size: 12px; outline: 0; transition: .18s ease; }
.auth-form input:focus { border-color: #3ba89f; background: #fff; box-shadow: 0 0 0 3px rgba(8,127,120,.1); }
.auth-input-action { position: relative; display: block; }
.auth-input-action input { padding-right: 62px; }
.auth-input-action button { position: absolute; top: 50%; right: 7px; min-width: 45px; height: 31px; padding: 0 8px; border: 0; border-radius: 7px; color: #087f78; background: #e8f5f3; font-size: 12px; font-weight: 700; cursor: pointer; transform: translateY(-50%); }
.auth-input-action button:focus-visible { outline: 3px solid rgba(8,127,120,.18); outline-offset: 1px; }
.auth-form input[aria-invalid="true"] { border-color: #c46666; background: #fffafa; }
.auth-help { margin: 0; color: #71868b; font-size: 12px; line-height: 1.65; }
.auth-feedback { min-height: 18px; margin: 0; color: #71868b; font-size: 12px; line-height: 1.6; }
.auth-feedback.error { color: #ad3f3f; }
.auth-feedback.success { color: #087f78; }
.auth-signed-in { display: grid; gap: 18px; }
.auth-identity { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid #dce9e8; border-radius: 14px; background: #f5faf9; }
.auth-identity strong, .auth-identity small { display: block; }
.auth-identity strong { font-size: 14px; }
.auth-identity small { margin-top: 4px; color: #678085; font-size: 12px; }
.auth-signed-in dl { display: grid; gap: 10px; margin: 0; }
.auth-signed-in dl div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 10px; border-bottom: 1px solid #e5eded; }
.auth-signed-in dt { color: #7b8f94; font-size: 12px; }
.auth-signed-in dd { margin: 0; color: #284950; font-size: 13px; font-weight: 700; }

.guidance-intro { align-items: center; }
.guidance-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 18px; }
.guidance-action-panel, .guidance-list-panel { padding: 22px; }
.guidance-copy { margin: -3px 0 18px; color: #6e8389; font-size: 13px; line-height: 1.7; }
.guidance-search { display: grid; gap: 8px; }
.guidance-search label { color: #38545c; font-size: 12px; font-weight: 700; }
.guidance-search > div { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.guidance-search input { min-width: 0; height: 41px; padding: 0 12px; border: 1px solid #d6e2e4; border-radius: 10px; color: #173d43; background: #fbfdfd; font-size: 13px; outline: 0; }
.guidance-search input:focus { border-color: #3ba89f; box-shadow: 0 0 0 3px rgba(8,127,120,.1); }
.guidance-feedback { min-height: 18px; margin: 10px 0; color: #71868b; font-size: 12px; line-height: 1.6; }
.guidance-feedback.error { color: #ad3f3f; }
.guidance-feedback.success { color: #087f78; }
.mentor-search-results, .binding-list { display: grid; gap: 10px; }
.mentor-result-card, .binding-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid #dfe9e9; border-radius: 13px; background: #fbfdfd; }
.mentor-result-card strong, .mentor-result-card small, .binding-person strong, .binding-person small { display: block; }
.mentor-result-card strong, .binding-person strong { font-size: 13px; }
.mentor-result-card small, .binding-person small { margin-top: 4px; color: #7a8f94; font-size: 12px; }
.mentor-result-card button, .binding-actions button { min-height: 32px; padding: 0 11px; border: 1px solid #cfe1df; border-radius: 9px; color: #08756f; background: #edf8f6; font-size: 12px; font-weight: 700; cursor: pointer; }
.mentor-result-card button:disabled { color: #8b999c; border-color: #e0e7e8; background: #f4f6f6; cursor: default; }
.guidance-empty { padding: 22px 18px; border: 1px dashed #d7e3e4; border-radius: 11px; color: #84969a; background: #fafcfc; font-size: 12px; line-height: 1.7; text-align: center; }
.binding-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.binding-person .avatar { width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto; }
.binding-side { display: grid; justify-items: end; gap: 8px; }
.binding-status { display: inline-flex; padding: 4px 8px; border-radius: 12px; color: #8a661f; background: #fff4dc; font-size: 12px; font-weight: 700; }
.binding-status.accepted { color: #087568; background: #e8f7f2; }
.binding-status.rejected { color: #a14848; background: #fff0ef; }
.binding-actions { display: flex; gap: 6px; }
.binding-actions button.reject { color: #a14848; border-color: #efd3d1; background: #fff5f4; }
.guidance-role-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #dbe8e7; border-radius: 14px; background: #f4faf9; }
.guidance-role-card strong { display: block; font-size: 12px; }
.guidance-role-card p { margin: 5px 0 0; color: #708589; font-size: 12px; line-height: 1.6; }
.guidance-rules { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.guidance-rules li { display: flex; align-items: center; gap: 10px; color: #526b71; font-size: 12px; }
.guidance-rules span { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #08756f; background: #e8f5f3; font-size: 12px; font-weight: 800; }

.quiz-intro { align-items: center; }
.quiz-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; border-top: 1px solid #d4e0e1; border-bottom: 1px solid #d4e0e1; background: rgba(255,255,255,.38); }
.quiz-metrics article { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-right: 1px solid #dce6e7; }
.quiz-metrics article:last-child { border-right: 0; }
.quiz-metrics span { color: #73898e; font-size: 12px; }
.quiz-metrics strong { color: #0a706b; font-size: 20px; }
.quiz-layout { display: grid; grid-template-columns: minmax(235px, .65fr) minmax(0, 1.35fr); gap: 18px; }
.quiz-control-panel, .quiz-question-panel { min-height: 420px; padding: 22px; }
.quiz-module-label { display: block; margin: 2px 0 8px; color: #38545c; font-size: 12px; font-weight: 700; }
.quiz-control-panel select { width: 100%; height: 42px; margin-bottom: 12px; padding: 0 11px; border: 1px solid #d6e2e4; border-radius: 10px; color: #284950; background: #fbfdfd; font-size: 12px; outline: 0; }
.quiz-control-panel select:focus { border-color: #3ba89f; box-shadow: 0 0 0 3px rgba(8,127,120,.1); }
.quiz-feedback { min-height: 36px; margin: 10px 0; color: #71868b; font-size: 12px; line-height: 1.6; }
.quiz-feedback.error { color: #ad3f3f; }
.quiz-feedback.success { color: #087f78; }
.quiz-empty { display: grid; min-height: 370px; place-items: center; border: 1px dashed #d7e3e4; border-radius: 10px; color: #84969a; background: #fafcfc; font-size: 13px; }
.quiz-question-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid #e4ecec; }
.quiz-question-head div { display: flex; align-items: center; gap: 9px; }
.quiz-question-head span, .quiz-difficulty { color: #6e8589; font-size: 12px; }
.quiz-question-head strong { padding: 4px 8px; border-radius: 10px; color: #08756f; background: #e8f5f3; font-size: 12px; }
.quiz-scenario { margin: 18px 0 -2px; padding: 13px 15px; border-left: 3px solid #4caea5; color: #526d72; background: #f2f8f7; font-size: 12px; line-height: 1.75; }
.quiz-stem { margin: 20px 0 9px; color: #193f45; font-size: 16px; line-height: 1.75; }
.quiz-selection-hint { margin: 0 0 13px; color: #7a8e92; font-size: 12px; }
.quiz-options { display: grid; gap: 10px; margin-bottom: 17px; }
.quiz-option { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; min-height: 51px; padding: 10px 13px; border: 1px solid #dfe8e9; border-radius: 12px; color: #36565d; background: #fbfdfd; cursor: pointer; font-size: 13px; line-height: 1.55; transition: .15s ease; }
.quiz-option:hover { border-color: #a8d2ce; background: #f6fbfa; }
.quiz-option input { margin: 0; accent-color: #087f78; }
.quiz-option-label { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #08756f; background: #e8f5f3; font-size: 12px; font-weight: 800; }
.quiz-option.correct { border-color: #8bcfc2; background: #effaf6; }
.quiz-option.incorrect { border-color: #e6b6b2; background: #fff5f4; }
.quiz-order-rank { min-width: 22px; color: #08756f; font-size: 12px; font-weight: 800; text-align: right; }
button.quiz-option { width: 100%; text-align: left; }
button.quiz-option.selected { border-color: #58b4ab; background: #edf8f6; }
.quiz-result { margin-top: 18px; padding: 17px; border: 1px solid #dbe8e7; border-radius: 13px; background: #f7fbfa; }
.quiz-result.correct { border-color: #98d4c9; background: #f0faf6; }
.quiz-result.incorrect { border-color: #e5b9b6; background: #fff7f6; }
.quiz-result > strong { display: block; font-size: 14px; }
.quiz-result p { margin: 8px 0; color: #5d7479; font-size: 12px; line-height: 1.7; }
.quiz-result .button { margin-top: 8px; }
.quiz-control-panel .button + .button { margin-top: 10px; }
.quiz-question-progress { display: flex; align-items: center; gap: 12px; }
.quiz-report { padding: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.priority-report-headline { margin: 16px 0 14px; font-size: 21px; line-height: 1.4; }
.priority-report-scroll { overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; }
.priority-report-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; text-align: left; }
.priority-report-table th, .priority-report-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.priority-report-table thead { background: #f0f6f6; }
.priority-report-table tbody tr:last-child > * { border-bottom: 0; }
.priority-report-table tbody th { width: 19%; font-weight: 700; }
.priority-report-table td:nth-child(2) { width: 22%; }
.priority-report-table td:nth-child(3) { width: 18%; }
.priority-report-table td:nth-child(4) { width: 17%; }
.priority-report-table td:nth-child(5) { width: 24%; }
.priority-mark { display: block; margin-bottom: 5px; font-weight: 700; }
.priority-verification { display: block; margin-top: 5px; color: var(--muted); }
.priority-needs_work .priority-mark { color: #a75b18; }
.priority-pending .priority-mark { color: #3c66a4; }
.priority-good .priority-mark { color: #147a63; }
.priority-report-table details summary { color: var(--teal-dark); cursor: pointer; font-weight: 700; }
.priority-report-table details p { margin: 8px 0 0; overflow-wrap: anywhere; }
.priority-trend { font-weight: 700; }
.training-report-panel { padding: 24px; margin-bottom: 20px; }
.training-report-panel h2 { margin-top: 0; }
.training-report-list-panel { padding-top: 8px; padding-bottom: 8px; }
.training-report-list-panel .guidance-empty { margin: 16px 0; border: 0; background: transparent; }
.training-report-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.training-report-link:hover, .training-report-link:focus-visible { background: #edf7f5; }
.training-report-link span { color: var(--muted); }
#trainingReportDetailEvidence { border-top: 1px solid var(--line); padding-top: 16px; }
#trainingReportDetailEvidence h3 { margin: 18px 0 8px; }
#trainingReportDetailEvidence p { margin: 7px 0; line-height: 1.6; }
.report-revision { padding: 12px 0; border-bottom: 1px solid var(--line); }
.report-revision summary { color: var(--teal-dark); cursor: pointer; font-weight: 700; }
.quiz-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.quiz-report-heading h2 { margin: 0; font-size: 24px; }
.quiz-report-heading p { margin: 7px 0 0; color: var(--muted); }
.quiz-report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.quiz-report-metrics article { padding: 18px; border: 1px solid #dce8e7; border-radius: 15px; background: linear-gradient(145deg, #f8fcfb, #eef7f5); }
.quiz-report-metrics span, .quiz-report-metrics strong { display: block; }
.quiz-report-metrics span { color: #60797e; }
.quiz-report-metrics strong { margin-top: 8px; color: #08756f; font-size: 24px; }
.quiz-report-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .6fr); gap: 20px; }
.quiz-report-grid h3 { margin: 0 0 12px; }
.quiz-diagnostic-table { overflow: hidden; border: 1px solid #dce7e7; border-radius: 14px; }
.quiz-diagnostic-row { display: grid; grid-template-columns: minmax(170px, 1.25fr) minmax(110px, .55fr) minmax(190px, 1fr); align-items: center; gap: 14px; min-height: 58px; padding: 10px 15px; border-top: 1px solid #e5ecec; }
.quiz-diagnostic-row:first-child { border-top: 0; }
.quiz-diagnostic-header { min-height: 42px; color: #60777c; background: #f1f6f5; font-weight: 700; }
.quiz-diagnostic-status { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.quiz-diagnostic-status i { font-style: normal; }
.quiz-diagnostic-row.level-mastered .quiz-diagnostic-status { color: #18816c; }
.quiz-diagnostic-row.level-developing .quiz-diagnostic-status { color: #a4691f; }
.quiz-diagnostic-row.level-priority .quiz-diagnostic-status { color: #ae4848; }
.quiz-diagnostic-score { display: grid; grid-template-columns: minmax(70px, 1fr) auto; align-items: center; gap: 10px; color: #506a70; }
.quiz-diagnostic-bar { height: 8px; overflow: hidden; border-radius: 8px; background: #e5eeee; }
.quiz-diagnostic-bar b { display: block; height: 100%; border-radius: inherit; background: #d05757; }
.quiz-diagnostic-row.level-mastered .quiz-diagnostic-bar b { background: #2caa87; }
.quiz-diagnostic-row.level-developing .quiz-diagnostic-bar b { background: #d89a3c; }
.quiz-wrong-panel { padding: 18px; border-radius: 15px; background: #fff8f1; }
.quiz-wrong-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #f0dfcf; }
.quiz-wrong-item:first-child { border-top: 0; }
.quiz-wrong-item strong { color: #a75536; }
.quiz-wrong-item span, .quiz-report-empty { color: #6d7d7f; }

.agent-shell { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .45fr); align-items: start; gap: 18px; }
.agent-main-card { min-height: 360px; padding: 40px; border: 1px solid #d8e8e6; border-radius: 18px; color: var(--ink); background: radial-gradient(circle at 82% 22%, rgba(86,218,202,.18), transparent 32%), linear-gradient(140deg, #ffffff, #eaf7f5); box-shadow: var(--shadow); }
.agent-main-card h2 { margin: 21px 0 13px; font-size: 29px; line-height: 1.35; }
.agent-main-card > p:not(.agent-status) { max-width: 560px; margin: 0 0 27px; color: #536f74; font-size: 13px; line-height: 1.9; }
.agent-main-card .button { min-width: 150px; }
.agent-status { min-height: 20px; margin: 14px 0 0; color: #668085; font-size: 12px; }
.agent-status.error { color: #ad3f3f; }
.agent-status.success { color: #087f78; }
.agent-boundary-card { padding: 20px; box-shadow: 0 8px 24px rgba(35,72,82,.045); }
.agent-boundary-card ul { display: grid; margin: 14px 0 0; padding: 0; border-top: 1px solid #e0e9e9; list-style: none; }
.agent-boundary-card li { display: grid; grid-template-columns: 24px 1fr; gap: 9px; padding: 13px 0; border-bottom: 1px solid #e0e9e9; }
.agent-boundary-card li:last-child { border-bottom: 0; }
.agent-boundary-card li > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: #08756f; background: #e8f5f3; font-size: 11px; font-weight: 800; }
.agent-boundary-card strong { font-size: 13px; }
.agent-boundary-card p { margin: 5px 0 0; color: #708589; font-size: 12px; line-height: 1.65; }
.agent-fullscreen[hidden] { display: none; }
.agent-fullscreen { position: fixed; inset: 0; z-index: 5000; display: grid; grid-template-rows: 58px minmax(0, 1fr); color: #173d43; background: #f4f8f8; }
.agent-fullscreen-header { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 0 20px; border-bottom: 1px solid #dce7e8; background: #fff; box-shadow: 0 3px 14px rgba(6,55,61,.08); }
.agent-fullscreen-header button { min-width: 92px; height: 36px; padding: 0 14px; border: 1px solid #cfe0e1; border-radius: 10px; color: #087f78; background: #f7fbfb; font-size: 13px; font-weight: 750; cursor: pointer; }
.agent-fullscreen-header button:hover { border-color: #8bc7c2; background: #eaf7f5; }
.agent-fullscreen-header button:focus-visible { outline: 3px solid rgba(8,127,120,.18); outline-offset: 2px; }
.agent-fullscreen-header strong { font-size: 16px; }
.agent-fullscreen-mount { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #fff; }
.agent-fullscreen-mount > iframe { width: 100% !important; height: 100% !important; border: 0 !important; }
.agent-fullscreen-mount > p { position: absolute; inset: 0; z-index: 1; display: grid; margin: 0; place-items: center; color: #607b80; background: #f7fbfb; font-size: 14px; }
body.agent-fullscreen-open { overflow: hidden; }

.hero-visual { position: relative; min-height: 322px; background: radial-gradient(circle at 55% 48%, rgba(69,181,169,.2), transparent 45%); }
.orbit { position: absolute; left: 52%; top: 49%; border: 1px solid rgba(34,132,123,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 270px; height: 270px; }
.orbit-two { width: 190px; height: 190px; }
.ai-core { position: absolute; left: 52%; top: 49%; width: 135px; height: 135px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #abd9d4; border-radius: 50%; color: #075f5d; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(221,243,240,.9)); box-shadow: inset 0 0 35px rgba(83,221,205,.12), 0 10px 30px rgba(26,95,96,.13); transform: translate(-50%,-50%); backdrop-filter: blur(8px); }
.ai-core small { color: #438e8a; font-size: 12px; letter-spacing: .16em; }
.ai-core strong { font-size: 42px; line-height: 1.1; }
.ai-core span { color: #658582; font-size: 12px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #d3e6e4; border-radius: 10px; color: #315c61; background: rgba(255,255,255,.86); box-shadow: 0 12px 25px rgba(35,72,82,.1); font-size: 12px; backdrop-filter: blur(9px); }
.float-card-a { top: 47px; right: 48px; }
.float-card-b { bottom: 50px; left: 20px; }
.float-card i { width: 8px; height: 8px; border-radius: 50%; }
.float-card .ok { background: #54d0ad; }.float-card .warn { background: #efa04a; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 18px 0; }
.metric-grid.compact { grid-template-columns: repeat(3, 1fr); }
.metric-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #e0e9ea; border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 22px rgba(34,75,84,.045); }
.metric-icon { width: 43px; height: 43px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 19px; font-weight: 700; }
.metric-icon.teal { color: var(--teal); background: var(--teal-soft); }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.orange { color: var(--orange); background: var(--orange-soft); }
.metric-icon.violet { color: var(--violet); background: var(--violet-soft); }
.metric-card span, .metric-card strong, .metric-card em { display: block; }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { margin: 4px 0 2px; font-size: 23px; }
.metric-card strong small { font-size: 13px; font-weight: 500; }
.metric-card em { color: #6e8a8d; font-size: 12px; font-style: normal; }

.two-column { display: grid; grid-template-columns: 1.45fr .8fr; gap: 18px; }
.hero-card + .two-column { margin-top: 18px; }
.panel { border: 1px solid #e0e9ea; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 0; }
.panel-heading h3 { margin: 4px 0 0; font-size: 17px; }
.process-flow { display: flex; align-items: flex-start; padding: 25px 25px 28px; }
.process-step { width: 94px; flex: 0 0 auto; text-align: center; }
.process-step b { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 9px; border: 1px solid #dbe6e6; border-radius: 50%; color: #90a2a6; background: #f8fbfb; font-size: 12px; }
.process-step strong, .process-step span { display: block; }
.process-step strong { font-size: 13px; }
.process-step span { margin-top: 4px; color: #87999e; font-size: 12px; line-height: 1.5; }
.process-step.completed b { border-color: #7bc6bb; color: #fff; background: var(--teal); }
.process-step.current b { border: 2px solid var(--teal); color: var(--teal); background: #fff; box-shadow: 0 0 0 5px var(--teal-soft); }
.process-line { height: 1px; flex: 1; margin-top: 17px; background: #dce7e7; }
.discussion-panel { border-color: #eadcc9; background: linear-gradient(180deg, #fffdfa, #fff); }
.decision-list { margin: 13px 22px 14px; padding: 0; list-style: none; }
.decision-list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #eee7dd; }
.decision-list li:last-child { border: 0; }
.decision-list li > span { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 8px; color: #a66522; background: #fff0dc; font-size: 12px; font-weight: 800; }
.decision-list strong, .decision-list small { display: block; }
.decision-list strong { font-size: 13px; }.decision-list small { margin-top: 3px; color: #8b9291; font-size: 12px; }
.discussion-panel .text-button { margin: 0 22px 20px; }

.section-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin: 3px 0 24px; }
.section-intro h2, .page-callout h2, .report-header h2 { margin: 7px 0 8px; font-size: 25px; }
.section-intro p, .page-callout p, .report-header p { margin: 0; color: var(--muted); line-height: 1.7; }
.legend { display: flex; align-items: center; gap: 8px; color: #73878d; font-size: 12px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }.legend .ready { background: var(--teal); }.legend .planned { margin-left: 8px; background: #aab9bd; }
.project-grid { max-width: 1080px; display: grid; margin: 0 auto; border-top: 1px solid #cbd9da; }
.project-card { min-height: 128px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px 8px; border: 0; border-bottom: 1px solid #cbd9da; background: transparent; box-shadow: none; }
.project-card.featured { position: relative; overflow: visible; border-color: #8ebfba; }
.project-card.featured::after { content: none; }
.project-order { color: #708a8f; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .12em; text-align: center; }
.project-copy { min-width: 0; }
.project-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.project-code { color: #557177; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.project-state { display: inline-flex; padding: 3px 8px; border: 1px solid #d7e1e2; border-radius: 999px; color: #71868b; background: #f7f9f9; font-size: 12px; font-weight: 700; }
.project-state-ready { color: #08756f; border-color: #b8dcd8; background: #edf8f6; }
.project-card h3 { margin: 0 0 6px; font-size: 18px; }
.project-card p { margin: 0; color: #61797f; font-size: 13px; line-height: 1.65; }
.project-card .button { min-width: 124px; }
.progress-label { display: flex; justify-content: space-between; color: #74888d; font-size: 12px; }.progress-label strong { color: var(--teal); }
.progress { height: 5px; margin: 7px 0 20px; overflow: hidden; border-radius: 5px; background: #e7eeee; }.progress i { display:block; height:100%; border-radius:5px; background:linear-gradient(90deg,var(--teal),#46b7a8); }
.progress-35 { width: 35%; }.progress-15 { width: 15%; }.progress-8 { width: 8%; }

.page-callout { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 21px 24px; border: 1px solid #d8e8e6; border-radius: var(--radius); background: linear-gradient(100deg, #f0faf8, #fff); }
.page-callout h2 { display: inline-block; margin-left: 8px; font-size: 21px; }
.privacy-badge { padding: 8px 12px; border-radius: 10px; color: #3e6e69; background: #fff; box-shadow: 0 6px 20px rgba(51,90,90,.08); font-size: 12px; font-weight: 700; }
.upload-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.upload-panel { padding: 22px; }
.upload-zone { min-height: 274px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #9ecac5; border-radius: 16px; background: #f6fbfa; transition: .2s ease; }
.upload-zone:hover, .upload-zone.has-file { border-color: var(--teal); background: #eff9f7; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; margin-bottom: 13px; border-radius: 16px; color: var(--teal); background: #dff3ef; font-size: 26px; }
.upload-zone h3 { margin: 0 0 7px; font-size: 15px; }.upload-zone p { margin: 0 0 17px; color: #789095; font-size: 12px; }
.quality-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 16px 0; }
.quality-checks > div { display: flex; align-items: flex-start; gap: 8px; padding: 11px; border: 1px solid #e4ebeb; border-radius: 11px; }
.check { width: 16px; height: 16px; position: relative; flex: 0 0 auto; border-radius: 50%; background: var(--teal-soft); }.check::after { content:""; position:absolute; left:5px; top:3px; width:4px; height:7px; border:solid var(--teal); border-width:0 2px 2px 0; transform:rotate(45deg); }
.quality-checks strong, .quality-checks small { display: block; }.quality-checks strong { font-size: 12px; }.quality-checks small { margin-top: 3px; color: #849397; font-size: 12px; line-height: 1.5; }
.analyze-button { margin-top: 2px; }.analysis-state { min-height: 18px; padding-top: 8px; color: var(--teal); font-size: 12px; text-align: center; }
.scoring-preview { padding-bottom: 18px; }
.rubric-list { margin: 10px 20px 5px; padding: 0; list-style: none; }
.rubric-list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #e8eeee; }
.rubric-list b { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--teal); background: var(--teal-soft); font-size: 12px; }
.rubric-list strong, .rubric-list small { display: block; }.rubric-list strong { font-size: 12px; }.rubric-list small { margin-top: 3px; color: #8a999c; font-size: 12px; }
.rubric-note { margin: 10px 20px 0; padding: 10px; border-radius: 9px; color: #92714e; background: #fff7ed; font-size: 12px; line-height: 1.6; }

/* 数字流程仿真：Three.js 画布与规则状态机控制台。 */
.sampling-module-tabs { display: inline-flex; gap: 4px; margin-bottom: 20px; padding: 4px; border: 1px solid #d7e5e3; border-radius: 11px; background: #edf4f3; }
.sampling-module-tabs button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 7px; color: #557176; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.sampling-module-tabs button.active { color: #fff; background: #0a746d; }
.sampling-module-tabs button:focus-visible, .sampling-console button:focus-visible, .sampling-hotspot:focus-visible, .sampling-heading button:focus-visible { outline: 3px solid #e1b85d; outline-offset: 2px; }
.sampling-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sampling-heading h2 { margin: 6px 0 7px; color: #173a40; font-size: clamp(22px, 2vw, 29px); }
.sampling-heading p { margin: 0; color: #627d83; font-size: 13px; line-height: 1.6; }
.sampling-heading-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.sampling-case-tag { padding: 9px 12px; border: 1px solid #cbe4df; border-radius: 7px; color: #0a746d; background: #eef8f5; font-size: 12px; font-weight: 700; }
.sampling-interaction-badge { padding: 9px 12px; border: 1px solid #bedbd4; border-radius: 7px; color: #176d68; background: #f1f8f6; font-size: 12px; font-weight: 700; }
.sampling-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .75fr); gap: 16px; align-items: stretch; }
.sampling-visual-panel { min-width: 0; overflow: hidden; border: 1px solid #1f5559; border-radius: 12px; background: #123941; }
.sampling-visual-header, .sampling-visual-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; color: #cae2df; background: #143b42; font-size: 12px; }
.sampling-visual-header strong, .sampling-visual-footer span:last-child { color: #fff; font-weight: 700; }
.sampling-visual-header .sampling-vial-id { position: static; }
.sampling-visual-counter, .sampling-view-tag { color: #fff; font-weight: 700; white-space: nowrap; }
.sampling-side-rail { display: flex; flex-direction: column; min-width: 0; }
.sampling-side-rail .sampling-console { flex: 1; }
.sampling-detail-panel { display: none; min-height: 0; }
.sampling-visual { position: relative; height: 540px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 42%, #285c60 0%, #173f48 52%, #0b2933 100%); }
.sampling-visual-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(200,242,232,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(200,242,232,.06) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.sampling-visual::after { content: "教学模型 · 示意图"; position: absolute; right: 17px; bottom: 13px; color: #bdd5d2; font-size: 11px; letter-spacing: .04em; }
.sampling-visual::after { content: none; }
.sampling-3d-grid { position: absolute; inset: 0; background: #173b43; }
.sampling-3d-view { position: relative; min-width: 0; overflow: hidden; background: #193b43; cursor: grab; touch-action: none; }
.sampling-3d-view#samplingSectionView { position: absolute; inset: 0; }
.sampling-3d-view#samplingSectionView::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("assets/pelvis-sagittal-open.svg") center center / var(--sampling-anatomy-size, contain) no-repeat; opacity: var(--sampling-open-opacity, 0); pointer-events: none; }
.sampling-3d-view#samplingSectionView canvas { position: relative; z-index: 1; }
.sampling-3d-view#samplingDetailView { position: absolute; z-index: 3; right: 16px; bottom: 79px; width: 45%; height: 51%; border: 2px solid #a9d9d1; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.sampling-3d-view:active { cursor: grabbing; }
.sampling-3d-view canvas { display: block; width: 100%; height: 100%; }
.sampling-3d-view > span { position: absolute; z-index: 2; top: 12px; left: 13px; padding: 5px 8px; border: 1px solid rgba(205,237,230,.26); border-radius: 5px; color: #e9f8f4; background: rgba(11,42,49,.77); font-size: 11px; font-weight: 700; pointer-events: none; }
.sampling-3d-view.is-locked { display: none; }
.sampling-anatomy-label { position: absolute; z-index: 2; padding: 3px 6px; border-radius: 4px; color: #fce9e1; background: rgba(74,36,49,.74); font-size: 10px; font-style: normal; pointer-events: none; }
.sampling-uterus-label { left: 24%; top: 25%; }
.sampling-cervix-label { left: 32%; top: 52%; }
.sampling-canal-label { left: 44%; top: 72%; }
.sampling-gesture { position: absolute; z-index: 5; left: 20px; bottom: 18px; width: min(410px, calc(100% - 40px)); padding: 10px 14px; border: 1px solid rgba(133,233,211,.38); border-radius: 8px; color: #fff; background: rgba(10,47,54,.91); box-shadow: 0 8px 22px rgba(0,0,0,.2); font-size: 12px; font-weight: 650; line-height: 1.4; text-align: center; pointer-events: none; }
.sampling-vial-id { position: absolute; z-index: 4; right: 12px; top: 47px; padding: 5px 8px; border-radius: 5px; color: #e6f7f3; background: rgba(11,42,49,.7); font-size: 11px; pointer-events: none; }
.sampling-visual.is-operating .sampling-3d-view { cursor: crosshair; }
.sampling-patient-card { position: absolute; z-index: 4; top: 22px; left: 23px; width: min(265px, calc(100% - 46px)); padding: 12px 14px; border: 1px solid rgba(208,240,232,.28); border-radius: 9px; color: #fff; background: rgba(13,53,62,.9); box-shadow: 0 12px 25px rgba(2,24,30,.16); }
.sampling-console .sampling-patient-card { position: static; width: 100%; margin-bottom: 16px; border-color: #cfe3df; color: #24484c; background: #f1f8f6; box-shadow: none; }
.sampling-console .sampling-patient-card span { color: #557a7b; }
.sampling-console .sampling-patient-card small { color: #59777a; }
.sampling-console .sampling-patient-card.mismatch { border-color: #e5b263; background: #fff8ed; }
.sampling-patient-card span, .sampling-patient-card strong, .sampling-patient-card small { display: block; }
.sampling-patient-card span { color: #96c7c1; font-size: 11px; }
.sampling-patient-card strong { margin-top: 5px; font-size: 16px; }
.sampling-patient-card small { margin-top: 3px; color: #d8e8e5; font-size: 11px; }
.sampling-patient-card.mismatch { border-color: #e5b263; }
.sampling-model { position: absolute; top: 51%; left: 47%; width: min(430px, 60%); aspect-ratio: 1; transform: translate(-50%, -48%) perspective(700px) rotateX(7deg); opacity: .2; transition: opacity .45s ease; }
.sampling-visual[data-stage="3"] .sampling-model, .sampling-visual.is-exposed .sampling-model { opacity: 1; }
.sampling-cervix { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(ellipse at 47% 43%, #e6a7a0 0%, #cb7777 42%, #823f4e 77%, #392c3d 100%); box-shadow: inset 0 0 0 17px rgba(77,36,49,.52), inset 0 0 34px 18px rgba(85,37,53,.58), 0 24px 55px rgba(0,0,0,.4); }
.sampling-cervix-inner { position: absolute; inset: 24%; border-radius: 50%; background: radial-gradient(circle at 46% 42%, #e8b0a7 0%, #d28d86 55%, #a75a64 100%); box-shadow: inset 0 0 17px rgba(104,48,62,.38), 0 0 0 8px rgba(196,114,116,.28); }
.sampling-os { position: absolute; top: 47%; left: 50%; width: 19%; height: 10%; border-radius: 50%; background: #803b4b; box-shadow: inset 0 2px 6px #562735, 0 0 0 6px rgba(169,80,88,.22); transform: translate(-50%, -50%); }
.sampling-speculum { position: absolute; z-index: 2; left: 5%; width: 90%; height: 25%; border: 2px solid rgba(238,250,246,.55); border-radius: 50%; background: linear-gradient(180deg, rgba(236,244,237,.8), rgba(104,150,151,.78) 40%, rgba(31,78,86,.83)); box-shadow: inset 0 7px 13px rgba(255,255,255,.35), 0 12px 24px rgba(0,0,0,.25); }
.sampling-speculum-top { top: 1%; transform: rotate(-9deg); }
.sampling-speculum-bottom { bottom: 1%; transform: rotate(9deg) scaleY(-1); }
.sampling-brush { position: absolute; z-index: 3; top: 48%; left: -34%; width: 70%; height: 8px; border-radius: 8px; background: linear-gradient(#f7eee2, #cbbda9); box-shadow: 0 3px 8px rgba(0,0,0,.3); opacity: 0; transform: rotate(6deg); transition: left 1s ease, opacity .3s ease; }
.sampling-brush i { position: absolute; right: -11%; top: -9px; width: 13%; height: 26px; border-radius: 50%; background: repeating-linear-gradient(90deg, #f2e7d7 0 3px, #d4b9a9 3px 5px); }
.sampling-visual.is-sampled .sampling-brush { left: 16%; opacity: 1; }
.sampling-visual.is-transferred .sampling-brush { left: 62%; opacity: 0; }
.sampling-model-label { position: absolute; left: 50%; bottom: -18px; color: #e5f2ee; font-size: 12px; transform: translateX(-50%); }
.sampling-kit { position: absolute; z-index: 3; right: 6%; bottom: 15%; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #e5f3f0; opacity: .38; transition: opacity .3s; }
.sampling-visual[data-stage="5"] .sampling-kit, .sampling-visual.is-transferred .sampling-kit { opacity: 1; }
.sampling-kit span, .sampling-kit small { font-size: 11px; }
.sampling-vial { position: relative; width: 68px; height: 120px; border: 3px solid #d7f1ec; border-radius: 10px 10px 13px 13px; background: linear-gradient(90deg, rgba(239,251,246,.54), rgba(148,213,202,.16) 32%, rgba(243,252,246,.45) 70%, rgba(105,161,156,.55)); box-shadow: 0 15px 28px rgba(0,0,0,.25); }
.sampling-vial::before { content: ""; position: absolute; top: -14px; left: 7px; width: 48px; height: 15px; border-radius: 4px 4px 0 0; background: #e7eee8; }
.sampling-vial i { position: absolute; left: 7px; right: 7px; bottom: 8px; height: 36px; border-radius: 2px 2px 6px 6px; background: rgba(72,163,154,.75); }
.sampling-visual-shade { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding: 140px 30px 20px; color: #cfe6e2; background: linear-gradient(90deg, rgba(12,41,50,.7), rgba(12,41,50,.2)); font-size: 14px; text-align: center; }
.sampling-hotspot { position: absolute; z-index: 6; border: 2px solid #fff; color: #fff; background: rgba(11,115,108,.78); box-shadow: 0 0 0 8px rgba(91,223,194,.2); font-size: 12px; font-weight: 700; cursor: pointer; }
.sampling-hotspot:hover { background: #0b746d; }
.sampling-cervix-hotspot { top: 47%; left: 47%; width: 118px; height: 118px; border-radius: 50%; transform: translate(-50%, -50%); }
.sampling-vial-hotspot { right: 4%; bottom: 13%; width: 108px; height: 165px; border-radius: 12px; }
.sampling-visual [hidden], .sampling-summary[hidden], #handoverPanel[hidden], #samplingPanel[hidden] { display: none!important; }
.sampling-console { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid #dbe8e6; border-radius: 12px; background: #fff; }
.sampling-progress-head { display: flex; justify-content: space-between; align-items: center; color: #688185; font-size: 12px; }
.sampling-progress-head strong { color: #0a746d; }
.sampling-timeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; margin: 11px 0 19px; padding: 0; list-style: none; }
.sampling-timeline li { min-width: 0; padding: 7px 2px; border-top: 3px solid #dfe9e7; color: #879b9d; text-align: center; }
.sampling-timeline li.current { border-top-color: #0b746d; color: #0a625e; }
.sampling-timeline li.done { border-top-color: #48ae97; color: #38776d; }
.sampling-timeline b, .sampling-timeline span { display: block; }
.sampling-timeline b { font-size: 11px; }
.sampling-timeline span { margin-top: 3px; font-size: 10px; line-height: 1.25; }
.sampling-decision-card { flex: 1; padding: 19px; border: 1px solid #dbe8e5; border-radius: 9px; background: #f8fbfa; }
.sampling-decision-card h3 { margin: 7px 0 7px; color: #163f45; font-size: 21px; }
.sampling-decision-card > p:not(.sampling-feedback) { margin: 0; color: #607b7f; font-size: 13px; line-height: 1.7; }
.sampling-options { display: grid; gap: 9px; margin-top: 19px; }
.sampling-options button { min-height: 46px; padding: 10px 13px; border: 1px solid #b9dcd5; border-radius: 7px; color: #0c645f; background: #fff; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.sampling-options button:hover { border-color: #0b746d; background: #edf8f4; }
.sampling-options button:disabled { opacity: .55; cursor: default; }
.sampling-direct-action { margin: 0!important; padding: 14px; border: 1px dashed #9dcfc2; border-radius: 7px; color: #0b746d!important; background: #eff8f5; }
.sampling-feedback { min-height: 42px; margin: 14px 0 0!important; padding: 10px 12px; border-radius: 6px; color: #5b7376!important; background: #eaf1ef; font-size: 12px!important; }
.sampling-feedback.warning { color: #925622!important; background: #fff1dc; }
.sampling-feedback.success { color: #0a695a!important; background: #e1f4eb; }
.sampling-console-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.sampling-console-footer button { min-height: 36px; padding: 0 10px; border: 1px solid #ccdedb; border-radius: 6px; color: #426c6c; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.sampling-console-footer button:hover { background: #eef7f4; }
.sampling-console-footer span { margin-left: auto; color: #71898b; font-size: 12px; }
.sampling-summary { display: flex; align-items: center; gap: 15px; margin-top: 15px; padding: 14px 17px; border-left: 4px solid #2aab8d; border-radius: 7px; color: #205a50; background: #e7f6ee; }
.sampling-summary.stopped { border-left-color: #dc9e49; color: #815424; background: #fff5e5; }
.sampling-summary strong { white-space: nowrap; }
.sampling-summary p { flex: 1; margin: 0; font-size: 12px; }
@media (max-width: 1250px) { .sampling-workspace { grid-template-columns: 1fr; } .sampling-visual { height: 520px; } }
@media (max-width: 760px) { .sampling-heading { align-items: flex-start; flex-direction: column; } .sampling-heading-actions { flex-wrap: wrap; } .sampling-workspace { gap: 10px; } .sampling-visual { height: 430px; } .sampling-model { left: 47%; width: min(340px, 73%); } .sampling-patient-card { top: 10px; left: 10px; padding: 8px 10px; } .sampling-patient-card strong { font-size: 13px; } .sampling-kit { right: 2%; bottom: 9%; transform: scale(.75); transform-origin: bottom right; } .sampling-vial-hotspot { right: 1%; bottom: 6%; } .sampling-cervix-hotspot { width: 92px; height: 92px; } .sampling-summary { align-items: flex-start; flex-direction: column; } }
@media (max-width: 760px) { .sampling-3d-view#samplingDetailView { right: 8px; bottom: 74px; width: 46%; height: 44%; } .sampling-gesture { left: 10px; bottom: 9px; width: calc(100% - 20px); } }
@media (max-width: 440px) { .sampling-module-tabs { width: 100%; } .sampling-module-tabs button { flex: 1; padding: 0 5px; font-size: 12px; } .sampling-visual { height: 370px; } .sampling-patient-card { width: 210px; } .sampling-model { top: 58%; left: 43%; width: 71%; } .sampling-kit { right: 0; } .sampling-timeline span { font-size: 8px; } .sampling-console { padding: 11px; } .sampling-decision-card { padding: 15px; } }
.simulation-callout { background: linear-gradient(100deg, #edf9f7, #f8fbff 72%, #fff); }
.simulation-shell { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(310px, .72fr); gap: 18px; }
.simulation-stage-panel { overflow: hidden; background: #102b34; border-color: #23444d; }
.simulation-toolbar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #dceeed; background: #16353e; }
.simulation-toolbar > div { display: flex; align-items: center; gap: 9px; }
.simulation-toolbar strong { font-size: 13px; letter-spacing: .03em; }
.simulation-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #62d1b5; box-shadow: 0 0 0 5px rgba(98,209,181,.12); }
.simulation-tags { gap: 6px!important; }
.simulation-tags span { padding: 4px 7px; border: 1px solid rgba(177,218,215,.16); border-radius: 12px; color: #9fc0c0; background: rgba(255,255,255,.035); font-size: 12px; }
#simulationViewport { position: relative; height: 546px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #254a54 0%, #17343d 52%, #0c222b 100%); cursor: grab; touch-action: none; }
#simulationViewport:active { cursor: grabbing; }
#simulationViewport canvas { width: 100%!important; height: 100%!important; display: block; outline: none; }
#simulationViewport canvas.is-actionable { cursor: pointer; }
.simulation-object-inspect { position: absolute; z-index: 8; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px 0 7px; border: 1px solid rgba(255,255,255,.92); border-radius: 9px; color: #fff; background: rgba(12,77,75,.94); box-shadow: 0 7px 18px rgba(8,35,40,.25); font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .16s ease, background .16s ease, box-shadow .16s ease; }
.simulation-object-inspect.is-positioned { opacity: 1; pointer-events: auto; }
.simulation-object-inspect:hover, .simulation-object-inspect:focus-visible { background: #087f78; box-shadow: 0 9px 22px rgba(8,35,40,.34), 0 0 0 3px rgba(255,255,255,.32); outline: none; }
.simulation-object-inspect span { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: #0e6863; background: #fff; font-size: 14px; line-height: 1; }
.simulation-hint { min-height: 44px; display: flex; align-items: center; padding: 0 18px; border-top: 1px solid rgba(171,214,211,.13); color: #b8d1d1; background: #15323b; font-size: 12px; line-height: 1.5; }
.simulation-control-panel { padding: 21px; }
.simulation-control-heading h3 { margin: 5px 0 7px; font-size: 19px; }
.simulation-control-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.simulation-config { display: grid; grid-template-columns: .72fr 1.28fr; gap: 9px; margin-top: 14px; }
.simulation-config > div > span { display: block; margin-bottom: 5px; color: #74898e; font-size: 12px; font-weight: 700; }
.simulation-option-group { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid #dde8e8; border-radius: 9px; background: #f3f7f7; }
.simulation-option-group button { min-height: 28px; padding: 0 5px; border: 0; border-radius: 6px; color: #6e8388; background: transparent; font-size: 12px; cursor: pointer; }
.simulation-option-group button.active { color: #fff; background: var(--teal); box-shadow: 0 4px 10px rgba(8,127,120,.16); }
.simulation-option-group button:disabled { cursor: not-allowed; opacity: .55; }
.simulation-scenario-group { grid-template-columns: repeat(3, 1fr); }
.simulation-evidence { margin-top: 10px; padding: 10px 11px; border: 1px solid #dce8e7; border-radius: 10px; background: #f7fbfa; }
.simulation-evidence-heading { display: flex; align-items: center; justify-content: space-between; }
.simulation-evidence-heading strong { font-size: 12px; }
.simulation-evidence-heading > div { display: flex; align-items: center; gap: 5px; }
.simulation-evidence-heading span { padding: 4px 6px; border-radius: 9px; color: #6d8387; background: #e9f0f0; font-size: 7px; font-weight: 700; }
.simulation-evidence-heading button { min-height: 24px; padding: 0 8px; border: 1px solid #acd3ce; border-radius: 7px; color: var(--teal); background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.simulation-evidence-heading button:hover { color: #fff; background: var(--teal); }
.simulation-evidence-heading span.matched { color: #11776a; background: #dff3ee; }
.simulation-evidence-heading span.mismatch { color: #a34b42; background: #f9e2df; }
.simulation-evidence-heading span.conditional { color: #99611d; background: #fff0d9; }
.simulation-evidence dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 0; }
.simulation-evidence dl > div { min-width: 0; padding: 7px; border: 1px solid #e0e9e9; border-radius: 7px; background: #fff; }
.simulation-evidence dt { color: #849699; font-size: 7px; }
.simulation-evidence dd { margin: 3px 0 0; overflow: hidden; color: #244a4d; font-family: Consolas, monospace; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.simulation-evidence dd.flagged { color: var(--danger); background: #fff0ef; }
.simulation-evidence > p { margin: 7px 0 0; color: #7b8d90; font-size: 7px; line-height: 1.5; }
.simulation-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 17px 0; }
.simulation-metrics > div { padding: 11px 8px; border: 1px solid #e2ebeb; border-radius: 10px; background: #f7faf9; text-align: center; }
.simulation-metrics span, .simulation-metrics strong { display: block; }
.simulation-metrics span { color: #7e9296; font-size: 12px; }
.simulation-metrics strong { margin-top: 4px; color: #123f46; font-size: 19px; }
.simulation-progress { margin: 0; padding: 0; list-style: none; }
.simulation-progress li { position: relative; display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 7px 9px; border-left: 2px solid #e2eaea; transition: .18s ease; }
.simulation-progress li::after { content: ""; position: absolute; left: -5px; top: 24px; width: 8px; height: 8px; border: 2px solid #c7d5d6; border-radius: 50%; background: #fff; }
.simulation-progress li.current { border-left-color: #60c7ba; border-radius: 0 9px 9px 0; background: #eef9f7; }
.simulation-progress li.current::after { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 4px rgba(8,127,120,.1); }
.simulation-progress li.done { border-left-color: var(--teal); }
.simulation-progress li.done::after { border-color: var(--teal); background: var(--teal); }
.simulation-progress b { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 8px; color: #789094; background: #eef3f3; font-size: 12px; }
.simulation-progress li.current b, .simulation-progress li.done b { color: #fff; background: var(--teal); }
.simulation-progress strong, .simulation-progress small { display: block; }
.simulation-progress strong { font-size: 12px; }
.simulation-progress small { margin-top: 3px; color: #829498; font-size: 12px; }
.simulation-feedback { min-height: 54px; margin-top: 14px; padding: 11px 12px; border: 1px solid #dbe8e7; border-radius: 10px; background: #f5faf9; }
.simulation-feedback strong, .simulation-feedback span { display: block; }
.simulation-feedback strong { font-size: 12px; }
.simulation-feedback span { margin-top: 4px; color: #667e82; font-size: 12px; line-height: 1.5; }
.simulation-feedback.working { border-color: #c6d9ee; background: #f1f6fc; }
.simulation-feedback.success { border-color: #b9ded8; background: var(--teal-soft); }
.simulation-feedback.error { border-color: #edc6c3; background: var(--danger-soft); }
.simulation-decision { margin-top: 10px; padding: 11px; border: 1px solid #efd3ad; border-radius: 10px; background: #fff8ef; }
.simulation-decision[hidden] { display: none; }
.simulation-decision strong { font-size: 12px; }
.simulation-decision p { margin: 4px 0 9px; color: #846d52; font-size: 12px; line-height: 1.5; }
.simulation-decision-inspect { width: 100%; margin-bottom: 7px; border-color: #a8d0cb!important; color: var(--teal)!important; background: #f4fbfa!important; }
.simulation-decision-inspect:hover { color: #fff!important; background: var(--teal)!important; }
.simulation-decision > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.simulation-decision button { min-height: 31px; padding: 0 6px; border: 1px solid #e0cab0; border-radius: 7px; color: #765a3b; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.simulation-decision button:hover { border-color: var(--teal); color: var(--teal); }
.simulation-log-panel { margin-top: 10px; padding: 10px 11px; border: 1px solid #e1eaea; border-radius: 10px; background: #fafcfc; }
.simulation-log-panel > div { display: flex; align-items: center; justify-content: space-between; }
.simulation-log-panel > div strong { font-size: 12px; }.simulation-log-panel > div span { color: #829599; font-size: 7px; }
.simulation-log-panel ul { margin: 7px 0 0; padding: 0; list-style: none; }
.simulation-log-panel li { display: grid; grid-template-columns: 35px 1fr auto; gap: 6px; padding: 5px 0; border-top: 1px solid #e8eeee; color: #526a6f; font-size: 12px; }
.simulation-log-panel time { color: #91a0a3; }.simulation-log-panel em { color: #72898d; font-style: normal; font-weight: 700; }
.simulation-log-panel li.success em { color: var(--teal); }.simulation-log-panel li.error em { color: var(--danger); }
.simulation-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.simulation-option-single { grid-template-columns: 1fr; }
.simulation-boundary { margin: 12px 0 0; padding: 10px; border-radius: 9px; color: #8f6b45; background: #fff7ed; font-size: 12px; line-height: 1.6; }
.simulation-webgl-fallback { height: 100%; display: flex; align-items: center; justify-content: center; padding: 30px; color: #d5e4e4; text-align: center; line-height: 1.7; }
.simulation-inspect-dialog { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 18px; color: #173d43; background: transparent; box-shadow: 0 26px 80px rgba(7,35,42,.32); }
.simulation-inspect-dialog::backdrop { background: rgba(8,28,34,.68); backdrop-filter: blur(4px); }
.simulation-inspect-card { padding: 25px; background: #f8fbfa; }
.simulation-inspect-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.simulation-inspect-card header span { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.simulation-inspect-card h3 { margin: 5px 0 0; font-size: 22px; }
.simulation-inspect-card header button { width: 36px; height: 36px; border: 1px solid #d4e2e1; border-radius: 10px; color: #587175; background: #fff; font-size: 22px; cursor: pointer; }
.simulation-inspect-lead { margin: 14px 0 17px; color: #60767a; font-size: 13px; line-height: 1.7; }
.simulation-inspect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.simulation-inspect-grid article { min-height: 104px; padding: 15px; border: 1px solid #dce8e7; border-radius: 12px; background: #fff; }
.simulation-inspect-grid article.is-focused { border-color: #2e9d93; box-shadow: 0 0 0 3px rgba(46,157,147,.13); }
.simulation-inspect-grid span, .simulation-inspect-grid strong, .simulation-inspect-grid small { display: block; }
.simulation-inspect-grid span { color: #7b9093; font-size: 12px; font-weight: 700; }
.simulation-inspect-grid strong { margin-top: 8px; color: #183f45; font-family: Consolas, "Microsoft YaHei", sans-serif; font-size: 17px; overflow-wrap: anywhere; }
.simulation-inspect-grid small { margin-top: 7px; color: #85979a; font-size: 12px; line-height: 1.55; }
.simulation-inspect-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; padding-top: 17px; border-top: 1px solid #dfe9e8; }
.simulation-inspect-actions button { min-height: 42px; border: 1px solid #bed8d5; border-radius: 10px; color: var(--teal); background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.simulation-inspect-actions button:hover { color: #fff; background: var(--teal); }
.simulation-inspect-card footer { margin-top: 16px; padding: 10px 12px; border-radius: 9px; color: #8a6b48; background: #fff4e6; font-size: 12px; line-height: 1.6; }

.report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.report-header h2 { display: inline-block; margin-left: 8px; font-size: 21px; }
.report-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 18px; }
.score-panel { padding: 23px; text-align: center; }
.score-ring { width: 148px; height: 148px; display: flex; align-items: center; justify-content: center; margin: 0 auto 21px; border-radius: 50%; background: conic-gradient(var(--teal) 0 82%, #e5eded 82% 100%); }
.score-ring > div { width: 116px; height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #fff; }.score-ring strong { font-size: 38px; }.score-ring span { color: #71868b; font-size: 12px; }
.score-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }.score-summary > div { padding: 9px 3px; border-radius: 9px; background: #f5f8f8; }.score-summary strong,.score-summary span { display:block; }.score-summary strong { font-size: 13px; }.score-summary span { margin-top:3px; color:#819398; font-size:7px; }
.score-panel > p { margin: 17px 0 0; color: #a37a4e; font-size: 12px; }
.feedback-card { display: flex; gap: 11px; margin: 13px 20px; padding: 12px; border-radius: 11px; }
.feedback-card > i { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 8px; font-style: normal; font-weight: 800; }.feedback-card strong { font-size: 12px; }.feedback-card p { margin: 4px 0 0; color: #6f8085; font-size: 12px; line-height: 1.6; }
.feedback-card.danger { background: var(--danger-soft); }.feedback-card.danger > i { color: var(--danger); background: #f8d8d6; }
.feedback-card.warning { background: var(--orange-soft); }.feedback-card.warning > i { color: var(--orange); background: #f8d9b6; }
.feedback-card.success { background: var(--teal-soft); }.feedback-card.success > i { color: var(--teal); background: #ccebe5; }
.evidence-panel { margin-top: 18px; padding-bottom: 18px; }.legend .pass { background: var(--teal); }.legend .review { margin-left: 8px; background: var(--orange); }.legend .fail { margin-left: 8px; background: var(--danger); }
.timeline { padding: 27px 25px 17px; }.timeline-track { position: relative; height: 11px; border-radius: 8px; background: #e8eeee; }.segment { position:absolute; top:0; height:100%; border-radius:8px; }.segment.pass { background: var(--teal); }.segment.review { background: var(--orange); }.segment.fail { background: var(--danger); }
.segment-a { left: 2%; width: 13%; }.segment-b { left: 17%; width: 15%; }.segment-c { left: 34%; width: 12%; }.segment-d { left: 48%; width: 15%; }.segment-e { left: 65%; width: 13%; }.segment-f { left: 80%; width: 17%; }
.time-labels { display: flex; justify-content: space-between; margin-top: 8px; color: #93a1a5; font-size: 12px; }
.evidence-table { margin: 0 22px; border: 1px solid #e4ebeb; border-radius: 12px; overflow: hidden; }.evidence-row { display:grid; grid-template-columns:.55fr 1fr 1fr 1.8fr .7fr; align-items:center; min-height:44px; padding:0 12px; border-bottom:1px solid #e8eeee; font-size: 12px; }.evidence-row:last-child { border:0; }.evidence-row.header { min-height:35px; color:#748a8f; background:#f5f8f8; font-size: 12px; font-weight:700; }.evidence-row button { justify-self:start; padding:4px 7px; border:1px solid #d7e4e4; border-radius:6px; color:var(--teal); background:#fff; font-size: 12px; cursor:pointer; }
.status { font-weight:700; }.pass-text { color:var(--teal); }.review-text { color:var(--orange); }.fail-text { color:var(--danger); }

.filter-pills { display:flex; gap:5px; }.filter-pills button { padding:5px 8px; border:1px solid #dce7e7; border-radius:13px; color:#73858a; background:#fff; font-size: 12px; cursor:pointer; }.filter-pills button.active { border-color:var(--teal); color:var(--teal); background:var(--teal-soft); }
.review-table { margin: 17px 22px 22px; border:1px solid #e2eaea; border-radius:12px; overflow:hidden; }.review-row { display:grid; grid-template-columns:1.1fr 1.2fr .65fr 1.1fr .85fr .75fr; align-items:center; min-height:58px; padding:0 12px; border-bottom:1px solid #e8eeee; font-size: 12px; }.review-row:last-child { border:0; }.review-row.header { min-height:36px; color:#74888d; background:#f5f8f8; font-size: 12px; font-weight:700; }.review-row > span:first-child { display:flex; align-items:center; gap:8px; }.avatar-table { width:29px; height:29px; border-radius:9px; font-size: 12px; }.blue-avatar { background:linear-gradient(135deg,#5a82e9,#3559ae); }.violet-avatar { background:linear-gradient(135deg,#9578db,#6b4eb2); }
.priority { padding:4px 7px; border-radius:10px; font-size: 12px; font-style:normal; }.priority.high { color:#a53d3d; background:var(--danger-soft); }.priority.medium { color:#9a6426; background:var(--orange-soft); }.table-action { padding:6px 9px; border:1px solid #b9d9d5; border-radius:7px; color:var(--teal); background:#f4fbfa; font-size: 12px; cursor:pointer; }

.architecture-flow { max-width: 970px; margin: 0 auto; }.architecture-layer { display:flex; align-items:stretch; gap:10px; padding:14px; border:1px solid #dce7e7; border-radius:16px; background:#fff; box-shadow:var(--shadow); }.architecture-layer > span { width:70px; display:flex; align-items:center; justify-content:center; border-radius:10px; color:#fff; background:var(--teal); font-size: 12px; font-weight:800; }.architecture-layer > div { flex:1; padding:12px; border-radius:10px; background:#f4f9f8; text-align:center; }.architecture-layer b,.architecture-layer small { display:block; }.architecture-layer b { font-size: 12px; }.architecture-layer small { margin-top:4px; color:#819397; font-size: 12px; }.service-layer > span { background:var(--blue); }.service-layer > div { background:var(--blue-soft); }.ai-layer > span { background:var(--violet); }.ai-layer > div { background:var(--violet-soft); }.data-layer > span { background:var(--orange); }.data-layer > div { background:var(--orange-soft); }.arch-arrow { padding:8px; color:#81989a; font-size: 12px; text-align:center; }
.roadmap-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; margin-top:25px; }.roadmap-grid article { padding:17px; border:1px solid #e0e9e9; border-radius:14px; background:#fff; }.roadmap-grid span,.roadmap-grid strong { display:block; }.roadmap-grid span { color:var(--teal); font-size: 12px; font-weight:800; }.roadmap-grid strong { margin:8px 0 5px; font-size: 13px; }.roadmap-grid p { margin:0; color:#7c9095; font-size: 12px; line-height:1.6; }

.risk-banner { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:17px; margin-bottom:18px; padding:24px; border:1px solid #ecc9c5; border-radius:18px; background:linear-gradient(105deg,#fff3f1,#fff); }.risk-icon { width:48px; height:48px; display:flex; align-items:center; justify-content:center; border-radius:14px; color:#fff; background:var(--danger); font-size:24px; font-weight:800; }.risk-banner span { color:#a85b54; font-size: 12px; font-weight:800; }.risk-banner h2 { margin:4px 0 6px; font-size:20px; }.risk-banner p { margin:0; color:#826b69; font-size: 12px; }.source-grid { display:grid; grid-template-columns:1fr 1.15fr; gap:18px; }.source-status { padding-bottom:15px; }.source-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; margin:12px 20px; padding-bottom:12px; border-bottom:1px solid #e9eeee; }.source-row:last-child { border:0; }.source-type { min-width:36px; padding:5px 7px; border-radius:7px; font-size: 12px; font-weight:800; text-align:center; }.source-type.public { color:var(--blue); background:var(--blue-soft); }.source-type.third { color:var(--danger); background:var(--danger-soft); }.source-type.owned { color:var(--teal); background:var(--teal-soft); }.source-type.expert { color:var(--violet); background:var(--violet-soft); }.source-row strong,.source-row small { display:block; }.source-row strong { font-size: 12px; }.source-row small { margin-top:3px; color:#819297; font-size: 12px; }.source-row em { color:#667b80; font-size: 12px; font-style:normal; font-weight:700; }.danger-text { color:var(--danger)!important; }.success-text { color:var(--teal)!important; }
.policy-flow { display:flex; align-items:center; padding:28px 22px; }.policy-flow div { flex:1; min-height:92px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:10px; border:1px solid #dfe9e9; border-radius:12px; background:#f8fbfa; text-align:center; }.policy-flow b,.policy-flow span { display:block; }.policy-flow b { margin-bottom:6px; font-size: 12px; }.policy-flow span { color:#7b8e92; font-size: 12px; line-height:1.5; }.policy-flow i { padding:0 6px; color:#72a9a5; font-style:normal; }
.teacher-questions { margin-top:18px; padding-bottom:22px; }.question-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; padding:18px 22px 0; }.question-grid > div { position:relative; min-height:116px; padding:17px; border:1px solid #e0e9e9; border-radius:13px; background:#fafcfc; }.question-grid span { position:absolute; right:12px; top:9px; color:#dbe5e5; font-size:26px; font-weight:800; }.question-grid strong { position:relative; display:block; margin-bottom:8px; color:var(--teal); font-size: 12px; }.question-grid p { position:relative; margin:0; color:#576d72; font-size: 12px; line-height:1.7; }

.toast { position:fixed; z-index:200; left:50%; bottom:30px; padding:10px 16px; border-radius:10px; color:#fff; background:#173b43; box-shadow:0 12px 28px rgba(14,49,57,.25); font-size: 13px; opacity:0; pointer-events:none; transform:translate(-50%,12px); transition:.22s ease; }.toast.show { opacity:1; transform:translate(-50%,0); }

/* 管理端：以高密度表格和明确操作为主，不加入装饰性说明。 */
.admin-page { max-width: 1440px; margin: 0 auto; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-metrics article { padding: 20px; border: 1px solid #dce8e7; border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.admin-metrics span, .admin-metrics strong { display: block; }
.admin-metrics span { color: #74888d; font-size: 12px; }
.admin-metrics strong { margin-top: 8px; color: #123f46; font-size: 28px; }
.admin-panel { padding: 0; overflow: hidden; }
.admin-panel-title { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e3eceb; }
.admin-panel-title h2 { margin: 0; font-size: 18px; }
.admin-filter { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; padding: 16px; border: 1px solid #dce8e7; border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.admin-filter input, .admin-filter select { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #d5e3e2; border-radius: 9px; color: #23494d; background: #fff; font: inherit; }
.admin-table { min-height: 88px; overflow-x: auto; }
.admin-row { display: grid; grid-template-columns: repeat(var(--admin-columns, 6), minmax(110px, 1fr)); align-items: center; min-width: 760px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid #e7eeee; font-size: 12px; }
.admin-row:last-child { border-bottom: 0; }
.admin-row.header { min-height: 42px; color: #71878b; background: #f4f8f7; font-size: 12px; font-weight: 800; }
.admin-row button { justify-self: start; min-height: 30px; padding: 0 10px; border: 1px solid #b9d9d5; border-radius: 7px; color: var(--teal); background: #f4fbfa; font-weight: 700; cursor: pointer; }
.admin-row button.danger { border-color: #e6bfbc; color: #a74a43; background: #fff4f3; }
.admin-status { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 12px; color: #18766d; background: #e3f4f1; font-style: normal; font-weight: 800; }
.admin-status.disabled, .admin-status.removed, .admin-status.rejected { color: #9e4d47; background: #fae8e6; }
.admin-status.locked, .admin-status.pending { color: #986424; background: #fff1dd; }
.admin-empty { display: flex; min-height: 100px; align-items: center; justify-content: center; color: #7b9094; font-size: 13px; }
.admin-pagination { display: flex; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid #e7eeee; }
.admin-pagination button { min-width: 72px; height: 32px; border: 1px solid #c8dedb; border-radius: 8px; color: var(--teal); background: #fff; cursor: pointer; }
.admin-pagination button:disabled { opacity: .45; cursor: default; }
.admin-invite-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.admin-secret-output { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid #bcded9; border-radius: 12px; background: #eef9f7; }
.admin-secret-output strong { overflow-wrap: anywhere; font: 700 12px Consolas, monospace; }
.admin-detail-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; background: transparent; box-shadow: 0 24px 80px rgba(7,35,42,.32); }
.admin-detail-dialog::backdrop { background: rgba(7,29,35,.65); }
.admin-detail-card { padding: 22px; background: #fff; }
.admin-detail-card > header { display: flex; align-items: center; justify-content: space-between; }
.admin-detail-card h2 { margin: 0; font-size: 21px; }
.admin-detail-card > header button { width: 34px; height: 34px; border: 1px solid #d8e4e3; border-radius: 9px; color: #526d71; background: #fff; font-size: 20px; cursor: pointer; }
.admin-account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 18px 0; }
.admin-account-grid div { padding: 12px; border: 1px solid #e0e9e9; border-radius: 10px; background: #f8fbfa; }
.admin-account-grid span, .admin-account-grid strong { display: block; }
.admin-account-grid span { color: #7b8f93; font-size: 12px; }
.admin-account-grid strong { margin-top: 4px; font-size: 13px; }
.admin-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 15px; border-top: 1px solid #e3ebeb; }
.admin-detail-actions select { min-height: 38px; padding: 0 9px; border: 1px solid #d2e1df; border-radius: 8px; }
.auth-signed-in .button + .button { margin-top: 9px; }

@media (max-width: 1280px) {
  .content { padding-left: 28px; padding-right: 28px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .process-step { width: 78px; }
}

@media (max-width: 900px) {
  .simulation-shell { grid-template-columns: 1fr; }
  .simulation-inspect-grid { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-filter { grid-template-columns: 1fr 1fr; }
}

/* 情景沟通训练：页面、准备区与训练场景共享同一组病例视觉变量。 */
.communication-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.communication-head h2 { margin: 7px 0 0; font-size: 26px; }
.communication-tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid #dce7e8; border-radius: 13px; background: #edf4f3; }
.communication-tabs button { min-height: 36px; padding: 0 15px; border: 0; border-radius: 9px; color: #627b80; background: transparent; font-weight: 700; cursor: pointer; }
.communication-tabs button.active { color: #fff; background: #087f78; box-shadow: 0 5px 13px rgba(8,127,120,.2); }
.communication-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.communication-case-card { min-height: 420px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce8e7; border-radius: 20px; color: #202522 !important; background: #fff; box-shadow: 0 14px 32px rgba(18,63,67,.08); }
.communication-case-visual { position: relative; height: 196px; overflow: hidden; background: linear-gradient(155deg, #d9eee9, #f3efe5); }
.communication-case-visual::before { content: ""; position: absolute; inset: 28px 18% -70px; border-radius: 50% 50% 0 0; background: var(--case-color, #187f78); opacity: .88; }
.communication-case-visual::after { content: ""; position: absolute; left: 50%; top: 34px; width: 92px; height: 112px; border-radius: 48% 48% 44% 44%; background: #e8ba98; box-shadow: 0 -18px 0 4px var(--case-hair, #394443); transform: translateX(-50%); }
.communication-case-card .communication-case-visual { background-position: 0 3%; background-repeat: no-repeat; background-size: 200% auto; }
.communication-case-card .communication-case-visual::before,
.communication-case-card .communication-case-visual::after { display: none; }
.communication-case-card[data-visual="wang-36"] .communication-case-visual { background-image: linear-gradient(rgba(226,241,237,.15), rgba(226,241,237,.15)), url("assets/patients/wang-36-sprites.png"); }
.communication-case-card[data-visual="li-47"] .communication-case-visual { background-image: linear-gradient(rgba(226,241,237,.15), rgba(226,241,237,.15)), url("assets/patients/li-47-sprites.png"); }
.communication-case-card[data-visual="zhou-58"] .communication-case-visual { background-image: linear-gradient(rgba(226,241,237,.15), rgba(226,241,237,.15)), url("assets/patients/zhou-58-sprites.png"); }
.communication-case-card[data-visual="li-47"] { --case-color: #3d7085; --case-hair: #41362f; }
.communication-case-card[data-visual="zhou-58"] { --case-color: #806a62; --case-hair: #6d6e6a; }
.communication-case-copy { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.communication-case-meta { display: flex; justify-content: space-between; align-items: center; color: #202522 !important; font-size: 13px; }
.communication-case-meta > span:first-child { color: #202522 !important; }
.communication-case-copy h3 { margin: 15px 0 8px; color: #202522 !important; font-size: 20px; }
.communication-case-copy p { margin: 0; color: #343c37 !important; line-height: 1.7; }
.communication-case-copy .button { width: 100%; margin-top: auto; }
.communication-feedback { min-height: 22px; margin: 14px 0 0; color: #667f84; font-size: 13px; }
.communication-feedback.error { color: #a13f3f; }
.communication-list { display: grid; gap: 12px; }
.communication-list-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid #dce7e8; border-radius: 15px; background: #fff; }
.communication-list-card h3 { margin: 0 0 6px; font-size: 15px; }
.communication-list-card p { margin: 0; color: #6a8085; font-size: 13px; }
.communication-list-actions { display: flex; align-items: center; gap: 8px; }
.communication-assignment-create { margin-bottom: 18px; padding: 22px; }
.communication-assignment-create form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; gap: 12px; }
.communication-assignment-create label { display: grid; gap: 7px; color: #38545c; font-size: 13px; font-weight: 700; }
.communication-assignment-create select { height: 40px; padding: 0 10px; border: 1px solid #d6e2e4; border-radius: 10px; background: #fff; }
.communication-prep > .text-button, .communication-review > .text-button { margin-bottom: 18px; }
.communication-prep-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.communication-reception-card { min-height: 410px; padding: 38px; border-radius: 22px; color: #fff; background: linear-gradient(145deg, #0b756f, #123f55); box-shadow: 0 18px 40px rgba(13,83,88,.18); }
.communication-reception-card h2 { margin: 0 0 7px; font-size: 30px; }
.communication-reception-card > div > strong { color: #cce5e3; font-size: 13px; }
.communication-reception-card dl, .communication-reception-dialog dl { display: grid; gap: 0; margin: 30px 0 0; }
.communication-reception-card dl div, .communication-reception-dialog dl div { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15); }
.communication-reception-card dt, .communication-reception-dialog dt { margin-bottom: 7px; color: #9fc9c6; font-size: 12px; }
.communication-reception-card dd, .communication-reception-dialog dd { margin: 0; line-height: 1.65; }
.communication-device-card { align-self: stretch; padding: 28px; }
.communication-device-card h3 { margin: 0 0 25px; font-size: 20px; }
.communication-check-list { display: grid; gap: 12px; margin-bottom: 18px; }
.communication-check-list div { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e0e9e9; border-radius: 12px; color: #526d72; background: #f8fbfa; }
.communication-check-list i { width: 11px; height: 11px; border: 2px solid #9aabad; border-radius: 50%; }
.communication-check-list div.checking i { border-color: #d9a441; border-top-color: transparent; animation: communicationSpin .8s linear infinite; }
.communication-check-list div.passed i { border: 0; background: #2caf8c; box-shadow: 0 0 0 4px rgba(44,175,140,.12); }
.communication-check-list div.failed i { border: 0; background: #bd5a50; box-shadow: 0 0 0 4px rgba(189,90,80,.12); }
@keyframes communicationSpin { to { transform: rotate(360deg); } }
.communication-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.communication-review-grid > .panel { min-height: 520px; padding: 24px; }
.communication-transcript { max-height: 620px; display: grid; gap: 12px; overflow: auto; }
.communication-transcript article { max-width: 86%; padding: 12px 14px; border-radius: 13px; background: #f0f5f4; line-height: 1.65; }
.communication-transcript article.learner { justify-self: end; background: #def2ed; }
.communication-transcript article strong { display: block; margin-bottom: 4px; color: #668086; font-size: 12px; }
.communication-dimensions { display: grid; gap: 10px; }
.communication-dimension { padding: 14px; border: 1px solid #dfe9e9; border-radius: 12px; }
.communication-dimension > div { display: flex; justify-content: space-between; gap: 10px; }
.communication-dimension p { margin: 8px 0 0; color: #637b80; font-size: 13px; line-height: 1.6; }
.communication-dimension em { color: #087f78; font-size: 12px; font-style: normal; font-weight: 700; }
.communication-review-actions { display: grid; gap: 10px; margin-top: 18px; }
.communication-review-actions form { display: grid; gap: 10px; }
.communication-review-actions select, .communication-review-actions textarea { width: 100%; padding: 10px; border: 1px solid #d6e2e4; border-radius: 10px; font: inherit; }

body.communication-mode { overflow: hidden; }
.communication-immersive {
  --communication-room-background: linear-gradient(to bottom, #dceceb 0 64%, #b8cbc8 64% 100%);
  --communication-feature-left: 5%;
  --communication-feature-top: 17%;
  --communication-feature-width: 44%;
  --communication-feature-height: 45%;
  --communication-feature-border: 13px solid rgba(255,255,255,.82);
  --communication-feature-radius: 0;
  --communication-feature-background: linear-gradient(143deg, #9ac5c4 0 36%, #d9eeee 36% 63%, #abc8b9 63% 100%);
  --communication-console-left: 7%;
  --communication-console-bottom: 9%;
  --communication-console-width: 44%;
  --communication-console-height: 15%;
  --communication-console-background: linear-gradient(to bottom, #789a96 0 10px, #f6faf9 10px 100%);
  --communication-patient-right: 4%;
  --communication-patient-bottom: 7%;
  --communication-patient-stage-width: 42%;
  --communication-patient-width: min(36vw, 640px, calc(100vh - 130px));
  position: fixed;
  inset: 0;
  z-index: 12000;
  overflow: hidden;
  color: #17363b;
  background: #dfeae7;
}
.communication-immersive[data-visual="li-47"] {
  --communication-room-background:
    linear-gradient(90deg, rgba(255,255,255,.2), transparent 45%),
    linear-gradient(to bottom, #eee9df 0 62%, #c4d0c7 62% 100%);
  --communication-feature-left: 4%;
  --communication-feature-top: 13%;
  --communication-feature-width: 35%;
  --communication-feature-height: 55%;
  --communication-feature-border: 10px solid rgba(255,255,255,.72);
  --communication-feature-radius: 16px 16px 4px 4px;
  --communication-feature-background: repeating-linear-gradient(90deg, #c5d8d2 0 42px, #b7cec7 42px 48px, #d6e4df 48px 86px);
  --communication-console-left: 7%;
  --communication-console-bottom: 9%;
  --communication-console-width: 43%;
  --communication-console-height: 16%;
  --communication-console-background: linear-gradient(to bottom, #8b9f98 0 10px, #f5f7f4 10px 100%);
  --communication-patient-right: 4%;
}
.communication-immersive[data-visual="zhou-58"] {
  --communication-room-background:
    linear-gradient(90deg, rgba(83,112,116,.08), transparent 42%),
    linear-gradient(to bottom, #dfe8e7 0 63%, #b9c8c7 63% 100%);
  --communication-feature-left: 5%;
  --communication-feature-top: 16%;
  --communication-feature-width: 43%;
  --communication-feature-height: 47%;
  --communication-feature-border: 12px solid rgba(255,255,255,.78);
  --communication-feature-radius: 5px;
  --communication-feature-background:
    repeating-linear-gradient(to bottom, transparent 0 31%, rgba(105,139,142,.35) 31% 33%),
    repeating-linear-gradient(90deg, #eef4f3 0 31%, #9fb8b7 31% 33%, #d8e6e4 33% 64%, #9fb8b7 64% 66%, #eef4f3 66% 100%);
  --communication-console-left: 7%;
  --communication-console-bottom: 9%;
  --communication-console-width: 44%;
  --communication-console-height: 15%;
  --communication-console-background: linear-gradient(to bottom, #6f8f91 0 10px, #f4f8f7 10px 100%);
  --communication-patient-right: 4%;
  --communication-patient-stage-width: 42%;
}
.communication-scene-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: var(--communication-room-background);
}
.communication-scene-background::before {
  content: "";
  position: absolute;
  left: var(--communication-feature-left);
  top: var(--communication-feature-top);
  width: var(--communication-feature-width);
  height: var(--communication-feature-height);
  border: var(--communication-feature-border);
  border-radius: var(--communication-feature-radius);
  background: var(--communication-feature-background);
  box-shadow: 0 18px 38px rgba(47,82,84,.08);
}
.communication-scene-background::after {
  content: "";
  position: absolute;
  left: var(--communication-console-left);
  bottom: var(--communication-console-bottom);
  width: var(--communication-console-width);
  height: var(--communication-console-height);
  border-radius: 13px 13px 0 0;
  background: var(--communication-console-background);
  box-shadow: 0 18px 42px rgba(47,82,84,.1);
}
.communication-immersive::after { content: none; }
.communication-immersive-bar { position: absolute; inset: 0 0 auto; z-index: 3; height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 36px; background: linear-gradient(rgba(13,44,48,.75), transparent); }
.communication-immersive-bar > div { display: flex; gap: 9px; }
.communication-immersive-bar button { min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,.4); border-radius: 11px; color: #fff; background: rgba(15,59,62,.54); font-weight: 700; cursor: pointer; }
.communication-immersive-bar > button { justify-self: end; }
.communication-immersive-bar strong { min-width: 92px; color: #fff; font-size: 25px; text-align: center; font-variant-numeric: tabular-nums; }
.communication-immersive-bar strong.warning { color: #ffd28b; }
.communication-patient-stage { position: absolute; z-index: 1; right: var(--communication-patient-right); bottom: var(--communication-patient-bottom); width: var(--communication-patient-stage-width); height: calc(97.5% - 92px); display: flex; align-items: flex-end; justify-content: center; }
.communication-patient-figure { position: relative; width: var(--communication-patient-width); height: auto; aspect-ratio: 1; transform: none; animation: none; }
.communication-patient-stage[data-visual] .communication-patient-figure { background-repeat: no-repeat; background-size: 200% 200%; filter: drop-shadow(0 24px 28px rgba(25,58,61,.2)); }
.communication-patient-stage[data-visual] .communication-patient-figure > * { display: none; }
.communication-patient-stage[data-visual="wang-36"] .communication-patient-figure { background-image: url("assets/patients/wang-36-sprites.png"); }
.communication-patient-stage[data-visual="li-47"] .communication-patient-figure { background-image: url("assets/patients/li-47-sprites.png"); }
.communication-patient-stage[data-visual="zhou-58"] .communication-patient-figure { background-image: url("assets/patients/zhou-58-sprites.png"); }
.communication-patient-stage[data-emotion="calm"] .communication-patient-figure { background-position: 0 0; }
.communication-patient-stage[data-emotion="nervous"] .communication-patient-figure { background-position: 100% 0; }
.communication-patient-stage[data-emotion="skeptical"] .communication-patient-figure,
.communication-patient-stage[data-emotion="resistant"] .communication-patient-figure { background-position: 0 100%; }
.communication-patient-stage[data-emotion="relaxed"] .communication-patient-figure { background-position: 100% 100%; }
.patient-body { position: absolute; left: 9%; right: 9%; bottom: -12%; height: 56%; border-radius: 50% 50% 12% 12%; background: linear-gradient(100deg, #146e72, #459b94 48%, #11535d); box-shadow: 0 28px 60px rgba(25,58,61,.24); }
.patient-face { position: absolute; z-index: 2; left: 50%; top: 12%; width: 43%; height: 36%; border-radius: 46% 46% 49% 49%; background: linear-gradient(105deg, #dba882, #efc19e 46%, #d49973); box-shadow: inset -12px -7px 20px rgba(120,68,48,.1); transform: translateX(-50%); }
.patient-hair { position: absolute; z-index: 3; left: 27%; top: 8%; width: 46%; height: 19%; border-radius: 55% 58% 25% 20%; background: #394342; transform: rotate(-2deg); }
.patient-hair::after { content: ""; position: absolute; right: 1%; top: 28%; width: 24%; height: 110%; border-radius: 30% 55%; background: inherit; }
.eye { position: absolute; top: 45%; width: 10%; height: 4%; border-radius: 50%; background: #333a38; animation: patientBlink 5.6s infinite; }
.eye-left { left: 25%; }.eye-right { right: 25%; }
.patient-mouth { position: absolute; left: 50%; top: 69%; width: 17%; height: 3%; border-radius: 0 0 50% 50%; background: #965f59; transform: translateX(-50%); transition: .2s; }
.communication-patient-stage[data-emotion="nervous"] .patient-mouth { height: 6%; border-radius: 50%; }
.communication-patient-stage[data-emotion="skeptical"] .eye-right { transform: translateY(-5px) rotate(-8deg); }
.communication-patient-stage[data-emotion="resistant"] .patient-mouth { border-radius: 50% 50% 0 0; transform: translateX(-50%) rotate(-4deg); }
.communication-patient-stage[data-emotion="relaxed"] .patient-mouth { height: 6%; border-radius: 0 0 50% 50%; }
@keyframes patientBlink { 0%,46%,50%,100% { transform: scaleY(1); } 48% { transform: scaleY(.08); } }
.communication-thinking { position: absolute; top: 30%; left: 3%; display: flex; gap: 7px; padding: 13px 17px; border-radius: 18px; background: rgba(255,255,255,.9); }
.communication-thinking i { width: 7px; height: 7px; border-radius: 50%; background: #318d87; animation: thinkingDot 1s infinite alternate; }
.communication-thinking i:nth-child(2) { animation-delay: .2s; }.communication-thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes thinkingDot { to { opacity: .25; transform: translateY(-5px); } }
.communication-live-subtitle { position: absolute; z-index: 4; left: 50%; bottom: 3.5%; width: min(860px, calc(100vw - 64px)); min-height: 60px; padding: 15px 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; color: #fff; background: rgba(8,38,43,.88); box-shadow: 0 15px 40px rgba(10,42,46,.22); font-size: 20px; line-height: 1.5; text-align: center; transform: translateX(-50%); }
.communication-reception-dialog, .communication-end-dialog { width: min(520px, calc(100vw - 40px)); padding: 24px; border: 0; border-radius: 18px; box-shadow: 0 25px 80px rgba(7,35,42,.35); }
.communication-reception-dialog::backdrop, .communication-end-dialog::backdrop { background: rgba(8,28,34,.54); }
.communication-reception-dialog dl { margin-top: 10px; }
.communication-reception-dialog dl div { border-color: #e2eaea; }
.communication-reception-dialog dt { color: #779094; }
.communication-end-dialog h2 { margin: 0 0 22px; text-align: center; }
.communication-end-dialog > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.communication-end-dialog button { min-height: 44px; border: 1px solid #cfe0df; border-radius: 11px; color: #315b5f; background: #fff; font-weight: 700; cursor: pointer; }
.communication-end-dialog button:last-child { color: #fff; border-color: #087f78; background: #087f78; }

/* 信息层级以中文主标题和正文为主，移除重复的英文微型标签。 */
.eyebrow, .section-kicker { display: none; }

@media (max-width: 1100px) {
  .sidebar { width: 210px; padding-left: 14px; padding-right: 14px; }
  .main-area { width: calc(100% - 210px); margin-left: 210px; }
  .topbar, .content { padding-left: 24px; padding-right: 24px; }
  .hero-copy { padding: 36px; }
  .quiz-layout, .guidance-grid { grid-template-columns: minmax(210px, .55fr) minmax(0, 1fr); }
  .agent-shell { grid-template-columns: minmax(0, 1fr) 250px; }
  .quiz-report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 10px 14px 0; }
  .brand { min-width: 0; padding: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark span:first-child, .brand-mark span:last-child { left: 8px; top: 15px; }
  .account-card { width: auto; min-height: 44px; margin: 0; padding: 5px 9px; border-color: transparent; background: transparent; }
  .account-card:hover, .account-card:focus-visible { background: #f4faf9; }
  .account-card > .account-card-label { display: none; }
  .account-summary small { display: none; }
  .nav-list { grid-column: 1 / -1; flex: none; flex-direction: row; gap: 2px; margin-top: 7px; overflow-x: auto; overflow-y: hidden; padding: 4px 0 6px; border-top: 1px solid #e5eeee; }
  .nav-item { width: auto; min-width: max-content; min-height: 44px; justify-content: center; padding: 9px 11px; }
  .nav-icon { display: none; }
  .sidebar-footer { display: none; }
  .main-area { width: 100%; margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 15; height: 54px; padding: 0 18px; }
  .system-status { display: none; }
  .topbar .avatar-button { display: none; }
  .content { padding: 16px 18px 40px; }
  .hero-card, .dashboard-grid, .project-grid, .quiz-layout, .guidance-grid, .agent-shell,
  .communication-case-grid, .communication-prep-grid, .communication-review-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 0; }
  .hero-copy { padding: 30px 24px; }
  .hero-visual { min-height: 250px; }
  .quiz-control-panel, .quiz-question-panel { min-height: 0; }
  .quiz-empty { min-height: 230px; }
  .quiz-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-diagnostic-table { overflow-x: auto; }
  .quiz-diagnostic-row { min-width: 620px; }
  .communication-case-card { min-height: 0; }
}

@media (max-width: 520px) {
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .brand { gap: 9px; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .account-card { padding-right: 5px; }
  .account-summary { gap: 7px; }
  .account-summary strong { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar h1 { font-size: 19px; }
  .content { padding-left: 12px; padding-right: 12px; }
  .function-grid { gap: 12px; }
  .function-card-primary { padding: 18px; }
  .function-card-support { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; padding: 15px 14px; }
  .function-card-support .function-card-icon { width: 38px; height: 38px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .quiz-metrics { grid-template-columns: repeat(3, 1fr); }
  .quiz-metrics article { align-items: flex-start; flex-direction: column; gap: 5px; padding: 12px 10px; }
  .project-card { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .project-card .button { grid-column: 2; width: 100%; margin-top: 2px; }
  .quiz-report { padding: 18px; }
  .quiz-report-heading { align-items: stretch; flex-direction: column; }
  .quiz-report-heading .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1450px) {
  .communication-case-grid { gap: 14px; }
  .communication-case-card { min-height: 385px; }
  .communication-case-visual { height: 165px; }
  .communication-reception-card { min-height: 360px; }
}
@media (max-height: 800px) {
  .communication-immersive {
    --communication-patient-bottom: 4%;
    --communication-patient-width: min(36vw, 560px, calc(100vh - 105px));
  }
  .communication-patient-stage { height: calc(97.5% - 78px); }
  .communication-live-subtitle { bottom: 3%; min-height: 52px; padding: 11px 20px; font-size: 17px; }
}

@media (max-width: 900px) {
  .communication-immersive { --communication-patient-right: 0; --communication-patient-stage-width: 72%; --communication-patient-width: min(48vw, calc((100vh - 86px) * 2 / 3)); }
  .communication-immersive[data-visual="zhou-58"] { --communication-patient-right: 8%; --communication-patient-stage-width: 62%; }
  .communication-immersive-bar { height: 72px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .communication-immersive-bar strong { order: 3; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); }
  .communication-patient-stage { height: calc(97.5% - 80px); }
  .communication-live-subtitle { width: calc(100vw - 28px); bottom: 2%; font-size: 17px; }
}

/* 2026 unified product language: Syn-BioGPT / Rongzhitong family */
:root {
  color-scheme: light;
  --ink: #10253c;
  --ink-soft: #294159;
  --muted: #667b8f;
  --line: rgba(18, 68, 102, .12);
  --line-soft: rgba(18, 68, 102, .07);
  --canvas: #f8fbfd;
  --surface: rgba(255, 255, 255, .84);
  --teal: #0b9d95;
  --teal-dark: #08766f;
  --teal-soft: rgba(11, 157, 149, .10);
  --blue: #0b63b4;
  --blue-soft: rgba(11, 99, 180, .09);
  --orange: #c47a2a;
  --orange-soft: #fff4e5;
  --violet: #6b5bc6;
  --violet-soft: #f2efff;
  --danger: #c9535b;
  --danger-soft: #fff0f1;
  --shadow: 0 24px 70px rgba(28, 64, 92, .11);
  --shadow-soft: 0 12px 34px rgba(28, 64, 92, .075);
  --radius: 20px;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

html { min-height: 100%; }
body {
  min-height: 100%;
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 193, 163, .115), transparent 31rem),
    radial-gradient(circle at 92% 82%, rgba(40, 108, 185, .105), transparent 34rem),
    var(--canvas);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .76) 74%, transparent 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--mouse-x) var(--mouse-y), rgba(37, 190, 172, .15), rgba(50, 119, 190, .045) 44%, transparent 72%);
}
button, input, select, textarea { font-family: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(11, 99, 180, .20);
  outline-offset: 3px;
}

.app-shell { min-height: 100svh; }
.sidebar {
  inset: 12px auto 12px 12px;
  width: 258px;
  padding: 20px 14px 15px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(250, 253, 254, .78);
  box-shadow: 0 22px 60px rgba(35, 71, 99, .10), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(22px) saturate(125%);
}
.brand { gap: 12px; padding: 5px 9px 20px; }
.brand strong { color: var(--ink); font-size: 20px; font-weight: 760; letter-spacing: .035em; }
.brand small { margin-top: 4px; color: #6f8295; font-size: 10px; font-weight: 650; letter-spacing: .2em; }
.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(17, 140, 150, .16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(226,247,248,.88));
  box-shadow: 0 10px 24px rgba(24, 104, 136, .12), inset 0 1px 0 #fff;
  transform: rotate(7deg);
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(12, 141, 150, .42); }
.brand-mark::before { inset: 7px; }
.brand-mark::after { inset: 12px; border-color: rgba(11, 99, 180, .38); }
.brand-mark span:first-child, .brand-mark span:last-child { left: 13px; top: 19px; width: 16px; height: 3px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.brand-mark span:last-child { transform: rotate(90deg); }

.account-card {
  margin-bottom: 14px;
  padding: 12px;
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
  transition: transform 160ms var(--ease-out), border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.account-card:hover, .account-card:focus-visible { border-color: rgba(11, 128, 151, .26); background: rgba(255,255,255,.94); box-shadow: 0 10px 24px rgba(31, 75, 105, .08); }
.account-card:active { transform: scale(.985); }
.account-card > .account-card-label { color: #73879a; letter-spacing: .08em; }
.account-summary { color: var(--ink-soft); }
.avatar { background: linear-gradient(135deg, var(--teal), var(--blue)); box-shadow: inset 0 1px 0 rgba(255,255,255,.32); }

.nav-list { gap: 4px; padding: 2px 1px; scrollbar-color: rgba(63, 119, 145, .24) transparent; }
.nav-item {
  min-height: 45px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #5e7285;
  font-size: 13px;
  font-weight: 560;
  transition: transform 150ms var(--ease-out), color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.58); }
.nav-item.active { color: var(--ink); border-color: rgba(18, 68, 102, .09); background: rgba(255,255,255,.91); box-shadow: 0 9px 22px rgba(32, 76, 105, .08), inset 0 1px 0 #fff; font-weight: 700; }
.nav-item.active::before { content: ""; position: absolute; left: 4px; top: 50%; width: 3px; height: 18px; border-radius: 99px; background: linear-gradient(var(--teal), var(--blue)); transform: translateY(-50%); }
.nav-item:active { transform: scale(.985); }
.nav-icon { color: #477b92; }
.sidebar-note { padding: 14px; border-color: var(--line); border-radius: 15px; background: rgba(255,255,255,.55); }
.sidebar-note strong { color: var(--ink-soft); }
.sidebar-note span { color: #73879a; }

.main-area { width: calc(100% - 282px); margin-left: 282px; }
.topbar {
  top: 12px;
  height: 76px;
  margin: 12px 18px 0;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 36px rgba(30, 72, 100, .075), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(20px) saturate(125%);
}
.topbar h1 { margin: 0; color: var(--ink); font-size: 23px; font-weight: 735; letter-spacing: -.025em; }
.topbar .eyebrow { display: none; }
.system-status { min-height: 34px; padding: 0 12px; border-color: var(--line); color: #587086; background: rgba(247,251,253,.8); }
.system-status i { background: #24aa76; box-shadow: 0 0 0 5px rgba(36,170,118,.09); }
.content { max-width: 1480px; padding: 26px 20px 58px; }
.page { animation: pageRise 320ms var(--ease-out); }
@keyframes pageRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.panel, .function-card, .recommended-home, .mentor-overview-stat, .baseline-shell, .deferred-home, .agent-main-card, .admin-metrics article, .admin-filter {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}
.panel, .recommended-home, .baseline-shell, .deferred-home, .agent-main-card { border-radius: 24px; }

.hero-card {
  min-height: 360px;
  border-color: var(--line);
  border-radius: 28px;
  background: radial-gradient(circle at 77% 40%, rgba(31, 193, 191, .17), transparent 23rem), linear-gradient(145deg, rgba(255,255,255,.94), rgba(237,248,251,.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-copy { padding: 48px 52px; }
.hero-copy h2 { max-width: 600px; margin: 22px 0 15px; color: var(--ink); font-size: clamp(30px, 3.2vw, 45px); line-height: 1.2; letter-spacing: -.045em; font-weight: 760; }
.hero-copy p { color: #60778b; font-size: 15px; line-height: 1.8; }
.hero-visual { background: radial-gradient(circle at 55% 48%, rgba(35, 188, 177, .14), transparent 48%); }
.ai-core { border-color: rgba(13, 126, 157, .16); background: rgba(255,255,255,.84); box-shadow: 0 26px 60px rgba(24, 82, 117, .14), inset 0 1px 0 #fff; backdrop-filter: blur(12px); }
.ai-core strong { background: linear-gradient(112deg, var(--teal), var(--blue)); color: transparent; background-clip: text; -webkit-background-clip: text; }
.orbit { border-color: rgba(31, 145, 170, .18); }
.float-card { border-color: var(--line); background: rgba(255,255,255,.86); box-shadow: 0 12px 28px rgba(32, 78, 105, .10); backdrop-filter: blur(12px); }

.pill { border-color: var(--line); color: #60788b; background: rgba(249,252,253,.84); }
.pill-light, .pill-success { border-color: rgba(11,157,149,.17); color: #087a73; background: rgba(11,157,149,.09); }
.button { min-height: 46px; border-radius: 14px; transition: transform 150ms var(--ease-out), box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.975); }
.button-primary, .hero-card .button-primary { border-color: rgba(255,255,255,.34); background: linear-gradient(112deg, var(--teal), var(--blue)); box-shadow: 0 12px 26px rgba(7, 92, 136, .22), inset 0 1px 0 rgba(255,255,255,.28); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(7, 92, 136, .28), inset 0 1px 0 rgba(255,255,255,.34); }
.button-secondary, .button-ghost { border-color: var(--line); color: var(--ink-soft); background: rgba(255,255,255,.76); }
.text-button { color: #0c7b83; }

.two-column { gap: 20px; }
.panel-heading { border-bottom-color: var(--line); }
.process-step.current b { border-color: var(--teal); color: var(--teal-dark); box-shadow: 0 0 0 5px var(--teal-soft); }
.process-step.completed b { border-color: var(--teal); background: linear-gradient(135deg, var(--teal), var(--blue)); }

.function-catalog { max-width: 1180px; padding-top: clamp(34px, 5vh, 62px); }
.function-group-heading { border-bottom-color: var(--line); }
.function-card { border-radius: 20px; }
.function-card-primary { min-height: 198px; padding: 24px; border-top: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.function-card-primary::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.function-card-icon { border-color: rgba(12,121,151,.15); border-radius: 12px; color: #0c7b83; background: linear-gradient(145deg, rgba(11,157,149,.09), rgba(11,99,180,.08)); }
.function-card:hover, .function-card:focus-visible { border-color: rgba(11, 119, 153, .22); background: rgba(255,255,255,.97); box-shadow: 0 18px 42px rgba(30,73,101,.12); transform: translateY(-3px); }
.function-card:active { transform: scale(.985); }
.function-card-enter { color: #0a7d82; }

.project-card, .communication-case-card, .mentor-result-card, .binding-card, .baseline-result-card, .quiz-question-card, .communication-reception-card {
  border-color: var(--line);
  background: rgba(255,255,255,.84);
  box-shadow: 0 10px 28px rgba(30,73,101,.065);
}
.project-card, .communication-case-card, .communication-reception-card { border-radius: 20px; }
.communication-case-card { overflow: hidden; }
.communication-case-card:hover { border-color: rgba(11,119,153,.22); box-shadow: 0 18px 42px rgba(30,73,101,.11); transform: translateY(-3px); }

.auth-dialog { border-radius: 26px; box-shadow: 0 36px 110px rgba(12, 42, 62, .34); }
.auth-dialog::backdrop { background: rgba(10,31,49,.46); backdrop-filter: blur(8px); }
.auth-panel { padding: 28px; border-color: rgba(255,255,255,.65); border-radius: 26px; background: rgba(255,255,255,.93); backdrop-filter: blur(24px); }
.auth-tabs { background: #edf3f6; }
.auth-tabs button.active { background: linear-gradient(112deg, var(--teal), var(--blue)); }
.auth-form input, .guidance-search input, .baseline-intake input, .baseline-intake select { border-color: var(--line); border-radius: 12px; color: var(--ink); background: rgba(249,252,253,.88); }
.auth-form input:focus, .guidance-search input:focus, .baseline-intake input:focus, .baseline-intake select:focus { border-color: rgba(11, 119, 153, .42); background: #fff; box-shadow: 0 0 0 4px rgba(11,99,180,.08); }

.recommended-home { max-width: 820px; margin-top: min(9vh, 82px); padding: clamp(34px, 5vw, 56px); }
.recommended-home-label { color: #087a73; background: var(--teal-soft); }
.recommended-home h2 { letter-spacing: -.035em; }
.baseline-shell { max-width: 860px; padding: 38px; }
.deferred-home { max-width: 820px; }
.admin-row button, .admin-pagination button, .mentor-result-card button, .binding-actions button { border-color: rgba(11,119,153,.18); border-radius: 10px; color: #0a7680; background: rgba(11,157,149,.07); }

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover, .button:hover, .function-card:hover, .communication-case-card:hover, .account-card:hover { will-change: transform; }
}

@media (max-width: 1100px) {
  .sidebar { width: 224px; }
  .main-area { width: calc(100% - 248px); margin-left: 248px; }
  .topbar { margin-right: 14px; margin-left: 14px; }
  .hero-copy { padding: 40px 34px; }
}

@media (max-width: 820px) {
  body::after { display: none; }
  .app-shell { display: block; padding: 10px; }
  .sidebar { position: relative; inset: auto; width: 100%; padding: 10px 12px 4px; border-radius: 22px; }
  .brand { padding-bottom: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark span:first-child, .brand-mark span:last-child { left: 12px; top: 17px; width: 14px; }
  .nav-list { border-top-color: var(--line); }
  .nav-item.active::before { left: 50%; top: auto; bottom: 2px; width: 18px; height: 2px; transform: translateX(-50%); }
  .main-area { width: 100%; margin-left: 0; }
  .topbar { top: 10px; height: 58px; margin: 10px 0 0; padding: 0 16px; border-radius: 18px; }
  .content { padding: 18px 2px 40px; }
  .two-column { grid-template-columns: minmax(0, 1fr); }
  .two-column > *, .process-flow { min-width: 0; }
  .hero-card { border-radius: 22px; }
  .hero-copy { padding: 32px 24px; }
  .hero-copy h2 { font-size: clamp(29px, 8vw, 39px); }
}

@media (max-width: 520px) {
  .app-shell { padding: 7px; }
  .sidebar { padding-right: 9px; padding-left: 9px; }
  .brand strong { font-size: 18px; }
  .account-card { margin-bottom: 5px; }
  .topbar h1 { font-size: 19px; }
  .function-card-primary { min-height: 170px; }
  .process-flow { width: 100%; overflow-x: auto; box-sizing: border-box; scrollbar-width: thin; }
  .recommended-home, .baseline-shell, .deferred-home { border-radius: 20px; padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
  .page { animation: none; }
}

/* 2026-09 production redesign — Carbon Policy Lens base language */
:root {
  --canvas: #eeeee9;
  --surface: rgba(250, 250, 247, .88);
  --surface-solid: #f9f9f6;
  --surface-soft: #f3f3ee;
  --ink: #282a27;
  --ink-soft: #454944;
  --muted: #747970;
  --faint: #9b9f97;
  --line: #d8d9d2;
  --line-soft: #e7e7e1;
  --sage: #6f8175;
  --sage-strong: #52665a;
  --sage-soft: #dfe5de;
  --clay: #a97868;
  --ochre: #a4874f;
  --danger: #a75c5c;
  --teal: #6f8175;
  --teal-dark: #52665a;
  --teal-soft: #dfe5de;
  --blue: #71808a;
  --blue-soft: #e1e5e6;
  --shadow: 0 18px 60px rgba(52, 55, 49, .07), 0 2px 8px rgba(52, 55, 49, .04);
  --shadow-soft: 0 10px 30px rgba(52, 55, 49, .055), 0 1px 3px rgba(52, 55, 49, .035);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html { background: var(--canvas); }
body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -8%, rgba(137, 151, 141, .15), transparent 30rem),
    radial-gradient(circle at 96% 0%, rgba(170, 151, 135, .10), transparent 28rem),
    var(--canvas);
  font-family: Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-synthesis: none;
}
body::after { display: none; }
::selection { color: var(--ink); background: #ced8cf; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.app-shell { min-height: 100svh; display: flex; padding: 0; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  padding: 16px 12px 12px;
  border: 0;
  border-right: 1px solid rgba(171, 174, 166, .42);
  border-radius: 0;
  background: rgba(239, 239, 234, .78);
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(125%);
}
.brand { height: 48px; gap: 11px; padding: 0 8px; }
.brand strong { color: var(--ink); font-size: 15px; font-weight: 740; letter-spacing: .06em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .14em; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #cbcfc8;
  border-radius: 10px;
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 0 0 4px rgba(111,129,117,.06);
  transform: none;
}
.brand-mark::before { inset: 7px; border-color: rgba(82,102,90,.34); }
.brand-mark::after { display: none; }
.brand-mark span:first-child, .brand-mark span:last-child { left: 10px; top: 15px; width: 14px; height: 2px; background: var(--sage-strong); }

.account-card {
  margin: 14px 0 12px;
  padding: 10px;
  border-color: var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.45);
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.account-card:hover, .account-card:focus-visible { border-color: #c5c8c1; background: rgba(255,255,255,.72); box-shadow: none; }
.account-card:active { transform: scale(.985); }
.account-card > .account-card-label { margin-bottom: 7px; color: var(--faint); font-size: 9px; letter-spacing: .12em; }
.account-summary { color: var(--ink-soft); }
.account-summary strong { font-size: 12px; }
.account-summary small { color: var(--muted); font-size: 10px; }
.avatar { color: #fff; background: var(--sage-strong); box-shadow: none; }

.nav-list { gap: 1px; padding: 0 2px 6px; scrollbar-color: #c8cbc4 transparent; }
.nav-section-label {
  display: block;
  padding: 15px 10px 6px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: .13em;
  line-height: 1;
}
.nav-section-label:first-child { padding-top: 8px; }
body.is-admin .nav-section-label:not(.nav-section-admin) { display: none; }
.nav-item {
  min-height: 38px;
  padding: 0 10px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #62675f;
  font-size: 12px;
  font-weight: 540;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.50); transform: translateX(1px); }
.nav-item.active {
  color: var(--ink);
  border-color: rgba(207,209,201,.72);
  background: rgba(255,255,255,.76);
  box-shadow: 0 3px 12px rgba(55,58,52,.04);
  font-weight: 650;
}
.nav-item.active::before { content: ""; position: absolute; right: 7px; left: auto; top: 50%; width: 3px; height: 15px; border-radius: 5px; background: var(--sage-strong); transform: translateY(-50%); }
.nav-item:active { transform: scale(.985); }
.nav-icon { width: 18px; color: #727d74; font-size: 14px; }
.sidebar-footer { padding: 10px 2px 0; border-top: 1px solid var(--line); }
.sidebar-note { padding: 11px; border: 0; border-radius: 9px; background: transparent; }
.sidebar-note strong { color: var(--ink-soft); font-size: 11px; }
.sidebar-note span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }

.main-area { width: calc(100% - 244px); margin-left: 244px; }
.topbar {
  top: 0;
  height: 58px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-bottom: 1px solid rgba(195,197,189,.55);
  border-radius: 0;
  background: rgba(238,238,233,.76);
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(120%);
}
.topbar h1 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.topbar .eyebrow { display: block; margin-bottom: 3px; color: var(--faint); font-size: 8px; letter-spacing: .13em; }
.topbar-actions { gap: 11px; }
.system-status { min-height: 30px; padding: 0 10px; border-color: var(--line); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.48); font-size: 10px; }
.system-status i { width: 6px; height: 6px; background: #718e76; box-shadow: 0 0 0 3px rgba(113,142,118,.12); }
.avatar-button { width: 32px; height: 32px; border-radius: 9px; }
.content { max-width: 1560px; padding: 34px clamp(22px,3.2vw,50px) 56px; }
.page { animation: pageRise 240ms var(--ease-out); }
@keyframes pageRise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.panel, .function-card, .recommended-home, .mentor-overview-stat, .baseline-shell, .deferred-home, .agent-main-card, .admin-metrics article, .admin-filter {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.panel, .recommended-home, .baseline-shell, .deferred-home, .agent-main-card { border-radius: 14px; }
.section-kicker, .eyebrow { color: var(--sage-strong); }
.pill, .pill-light, .pill-success { border-color: var(--line); color: var(--sage-strong); background: var(--sage-soft); }
.button {
  min-height: 40px;
  border-radius: 9px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out), opacity 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(.98); }
.button-primary, .hero-card .button-primary { border-color: var(--sage-strong); color: #fff; background: var(--sage-strong); box-shadow: 0 6px 16px rgba(82,102,90,.14); }
.button-primary:hover { background: #46594e; box-shadow: 0 8px 20px rgba(82,102,90,.18); }
.button-secondary, .button-ghost { border-color: var(--line); color: var(--ink-soft); background: rgba(255,255,255,.62); }
.text-button { color: var(--sage-strong); }

.dashboard-overview { width: min(1360px, 100%); margin: 0 auto; }
.dashboard-welcome {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(320px,.65fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(250,250,247,.76);
  box-shadow: var(--shadow);
}
.dashboard-welcome-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px,5vw,66px); }
.dashboard-welcome-copy h2 { max-width: 690px; margin: 13px 0 14px; color: var(--ink); font-size: clamp(27px,2.8vw,40px); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
.dashboard-welcome-copy p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.dashboard-welcome-copy .hero-actions { margin-top: 27px; }
.dashboard-status-board { display: flex; flex-direction: column; justify-content: center; padding: 38px 34px; border-left: 1px solid var(--line); background: rgba(243,243,238,.78); }
.status-board-head { display: flex; align-items: end; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.status-board-head span { color: var(--muted); font-size: 11px; }
.status-board-head strong { color: var(--sage-strong); font-size: 42px; font-weight: 550; line-height: .9; }
.status-board-track { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; margin: 20px 0 24px; }
.status-board-track i { height: 6px; border-radius: 6px; background: var(--sage); opacity: .38; }
.status-board-track i:nth-child(2), .status-board-track i:nth-child(4) { background: var(--clay); }
.status-board-track i:nth-child(3) { background: var(--ochre); }
.status-board-track i:first-child, .status-board-track i:last-child { opacity: .8; }
.dashboard-status-board dl { margin: 0; }
.dashboard-status-board dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 11px; }
.dashboard-status-board dt { color: var(--muted); }
.dashboard-status-board dd { margin: 0; color: var(--ink-soft); font-weight: 620; }
.dashboard-module-section { margin-top: 28px; }
.dashboard-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.dashboard-section-head h3 { margin: 6px 0 0; font-size: 19px; font-weight: 650; }
.dashboard-module-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.dashboard-module {
  min-height: 210px;
  display: grid;
  grid-template: auto auto 1fr auto / 1fr auto;
  gap: 10px 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: inherit;
  background: rgba(250,250,247,.80);
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.dashboard-module:hover { border-color: #c3c7bf; background: rgba(255,255,252,.94); box-shadow: var(--shadow); transform: translateY(-2px); }
.dashboard-module:active { transform: scale(.985); }
.module-index { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.module-icon { width: 35px; height: 35px; display: grid; place-items: center; grid-column: 2; grid-row: 1 / 3; border-radius: 10px; color: var(--sage-strong); background: var(--sage-soft); font-size: 17px; }
.dashboard-module strong { grid-column: 1; color: var(--ink); font-size: 16px; font-weight: 650; }
.dashboard-module small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.65; }
.dashboard-module em { grid-column: 1 / -1; color: var(--sage-strong); font-size: 11px; font-style: normal; font-weight: 650; }
.module-communication .module-icon { color: #8c6256; background: #eaded9; }
.module-agent .module-icon { color: #6f6846; background: #e9e3d5; }

.function-catalog { max-width: 1240px; padding-top: 8px; }
.function-group + .function-group { margin-top: 34px; }
.function-group-heading { border-bottom-color: var(--line); }
.function-group-number { color: var(--faint); }
.function-group-heading h2 { color: var(--ink); font-weight: 650; }
.function-group-heading p { color: var(--muted); }
.function-grid { gap: 12px; }
.function-grid-support { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); }
.function-card { border-radius: 13px; background: rgba(250,250,247,.80); box-shadow: var(--shadow-soft); }
.function-card-primary { min-height: 184px; padding: 22px; border-top: 1px solid var(--line); border-radius: 13px; }
.function-card-primary::before { display: none; }
.function-card-icon { border-color: transparent; border-radius: 9px; color: var(--sage-strong); background: var(--sage-soft); }
.function-card:hover, .function-card:focus-visible { border-color: #c3c7bf; background: rgba(255,255,252,.94); box-shadow: var(--shadow); transform: translateY(-2px); }
.function-card:active { transform: scale(.985); }
.function-card-enter { color: var(--sage-strong); }
.function-card-support { border-radius: 11px; }

.project-card, .communication-case-card, .mentor-result-card, .binding-card, .baseline-result-card, .quiz-question-card, .communication-reception-card {
  border-color: var(--line);
  border-radius: 13px;
  background: rgba(250,250,247,.84);
  box-shadow: var(--shadow-soft);
}
.communication-case-card:hover { border-color: #c3c7bf; box-shadow: var(--shadow); transform: translateY(-2px); }
.recommended-home { max-width: 920px; margin-top: 0; padding: clamp(32px,4vw,50px); }
.recommended-home-label { color: var(--sage-strong); background: var(--sage-soft); }
.recommended-home h2 { font-weight: 650; letter-spacing: -.035em; }
.baseline-notice { border-color: #d6cfb8; border-radius: 9px; color: #6d6243; background: #f1ecde; }
.baseline-shell { max-width: 900px; padding: 34px; }
.mentor-overview-stat strong { color: var(--sage-strong); }
.admin-row button, .admin-pagination button, .mentor-result-card button, .binding-actions button { border-color: var(--line); border-radius: 8px; color: var(--sage-strong); background: var(--sage-soft); }
.auth-dialog { border-radius: 18px; box-shadow: 0 32px 100px rgba(41,44,39,.30); }
.auth-dialog::backdrop { background: rgba(42,44,40,.42); backdrop-filter: blur(6px); }
.auth-panel { border-color: var(--line); border-radius: 18px; background: rgba(250,250,247,.96); }
.auth-tabs { background: var(--surface-soft); }
.auth-tabs button.active { color: #fff; background: var(--sage-strong); }
.auth-form input, .guidance-search input, .baseline-intake input, .baseline-intake select { border-color: var(--line); border-radius: 9px; color: var(--ink); background: rgba(255,255,252,.72); }
.auth-form input:focus, .guidance-search input:focus, .baseline-intake input:focus, .baseline-intake select:focus { border-color: var(--sage); background: #fff; box-shadow: 0 0 0 3px rgba(111,129,117,.10); }

@media (max-width: 1180px) {
  .dashboard-welcome { grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); }
  .dashboard-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .app-shell { display: block; padding: 0; }
  .sidebar { position: relative; inset: auto; width: 100%; height: auto; padding: 10px 12px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { height: 42px; padding: 0 3px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark span:first-child, .brand-mark span:last-child { left: 9px; top: 14px; }
  .account-card { position: absolute; top: 8px; right: 12px; width: auto; margin: 0; padding: 6px 8px; }
  .account-card > .account-card-label, .account-summary > span:last-child { display: none; }
  .nav-list { flex: none; flex-direction: row; gap: 4px; margin-top: 8px; padding: 6px 0 1px; border-top: 1px solid var(--line); overflow-x: auto; }
  .nav-section-label { display: none; }
  .nav-item { width: auto; min-width: max-content; min-height: 36px; padding: 0 11px; }
  .nav-item.active::before { left: 50%; right: auto; top: auto; bottom: 1px; width: 16px; height: 2px; transform: translateX(-50%); }
  .sidebar-footer { display: none; }
  .main-area { width: 100%; margin-left: 0; }
  .topbar { top: 0; height: 52px; margin: 0; padding: 0 16px; }
  .content { padding: 22px 14px 40px; }
  .dashboard-welcome { grid-template-columns: 1fr; }
  .dashboard-welcome-copy { padding: 34px 26px; }
  .dashboard-welcome-copy h2 { font-size: clamp(26px,6.5vw,34px); }
  .dashboard-status-board { padding: 27px 26px; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 620px) {
  .system-status span { display: none; }
  .content { padding-right: 10px; padding-left: 10px; }
  .dashboard-module-grid, .function-grid-primary, .function-grid-support { grid-template-columns: 1fr; }
  .dashboard-module { min-height: 175px; }
  .dashboard-section-head { align-items: flex-start; flex-direction: column; }
  .dashboard-section-head .text-button { align-self: flex-start; }
  .dashboard-welcome-copy { padding: 30px 21px; }
  .dashboard-welcome-copy .hero-actions { display: grid; gap: 9px; }
  .dashboard-welcome-copy .button { width: 100%; margin: 0; }
  .function-card-primary { min-height: 160px; }
  .recommended-home, .baseline-shell, .deferred-home { padding: 24px 20px; border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 2026-09 icon, guest-demo and about refinements */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand-mark { display: grid; place-items: center; overflow: hidden; }
.brand-mark::before, .brand-mark::after, .brand-mark span { display: none !important; }
.brand-mark svg { width: 28px; height: 28px; overflow: visible; }
.brand-shield { fill: rgba(111,129,117,.10); stroke: #52665a; stroke-width: 2.2; stroke-linejoin: round; }
.brand-route, .brand-arrow { fill: none; stroke: #52665a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-point { fill: #b56e58; stroke: #fbfaf6; stroke-width: 1.2; }
.nav-icon, .module-icon, .function-card-icon { display: grid; place-items: center; }
.nav-icon svg, .module-icon svg, .function-card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module-icon svg { width: 19px; height: 19px; }
.function-card-icon svg { width: 20px; height: 20px; }
.communication-head h2, .communication-head .section-kicker { color: var(--ink); }
.communication-head .section-kicker { color: var(--sage-strong); }
.guest-demo-note { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #d9d7cd; border-radius: 10px; color: var(--ink-soft); background: rgba(250,248,241,.84); font-size: 12px; line-height: 1.65; }
.guest-demo-note strong { color: var(--sage-strong); }
.about-page { width: min(1120px,100%); margin: 0 auto; }
.about-hero { max-width: 920px; padding: clamp(30px,5vw,64px) 0 clamp(28px,4vw,50px); }
.about-hero h2 { max-width: 800px; margin: 14px 0 18px; color: var(--ink); font-size: clamp(27px,3vw,40px); font-weight: 640; line-height: 1.22; letter-spacing: -.035em; }
.about-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.about-project-card, .about-team-card { min-height: 250px; padding: clamp(26px,4vw,42px); border: 1px solid var(--line); border-radius: 15px; background: rgba(250,250,247,.82); box-shadow: var(--shadow-soft); }
.about-project-card > span, .about-team-card > span { color: var(--faint); font-size: 9px; font-weight: 760; letter-spacing: .16em; }
.about-project-card h3, .about-team-card h3 { margin: 24px 0 10px; color: var(--ink); font-size: 27px; font-weight: 650; letter-spacing: -.025em; }
.about-project-card p { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.about-project-card .about-project-description { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.about-team-card dl { margin: 24px 0 0; }
.about-team-card dl div { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line-soft); }
.about-team-card dt { color: var(--muted); font-size: 12px; }
.about-team-card dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 620; line-height: 1.7; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-hero h2 { font-size: clamp(26px,6.8vw,34px); } }

/* 2026-09 independent procedure-video analysis */
@media (min-width: 1181px) {
  .dashboard-module-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
.module-video { border-color: rgba(181,110,88,.26); background: linear-gradient(150deg,rgba(250,250,247,.92),rgba(239,228,221,.72)); }
.module-video .module-icon, .function-card-video .function-card-icon { color: #9b5d4b; background: #efe0da; }
.function-grid-primary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.video-analysis-layout { width: min(1260px,100%); display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.5fr); gap: 16px; margin: 0 auto; }
.video-analysis-main, .video-analysis-guide, .video-analysis-result { border: 1px solid var(--line); border-radius: 15px; background: rgba(250,250,247,.84); box-shadow: var(--shadow-soft); }
.video-analysis-main { padding: clamp(26px,4vw,46px); }
.video-analysis-heading { max-width: 780px; }
.video-analysis-heading h2 { margin: 12px 0 13px; color: var(--ink); font-size: clamp(26px,3vw,38px); font-weight: 650; line-height: 1.22; letter-spacing: -.035em; }
.video-analysis-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.video-analysis-form { margin-top: 28px; }
.video-drop-zone { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 28px; border: 1px dashed #afb8af; border-radius: 14px; color: var(--ink-soft); background: rgba(238,241,235,.72); text-align: center; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.video-drop-zone:hover, .video-drop-zone.is-dragging { border-color: var(--sage-strong); background: rgba(229,236,230,.92); transform: translateY(-1px); }
.video-drop-zone input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.video-drop-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: #925b4c; background: #eadbd5; }
.video-drop-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.video-drop-zone strong { font-size: 16px; font-weight: 650; }
.video-drop-zone small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.video-preview-shell { display: grid; grid-template-columns: minmax(220px,320px) 1fr; gap: 18px; align-items: center; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,252,.72); }
.video-preview-shell video { width: 100%; max-height: 190px; border-radius: 9px; background: #20231f; }
.video-preview-shell strong, .video-preview-shell span { display: block; overflow-wrap: anywhere; }
.video-preview-shell strong { color: var(--ink); font-size: 13px; }
.video-preview-shell span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.video-analysis-notes { display: grid; gap: 8px; margin-top: 18px; color: var(--ink-soft); font-size: 12px; font-weight: 620; }
.video-analysis-notes textarea { width: 100%; resize: vertical; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(255,255,252,.78); font: inherit; font-weight: 400; line-height: 1.65; outline: none; }
.video-analysis-notes textarea:focus { border-color: var(--sage); background: #fff; box-shadow: 0 0 0 3px rgba(111,129,117,.10); }
.video-analysis-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.video-analysis-actions span { color: var(--faint); font-size: 11px; }
.video-analysis-status { min-height: 21px; margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.video-analysis-status.success { color: #4e715a; }
.video-analysis-status.error { color: #9a4f43; }
.video-analysis-trace { margin-top: 18px; padding: 18px; border: 1px solid rgba(77,106,91,.2); border-radius: 12px; background: rgba(239,244,239,.72); }
.video-trace-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(77,106,91,.14); }
.video-trace-heading strong { color: var(--ink); font-size: 14px; font-weight: 650; }
.video-trace-heading span { color: var(--muted); font-size: 11px; }
.video-trace-steps { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.video-trace-steps li { position: relative; padding-left: 23px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.video-trace-steps li::before { content: ""; position: absolute; top: .47em; left: 2px; width: 8px; height: 8px; border: 2px solid rgba(65,101,82,.35); border-radius: 50%; background: #fff; }
.video-trace-steps li.is-current::before { border-color: #4d755f; background: #4d755f; box-shadow: 0 0 0 4px rgba(77,117,95,.12); }
.video-trace-steps li.is-error { color: #93483f; }
.video-trace-steps li.is-error::before { border-color: #a95449; background: #a95449; }
.video-analysis-thought { margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(77,106,91,.14); }
.video-analysis-thought > span { display: block; margin-bottom: 8px; color: #567064; font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.video-analysis-thought pre { max-height: 230px; margin: 0; overflow: auto; color: #53615a; font: 12px/1.75 var(--font-sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.video-analysis-guide { padding: clamp(24px,3vw,34px); background: linear-gradient(155deg,rgba(239,241,235,.94),rgba(250,248,242,.88)); }
.video-analysis-guide h3 { margin: 12px 0 22px; color: var(--ink); font-size: 23px; font-weight: 650; }
.video-analysis-guide ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.video-analysis-guide li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 17px 0; border-top: 1px solid var(--line-soft); }
.video-analysis-guide li > span { color: #9a6758; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.video-analysis-guide strong { color: var(--ink); font-size: 13px; }
.video-analysis-guide p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.video-analysis-guide .video-analysis-boundary { margin-top: 20px; padding: 13px; border-radius: 9px; color: #6d6243; background: #f1ecde; }
.video-analysis-result { width: min(1260px,100%); margin: 16px auto 0; padding: clamp(26px,4vw,44px); }
.video-result-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.video-result-heading h2 { margin: 7px 0 0; color: var(--ink); font-size: 25px; font-weight: 650; }
.video-result-content { padding-top: 24px; color: var(--ink-soft); font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .function-grid-primary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .video-analysis-layout { grid-template-columns: minmax(0,1fr) minmax(250px,.42fr); }
}
@media (max-width: 820px) {
  .video-analysis-layout { grid-template-columns: 1fr; }
  .video-preview-shell { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .function-grid-primary { grid-template-columns: 1fr; }
  .video-analysis-main, .video-analysis-guide, .video-analysis-result { padding: 22px 18px; }
  .video-drop-zone { min-height: 190px; padding: 22px 15px; }
  .video-analysis-actions, .video-result-heading { align-items: stretch; flex-direction: column; }
  .video-analysis-actions .button, .video-result-heading .button { width: 100%; }
}

/* 宫颈采样诊室入口与操作布局；原采样器械和步骤样式保持独立。 */
.sampling-room-intro[hidden] { display: none; }
#page-simulation.active { animation: none; }
.sampling-room-intro {
  position: fixed;
  inset: 0;
  z-index: 4600;
  overflow: hidden;
  color: #fff;
  background: #dbe7e7 url("assets/sampling-room-teaching-20260925.png") center center / cover no-repeat;
  transition: opacity .42s ease;
}
.sampling-room-intro.is-leaving { opacity: 0; pointer-events: none; }
.sampling-room-intro-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,40,.73), rgba(10,30,40,.16) 40%, transparent 75%), linear-gradient(0deg, rgba(10,30,40,.38), transparent 42%); pointer-events: none; }
.sampling-room-exit { position: absolute; top: 28px; left: 36px; z-index: 1; padding: 10px 15px; border: 1px solid rgba(255,255,255,.5); border-radius: 9px; color: #fff; background: rgba(13,43,51,.4); font-size: 13px; font-weight: 650; cursor: pointer; }
.sampling-room-intro-copy { position: absolute; left: clamp(30px,5vw,90px); bottom: clamp(48px,9vh,110px); z-index: 1; width: min(500px,calc(100% - 60px)); text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.sampling-room-intro-copy > span { font-size: 13px; font-weight: 750; letter-spacing: .2em; }
.sampling-room-intro-copy h2 { margin: 15px 0 28px; color: #fff; font-size: clamp(34px,4.5vw,65px); font-weight: 720; line-height: 1.08; }
.sampling-room-intro-copy p { max-width: 420px; margin: 0 0 28px; color: #eef7f6; font-size: 16px; line-height: 1.75; }
.sampling-room-intro-copy button { display: inline-flex; align-items: center; gap: 22px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 9px; color: #fff; background: #087f78; box-shadow: 0 10px 25px rgba(0,44,51,.26); font-size: 16px; font-weight: 740; cursor: pointer; }
.sampling-room-intro-copy button:hover { background: #086e69; }
.sampling-room-exit:focus-visible, .sampling-room-intro-copy button:focus-visible, .sampling-operation-bar button:focus-visible { outline: 3px solid #f3c774; outline-offset: 3px; }
.sampling-operation-bar, .sampling-room-context { display: none; }
.sampling-operation-layout { min-width: 0; }
body.sampling-room-open, body.sampling-operation-open { overflow: hidden; }
#page-simulation.sampling-operation-active {
  position: fixed; inset: 0; z-index: 4500; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  width: 100vw; height: 100dvh; max-width: none; margin: 0;
  padding: 62px 24px 24px; overflow: auto; background: #23383c; animation: none;
}
/* The room remains one continuous backdrop as the foreground gains focus. */
#page-simulation.sampling-operation-active::before {
  content: ""; position: fixed; inset: -24px; z-index: 0; pointer-events: none;
  background: url("assets/sampling-room-teaching-20260925.png") center / cover no-repeat;
  filter: blur(13px) brightness(.66) saturate(.82); transform: scale(1.03);
}
#page-simulation.sampling-operation-active::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(15, 35, 40, .16);
}
#page-simulation.sampling-operation-active .sampling-module-tabs {
  position: fixed; top: 16px; left: 22px; z-index: 2; margin: 0;
  border-color: rgba(255,255,255,.28); background: rgba(246,251,250,.88);
  box-shadow: 0 8px 20px rgba(12,37,42,.14);
}
#page-simulation.sampling-operation-active .sampling-module-tabs button { min-height: 35px; padding: 0 13px; font-size: 11px; }
#page-simulation.sampling-operation-active #samplingPanel {
  position: relative; z-index: 1; display: flex; flex: 0 1 auto; flex-direction: column;
  width: min(1450px, 100%); min-height: 0; margin: auto;
}
#page-simulation.sampling-operation-active .sampling-operation-bar {
  position: fixed; top: 18px; right: 22px; z-index: 2; display: block; padding: 0;
}
#page-simulation.sampling-operation-active .sampling-operation-bar > div { display: none; }
.sampling-operation-bar button { padding: 9px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; color: #fff; background: rgba(18,51,57,.65); font-size: 12px; font-weight: 700; cursor: pointer; }
#page-simulation.sampling-operation-active .sampling-heading,
#page-simulation.sampling-operation-active .sampling-room-context { display: none; }
#page-simulation.sampling-operation-active .sampling-operation-layout { display: block; min-width: 0; }
#page-simulation.sampling-operation-active .sampling-workspace {
  display: grid; grid-template-columns: minmax(0,1fr) clamp(350px,25vw,480px);
  gap: 20px; align-items: stretch; min-width: 0;
}
#page-simulation.sampling-operation-active .sampling-visual-panel {
  position: relative; overflow: visible; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
}
#page-simulation.sampling-operation-active .sampling-visual-header {
  min-height: 48px; justify-content: flex-start; flex-wrap: nowrap; gap: 8px;
  padding: 0 0 12px; overflow-x: auto; border: 0;
  color: #30474f; background: transparent; font-size: 11px;
  backdrop-filter: none; scrollbar-width: none;
}
#page-simulation.sampling-operation-active .sampling-visual-header::-webkit-scrollbar { display: none; }
#page-simulation.sampling-operation-active .sampling-visual-header .sampling-visual-context { display: none; }
#page-simulation.sampling-operation-active .sampling-visual-header > :not(.sampling-visual-context) {
  position: static; flex: 0 0 auto; white-space: nowrap;
  padding: 8px 11px; border: 1px solid rgba(231,240,239,.55); border-radius: 8px;
  color: #30474f; background: rgba(250,251,249,.76);
  box-shadow: 0 6px 18px rgba(8,26,30,.11); backdrop-filter: blur(12px);
}
#page-simulation.sampling-operation-active .sampling-visual-header strong { margin: 0; font-size: 12px; }
#page-simulation.sampling-operation-active .sampling-visual {
  height: clamp(430px,68vh,700px); overflow: visible; background: transparent;
}
/* The illustration keeps its proportions while the unused view area reveals the blurred room. */
#page-simulation.sampling-operation-active .sampling-3d-grid { background: transparent; }
#page-simulation.sampling-operation-active #samplingSectionView { background-color: transparent; }
#page-simulation.sampling-operation-active #samplingDetailView {
  /* The near view has its own rail, so its WebGL canvas never covers the section view. */
  position: relative; inset: auto; width: 100%; height: 100%;
  border: 0; border-radius: 12px; background-color: #f6f7f4;
  box-shadow: 0 14px 36px rgba(14,35,38,.22);
}
/* Use the 3D camera's exact SVG size for the art and its feather mask; instrument alignment stays intact. */
#page-simulation.sampling-operation-active #samplingSectionView { background-image: none!important; }
#page-simulation.sampling-operation-active #samplingSectionView::before,
#page-simulation.sampling-operation-active #samplingSectionView::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-position: center; background-repeat: no-repeat;
  background-size: var(--sampling-anatomy-size,contain);
  mask-image:
    linear-gradient(to right, transparent, #000 5%, #000 95%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-size: var(--sampling-anatomy-size,contain), var(--sampling-anatomy-size,contain);
  mask-position: center, center; mask-repeat: no-repeat;
  mask-composite: intersect;
}
#page-simulation.sampling-operation-active #samplingSectionView::before {
  background-image: url("assets/pelvis-sagittal-teaching.svg"); opacity: 1;
}
#page-simulation.sampling-operation-active #samplingSectionView::after {
  background-image: url("assets/pelvis-sagittal-open.svg");
  opacity: var(--sampling-open-opacity,0);
}
#page-simulation.sampling-operation-active .sampling-3d-view > span {
  border: 1px solid #d7e0e1; color: #30474f; background: rgba(255,253,251,.92);
  box-shadow: 0 3px 12px rgba(48,71,79,.08);
}
#page-simulation.sampling-operation-active .sampling-gesture {
  left: 50%; bottom: -51px; width: min(410px,calc(100% - 32px));
  border: 1px solid rgba(215,224,225,.85); color: #30474f; background: rgba(255,253,251,.8);
  box-shadow: 0 6px 20px rgba(48,71,79,.12);
  backdrop-filter: blur(10px); transform: translateX(-50%);
}
#page-simulation.sampling-operation-active .sampling-visual-footer {
  display: none;
}
#page-simulation.sampling-operation-active .sampling-side-rail {
  align-self: stretch; gap: 12px; min-height: 0;
}
#page-simulation.sampling-operation-active .sampling-side-rail .sampling-console { align-self: stretch; width: 100%; }
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="4"],[data-stage="5"])) .sampling-detail-panel {
  display: block; flex: 1; min-height: 320px;
}
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-console {
  flex: 0 0 auto; gap: 0; padding: 10px 12px; max-height: none;
}
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-patient-card {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 5px; padding-bottom: 0; border-bottom: 0;
}
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-patient-card small {
  margin: 0; white-space: nowrap;
}
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-decision-card .section-kicker {
  display: none;
}
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-decision-card h3 {
  margin: 0; font-size: 16px;
}
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-decision-card > p:not(.sampling-feedback),
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-direct-action {
  display: none;
}
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-feedback {
  min-height: 0; margin-top: 8px!important; padding: 7px 9px;
}
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-feedback:not(.warning) { display: none; }
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) .sampling-console-footer {
  margin-top: 6px; padding-top: 0; border-top: 0;
}
#page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="3"],[data-stage="4"],[data-stage="5"],[data-stage="6"])):not(:has(.sampling-options button)) #samplingReset { min-height: 28px; padding: 0 8px; }
#page-simulation.sampling-operation-active .sampling-console {
  display: flex; flex-direction: column; align-self: center; gap: 0;
  min-width: 0; max-height: min(76vh,680px); padding: 20px;
  overflow: auto; border: 1px solid #d7e0e1; border-radius: 12px;
  background: rgba(250,251,249,.94); box-shadow: 0 18px 48px rgba(3,21,27,.23);
  backdrop-filter: blur(16px);
}
#page-simulation.sampling-operation-active .sampling-patient-card {
  width: 100%; margin: 0 0 14px; padding: 0 0 13px;
  border: 0; border-bottom: 1px solid #dce9e6; border-radius: 0;
  background: transparent; box-shadow: none;
}
#page-simulation.sampling-operation-active .sampling-patient-card span { display: none; }
#page-simulation.sampling-operation-active .sampling-patient-card strong { margin: 0; font-size: 12px; }
#page-simulation.sampling-operation-active .sampling-patient-card small { margin-top: 2px; font-size: 10px; }
#page-simulation.sampling-operation-active .sampling-progress-head,
#page-simulation.sampling-operation-active .sampling-timeline { display: none; }
#page-simulation.sampling-operation-active .sampling-decision-card {
  flex: none; padding: 0; border: 0; border-radius: 0; background: transparent;
}
#page-simulation.sampling-operation-active .sampling-decision-card .section-kicker { font-size: 10px; letter-spacing: .1em; }
#page-simulation.sampling-operation-active .sampling-decision-card h3 { margin: 6px 0 8px; font-size: 19px; }
#page-simulation.sampling-operation-active .sampling-decision-card > p:not(.sampling-feedback) { font-size: 12px; line-height: 1.6; }
#page-simulation.sampling-operation-active .sampling-options { gap: 8px; margin-top: 17px; }
#page-simulation.sampling-operation-active .sampling-options button { min-height: 42px; padding: 9px 11px; font-size: 12px; }
#page-simulation.sampling-operation-active .sampling-feedback { margin-top: 12px!important; font-size: 11px!important; }
#page-simulation.sampling-operation-active .sampling-console-footer { gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce9e6; }
#page-simulation.sampling-operation-active .sampling-console-footer button { padding: 7px 9px; font-size: 10px; }
#page-simulation.sampling-operation-active .sampling-console-footer span { font-size: 10px; }
#page-simulation.sampling-operation-active .sampling-summary { flex: none; margin-top: 18px; }
/* Once the result is visible, the last drag instruction must no longer float over it. */
#page-simulation.sampling-operation-active #samplingPanel:has(#samplingSummary:not([hidden])) #samplingGesture { display: none; }
@media (max-width: 960px) {
  #page-simulation.sampling-operation-active { display: block; padding: 68px 16px 22px; }
  #page-simulation.sampling-operation-active .sampling-workspace { grid-template-columns: 1fr; gap: 12px; }
  #page-simulation.sampling-operation-active .sampling-visual-panel { margin-bottom: 51px; }
  #page-simulation.sampling-operation-active #samplingPanel:has(#samplingSummary:not([hidden])) .sampling-visual-panel { margin-bottom: 0; }
  #page-simulation.sampling-operation-active .sampling-visual { height: min(62vh,600px); }
  #page-simulation.sampling-operation-active .sampling-workspace:has(.sampling-visual:is([data-stage="4"],[data-stage="5"])) .sampling-detail-panel { flex: none; height: min(55vh,480px); }
  #page-simulation.sampling-operation-active .sampling-console { width: min(480px,100%); max-height: none; margin: 0 auto; }
}
@media (max-width: 820px) {
  .sampling-room-intro { background-position: 54% center; }
  .sampling-room-intro-copy { bottom: 28px; }
  .sampling-room-intro-copy p { font-size: 13px; }
  #page-simulation.sampling-operation-active .sampling-module-tabs button { padding: 0 8px; font-size: 10px; }
  #page-simulation.sampling-operation-active .sampling-visual { height: 480px; }
  #page-simulation.sampling-operation-active .sampling-gesture { left: 50%; bottom: -51px; width: calc(100% - 20px); }
}
@media (prefers-reduced-motion: reduce) { .sampling-room-intro { transition: none; } }

/* Keep patient preparation text readable on the light reception card. */
#page-communication .communication-reception-card { color:#202a29; background:#f9faf7; }
#page-communication .communication-reception-card h2,
#page-communication .communication-reception-card > div > strong,
#page-communication .communication-reception-card dd { color:#202a29; }
#page-communication .communication-reception-card dt { color:#4d615f; }
#page-communication .communication-reception-card dl div { border-top-color:rgba(32,42,41,.16); }
