﻿:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #b65f1f;
  --soft: #f0fdfa;
  --control-bg: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
  --control-bg-plain: #ccfbf1;
  --control-bg-pressed: #99f6e4;
  --control-border: rgba(15, 118, 110, .34);
  --control-shadow: 0 1px 0 rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255, 255, 255, .75);
}

/* 全站通用：药丸按钮 */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border: 1.5px solid var(--control-border);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-pill:hover {
  background: var(--soft);
  border-color: var(--accent);
}
.btn-pill:active {
  background: var(--control-bg-pressed);
}
.btn-pill:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 诊断模式选择器 */
.flow-steps-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 12px 0 16px;
  margin-bottom: 12px;
}

.flow-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}

.flow-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--line);
  color: var(--muted);
  transition: all 0.2s;
}

.flow-step-item.active .flow-step-circle {
  background: #1e3a5f;
  color: #fff;
}

.flow-step-item.completed .flow-step-circle {
  background: #334155;
  color: #fff;
}

.flow-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.flow-step-item.active .flow-step-label {
  color: #1e3a5f;
}

.flow-step-desc {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.flow-step-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin-top: 16px;
  min-width: 20px;
}

.diagnosis-mode-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid rgba(15, 118, 110, 0.35);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #06b6d4);
  opacity: 0;
  transition: opacity 0.2s;
}

.mode-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.1), 0 8px 32px rgba(15, 23, 42, 0.05);
  transform: translateX(2px);
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-card.active-mode {
  border-color: var(--accent);
  background: #f0fdfa;
}

.mode-card.active-mode::before {
  opacity: 1;
}

.mode-card.mode-coming-soon {
  opacity: 0.5;
  cursor: not-allowed;
}

.mode-card.mode-coming-soon:hover {
  transform: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.03);
  border-color: var(--line);
}

.mode-card.mode-coming-soon::before {
  display: none;
}

.mode-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  flex-shrink: 0;
}

.mode-body {
  flex: 1;
  min-width: 0;
}

.mode-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.mode-desc {
  font-size: 12px;
  color: var(--muted);
}

.mode-arrow {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.mode-card:hover .mode-arrow {
  color: var(--accent-dark);
  transform: translateX(3px);
}

.mode-features,
.mode-action {
  display: none;
}

.mode-coming-soon .mode-features span {
  color: var(--warn);
}

@media (max-width: 600px) {
  .diagnosis-mode-selector {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-feature-settings: 'cv01';
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 0 36px;
}

/* 深色头部区域 - 通栏 */
.app-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 12px 16px 8px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.app-header-inner {
  width: min(760px, 100%);
  margin: 0 auto;
}

.app-header .header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.app-header .header-brand img {
  height: 42px;
  width: 42px;
}

.app-header .header-brand .brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.app-header .header-brand .brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 2px 0 0;
}

.app-header .topbar {
  display: none;
}

.app-content {
  padding: 0 16px;
}

/* 底部品牌栏 - 通栏深色 */
.app-footer {
  margin-top: 32px;
  padding: 20px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 0;
  padding: 6px;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.admin-nav {
  grid-template-columns: repeat(4, 1fr);
}

.admin-console-body {
  margin: 0;
  min-height: 100vh;
  background: #e2e8f0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px 16px;
  border-right: 1px solid rgba(100, 116, 139, .16);
  background: #f0fdfa;
}

.admin-brand p,
.admin-brand b {
  display: block;
}

.admin-brand p {
  margin: 0 0 6px;
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: .06em;
}

.admin-brand b {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.admin-side-nav {
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-side-group {
  display: grid;
  gap: 6px;
}

.admin-side-group > span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-side-nav button {
  justify-content: center;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(100, 116, 139, .08);
  border-radius: 10px;
  color: #475569;
  background: transparent;
  box-shadow: none;
  flex: 0 0 42px;
}

.admin-nav-label {
  display: inline-block;
  width: 4em;
  text-align: left;
}

.admin-side-nav button.active {
  color: var(--accent-dark);
  background: #ccfbf1;
  border-color: rgba(15, 118, 110, .16);
}

.admin-sidebar-foot {
  display: grid;
  gap: 10px;
}

.admin-sidebar-foot span {
  color: #64748b;
  font-size: 13px;
}

.admin-sidebar-foot .secondary {
  width: 100%;
  color: var(--accent-dark);
  background: var(--control-bg);
  border-color: var(--control-border);
}

.admin-main {
  min-width: 0;
  padding: 20px;
}

.admin-panel-frame {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(100, 116, 139, .14);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbf9 0%, #f2f7f4 100%);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .05);
}

.admin-panel {
  display: grid;
  gap: 14px;
}

.admin-mobile-nav {
  display: none;
}

.admin-mobile-menu {
  display: none;
}

.admin-mobile-menu[hidden] {
  display: none !important;
}

.admin-mobile-topbar {
  display: none;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.admin-tabs button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
}

.admin-tabs button.active {
  color: var(--accent-dark);
  background: #ccfbf1;
  border-color: rgba(15, 118, 110, .5);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .18), 0 2px 8px rgba(15, 23, 42, .06);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-toolbar .secondary {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
}

.admin-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-cache-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #f0fdfa;
}

.admin-cache-panel b,
.admin-cache-panel p,
.admin-cache-panel span {
  display: block;
}

.admin-cache-panel b {
  font-size: 15px;
}

.admin-cache-panel p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-cache-panel span {
  color: var(--muted);
  font-size: 12px;
}

.admin-cache-panel span.ready {
  color: var(--accent-dark);
}

.admin-cache-panel span.loading {
  color: #8b5a16;
}

.admin-cache-panel span.error {
  color: #a33d2b;
}

.admin-cache-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-cache-actions button {
  width: auto;
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

.admin-cache-actions button:disabled {
  opacity: .58;
  cursor: wait;
}

.admin-cache-wrap {
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: #fafbfc;
}

.admin-cache-wrap summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 800;
  list-style: none;
}

.admin-cache-wrap summary::-webkit-details-marker {
  display: none;
}

.admin-cache-wrap summary::before {
  content: '▾';
  margin-right: 8px;
  color: var(--muted);
  font-size: 12px;
}

.admin-cache-wrap:not([open]) summary::before {
  content: '▸';
}

.admin-cache-wrap .admin-cache-panel {
  border: 0;
  border-top: 1px solid rgba(15, 118, 110, .08);
  border-radius: 0 0 8px 8px;
}

.admin-selects-short {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 2px 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.22;
}

h2 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.progress {
  min-width: 92px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}

.progress div {
  width: 88px;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.progress i {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width .2s ease;
}

.panel {
  display: none;
  background: var(--panel);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.panel[data-step="3"] {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  pointer-events: auto;
  overflow: hidden;
}

.panel.active {
  display: block;
}

.intro {
  margin-bottom: 16px;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.value-strip div {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(100, 116, 139, .22);
  border-radius: 8px;
  background: #f8fafc;
}

.flow-guide {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(100, 116, 139, .28);
}

.flow-guide div {
  position: relative;
}

.flow-guide div::after {
  content: '';
  position: absolute;
  top: 25px;
  right: -16px;
  width: 18px;
  height: 1px;
  background: rgba(100, 116, 139, .32);
}

.flow-guide div:last-child::after {
  display: none;
}

.value-strip em {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin: 0 7px 8px 0;
  border-radius: 999px;
  color: #64748b;
  background: #e7ece7;
  font-size: 12px;
  font-style: normal;
}

.value-strip b {
  display: inline;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 14px;
}

.value-strip span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.entry-step {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.entry-step .field:last-child {
  margin-bottom: 0;
}

.step-cue {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.step-cue b {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 14px;
}

.step-cue i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-dark);
  font-size: 13px;
  font-style: normal;
}

.step-cue span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.section-head {
  margin-bottom: 24px;
}

#questionReason {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
}

#questionReason span {
  color: var(--muted);
  line-height: 1.65;
}

#questionReason em {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-head .secondary {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
}

.field {
  margin-bottom: 14px;
}

.field-hint {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

label small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.question-list {
  display: grid;
  gap: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips button {
  min-height: 40px;
  padding: 0 14px;
  border: none;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}

.chips button.selected {
  color: #1e3a5f;
  font-weight: 700;
  background: #bfdbfe;
  box-shadow: none;
}

.view-chip {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
  font-weight: 700;
}

.view-chip span {
  margin-right: 7px;
  color: var(--accent-dark);
}

.view-chip.selected {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: #ccfbf1;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .2), 0 2px 8px rgba(15, 23, 42, .05);
}

.view-chip.selected span {
  color: var(--accent-dark);
}

.triage-result {
  display: grid;
  gap: 14px;
}

.diagnosis-card,
.priority-item {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  background: #fafbfc;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.diagnosis-card {
  padding: 14px;
}

.primary-card {
  border-color: rgba(15, 118, 110, .35);
  background: var(--soft);
}

.diagnosis-card h3 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.35;
}

.diagnosis-card p {
  margin-bottom: 0;
}

.priority-list {
  display: grid;
  gap: 10px;
}

.priority-item {
  padding: 12px 13px;
}

.priority-item em {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.priority-item b,
.priority-item span {
  display: block;
}

.priority-item span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
}

.question-card {
  position: relative;
  padding: 11px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  background: #fafbfc;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.question-card.has-value {
  border-color: rgba(15, 118, 110, .42);
  background: #ecfdf5;
  box-shadow: inset 5px 0 0 var(--accent), 0 5px 14px rgba(15, 118, 110, .06);
}

.question-card.focus-target {
  border-color: rgba(15, 118, 110, .72);
  background: #d1fae5;
  box-shadow: inset 5px 0 0 var(--accent), 0 10px 24px rgba(15, 118, 110, .14);
}

.question-card label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.question-card label small {
  flex: 0 0 auto;
  margin-left: 0;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.question-card .hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.question-card-status {
  position: absolute;
  top: 11px;
  right: 11px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #e2e8f0;
  font-size: 12px;
  line-height: 24px;
}

.question-card.has-value .question-card-status {
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.followup-note {
  padding: 14px;
  border: 1px solid rgba(182, 95, 31, .28);
  border-radius: 8px;
  background: #fff7ed;
}

.followup-note b,
.followup-note span {
  display: block;
}

.followup-note span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.followup-card {
  border-color: rgba(182, 95, 31, .32);
}

.unit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.unit {
  min-width: 44px;
  color: var(--muted);
  font-size: 14px;
}

.answer-choices {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.answer-choices button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--control-bg);
  font-size: 13px;
  box-shadow: var(--control-shadow);
}

.answer-choices button.selected {
  color: var(--accent-dark);
  background: #ccfbf1;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .2), 0 2px 8px rgba(15, 23, 42, .05);
}

.answer-choices button[data-answer-choice="unknown"] {
  border-style: dashed;
  border-color: rgba(100, 116, 139, .34);
  background: #f7faf7;
  color: var(--muted);
  box-shadow: none;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

button {
  min-height: 42px;
  border: 1px solid var(--control-border);
  border-radius: 10px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--accent-dark);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, color .16s ease;
  -webkit-tap-highlight-color: rgba(15, 118, 110, .12);
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled) {
    border-color: rgba(15, 118, 110, .38);
    box-shadow: 0 4px 10px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
  }
}

button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
  background: var(--control-bg-pressed);
}

button:focus-visible {
  outline: 2px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}

.primary {
  color: #fff;
  background: linear-gradient(180deg, #0f766e 0%, #0d6963 100%);
  border-color: #0d6963;
  box-shadow: 0 4px 12px rgba(15, 118, 110, .18);
}

@media (hover: hover) and (pointer: fine) {
  .primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #0d6963 0%, #115e59 100%);
  }
}

.primary:active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.secondary {
  color: var(--accent-dark);
  background: var(--control-bg);
  border-color: var(--control-border);
}

.result-page {
  display: grid;
  gap: 16px;
}

.result-hero,
.result-section {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  background: #fafbfc;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(170px, .62fr) auto;
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  background: var(--soft);
}

.result-hero-main {
  align-self: center;
  min-width: 0;
}

.result-kicker {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.result-hero h3,
.result-title h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.32;
}

.result-hero p,
.result-title p {
  margin-bottom: 0;
}

.result-hero-status {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.result-hero-status b,
.result-hero-status strong,
.result-hero-status span,
.result-hero-status em {
  display: block;
}

.result-hero-status b {
  color: var(--accent-dark);
  font-size: 13px;
}

.result-hero-status strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.result-hero-status span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.result-hero-status em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.score-gauge {
  display: grid;
  place-items: center;
  width: 180px;
  padding: 8px 10px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.score-gauge svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-track,
.gauge-value {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}

.gauge-track {
  stroke: #e2e8f0;
}

.gauge-value {
  stroke: var(--accent);
}

.gauge-needle line {
  stroke: #17211d;
  stroke-width: 2;
  stroke-linecap: round;
}

.gauge-hub {
  fill: #17211d;
}

.gauge-tick {
  fill: var(--muted);
  font-size: 11px;
  text-anchor: middle;
}

.score-gauge .gauge-caption {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: -14px;
}

.score-gauge strong {
  font-size: 30px;
  line-height: 1;
}

.score-gauge .gauge-caption span {
  color: var(--muted);
  font-size: 13px;
}

.score-gauge .gauge-caption em {
  color: var(--accent-dark);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.result-section {
  padding: 15px;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-chip {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.summary-chip b,
.summary-chip span {
  display: block;
}

.summary-chip span {
  margin-top: 5px;
  color: var(--ink);
  line-height: 1.45;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.kpi-card b,
.kpi-card strong,
.kpi-card span {
  display: block;
}

.kpi-card strong {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
}

.kpi-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.report-brief {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px;
  background: #fff;
}

.report-brief div {
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .14);
  border-radius: 8px;
  background: #f0fdfa;
}

.report-brief b,
.report-brief span {
  display: block;
}

.report-brief b {
  color: var(--accent-dark);
  font-size: 13px;
}

.report-brief span {
  margin-top: 6px;
  color: var(--ink);
  line-height: 1.5;
}

.score-section {
  display: grid;
  gap: 12px;
  border: 1px solid #bbf7d0 !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
  box-shadow: none !important;
}

.score-section.score-weak {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  border-color: #fecaca !important;
}

.score-section.score-average {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important;
  border-color: #fde68a !important;
}

.score-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: stretch;
}

.score-layout .score-gauge {
  justify-self: start;
  align-self: center;
  width: 180px;
}

.score-right-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.score-summary {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.score-summary-head {
  display: grid;
  gap: 4px;
}

.score-summary-status {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.score-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.score-summary-status em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff1df;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.score-summary h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.score-summary-conclusion {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.score-summary .result-kicker {
  margin: 0;
  font-size: 13px;
}

.score-summary-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 118, 110, .12);
  white-space: nowrap;
}

.score-summary-meta b {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 12px;
}

.score-side-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.result-industry-tag {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  margin: 0;
}

.primary-issue-section {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.analysis-primary-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  margin: 0 14px 12px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  background: #fef8f8;
}

.analysis-primary-summary strong {
  font-size: 14px;
  color: #1e3a5f;
}

.analysis-primary-summary p {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.primary-issue-section .score-side-card {
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.score-side-card {
  display: grid;
  align-content: center;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
}

.score-side-card b {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.score-side-card strong {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  color: #1e3a5f;
  line-height: 1.15;
}

.score-side-card span {
  margin-top: 3px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.score-summary-note {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1.5;
}

.score-compare,
.score-compare-section {
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 12px;
  background: #fff;
}

.score-compare summary,
.score-compare-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 800;
  list-style: none;
}

.score-compare summary span,
.collapsible-section summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.score-compare summary i,
.collapsible-section summary i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  transition: transform .16s ease;
}

.score-compare summary::-webkit-details-marker {
  display: none;
}

.score-compare[open] summary {
  border-bottom: 1px solid rgba(15, 118, 110, .12);
}

.score-compare[open] summary i,
.collapsible-section[open] summary i {
  transform: rotate(0deg);
}

.score-compare:not([open]) summary i,
.collapsible-section:not([open]) summary i {
  transform: rotate(-90deg);
}

.score-compare-body {
  padding: 0 12px 12px;
}

.analysis-panel {
  display: grid;
  gap: 0;
  border-color: rgba(15, 118, 110, .16);
  background: #fff;
}

.collapsible-section {
  padding: 0;
  overflow: hidden;
}

.collapsible-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}

.collapsible-section summary::-webkit-details-marker {
  display: none;
}

.collapsible-section > :not(summary) {
  padding: 0 14px 14px;
}

.collapsible-section.is-empty {
  border-style: dashed;
  background: #fafcfb;
}

.collapsible-section.is-empty summary {
  color: var(--muted);
  min-height: 42px;
  font-size: 15px;
}

.section-collapse-trigger {
  display: none;
}

.analysis-block-title,
.next-step-section .result-title h3,
.next-step-section .result-title p {
  margin: 0;
}

.analysis-block-title,
.action-order-main b,
.next-step-panel h3,
.next-step-panel p,
.next-step-section .result-title p,
.decision-card b,
.decision-order > b,
.decision-next b,
.decision-missing > b {
  display: block;
}

.analysis-block-title {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 14px;
}

.analysis-block-note {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.analysis-block {
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.decision-metric-list {
  display: grid;
  gap: 7px;
}

.decision-metric-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 10px 11px;
  border: 1px solid rgba(100, 116, 139, .14);
  border-top: 3px solid rgba(15, 118, 110, .36);
  border-radius: 8px;
  background: #f8faf8;
}

.decision-metric-list span.weak,
.decision-metric-list span.abnormal {
  border-top-color: #c2410c;
  background: #fff7ed;
}

.decision-metric-list span.average {
  border-top-color: #b45309;
  background: #fffdf0;
}

.decision-metric-list i,
.decision-metric-list strong,
.decision-metric-list em {
  display: block;
  font-style: normal;
}

.decision-metric-list i {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.decision-metric-list strong {
  color: var(--accent-dark);
  font-size: 13px;
  white-space: nowrap;
}

.decision-metric-list em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

.decision-order {
  display: grid;
  gap: 9px;
}

.decision-order > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.decision-order span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(100, 116, 139, .14);
  border-top: 3px solid rgba(100, 116, 139, .22);
  border-radius: 8px;
  background: #fff;
}

.decision-order span.primary {
  border-top-color: var(--accent);
  background: #ecfdf5;
}

.decision-order i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.decision-order strong,
.decision-order em {
  display: block;
  min-width: 0;
  font-style: normal;
}

.decision-order strong {
  color: var(--accent-dark);
  font-size: 12px;
}

.decision-order em {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.muted-section {
  background: #fff;
}

.muted-section > :not(summary) {
  padding: 0 14px 10px;
}

.muted-section summary {
  min-height: 40px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.metric-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-card b,
.metric-card span,
.metric-card em {
  display: block;
}

.metric-card strong {
  display: inline-block;
  margin: 8px 0 4px;
  font-size: 22px;
}

.metric-card span {
  color: var(--ink);
}

.metric-card em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.metric-card.weak {
  border-color: rgba(182, 95, 31, .4);
  background: #fff7ed;
}

.metric-card.average {
  border-color: rgba(185, 148, 48, .38);
  background: #fffbea;
}

.metric-card.good {
  border-color: rgba(15, 118, 110, .28);
  background: #ecfdf5;
}

.benchmark-card {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 8px;
  background: #f0fdfa;
}

.benchmark-card b {
  font-size: 12px;
}

.benchmark-card span {
  color: var(--muted);
  line-height: 1.45;
}

.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 6px;
}

.focus-chips span {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent-dark);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  box-shadow: none;
}

.focus-chips span:not(:last-child)::after {
  content: " / ";
  margin: 0 6px;
  color: var(--muted);
  font-weight: 400;
}

.compare-list {
  display: grid;
  gap: 12px;
}

/* Badge 颜色按等级 */
.compare-head .badge-great { background: #d1fae5; color: #065f46; }
.compare-head .badge-good { background: #d1fae5; color: #065f46; }
.compare-head .badge-average { background: #fef9c3; color: #854d0e; }
.compare-head .badge-poor { background: #fed7aa; color: #9a3412; }
.compare-head .badge-bad { background: #fee2e2; color: #991b1b; }
.compare-head .badge-abnormal { background: #fee2e2; color: #991b1b; }

.compare-row {
  position: relative;
  display: grid;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid #10b981;
  border-radius: 8px;
  background: #fff;
}

.compare-row.weak {
  border-left-color: #ef4444;
  background: #fff;
}

.compare-row.poor {
  border-left-color: transparent;
  background: #fff;
}

.compare-row.average {
  border-left-color: var(--line);
  background: #fff;
}

.compare-row.good {
  border-left-color: var(--line);
  background: #fff;
}

.compare-row.abnormal {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.compare-abnormal-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fee2e2;
  font-size: 12px;
  color: #991b1b;
}

.compare-abnormal-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-start;
}

.compare-abnormal-actions .btn-pill {
  text-align: center;
  justify-content: center;
}

.compare-confirm-btn {
  border-color: #fca5a5;
  color: #dc2626;
}

.compare-goback-btn {
  border-color: #fca5a5;
  color: #dc2626;
}

.compare-row.abnormal.confirmed {
  background: #fff;
}

.compare-row.abnormal.confirmed .compare-abnormal-hint {
  display: none;
}

.compare-row.abnormal.confirmed .badge-abnormal {
  background: #f1f5f9;
  color: #475569;
}

.compare-card-main {
  display: grid;
  gap: 6px;
  min-height: 100%;
}

.compare-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-value {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

.compare-ref {
  font-size: 12px;
  color: #6b7280;
}

.compare-perspective {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.compare-row b,
.compare-row span {
  display: block;
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.compare-head b {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a5f;
  white-space: nowrap;
}

.compare-head strong {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.compare-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.compare-kpis div {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 72px;
  padding: 8px 9px;
  border: 1px solid rgba(100, 116, 139, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
}

.compare-kpis span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.compare-kpis b {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.compare-meter {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #e2e8f0;
}

.compare-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.compare-row.weak .compare-head strong {
  color: #991b1b;
  background: #fee2e2;
}

.compare-row.poor .compare-head strong {
  color: #c2410c;
  background: #ffedd5;
}

.compare-row.average .compare-head strong {
  color: #a16207;
  background: #fef3c7;
}

.compare-row.good .compare-head strong {
  color: var(--accent);
  background: var(--soft);
}

.compare-row.weak .compare-meter i {
  background: #ef4444;
}

.compare-row.poor .compare-meter i {
  background: #f97316;
}

.compare-row.average .compare-meter i {
  background: #eab308;
}

.compare-row.abnormal .compare-meter i {
  background: #ef4444;
}

.compare-row.good .compare-meter i {
  background: var(--accent);
}

.pain-stack,
.pain-grid {
  display: grid;
  gap: 10px;
}

.pain-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 8px;
  background: #fff;
}

.primary-pain-card {
  border-color: rgba(15, 118, 110, .28);
  background: #f0fdfa;
  box-shadow: inset 5px 0 0 var(--accent);
}

.pain-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
}

.pain-card-top em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.pain-card h4,
.pain-card p,
.pain-card span {
  display: block;
  margin: 0;
}

.pain-card h4 {
  font-size: 18px;
  line-height: 1.35;
}

.pain-card-top span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.pain-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pain-insight-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(100, 116, 139, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.pain-insight-grid b {
  display: block;
  color: var(--accent-dark);
  font-size: 14px;
}

.pain-insight-grid p {
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.pain-metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pain-metric-chips span {
  display: inline-flex;
  align-items: flex-start;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(100, 116, 139, .14);
  border-radius: 8px;
  color: var(--ink);
  background: #f8faf8;
  font-size: 12px;
  line-height: 1.35;
}

.pain-action-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px dashed rgba(100, 116, 139, .24);
}

.pain-action-line b {
  color: var(--accent-dark);
  font-size: 13px;
  white-space: nowrap;
}

.pain-action-line span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.action-order-list {
  display: grid;
  gap: 0;
}

.action-order-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.action-order-card:last-child {
  border-bottom: none;
}

.action-order-card.severity-high,
.action-order-card.severity-medium,
.action-order-card.severity-low {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.action-order-rank {
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 44px;
}

.action-order-rank em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: #1e3a5f;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.action-order-rank span {
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.action-order-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.action-order-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-start;
}

.action-order-main b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.action-order-head em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  color: var(--accent-dark);
  background: #ccfbf1;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.action-order-main p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.action-order-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.action-order-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid #10b981;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
}

/* 按行业对比的等级色阶：与 .compare-row / badge 颜色保持一致 */
.action-order-metrics span.weak {
  border-left-color: #ef4444;
}
.action-order-metrics span.abnormal {
  border-left-color: #ef4444;
  background: #fef2f2;
}
.action-order-metrics span.poor {
  border-left-color: #f97316;
}
.action-order-metrics span.average {
  border-left-color: #eab308;
}
.action-order-metrics span.good {
  border-left-color: #10b981;
}

.action-order-metrics i,
.action-order-metrics strong,
.action-order-metrics em {
  display: block;
  font-style: normal;
}

.action-order-metrics i {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.action-order-metrics strong {
  color: var(--accent-dark);
  font-size: 12px;
  white-space: nowrap;
}

.action-order-metrics em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.action-order-insights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.action-order-insights div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.action-order-insights span {
  display: inline;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  min-width: auto;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  border-right: none;
  flex-shrink: 0;
}

.action-order-insights strong {
  display: inline;
  padding: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.action-order-insights div:last-child {
  background: transparent;
  border-style: none;
}

.action-order-insights div:last-child span {
  background: transparent;
}

.action-order-insights div:last-child strong {
  color: #475569;
}

.action-order-reason,
.action-order-next {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0 6px 10px;
  border: none;
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.action-order-reason span,
.action-order-next span {
  display: inline;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  min-width: auto;
  padding: 0;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  border-right: 1px solid rgba(100, 116, 139, .1);
}

.action-order-reason strong {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--accent-dark);
  font-size: 13px;
  line-height: 1.5;
}

.action-order-next {
  border-color: rgba(15, 118, 110, .18);
  background: #fff;
}

.action-order-next span {
  color: #475569;
  background: #f1f5f9;
}

.action-order-next em {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--ink);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.weak-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.weak-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(194, 65, 12, .38);
  border-radius: 8px;
  background: #fff3e6;
  box-shadow: inset 5px 0 0 #f97316;
}

.weak-card.average {
  border-color: rgba(185, 148, 48, .35);
  background: #fffdf0;
  box-shadow: inset 5px 0 0 #d97706;
}

.weak-card.abnormal {
  border-color: rgba(194, 65, 12, .62);
  background: #ffe4c7;
  box-shadow: inset 5px 0 0 #c2410c;
}

.weak-card.good {
  border-color: rgba(15, 118, 110, .26);
  background: #ecfdf5;
  box-shadow: inset 5px 0 0 var(--accent);
}

.weak-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.weak-card-main {
  min-width: 0;
}

.weak-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.weak-card-head strong {
  line-height: 1.35;
}

.weak-card-head span {
  flex: 0 0 auto;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.weak-card p {
  margin: 7px 0 0;
  color: var(--ink);
  line-height: 1.55;
}

.weak-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.weak-card > span {
  color: var(--ink);
  line-height: 1.55;
}

.weak-mini-meter {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(194, 65, 12, .16);
}

.weak-mini-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #c2410c;
}

.weak-card.average .weak-card-head span {
  color: #a16207;
}

.weak-card.average .weak-mini-meter {
  background: rgba(185, 148, 48, .18);
}

.weak-card.average .weak-mini-meter i {
  background: #b45309;
}

.weak-card.good .weak-card-head span {
  color: var(--accent-dark);
}

.weak-card.good .weak-mini-meter {
  background: rgba(15, 118, 110, .14);
}

.weak-card.good .weak-mini-meter i {
  background: var(--accent);
}

.result-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.6;
}

.empty {
  margin: 12px 0 0;
  color: var(--muted);
}

.strategy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.strategy-link.is-loading {
  position: relative;
  overflow: hidden;
  gap: 10px;
  min-width: 180px;
}

.next-step-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.next-step-panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.next-step-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.next-step-section {
  border-color: rgba(15, 118, 110, .16);
  background: #fff;
  box-shadow: none;
}

.next-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.next-step-actions .strategy-link {
  margin-top: 0;
}

.secondary-strategy-link {
  color: var(--accent-dark);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  box-shadow: var(--control-shadow);
}

.missing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.missing-chips span,
.missing-chips button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(100, 116, 139, .22);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.missing-chips button {
  color: var(--accent-dark);
  border-color: var(--control-border);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
  cursor: pointer;
}

.missing-chips button em {
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .missing-chips button:hover {
    border-color: rgba(15, 118, 110, .44);
    background: var(--control-bg-plain);
  }
}

.button-loader {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.button-loading-text {
  background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.45), rgba(255,255,255,.85));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.2s linear infinite;
}

.strategy-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 2px 0 14px;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--accent-dark);
  font-weight: 700;
}

.strategy-loading-text {
  background: linear-gradient(90deg, rgba(18,83,60,.95), rgba(18,83,60,.45), rgba(18,83,60,.95));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.2s linear infinite;
}

.inline-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
  text-decoration: none;
  font-weight: 700;
}

.compact-title h3 {
  font-size: 18px;
}

.strategy-detail {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.strategy-detail b {
  margin-top: 8px;
}

.strategy-detail p {
  margin-bottom: 0;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.65;
}

.detail-list li::marker {
  color: var(--accent-dark);
  font-weight: 700;
}

.week-plan {
  display: grid;
  gap: 10px;
}

.week-plan section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.week-plan section > b {
  margin-top: 0;
  color: var(--accent-dark);
}

.week-plan ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.65;
}

.week-plan p {
  margin: 8px 0 0;
}

.strategy-detail a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 83, 60, .35);
}

.strategy-block {
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: #fafbfc;
}

.strategy-block h4 {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 14px;
}

.strategy-block > b {
  display: block;
  margin: 10px 0 4px;
  font-size: 13px;
}

.strategy-block > b:first-of-type {
  margin-top: 0;
}

.strategy-candidate-list {
  display: grid;
  gap: 12px;
}

.strategy-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.strategy-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
}

.strategy-filter-chip span {
  font-size: 13px;
}

.strategy-filter-chip em {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.strategy-filter-chip.active {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: #ccfbf1;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .2), 0 2px 8px rgba(15, 23, 42, .05);
}

.strategy-filter-chip.active em {
  color: var(--accent-dark);
  background: #fff;
}

.strategy-empty-filter {
  margin: 0;
  padding: 10px 2px 2px;
}

.strategy-issue {
  padding: 14px;
}

.strategy-issue-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  transform: none;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.strategy-issue-main {
  min-width: 0;
}

.strategy-issue-index {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.strategy-issue-main b {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.35;
}

.strategy-issue-main p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.strategy-issue-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.strategy-issue-meta {
  display: grid;
  gap: 3px;
  text-align: right;
}

.strategy-issue-meta span,
.strategy-issue-meta em {
  display: block;
  font-style: normal;
}

.strategy-issue-meta span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.strategy-issue-meta em {
  color: var(--muted);
  font-size: 12px;
}

.strategy-issue-icon {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.strategy-issue-body {
  margin-top: 14px;
}

.strategy-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.strategy-overview div {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.strategy-overview b,
.strategy-overview span {
  display: block;
  text-align: center;
}

.strategy-overview b {
  color: var(--accent-dark);
  font-size: 21px;
  line-height: 1;
}

.strategy-overview span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.strategy-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.strategy-source-row h3 {
  font-size: 14px;
  margin: 0;
  color: var(--ink);
}

.strategy-source-row p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.strategy-source-row .secondary-link {
  white-space: nowrap;
  font-size: 12px;
  flex-shrink: 0;
}

.strategy-summary-text {
  margin: 2px 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  line-height: 1.55;
}

.strategy-candidate {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.strategy-candidate:hover {
  border-color: rgba(15, 118, 110, .24);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.strategy-candidate.expanded {
  border-color: rgba(15, 118, 110, .28);
  background: #eef7f1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.strategy-candidate.accepted {
  border-color: rgba(15, 118, 110, .45);
  background: #ecfdf5;
}

.strategy-candidate.rejected {
  border-color: rgba(182, 95, 31, .35);
  background: #fff7ed;
}

.strategy-candidate.rated {
  box-shadow: inset 3px 0 0 rgba(15, 118, 110, .35);
}

.strategy-toggle {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  min-height: 50px;
  padding: 13px;
  border: 0;
  box-shadow: none;
  transform: none;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.strategy-candidate.expanded .strategy-toggle {
  background: #e4f1e9;
}

.strategy-toggle:hover,
.strategy-issue-toggle:hover {
  border: 0;
  box-shadow: none;
  transform: none;
}

.strategy-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 14px;
}

.strategy-toggle-main {
  min-width: 0;
}

.strategy-compare-head {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.strategy-compare-head em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 4px;
  color: var(--accent-dark);
  background: #ecfdf5;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.strategy-compare-head b {
  display: inline;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.strategy-compare-title {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.strategy-compare-fit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: start;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.strategy-compare-fit i {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #64748b;
  background: #e2e8f0;
  font-style: normal;
  font-size: 12px;
}

.strategy-compare-fit span {
  min-width: 0;
}

.strategy-decision-grid {
  display: grid;
  grid-template-columns: .72fr .95fr 1fr 1.15fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.strategy-decision-grid span {
  display: block;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(100, 116, 139, .18);
  border-radius: 8px;
  background: #f8fafc;
}

.strategy-decision-grid i,
.strategy-decision-grid em {
  display: block;
  font-style: normal;
}

.strategy-decision-grid i {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.strategy-decision-grid em {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

.strategy-decision-grid span:nth-child(2) em {
  color: var(--accent-dark);
  font-weight: 700;
}

.strategy-summary-line {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.strategy-summary-line span {
  display: block;
  padding: 7px 8px;
  border: 1px solid rgba(100, 116, 139, .14);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.strategy-toggle em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.strategy-toggle-side {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.strategy-toggle-side small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.status-badge {
  justify-self: end;
  min-width: 58px;
  padding: 3px 8px;
  border: 1px solid rgba(100, 116, 139, .22);
  border-radius: 4px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.status-badge.accepted {
  border-color: rgba(15, 118, 110, .3);
  background: var(--soft);
  color: var(--accent-dark);
}

.status-badge.rejected {
  border-color: rgba(182, 95, 31, .28);
  background: #fff7ed;
  color: #9a3412;
}

.strategy-body {
  padding: 0 14px 14px;
  cursor: pointer;
}

.strategy-brief {
  display: block;
  margin: 6px 0 8px;
  padding: 9px 11px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-left-width: 4px;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
}

.strategy-body button,
.strategy-body a,
.strategy-body input,
.strategy-body textarea,
.strategy-body select,
.strategy-body label {
  cursor: auto;
}

.strategy-decision-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: #ecfdf5;
  cursor: auto;
}

.strategy-decision-panel .actions {
  margin-top: 0;
}

.strategy-feedback {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(100, 116, 139, .28);
}

.strategy-feedback label {
  margin-bottom: 0;
}

.strategy-feedback textarea {
  min-height: 76px;
}

.strategy-feedback .secondary {
  justify-self: start;
  width: auto;
  min-height: 36px;
  padding: 0 14px;
}

.strategy-confirm {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(182, 95, 31, .25);
  border-radius: 8px;
  background: #fff7ed;
}

.strategy-confirm b,
.strategy-confirm span {
  display: block;
}

.strategy-confirm b {
  color: #9a3412;
  font-size: 14px;
}

.strategy-confirm span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.strategy-confirm button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
}

.strategy-footer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: start;
  width: auto;
  min-height: 36px;
  margin-top: 2px;
  padding: 0 12px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
  font-size: 13px;
}

.strategy-footer-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--accent-dark);
  font-size: 12px;
}

.strategy-footer-toggle em {
  font-style: normal;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.rating-row span {
  color: var(--muted);
  font-size: 13px;
}

.rating-row button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  border: none;
  color: #64748b;
  background: #f1f5f9;
  box-shadow: none;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}

.rating-row button.active {
  color: #1e3a5f;
  font-weight: 700;
  background: #bfdbfe;
  border-color: transparent;
  box-shadow: none;
}

.rating-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-left: 4px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.record-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.list-filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 8px;
  background: var(--soft);
}

.list-filter-bar span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.list-filter-bar .secondary {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  background: var(--control-bg);
  border-color: var(--control-border);
  box-shadow: var(--control-shadow);
}

.diagnosis-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  margin-bottom: 0;
}

.diagnosis-filter-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}

.diagnosis-filter-bar button:hover {
  color: #475569;
  background: #e2e8f0;
}

.diagnosis-filter-bar button.active {
  color: #1e3a5f;
  font-weight: 700;
  background: #bfdbfe;
}

.diagnosis-filter-bar em {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #64748b;
  background: rgba(0, 0, 0, 0.06);
  font-style: normal;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.diagnosis-filter-bar button.active em {
  color: #1e3a5f;
  background: rgba(30, 58, 95, 0.1);
}

.strategy-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  margin-bottom: 0;
}

.strategy-filter-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}

.strategy-filter-bar button:hover {
  color: #475569;
  background: #e2e8f0;
}

.strategy-filter-bar button.active {
  color: #1e3a5f;
  font-weight: 700;
  background: #bfdbfe;
}

.strategy-filter-bar em {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #64748b;
  background: rgba(0, 0, 0, 0.06);
  font-style: normal;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.strategy-filter-bar button.active em {
  color: #1e3a5f;
  background: rgba(30, 58, 95, 0.1);
}

.diagnosis-filter-summary {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-log-list {
  gap: 10px;
}

.record-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  color: var(--ink);
  width: 100%;
  min-height: auto;
  text-decoration: none;
  font-weight: 400;
}

.record-card.static {
  cursor: default;
}

.record-card b,
.record-card span,
.record-card em {
  display: block;
}

.record-card span,
.record-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

.record-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.record-card.score-card strong {
  min-width: 72px;
  font-size: 18px;
}

.record-card.score-card strong::after {
  content: '分';
  margin-left: 1px;
  font-size: 12px;
  font-weight: 700;
}

.record-card:hover {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

.diagnosis-record-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "main score"
    "actions score";
  gap: 14px;
  align-items: stretch;
  width: 100%;
  min-height: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.diagnosis-record-card:hover {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

.diagnosis-record-main {
  grid-area: main;
  min-width: 0;
  cursor: default;
}

.record-meta,
.record-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.record-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #f3f5f2;
  font-size: 12px;
}

.diagnosis-record-main > b {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.favorite-title-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}

.favorite-title-row > b {
  flex: 1 1 auto;
  min-width: 0;
}

.favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #b8bfb9;
  background: transparent;
  line-height: 1;
  box-shadow: none;
  transform: translateY(-1px);
}

.favorite-toggle.active {
  color: #ef4444;
  background: transparent;
}

.favorite-icon {
  display: inline-block;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
  font-style: normal;
  transform: none;
}

.favorite-icon::before {
  content: "♡";
}

.favorite-toggle.active .favorite-icon::before {
  content: "♥";
}

.diagnosis-record-main > p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.diagnosis-record-hotzone,
.strategy-session-hotzone {
  cursor: pointer;
}

.diagnosis-record-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.diagnosis-record-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(100, 116, 139, .14);
  border-radius: 8px;
  background: #f8faf8;
}

.diagnosis-record-metrics i,
.diagnosis-record-metrics strong {
  display: block;
  font-style: normal;
}

.diagnosis-record-metrics i {
  color: var(--muted);
  font-size: 12px;
}

.diagnosis-record-metrics strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diagnosis-record-metrics .warn {
  border-color: rgba(185, 148, 48, .28);
  background: #fffdf0;
}

.diagnosis-record-metrics .warn strong {
  color: #a16207;
}

.diagnosis-record-metrics .alert {
  border-color: rgba(194, 65, 12, .28);
  background: #fff7ed;
}

.diagnosis-record-metrics .alert strong {
  color: #c2410c;
}

.record-status-row {
  justify-content: space-between;
  margin-top: 12px;
}

.record-status-row span,
.record-status-row em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
}

.record-status-row span {
  color: #9a3412;
  background: #fff7ed;
}

.record-status-row span.ready {
  color: var(--accent-dark);
  background: var(--soft);
}

.record-status-row em {
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.diagnosis-record-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diagnosis-record-actions button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--control-bg);
  font-size: 13px;
  box-shadow: var(--control-shadow);
}

.diagnosis-record-actions button.primary-action {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.diagnosis-record-actions button.is-loading {
  cursor: wait;
  opacity: .85;
}

.diagnosis-record-score {
  grid-area: score;
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 76px;
  padding: 12px 10px;
  border-radius: 8px;
  background: var(--soft);
}

.diagnosis-record-score strong,
.diagnosis-record-score span {
  display: block;
}

.diagnosis-record-score strong {
  color: var(--accent-dark);
  font-size: 26px;
  line-height: 1;
}

.diagnosis-record-score strong::after {
  content: '分';
  margin-left: 1px;
  font-size: 12px;
}

.diagnosis-record-score span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.strategy-session-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: stretch;
  min-height: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.strategy-session-card:hover {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

.strategy-session-record-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "main score"
    "actions score";
  gap: 14px;
  align-items: stretch;
  width: 100%;
  min-height: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.strategy-session-record-card:hover {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05);
}

.strategy-session-record-card.is-done {
  border-color: rgba(100, 116, 139, .14);
  background: #fbfcfb;
}

.strategy-session-record-card.is-done .strategy-session-main > p,
.strategy-session-record-card.is-done .strategy-session-metrics i,
.strategy-session-record-card.is-done .strategy-session-score span {
  color: #7a827e;
}

.strategy-session-main {
  grid-area: main;
  min-width: 0;
}

.strategy-session-title-row {
  display: block;
  margin-top: 10px;
}

.strategy-title-with-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.strategy-session-main > b {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.strategy-progress-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.strategy-progress-tag.untouched {
  color: #9a3412;
  background: #fff7ed;
}

.strategy-progress-tag.in_progress {
  color: #a16207;
  background: #fffbea;
}

.strategy-progress-tag.done {
  color: var(--accent-dark);
  background: var(--soft);
}

.strategy-session-main > p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.strategy-session-score {
  grid-area: score;
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 76px;
  padding: 12px 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.strategy-session-score strong,
.strategy-session-score span {
  display: block;
}

.strategy-session-score strong {
  color: var(--accent-dark);
  font-size: 26px;
  line-height: 1;
}

.strategy-session-score span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.strategy-session-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.strategy-session-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(100, 116, 139, .14);
  border-radius: 8px;
  background: #f8faf8;
}

.strategy-session-metrics i,
.strategy-session-metrics strong {
  display: block;
  font-style: normal;
}

.strategy-session-metrics i {
  color: var(--muted);
  font-size: 12px;
}

.strategy-session-metrics strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-session-metrics .warn {
  border-color: rgba(185, 148, 48, .28);
  background: #fffdf0;
}

.strategy-session-metrics .warn strong {
  color: #a16207;
}

.strategy-session-metrics .ready {
  border-color: rgba(15, 118, 110, .18);
  background: #ecfdf5;
}

.strategy-session-metrics .ready strong {
  color: var(--accent-dark);
}

.strategy-session-metrics .muted {
  border-color: rgba(100, 116, 139, .14);
  background: #f8fafc;
}

.strategy-session-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategy-session-actions button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--control-bg);
  font-size: 13px;
  box-shadow: var(--control-shadow);
}

.strategy-session-actions button.primary-action {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.admin-log-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-log-card-error {
  border-color: rgba(194, 65, 12, .36);
  background: #fff7ed;
  box-shadow: inset 4px 0 0 #c2410c;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--control-bg);
  text-decoration: none;
  font-size: 12px;
  box-shadow: var(--control-shadow);
}

.admin-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-pagination span {
  color: var(--muted);
  font-size: 13px;
}

.admin-pagination-actions {
  display: flex;
  gap: 8px;
}

.admin-pagination-actions button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
}

.admin-drawer[hidden] {
  display: none;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .36);
}

.admin-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  padding: 18px;
  background: #f8fbf9;
  box-shadow: -12px 0 28px rgba(15, 23, 42, .12);
  overflow: auto;
}

.admin-nav-drawer[hidden] {
  display: none;
}

.admin-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 35;
}

.admin-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .28);
}

.admin-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 84vw);
  height: 100%;
  padding: 18px 16px;
  background: #f0fdfa;
  box-shadow: 12px 0 28px rgba(15, 23, 42, .12);
  overflow: auto;
}

.admin-nav-panel .admin-side-nav {
  gap: 8px;
}

.admin-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-drawer-body {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-drawer-tip {
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #ecfdf5;
  font-size: 13px;
  line-height: 1.6;
}

.admin-drawer-section {
  display: grid;
  gap: 8px;
}

.admin-drawer-section > b {
  color: var(--accent-dark);
  font-size: 14px;
}

.admin-metrics-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.admin-timeline-list {
  display: grid;
  gap: 10px;
}

.admin-timeline-dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.admin-timeline-dot.diagnosis {
  background: #3b82f6;
}

.admin-timeline-dot.strategy {
  background: var(--accent);
}

.admin-timeline-dot::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 2px;
  height: calc(100% + 18px);
  background: rgba(15, 118, 110, .14);
  transform: translateX(-50%);
}

.admin-timeline-card:last-child .admin-timeline-dot::after {
  display: none;
}

.admin-timeline-content {
  min-width: 0;
}

.admin-timeline-time {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 12px;
}

.admin-timeline-content .record-meta {
  margin: 4px 0 0;
}

.admin-timeline-content b {
  margin-top: 6px;
}

.admin-list {
  gap: 10px;
  min-width: 0;
}

.admin-tail {
  margin-top: 10px;
}

.admin-tail .ready {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: 12px;
}

.admin-stage-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 0 9px;
  border-radius: 999px;
  color: #8a5a12;
  background: #fff7df;
  font-size: 12px;
}

.admin-stage-tag.ready {
  color: var(--accent-dark);
  background: var(--soft);
}

.admin-health-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 0 9px;
  border-radius: 999px;
  color: #475569;
  background: #e2e8f0;
  font-size: 12px;
}

.admin-health-tag.ready {
  color: var(--accent-dark);
  background: var(--soft);
}

.admin-health-tag.warn {
  color: #8a5a12;
  background: #fff7df;
}

.admin-note-preview {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-note-input {
  min-height: 96px;
  resize: vertical;
}

.admin-feedback {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.admin-filter button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--control-bg);
  font-size: 13px;
  box-shadow: var(--control-shadow);
}

.admin-filter button.active {
  color: var(--accent-dark);
  border-color: var(--accent);
  background: #ccfbf1;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .2), 0 2px 8px rgba(15, 23, 42, .05);
}

.admin-filter span {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-metrics div {
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-metrics b,
.admin-metrics span {
  display: block;
}

.admin-metrics b {
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1.1;
}

.admin-metrics span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.admin-selects {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-selects select {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 13px;
}

.admin-search {
  min-height: 38px;
  padding: 8px 12px;
}

.admin-log-card b {
  display: block;
  margin: 6px 0 4px;
  font-size: 15px;
}

.admin-log-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

.admin-log-card .record-meta span {
  background: #f3f7f4;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 14px 12px 26px;
  }

  .topbar {
    display: block;
  }

  h1 {
    font-size: 24px;
  }

  .progress {
    margin-top: 14px;
    text-align: left;
  }

  .progress div {
    width: 100%;
  }

  .panel {
    padding: 18px 14px;
  }

  #questionReason {
    display: grid;
    gap: 8px;
  }

  #questionReason em {
    justify-self: start;
  }

  .value-strip {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    padding: 14px 12px 24px;
  }

  .admin-panel-frame {
    padding: 14px;
    border-radius: 12px;
  }

  .admin-mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 12px;
    background: #f0fdfa;
    border-bottom: 1px solid rgba(100, 116, 139, .12);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
  }

  .admin-mobile-logo {
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
  }

  .admin-head {
    display: block;
  }

  .admin-head .secondary {
    margin-top: 12px;
  }

  .admin-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-toolbar {
    display: block;
    padding-top: 52px;
  }

  .admin-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar .secondary { display: none; }

  .admin-cache-panel {
    display: grid;
    gap: 12px;
  }

  .admin-cache-wrap summary {
    min-height: 42px;
    padding: 0 12px;
  }

  .admin-cache-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .admin-cache-actions button {
    width: 100%;
  }

  .admin-filter span {
    width: 100%;
    margin-left: 0;
  }

  .admin-metrics,
  .admin-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-selects-short {
    grid-template-columns: 1fr;
  }

  .value-strip div {
    min-height: auto;
  }

  .flow-guide div::after {
    display: none;
  }

  .step-cue {
    display: block;
  }

  .step-cue b {
    display: inline-flex;
    margin-bottom: 6px;
  }

  .step-cue span {
    display: block;
    text-align: left;
  }

  .compact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .strategy-issue {
    padding: 12px;
  }

  .strategy-issue-toggle {
    align-items: start;
  }

  .strategy-issue-main b {
    font-size: 16px;
  }

  .strategy-issue-main p {
    font-size: 13px;
  }

  .strategy-issue-side {
    gap: 6px;
  }

  .strategy-issue-meta span {
    font-size: 12px;
  }

  .strategy-issue-meta em {
    font-size: 11px;
  }

  .strategy-filter-bar {
    gap: 7px;
  }

  .strategy-filter-chip {
    width: auto;
    min-height: 32px;
    padding: 0 10px;
  }

  .strategy-filter-chip span {
    font-size: 12px;
  }

  .strategy-summary-line {
    gap: 5px;
  }

  .strategy-summary-line span {
    padding: 6px 7px;
    font-size: 11px;
  }

  .question-card {
    padding: 13px;
  }

  .question-card label {
    align-items: flex-start;
    line-height: 1.45;
    padding-right: 76px;
  }

  .question-card-status {
    top: 13px;
    right: 13px;
  }

  .answer-choices {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
  }

  .answer-choices button {
    min-height: 38px;
    padding: 0 6px;
  }

  .actions {
    flex-direction: column-reverse;
  }

  button {
    width: 100%;
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .score-gauge {
    width: 140px;
    padding: 4px 0 8px;
  }

  .score-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .score-layout .score-gauge {
    justify-self: center;
    width: 140px;
  }

  .score-right-col {
    gap: 8px;
  }

  .result-industry-tag {
    text-align: center;
  }

  .score-side-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-collapse-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    margin-top: 10px;
    padding: 0 12px;
    border: 1px solid rgba(100, 116, 139, .18);
    border-radius: 999px;
    color: var(--muted);
    background: #f7faf7;
    font-size: 12px;
    box-shadow: none;
  }

  .next-step-section {
    padding: 16px 14px;
  }

  .decision-order > div {
    grid-template-columns: 1fr;
  }

  .decision-metric-list span {
    grid-template-columns: 1fr;
  }

  .decision-metric-list strong {
    white-space: normal;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .compare-row {
    display: grid;
  }

  .compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .compare-head strong {
    flex: 0 0 auto;
  }

  .compare-kpis {
    grid-template-columns: 1fr;
  }

  .kpi-strip {
    grid-template-columns: 1fr 1fr;
  }

  .report-brief {
    grid-template-columns: 1fr;
  }

  .weak-grid {
    grid-template-columns: 1fr;
  }

  .pain-insight-grid {
    grid-template-columns: 1fr;
  }

  .pain-action-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .action-order-card {
    grid-template-columns: 1fr;
  }

  .action-order-metrics,
  .action-order-insights {
    grid-template-columns: 1fr;
  }

  .action-order-rank {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    min-width: 0;
  }

  .action-order-rank span {
    text-align: left;
  }

  .weak-card-head {
    display: grid;
    gap: 4px;
  }

  .weak-card-head span {
    justify-self: start;
  }

  .next-step-panel {
    grid-template-columns: 1fr;
  }

  .next-step-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .record-card {
    grid-template-columns: 1fr;
  }

  .list-filter-bar {
    display: grid;
    gap: 10px;
  }

  .list-filter-bar .secondary {
    width: 100%;
  }

  .diagnosis-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnosis-filter-bar button {
    width: 100%;
    justify-content: center;
  }

  .diagnosis-record-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "score"
      "actions";
  }

  .diagnosis-record-score {
    order: 2;
    grid-template-columns: auto 1fr;
    justify-content: start;
    place-items: center start;
    min-width: 0;
  }

  .diagnosis-record-score span {
    margin: 0 0 0 8px;
  }

  .diagnosis-record-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnosis-record-actions {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
  }

  .diagnosis-record-actions button {
    width: 100%;
  }

  .strategy-session-card {
    grid-template-columns: 1fr;
  }

  .strategy-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-filter-bar button {
    width: 100%;
    justify-content: center;
  }

  .strategy-session-record-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "score"
      "actions";
  }

  .strategy-session-score {
    order: 2;
    grid-template-columns: auto 1fr;
    justify-content: start;
    place-items: center start;
    min-width: 0;
  }

  .strategy-session-score span {
    margin: 0 0 0 8px;
  }

  .strategy-session-title-row {
    display: grid;
    gap: 6px;
  }

  .favorite-title-row {
    margin-top: 0;
  }

  .strategy-session-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-session-actions {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
  }

  .strategy-session-actions button {
    width: 100%;
  }

  .record-status-row {
    align-items: stretch;
  }

  .record-status-row em {
    justify-content: center;
  }

  .strategy-toggle {
    grid-template-columns: auto 1fr;
  }

  .strategy-toggle-side {
    grid-column: 2;
    justify-self: start;
    justify-items: start;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .strategy-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
  }

  .strategy-decision-grid span {
    display: block;
    max-width: none;
    min-height: 54px;
    padding: 7px 8px;
    border-radius: 8px;
  }

  .strategy-decision-grid em {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .strategy-decision-grid span:nth-child(5) {
    grid-column: 1 / -1;
  }

  .strategy-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-block {
    padding: 11px;
  }

  .rating-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .rating-row > span,
  .rating-row .rating-state {
    grid-column: 1 / -1;
  }

  .rating-row button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 0;
  }

  .rating-row .rating-state {
    justify-self: start;
    margin-left: 0;
  }

  .strategy-decision-panel .actions {
    flex-direction: column-reverse;
  }

  .strategy-confirm {
    grid-template-columns: 1fr;
  }

  .strategy-confirm button {
    width: 100%;
  }

  .summary-band {
    grid-template-columns: 1fr;
  }
}

/* TopBar 紧凑样式（模糊诊断页） */
.fuzzy-page .topbar {
  padding: 8px 0 0;
}

.fuzzy-page .topbar h1 {
  font-size: 18px;
  margin: 0;
  line-height: 1.3;
  color: #ffffff;
}

.fuzzy-page .eyebrow {
  font-size: 11px;
  margin: 0 0 2px;
}

/* BottomSheet 底部弹窗 */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.bottom-sheet-overlay[hidden] {
  display: none;
}

.bottom-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
  animation: slideUp 0.25s ease;
  padding: 0;
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.bottom-sheet-header b {
  font-size: 16px;
}

.bottom-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-sheet-close:hover {
  background: var(--bg);
}

.bottom-sheet-body {
  padding: 20px;
  display: grid;
  gap: 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.bottom-sheet-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bottom-sheet-footer button {
  min-height: 44px;
  width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* 智能悬浮按钮 */
.floating-action {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--panel) 80%, transparent);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.floating-action[hidden] {
  display: none;
}

.floating-action .primary {
  width: min(720px, 100%);
  min-height: 46px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 -2px 12px rgba(15, 118, 110, 0.15), 0 4px 12px rgba(15, 118, 110, 0.18);
  pointer-events: auto;
}

/* 草稿恢复提示条 */
.draft-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: var(--soft);
}

.draft-banner[hidden] {
  display: none;
}

.draft-banner span {
  flex: 1;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.draft-banner button {
  width: auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
}

.draft-banner button[data-draft="restore"] {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.draft-banner button[data-draft="discard"] {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

/* 模糊诊断页底部留白，避免悬浮按钮遮挡 */
.fuzzy-page .app-shell {
  padding-bottom: 80px;
}


/* 分页和加载更多 */
.load-more-bar {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.load-more-bar button {
  width: 100%;
  min-height: 44px;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.pagination-bar span {
  color: var(--muted);
  font-size: 13px;
}

.pagination-bar button {
  min-height: 36px;
  padding: 0 16px;
}

/* 顶部导航按钮 - 必须在通用 button 之后 */
.site-nav button,
.site-nav a {
  min-height: 36px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav button.active,
.site-nav a.active {
  color: #ffffff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.08);
}

.site-nav button:hover:not(:disabled):not(.active),
.site-nav a:hover:not(.active) {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: none;
}


/* ===== admin tables ===== */
.admin-table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  /* grid 子项必须显式约束才会触发自身 overflow,否则会沿 grid track 撑开 */
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  background: var(--soft);
  color: var(--accent-dark);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  min-height: 36px;
  line-height: 1.3;
}

.admin-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.45;
}

.admin-table tbody tr:hover td {
  background: var(--soft);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table-sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}

.admin-table thead th.admin-table-sticky-col {
  z-index: 3;
  background: var(--soft);
}

/* 操作列贴右:无论横滚到哪,操作按钮永远可见 */
.admin-table-sticky-right {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  /* 左侧留个微小阴影提示有内容被遮挡 */
  box-shadow: -4px 0 8px rgba(15, 23, 42, .04);
}

.admin-table thead th.admin-table-sticky-right {
  z-index: 3;
  background: var(--soft);
  box-shadow: -4px 0 8px rgba(15, 23, 42, .04);
}

.admin-table tbody tr:hover td.admin-table-sticky-right {
  background: var(--soft);
}

.admin-table-sort {
  cursor: pointer;
  user-select: none;
}

.admin-table-sort.asc::after {
  content: ' ▲';
  color: var(--accent);
}

.admin-table-sort.desc::after {
  content: ' ▼';
  color: var(--accent);
}

.admin-table-sort:focus-visible {
  outline: 2px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}

.admin-table-cell-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.admin-table-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: center;
  white-space: nowrap;
}

.admin-table-actions a,
.admin-table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.admin-table-checkbox {
  width: 32px;
  text-align: center;
  vertical-align: middle;
}

.admin-log-row-error td {
  background: #fff7ed;
  box-shadow: inset 4px 0 0 #c2410c;
}

.admin-log-row-error:hover td {
  background: #ffedd5;
  box-shadow: inset 4px 0 0 #c2410c;
}

.admin-log-row-payload td {
  padding: 0 12px 12px;
  background: #fff;
}

.admin-log-row-payload pre {
  margin: 0;
  padding: 10px 12px;
  background: #0f172a08;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  max-height: 280px;
  overflow: auto;
  white-space: pre;
}

@media (max-width: 768px) {
  .admin-table {
    font-size: 12px;
  }

  .admin-table thead th,
  .admin-table tbody td {
    padding: 6px 10px;
  }

  .admin-table-cell-ellipsis {
    max-width: 160px;
  }
}
/* ===== /admin tables ===== */

/* ===== admin form kit ===== */
.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-form-field {
  display: grid;
  gap: 6px;
}

.admin-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.admin-form-required::after {
  content: ' *';
  color: #c2410c;
}

.admin-form-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  background: #fff;
  color: var(--ink);
}

textarea.admin-form-input {
  min-height: 84px;
  resize: vertical;
}

.admin-form-input:focus,
.admin-form-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.admin-form-input:disabled {
  background: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
}

.admin-form-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-form-error {
  color: #a33d2b;
  font-size: 12px;
  line-height: 1.4;
}

.admin-form-error[hidden] {
  display: none;
}

.admin-form-field.has-error .admin-form-input {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .12);
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-end;
}

.admin-form-actions button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
}

.admin-form-saving button[data-form-submit] {
  cursor: wait;
  opacity: .7;
}

.admin-form-saving button[data-form-submit]::after {
  content: '…';
  margin-left: 4px;
}

.admin-view-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.admin-view-switch > button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.admin-view-switch > button.active {
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.admin-view-switch > button:not(.active):hover {
  background: #f8fafc;
}

@media (max-width: 600px) {
  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-form-actions button {
    flex: 1;
    min-height: 40px;
  }
}
/* ===== /admin form kit ===== */


/* ===== admin params config (行业配置) - 紧凑面板布局 ===== */
.admin-config-root {
  display: grid;
  gap: 12px;
}

.admin-config-section {
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-config-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}

.admin-config-section-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
}

.admin-config-section-head button {
  width: auto;
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

/* 行业 / 经营模式：key + name + 删除按钮，单行 */
.admin-config-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 2fr) auto;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}

.admin-config-row:last-of-type {
  border-bottom: 0;
}

.admin-config-row-head {
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-config-row-head span {
  padding: 0 4px;
}

.admin-config-row .admin-form-input {
  padding: 6px 10px;
  font-size: 13px;
}

.admin-config-row-del {
  width: auto;
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
  color: #dc2626;
}

/* 视角：单行 input + 上下移动 + 删除 */
.admin-config-perspective-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}

.admin-config-perspective-row .admin-form-input {
  padding: 6px 10px;
  font-size: 13px;
}

.admin-config-perspective-row.has-error .admin-form-input {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .12);
}

/* 权重：label + 数字输入 */
.admin-config-weight-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
}

.admin-config-weight-row .admin-form-label {
  font-size: 13px;
  color: var(--ink);
}

.admin-config-weight-row .admin-form-input {
  padding: 6px 10px;
  font-size: 13px;
  text-align: right;
}

.admin-config-weight-row.has-error .admin-form-input {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .12);
}

@media (max-width: 600px) {
  .admin-config-row {
    grid-template-columns: 1fr;
  }
  .admin-config-row-head {
    display: none;
  }
}
/* ===== /admin params config ===== */
