/* 木塑創投 AI 展示中心 — 共用樣式
   Dark warm-charcoal canvas, restrained emerald/cyan signal color, ivory text. */

:root {
  --bg: #14120e;
  --bg-alt: #1a1712;
  --panel: #201c16;
  --panel-raised: #262019;
  --border: #3a342a;
  --border-soft: #2a251e;

  --ivory: #f3ede0;
  --ivory-dim: #cdc4b1;
  --ivory-faint: #948b78;

  --emerald: #34c98f;
  --emerald-dim: #1f7a56;
  --cyan: #4fc7d6;
  --cyan-dim: #2c8590;
  --amber: #e0a95c;
  --red: #d9704f;

  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei",
    "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(52, 201, 143, 0.04), transparent 320px),
    repeating-linear-gradient(
      to right,
      rgba(243, 237, 224, 0.035) 0,
      rgba(243, 237, 224, 0.035) 1px,
      transparent 1px,
      transparent 64px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(243, 237, 224, 0.035) 0,
      rgba(243, 237, 224, 0.035) 1px,
      transparent 1px,
      transparent 64px
    ),
    var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald);
  color: #10130f;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: rgba(20, 18, 14, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ivory);
  white-space: nowrap;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(52, 201, 143, 0.15);
  flex-shrink: 0;
}

.brand-name {
  font-size: 17px;
}

.brand-sub {
  font-size: 12px;
  color: var(--ivory-faint);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: var(--ivory-dim);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ivory);
  border-color: var(--border);
  background: var(--panel);
}

.main-nav a[aria-current="page"] {
  color: var(--emerald);
  border-color: var(--emerald-dim);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(52, 201, 143, 0.08);
  border: 1px solid var(--emerald-dim);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
  max-width: 22ch;
}

.lede {
  font-size: 17px;
  color: var(--ivory-dim);
  max-width: 60ch;
  margin: 0 0 8px;
}

/* ---------- Section ---------- */

.section {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: 0.01em;
}

.section-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ivory-faint);
}

/* ---------- Demo cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
}

.demo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(52, 201, 143, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.demo-card:hover,
.demo-card:focus-visible {
  border-color: var(--emerald-dim);
  background: var(--panel-raised);
  transform: translateY(-2px);
}

.demo-card:hover::after,
.demo-card:focus-visible::after {
  opacity: 1;
}

.card-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.demo-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.demo-card p {
  color: var(--ivory-dim);
  font-size: 14.5px;
  margin: 0 0 20px;
  flex: 1;
}

.card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-cta::after {
  content: "→";
  transition: transform 0.15s ease;
}

.demo-card:hover .card-cta::after,
.demo-card:focus-visible .card-cta::after {
  transform: translateX(3px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--emerald);
  color: #0e130f;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #45d9a1;
}

.btn-secondary {
  background: transparent;
  color: var(--ivory);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--emerald-dim);
  color: var(--emerald);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Panels / lists ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.panel + .panel {
  margin-top: 18px;
}

.panel h3 {
  margin-top: 0;
  font-size: 17px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--ivory-dim);
  font-size: 14.5px;
}

.check-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ---------- Privacy note ---------- */

.privacy-note {
  display: flex;
  gap: 14px;
  background: rgba(224, 169, 92, 0.07);
  border: 1px solid rgba(224, 169, 92, 0.35);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--ivory-dim);
}

.privacy-note strong {
  color: var(--amber);
}

.privacy-note .mark {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 13px;
  flex-shrink: 0;
  padding-top: 1px;
}

/* ---------- Two-column layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- Simulation console (codex-claude demo) ---------- */

.console {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}

.console-bar-title {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ivory-faint);
  letter-spacing: 0.04em;
}

.status-pill {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ivory-dim);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ivory-faint);
}

.status-pill[data-state="running"] .dot {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 199, 214, 0.18);
}

.status-pill[data-state="running"] {
  color: var(--cyan);
  border-color: var(--cyan-dim);
}

.status-pill[data-state="passed"] .dot {
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(52, 201, 143, 0.18);
}

.status-pill[data-state="passed"] {
  color: var(--emerald);
  border-color: var(--emerald-dim);
}

.status-pill[data-state="attention"] .dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(224, 169, 92, 0.18);
}

.status-pill[data-state="attention"] {
  color: var(--amber);
  border-color: rgba(224, 169, 92, 0.5);
}

.console-body {
  padding: 24px 28px 28px;
}

.console-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ivory-dim);
}

.console-meta dt {
  color: var(--ivory-faint);
  margin-bottom: 3px;
}

.console-meta dd {
  margin: 0;
  color: var(--ivory);
  font-size: 15px;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  margin-bottom: 26px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  transition: width 0.35s ease;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.step:last-child {
  border-bottom: none;
}

.step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.step-marker span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ivory-faint);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.step[data-state="active"] .step-marker span {
  border-color: var(--cyan);
  color: var(--cyan);
  animation: pulse 1.4s ease-in-out infinite;
}

.step[data-state="done"] .step-marker span {
  border-color: var(--emerald);
  background: rgba(52, 201, 143, 0.12);
  color: var(--emerald);
}

.step[data-state="rejected"] .step-marker span {
  border-color: var(--amber);
  background: rgba(224, 169, 92, 0.12);
  color: var(--amber);
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ivory-dim);
}

.step[data-state="active"] .step-title,
.step[data-state="done"] .step-title,
.step[data-state="rejected"] .step-title {
  color: var(--ivory);
}

.step-detail {
  font-size: 13.5px;
  color: var(--ivory-faint);
  margin-top: 4px;
  min-height: 1em;
}

.step[data-state="rejected"] .step-detail {
  color: var(--amber);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 199, 214, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(79, 199, 214, 0);
  }
}

.log-line {
  font-family: var(--mono);
  font-size: 12.5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 28px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ivory-faint);
}

.site-footer a {
  color: var(--ivory-faint);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--emerald);
}

/* ---------- Utility ---------- */

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.badge {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ivory-dim);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .console-body {
    padding: 20px;
  }
}

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

/* =====================================================================
   Codex × Claude cinematic command-room demo (/demos/codex-claude/)
   ===================================================================== */

.cc-page {
  overflow-x: hidden;
}

/* ---------- Stage: full-bleed command room ---------- */

.cc-stage-section {
  position: relative;
  background: #0b0a08;
  border-bottom: 1px solid var(--border-soft);
}

.cc-stage {
  position: relative;
  width: 100%;
  min-height: 88vh;
  min-height: 88svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cc-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.cc-stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 50% 42%, transparent 0%, transparent 34%, rgba(11, 10, 8, 0.55) 76%, rgba(11, 10, 8, 0.94) 100%),
    linear-gradient(180deg, rgba(11, 10, 8, 0.78) 0%, rgba(11, 10, 8, 0.08) 24%, rgba(11, 10, 8, 0.08) 54%, rgba(11, 10, 8, 0.88) 100%);
  transition: background-color 0.6s ease;
}

.cc-stage[data-chamber="rejected"] .cc-stage-vignette {
  background-color: rgba(160, 46, 26, 0.14);
}

.cc-stage[data-chamber="approve"] .cc-stage-vignette,
.cc-stage[data-chamber="passed"] .cc-stage-vignette {
  background-color: rgba(52, 201, 143, 0.1);
}

.cc-safe-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
  background: rgba(20, 18, 14, 0.65);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- Opening title reveal ---------- */

.cc-title {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(11, 10, 8, 0.6);
  opacity: 1;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.cc-title.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cc-title-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}

.cc-title-main {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

.cc-title-sub {
  font-size: 15px;
  color: var(--ivory-dim);
}

/* ---------- Stage grid: Codex left / chamber centre / Claude right ---------- */

.cc-stage-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 26px;
}

.cc-agent {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  min-height: 96px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.cc-agent--codex {
  justify-self: start;
  border-color: rgba(79, 199, 214, 0.25);
}

.cc-agent--claude {
  justify-self: end;
  align-items: flex-end;
  text-align: right;
  border-color: rgba(52, 201, 143, 0.25);
}

.cc-agent.is-active {
  background: rgba(26, 23, 18, 0.8);
}

.cc-agent--codex.is-active {
  border-color: var(--cyan);
}

.cc-agent--claude.is-active {
  border-color: var(--emerald);
}

.cc-agent-halo {
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: calc(var(--radius) + 14px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cc-agent--codex .cc-agent-halo {
  box-shadow: 0 0 0 1px rgba(79, 199, 214, 0.4), 0 0 40px 10px rgba(79, 199, 214, 0.25);
}

.cc-agent--claude .cc-agent-halo {
  box-shadow: 0 0 0 1px rgba(52, 201, 143, 0.4), 0 0 40px 10px rgba(52, 201, 143, 0.25);
}

.cc-agent.is-active .cc-agent-halo {
  opacity: 1;
  animation: cc-halo-pulse 1.8s ease-in-out infinite;
}

@keyframes cc-halo-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.cc-agent-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-agent-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ivory-faint);
}

.cc-agent-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ivory);
}

.cc-agent--codex .cc-agent-name {
  color: var(--cyan);
}

.cc-agent--claude .cc-agent-name {
  color: var(--emerald);
}

.cc-say {
  margin: 0;
  min-height: 1.4em;
  font-size: 13.5px;
  color: var(--ivory-dim);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cc-say.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Verification chamber ---------- */

.cc-chamber {
  position: relative;
  justify-self: center;
  width: clamp(120px, 15vw, 190px);
  height: clamp(120px, 15vw, 190px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  background: radial-gradient(circle at 50% 40%, rgba(38, 32, 25, 0.92), rgba(20, 18, 14, 0.88));
  border: 1px solid var(--border);
}

.cc-chamber-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.cc-chamber-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.cc-chamber-state {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ivory);
  transition: color 0.3s ease;
}

.cc-chamber-sub {
  font-size: 11px;
  color: var(--ivory-faint);
}

.cc-chamber[data-state="analyze"] .cc-chamber-ring,
.cc-chamber[data-state="plan"] .cc-chamber-ring {
  border-color: var(--cyan);
  box-shadow: 0 0 22px 4px rgba(79, 199, 214, 0.35);
  animation: cc-ring-glow 1.8s ease-in-out infinite;
}

.cc-chamber[data-state="dispatch"] .cc-chamber-ring,
.cc-chamber[data-state="execute"] .cc-chamber-ring {
  border-color: var(--emerald);
  box-shadow: 0 0 22px 4px rgba(52, 201, 143, 0.35);
  animation: cc-ring-glow 1.4s ease-in-out infinite;
}

.cc-chamber[data-state="verify"] .cc-chamber-ring {
  border-color: var(--amber);
  box-shadow: 0 0 22px 4px rgba(224, 169, 92, 0.35);
  animation: cc-ring-glow 1.2s ease-in-out infinite;
}

.cc-chamber[data-state="rejected"] .cc-chamber-ring {
  border-color: var(--red);
  box-shadow: 0 0 30px 6px rgba(217, 112, 79, 0.55);
}

.cc-chamber[data-state="rejected"] {
  animation: cc-shake 0.5s ease;
}

.cc-chamber[data-state="rejected"] .cc-chamber-state {
  color: var(--red);
}

.cc-chamber[data-state="approve"] .cc-chamber-ring,
.cc-chamber[data-state="passed"] .cc-chamber-ring {
  border-color: var(--emerald);
  box-shadow: 0 0 42px 10px rgba(52, 201, 143, 0.55);
}

.cc-chamber[data-state="approve"] .cc-chamber-state,
.cc-chamber[data-state="passed"] .cc-chamber-state {
  color: var(--emerald);
}

@keyframes cc-ring-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes cc-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---------- Flying data packet ---------- */

.cc-packet {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--cyan);
  box-shadow: 0 0 12px 4px rgba(79, 199, 214, 0.6);
  opacity: 0;
}

.cc-packet.is-flying[data-dir="to-claude"] {
  animation: cc-packet-to-claude 1.1s ease-in-out;
}

.cc-packet.is-flying[data-dir="to-codex"] {
  animation: cc-packet-to-codex 1.1s ease-in-out;
}

@keyframes cc-packet-to-claude {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); background: var(--cyan); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(26vw, -50%) scale(0.9); background: var(--emerald); }
}

@keyframes cc-packet-to-codex {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); background: var(--emerald); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-26vw, -50%) scale(0.9); background: var(--cyan); }
}

/* ---------- Dialogue caption strip ---------- */

.cc-caption {
  position: relative;
  z-index: 4;
  margin: 0 auto 18px;
  max-width: min(720px, 88%);
  text-align: center;
  background: rgba(11, 10, 8, 0.72);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(6px);
}

.cc-caption.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Playback controls ---------- */

.cc-controls {
  padding-top: 22px;
  padding-bottom: 26px;
}

.cc-chapter {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.cc-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  margin-bottom: 14px;
}

.cc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  transition: width 0.3s linear;
}

.cc-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cc-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ivory-dim);
}

.cc-time-sep {
  color: var(--ivory-faint);
}

.cc-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-live-status {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ivory-faint);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.cc-btn {
  padding: 9px 18px;
  font-size: 13.5px;
}

.cc-btn:focus-visible,
.cc-progress:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Artifact panels: diff / plan / review ---------- */

.cc-artifacts {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.15fr;
  gap: 20px;
  align-items: start;
}

.cc-artifact h3 {
  margin-bottom: 14px;
}

.cc-code {
  margin: 0;
  min-height: 140px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}

.cc-line {
  display: block;
  white-space: pre;
}

.cc-line--ctx {
  color: var(--ivory-faint);
}

.cc-line--add {
  color: var(--emerald);
}

.cc-line--fix {
  color: var(--amber);
}

.cc-plan {
  counter-reset: cc-plan-counter;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cc-plan li {
  counter-increment: cc-plan-counter;
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: var(--ivory-dim);
}

.cc-plan li::before {
  content: counter(cc-plan-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-plan li.cc-plan-empty {
  padding-left: 0;
  color: var(--ivory-faint);
  font-style: italic;
}

.cc-plan li.cc-plan-empty::before {
  content: none;
  border: none;
}

.cc-model {
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ivory-faint);
}

.cc-model span {
  color: var(--ivory-dim);
}

.cc-model.is-active span {
  color: var(--emerald);
  font-weight: 600;
}

.cc-review {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cc-review li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ivory-dim);
  transition: color 0.25s ease;
}

.cc-review-mark {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cc-review li[data-state="pass"] .cc-review-mark {
  border-color: var(--emerald);
  background: rgba(52, 201, 143, 0.15);
}

.cc-review li[data-state="pass"] .cc-review-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 1px;
  background: var(--emerald);
}

.cc-review li[data-state="fail"] .cc-review-mark {
  border-color: var(--red);
  background: rgba(217, 112, 79, 0.18);
  animation: cc-shake 0.5s ease;
}

.cc-review li[data-state="fail"] .cc-review-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 1px;
  background: var(--red);
}

.cc-review li[data-state="pass"] {
  color: var(--ivory);
}

.cc-review li[data-state="fail"] {
  color: var(--red);
}

.cc-tests {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
}

.cc-test-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ivory-faint);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.cc-test-cell[data-state="pass"] {
  border-color: var(--emerald);
  background: rgba(52, 201, 143, 0.15);
  color: var(--emerald);
}

/* ---------- Delivery reveal ---------- */

.cc-delivery {
  padding: 32px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--emerald-dim);
  background: linear-gradient(135deg, rgba(52, 201, 143, 0.1), rgba(20, 18, 14, 0.5));
  text-align: center;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cc-delivery[data-shown="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cc-delivery-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--emerald);
  color: #0e130f;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.cc-delivery h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.cc-delivery p {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--ivory-dim);
  font-size: 14.5px;
}

@media (max-width: 980px) {
  .cc-artifacts {
    grid-template-columns: 1fr 1fr;
  }

  .cc-artifact--code {
    grid-column: 1 / -1;
  }
}

/* ---------- Mobile layout ---------- */

@media (max-width: 860px) {
  .cc-stage {
    min-height: 100vh;
    min-height: 100svh;
  }

  .cc-stage-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 0 20px 20px;
  }

  .cc-agent {
    max-width: 420px;
    justify-self: stretch;
    align-items: center;
    text-align: center;
  }

  .cc-agent--claude {
    align-items: center;
    text-align: center;
  }

  .cc-chamber {
    margin-bottom: 0;
  }

  .cc-packet.is-flying[data-dir="to-claude"] {
    animation-name: cc-packet-to-claude-v;
  }

  .cc-packet.is-flying[data-dir="to-codex"] {
    animation-name: cc-packet-to-codex-v;
  }

  .cc-artifacts {
    grid-template-columns: 1fr;
  }

  .cc-tests {
    grid-template-columns: repeat(6, 1fr);
  }
}

@keyframes cc-packet-to-claude-v {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); background: var(--cyan); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 22vh) scale(0.9); background: var(--emerald); }
}

@keyframes cc-packet-to-codex-v {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); background: var(--emerald); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -22vh) scale(0.9); background: var(--cyan); }
}

@media (max-width: 640px) {
  .cc-stage-section .cc-safe-badge {
    top: 12px;
    right: 12px;
    font-size: 10px;
    padding: 6px 10px;
  }
}

/* ---------- Reduced motion overrides ---------- */

@media (prefers-reduced-motion: reduce) {
  .cc-agent.is-active .cc-agent-halo,
  .cc-chamber[data-state] .cc-chamber-ring,
  .cc-chamber[data-state="rejected"],
  .cc-review li[data-state="fail"] .cc-review-mark {
    animation: none !important;
  }

  .cc-packet.is-flying[data-dir="to-claude"],
  .cc-packet.is-flying[data-dir="to-codex"] {
    animation-duration: 0.001ms !important;
  }

  .cc-title,
  .cc-say,
  .cc-caption,
  .cc-delivery {
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================================
   AI 老闆訓練系統 — LINE Bot 知識訓練工作流 (/demos/ai-boss-training/)
   ===================================================================== */

.bt-page {
  overflow-x: hidden;
}

.bt-page .cc-artifacts {
  grid-template-columns: 1.3fr 1fr;
}

.bt-stage-section {
  padding: 28px 0 0;
}

.bt-stage {
  position: relative;
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
}

.bt-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.bt-title.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.bt-title-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--emerald);
}

.bt-title-main {
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 700;
  color: var(--ivory);
}

.bt-title-sub {
  font-size: 13.5px;
  color: var(--ivory-faint);
}

.bt-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ---------- Phone mockup ---------- */

.bt-phone-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-phone {
  width: 100%;
  aspect-ratio: 320 / 640;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 6px solid #111;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.bt-phone-header {
  flex: none;
  background: #fff;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  font-weight: 700;
}

.bt-phone-header .bt-back {
  font-size: 16px;
  color: #333;
}

.bt-phone-header .bt-persona {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1f7a56;
  background: #e3f6ee;
  border-radius: 999px;
  padding: 2px 8px;
}

.bt-phone-chat {
  flex: 1;
  background: linear-gradient(180deg, #bcd6ee 0%, #a9c9e8 40%, #9dbfe0 100%);
  overflow: hidden;
  position: relative;
}

.bt-phone-chat-inner {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scrollbar-width: none;
}

.bt-phone-chat-inner::-webkit-scrollbar {
  display: none;
}

.bt-row {
  display: flex;
  gap: 5px;
  max-width: 100%;
  align-items: flex-end;
  animation: bt-pop 0.18s ease;
}

@keyframes bt-pop {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bt-row.in {
  justify-content: flex-start;
}

.bt-row.out {
  justify-content: flex-end;
}

.bt-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef1f4;
  border: 1px dashed #b7bfc8;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.bt-bub {
  max-width: 76%;
  padding: 6px 9px;
  border-radius: 13px;
  font-size: 10.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.bt-row.in .bt-bub {
  background: #fff;
  color: #1b1b1f;
  border-bottom-left-radius: 3px;
}

.bt-row.out .bt-bub {
  background: #93e06a;
  color: #101a0d;
  border-bottom-right-radius: 3px;
}

.bt-typing {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 8px 10px;
}

.bt-typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8a8f98;
  opacity: 0.5;
  animation: bt-blink 1s infinite ease-in-out;
}

.bt-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.bt-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bt-blink {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.bt-voice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.bt-voice .bt-wave {
  display: flex;
  align-items: center;
  gap: 1.5px;
  flex: 1;
}

.bt-voice .bt-wave i {
  display: block;
  width: 2px;
  background: currentColor;
  opacity: 0.55;
  border-radius: 1px;
}

.bt-voice .bt-dur {
  font-size: 8.5px;
  opacity: 0.7;
}

.bt-phone-menu {
  flex: none;
  background: #2f6e52;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  font-size: 9px;
  color: #c8ddce;
  gap: 4px;
}

/* ---------- Review console panel ---------- */
/* 依真實審核台原始碼還原（ahouseplus-boss-training：src/app/review/page.tsx、globals.css），
   拿掉客戶名稱，配色／字級／版面照真實 CSS token 還原（深色主題，跟本站舞台自然融合）。 */

.bt-rv {
  --rv-ink: #e2e8f0;
  --rv-muted: #94a3b8;
  --rv-line: rgba(255, 255, 255, 0.08);
  --rv-green: #10b981;
  --rv-green-soft: rgba(16, 185, 129, 0.1);
  --rv-gold: #fbbf24;
  --rv-gold-soft: rgba(251, 191, 36, 0.1);
  --rv-paper: #161b22;
  --rv-soft: #0a0b0d;
  --rv-danger: #ef4444;
  --rv-danger-soft: rgba(239, 68, 68, 0.1);

  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--rv-soft);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.bt-rv-header {
  flex: none;
  background: var(--rv-paper);
  border-bottom: 1px solid var(--rv-line);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bt-rv-title {
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bt-rv-lead {
  font-size: 11px;
  color: var(--rv-muted);
}

.bt-rv-body {
  flex: 1;
  padding: 14px 18px 18px;
  overflow-y: auto;
  color: var(--rv-ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bt-rv-queue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rv-line);
  padding-bottom: 10px;
}

.bt-rv-queue-label {
  font-size: 13px;
  font-weight: 600;
}

.bt-rv-queue-count {
  font-size: 11px;
  background: var(--rv-gold-soft);
  color: var(--rv-gold);
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 600;
}

.bt-rv-note {
  font-size: 11px;
  color: var(--rv-muted);
  margin: -4px 0 0;
}

.bt-rv-empty {
  color: var(--rv-muted);
  font-size: 12.5px;
  text-align: center;
  padding: 28px 16px;
  border: 1px dashed var(--rv-line);
  border-radius: 12px;
}

.bt-rv-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bt-rv-card[hidden] {
  display: none;
}

.bt-rv-client {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--rv-line);
  padding-bottom: 12px;
}

.bt-rv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2d3748;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.bt-rv-client-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.bt-rv-client-name {
  font-size: 13px;
  font-weight: 700;
}

.bt-rv-client-time {
  font-size: 10.5px;
  color: var(--rv-muted);
  margin-top: 1px;
}

.bt-rv-badge {
  flex: none;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--rv-gold-soft);
  color: var(--rv-gold);
}

.bt-rv-badge[data-status="imported"] {
  background: var(--rv-green-soft);
  color: var(--rv-green);
}

.bt-rv-block-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}

.bt-rv-block-title--q {
  color: var(--rv-gold);
}

.bt-rv-block-title--a {
  color: var(--rv-green);
}

.bt-rv-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.bt-rv-block-head .bt-rv-block-title--a {
  margin-bottom: 0;
}

.bt-rv-polish-btn {
  font-size: 10.5px;
  color: var(--rv-ink);
  border: 1px solid var(--rv-line);
  border-radius: 6px;
  padding: 3px 9px;
}

.bt-rv-question,
.bt-rv-answer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--rv-line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.6;
}

.bt-rv-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.bt-rv-ai-card {
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  background: var(--rv-green-soft);
  padding: 10px 12px;
}

.bt-rv-ai-card h5 {
  color: var(--rv-green);
  font-size: 11px;
  margin: 0 0 5px;
}

.bt-rv-ai-card ul {
  margin: 0;
  padding-left: 15px;
  font-size: 11px;
  line-height: 1.5;
}

.bt-rv-ai-card--risk {
  border-color: rgba(251, 191, 36, 0.22);
  background: var(--rv-gold-soft);
}

.bt-rv-ai-card--risk h5 {
  color: var(--rv-gold);
}

.bt-rv-ai-card--follow {
  grid-column: 1 / -1;
  border-color: var(--rv-line);
  background: rgba(255, 255, 255, 0.025);
}

.bt-rv-ai-card--follow h5 {
  color: var(--rv-muted);
}

.bt-rv-ai-card--follow p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
}

.bt-rv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bt-rv-tag {
  font-size: 10.5px;
  border: 1px solid var(--rv-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rv-muted);
  padding: 3px 10px;
  border-radius: 99px;
}

.bt-rv-tag[data-active="true"] {
  border-color: var(--rv-green);
  background: var(--rv-green-soft);
  color: var(--rv-green);
  font-weight: 600;
}

.bt-rv-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--rv-line);
  padding-top: 12px;
  margin-top: auto;
}

.bt-rv-btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: default;
}

.bt-rv-btn--primary {
  flex: 2;
  background: var(--rv-green);
  color: #fff;
}

.bt-rv-btn--danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--rv-danger);
}

.bt-rv-stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--rv-line);
}

.bt-rv-stat {
  background: var(--rv-paper);
  border: 1px solid var(--rv-line);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}

.bt-rv-stat-num {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--rv-ink);
  transition: transform 0.25s ease;
}

.bt-rv-stat-num.is-bump {
  transform: scale(1.2);
}

.bt-rv-stat-label {
  font-size: 10px;
  color: var(--rv-muted);
}


.bt-badge-persona {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--amber);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 auto 14px;
}

pre#bt-diff.cc-code {
  white-space: normal;
}

#bt-diff.cc-code .cc-line {
  white-space: pre-wrap;
  margin-bottom: 6px;
}

@media (max-width: 860px) {
  .bt-grid {
    grid-template-columns: 1fr;
  }

  .bt-phone {
    max-width: 300px;
    margin: 0 auto;
  }
}
