:root {
  --bg: #eef4ff;
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --surface-blue: #f1f6ff;
  --border: rgba(82, 121, 196, 0.16);
  --border-strong: rgba(59, 110, 255, 0.26);
  --text: #111827;
  --muted: #64748b;
  --muted-strong: #475569;
  --blue: #2f6bff;
  --blue-dark: #1d4ed8;
  --blue-soft: #edf4ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fff7ed;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --shadow: 0 10px 34px rgba(47, 107, 255, 0.08);
  --shadow-soft: 0 2px 10px rgba(15, 23, 42, 0.04);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(47, 107, 255, 0.13), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sidebar-shell {
  width: min(100vw, 430px);
  height: 100vh;
  min-height: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.04), 0 28px 80px rgba(47, 107, 255, 0.12);
}

.assistant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background:
    radial-gradient(circle at 82% 0%, rgba(47, 107, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #17418f 0%, var(--blue) 100%);
  box-shadow: 0 12px 28px rgba(47, 107, 255, 0.26);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.header-copy {
  min-width: 0;
  flex: 1;
}

.header-copy h1 {
  margin: 0;
  color: #0f1f3d;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.header-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill,
.tag-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
}

.neutral {
  color: var(--muted-strong);
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.action-auto,
.risk-low {
  color: var(--emerald);
  background: var(--emerald-soft);
  border-color: #bbf7d0;
}

.action-suggest,
.risk-medium {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #fed7aa;
}

.action-human,
.risk-high {
  color: var(--red);
  background: var(--red-soft);
  border-color: #fecaca;
}

.action-info {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bfdbfe;
}

.action-info::before {
  animation: pulse-dot 1.15s ease-in-out infinite;
}

.context-card,
.unbound-state,
.risk-strip,
.staff-actions {
  margin: 12px 14px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.context-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.context-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.82) 45%, transparent 72%);
  transform: translateX(-120%);
  opacity: 0;
}

.context-card.identifying::after {
  opacity: 1;
  animation: shimmer 1.35s ease-in-out infinite;
}

.context-card.recognized {
  border-color: rgba(5, 150, 105, 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
}

.context-card.unbound {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}

.state-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.state-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--blue);
  background: var(--blue-soft);
}

.state-icon svg {
  width: 19px;
  height: 19px;
}

.context-card.recognized .state-icon {
  color: var(--emerald);
  background: var(--emerald-soft);
}

.context-card.unbound .state-icon,
.archive-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.risk-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.eyebrow {
  display: block;
  color: #70809b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.context-card strong,
.unbound-state strong,
.risk-strip strong,
.staff-actions-copy strong {
  display: block;
  margin-top: 4px;
  color: #0f1f3d;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.context-card p,
.unbound-state p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
}

.unbound-state {
  padding: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}

.unbound-state .identify-button {
  width: 100%;
  margin-top: 12px;
}

.staff-actions {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
}

.staff-actions[hidden],
.staff-action-link[hidden],
.candidate-list[hidden] {
  display: none;
}

.staff-action-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
}

.staff-action-link,
.admin-link {
  color: var(--blue-dark);
  text-decoration: none;
}

.staff-action-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7d7fe;
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.staff-action-link:hover {
  border-color: #8fb2ff;
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.14);
  transform: translateY(-1px);
}

.candidate-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.candidate-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.candidate-heading small {
  font-size: 12px;
  font-weight: 700;
}

.candidate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.candidate-card strong {
  margin: 0;
}

.candidate-card p {
  margin-top: 3px;
}

.candidate-card .bind-button {
  width: auto;
  min-width: 88px;
  margin-top: 0;
  padding: 0 10px;
}

.risk-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.risk-strip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.risk-strip.risk-high {
  border-color: rgba(220, 38, 38, 0.2);
  background: linear-gradient(135deg, #fff 0%, var(--red-soft) 100%);
}

.risk-strip.risk-medium {
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(135deg, #fff 0%, var(--amber-soft) 100%);
}

.risk-strip.risk-low {
  border-color: rgba(5, 150, 105, 0.2);
  background: linear-gradient(135deg, #fff 0%, var(--emerald-soft) 100%);
}

.tab-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.tab-button {
  position: relative;
  height: 44px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  transition: color 160ms ease, background 160ms ease;
}

.tab-button::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background 160ms ease, left 160ms ease, right 160ms ease;
}

.tab-button:hover {
  color: var(--blue-dark);
  background: linear-gradient(180deg, transparent, rgba(47, 107, 255, 0.05));
}

.tab-button.active {
  color: var(--blue);
}

.tab-button.active::after {
  left: 16%;
  right: 16%;
  background: var(--blue);
}

.content-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 14px 16px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.72), transparent 120px);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: panel-in 180ms ease;
}

.panel-section {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  color: #0f1f3d;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.section-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.info-list {
  display: grid;
  gap: 1px;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: start;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.info-row + .info-row {
  border-top: 1px solid rgba(226, 232, 240, 0.68);
}

.info-row strong {
  min-width: 0;
  color: var(--text);
  text-align: right;
  font-weight: 800;
  word-break: break-word;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid .empty-state {
  grid-column: 1 / -1;
}

.metric-tile {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 107, 255, 0.08), transparent 38%),
    var(--surface-soft);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.metric-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: #fff;
  box-shadow: var(--shadow);
}

.metric-value {
  color: #0f1f3d;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.metric-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-delta {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 900;
}

.up {
  color: var(--emerald);
}

.down {
  color: var(--red);
}

.warn {
  color: var(--amber);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row.compact {
  margin-top: 6px;
}

.tag-pill {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.risk-meter {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.risk-meter-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef8;
}

.risk-meter-bar span {
  display: block;
  height: 100%;
  width: 30%;
  border-radius: inherit;
  background: var(--emerald);
  transition: width 480ms ease;
}

.risk-meter.risk-medium .risk-meter-bar span {
  width: 62%;
  background: linear-gradient(90deg, #f59e0b, var(--amber));
}

.risk-meter.risk-high .risk-meter-bar span {
  width: 88%;
  background: linear-gradient(90deg, #f59e0b, var(--red));
}

.risk-meter-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.risk-meter-copy strong {
  color: var(--text);
}

.analysis-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.analysis-form label,
.field-hint {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.field-hint {
  margin: -3px 0 2px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
}

textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
  outline: none;
  line-height: 1.55;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea:focus {
  border-color: rgba(47, 107, 255, 0.66);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.1);
}

.primary-button,
.secondary-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #245de8);
  box-shadow: 0 12px 26px rgba(47, 107, 255, 0.24);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(47, 107, 255, 0.3);
  filter: saturate(1.04);
}

.primary-button:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.sidebar-shell.is-analyzing .primary-button {
  background: linear-gradient(120deg, var(--blue), #5b8fff, #245de8, var(--blue));
  background-size: 220% 100%;
  animation: button-flow 1.15s ease-in-out infinite;
}

.secondary-button {
  border: 1px solid var(--border);
  color: var(--blue-dark);
  background: #fff;
}

.secondary-button:hover {
  border-color: var(--border-strong);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.secondary-button:disabled {
  color: var(--muted);
  background: #f8fafc;
  cursor: not-allowed;
  transform: none;
}

.empty-state {
  padding: 18px 14px;
  border: 1px dashed rgba(82, 121, 196, 0.22);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.empty-state.rich {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 16px;
}

.empty-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-soft);
}

.empty-icon svg {
  width: 24px;
  height: 24px;
}

.empty-state strong {
  color: #0f1f3d;
  font-size: 14px;
  font-weight: 900;
}

.empty-state p {
  margin: 0;
  max-width: 280px;
}

.empty-state .secondary-button {
  min-height: 34px;
  margin-top: 2px;
}

.decision-stack {
  display: grid;
  gap: 10px;
  animation: panel-in 180ms ease;
}

.decision-note {
  padding: 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: #334155;
  font-size: 13px;
  line-height: 1.65;
}

.decision-note.muted {
  border-left-color: #cbd5e1;
  background: #f8fafc;
  color: var(--muted);
}

.decision-stack.action-auto .decision-note {
  border-left-color: var(--emerald);
  background: var(--emerald-soft);
}

.decision-stack.action-suggest .decision-note {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.decision-stack.action-human .decision-note {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.script-box {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  line-height: 1.7;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.history-item:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-content {
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.content-scroll::-webkit-scrollbar {
  width: 8px;
}

.content-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.content-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #cbd5e1;
  background-clip: content-box;
}

.sidebar-beian {
  flex: 0 0 auto;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
}

.sidebar-beian a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.sidebar-beian a:hover {
  color: var(--blue);
}

@keyframes shimmer {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-flow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

/* 20260708 option A: lighter enterprise sidebar polish */
.sidebar-shell {
  width: min(100vw, 420px);
  background:
    radial-gradient(circle at 84% -8%, rgba(47, 107, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.assistant-header {
  min-height: 86px;
  padding: 18px 20px;
  border-bottom: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 1px 0 rgba(83, 119, 194, 0.12), 0 12px 28px rgba(47, 107, 255, 0.06);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #17336d 0%, #2f6bff 74%, #75a7ff 100%);
  box-shadow: 0 14px 28px rgba(47, 107, 255, 0.28);
}

.header-copy h1 {
  font-size: 18px;
  line-height: 1.2;
}

.context-card,
.profile-summary-card,
.unbound-state,
.risk-strip,
.staff-actions {
  margin: 12px 18px 0;
  border-color: rgba(86, 124, 201, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(39, 86, 170, 0.07);
}

.context-card,
.profile-summary-card,
.risk-strip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.profile-summary-card {
  position: relative;
  overflow: hidden;
}

.profile-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  pointer-events: none;
  background: #f59e0b;
}

.profile-summary-card.matched {
  border-color: rgba(5, 150, 105, 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #f2fdf8 100%);
}

.profile-summary-card.matched::before {
  background: #10b981;
}

.profile-summary-card.loading {
  border-color: rgba(47, 107, 255, 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #f1f6ff 100%);
}

.profile-summary-card.loading::before {
  background: var(--blue);
}

.profile-summary-card.warning,
.profile-summary-card.pending {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}

.profile-summary-card strong {
  display: block;
  margin-top: 4px;
  color: #0f1f3d;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.profile-summary-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.state-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.profile-summary-card.matched .state-icon {
  color: var(--emerald);
  background: var(--emerald-soft);
}

.profile-summary-card.loading .state-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.unbound-state {
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
}

.unbound-state .primary-button {
  width: 100%;
  margin-top: 12px;
}

.tab-list {
  margin: 14px 18px 0;
  padding: 4px;
  border: 1px solid rgba(86, 124, 201, 0.16);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(39, 86, 170, 0.06);
}

.tab-button {
  height: 38px;
  border-radius: 12px;
}

.tab-button::after {
  display: none;
}

.tab-button.active {
  color: var(--blue-dark);
  background: linear-gradient(135deg, #edf4ff 0%, #e7f0ff 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.12);
}

.content-scroll {
  padding: 0 18px 16px;
  background: transparent;
}

.panel-section {
  margin-top: 14px;
  padding: 16px;
  border-color: rgba(86, 124, 201, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(39, 86, 170, 0.06);
}

.section-heading {
  margin-bottom: 14px;
}

.metric-grid {
  gap: 10px;
}

.metric-tile {
  min-height: 74px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7faff 0%, #eff5ff 100%);
}

.analysis-form {
  padding: 14px;
  border: 1px solid rgba(86, 124, 201, 0.16);
  border-radius: 16px;
  background: #ffffff;
}

textarea {
  border-color: rgba(86, 124, 201, 0.18);
  border-radius: 14px;
  background: #fbfdff;
}

.primary-button {
  min-height: 40px;
  border-radius: 12px;
}

.empty-state.rich {
  padding: 24px 16px;
  border-style: solid;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf4ff 0%, #e4efff 100%);
}

@media (max-width: 430px) {
  .sidebar-shell {
    width: 100vw;
    border-left: 0;
    border-right: 0;
  }
}

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