:root {
  --paper: #f7f5f0;
  --paper-deep: #ede9df;
  --paper-light: #ffffff;
  --paper-card: #ffffff;
  --paper-subtle: #f0ece3;
  --ink: #191c19;
  --ink-secondary: #313632;
  --ink-soft: #555d56;
  --ink-faint: #858e86;
  --red: #a72c26;
  --red-dark: #821f1a;
  --red-hover: #bf342d;
  --red-soft: #fdf2f0;
  --red-border: #f3cbc8;
  --olive: #2b5a3c;
  --olive-dark: #1e422c;
  --olive-soft: #ebf5ef;
  --olive-border: #b4dec5;
  --amber: #9b5a15;
  --amber-soft: #fef6ec;
  --amber-border: #f7ddbe;
  --fact-color: #1e5077;
  --fact-bg: #f0f6fa;
  --fact-border: #bcd4e6;
  --infer-color: #4c4673;
  --infer-bg: #f4f3f9;
  --infer-border: #cac7e2;
  --rec-color: #265c3e;
  --rec-bg: #eff7f2;
  --rec-border: #b4dec5;
  --unknown-color: #925412;
  --unknown-bg: #fef8ee;
  --unknown-border: #f6dbbd;
  --line: rgba(25, 28, 25, 0.12);
  --line-subtle: rgba(25, 28, 25, 0.07);
  --line-strong: rgba(25, 28, 25, 0.25);
  --shadow-sm: 0 2px 8px rgba(25, 28, 25, 0.04), 0 1px 2px rgba(25, 28, 25, 0.03);
  --shadow-md: 0 8px 24px rgba(25, 28, 25, 0.06), 0 2px 6px rgba(25, 28, 25, 0.04);
  --shadow: 0 20px 50px rgba(25, 28, 25, 0.1), 0 4px 12px rgba(25, 28, 25, 0.05);
  --shadow-lg: 0 30px 70px rgba(25, 28, 25, 0.14), 0 10px 24px rgba(25, 28, 25, 0.08);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --content: 1200px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", "Georgia", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--red-soft);
  color: var(--red-dark);
}

/* Boot Screen */
.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--ink-soft);
  gap: 16px;
  padding: 24px;
}
.boot-screen.dark {
  background: var(--ink);
  color: #dfdbd2;
}
.boot-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: auto;
  background: var(--red);
  color: white;
  border-radius: 50% 50% 50% 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.05em;
  box-shadow: 0 8px 24px rgba(167, 44, 38, 0.28);
}
.boot-screen p {
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Navigation & Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-shell {
  max-width: var(--content);
  min-height: 72px;
  padding: 0 28px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(167, 44, 38, 0.25);
}
.brand-label {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}
.brand small {
  display: block;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover {
  color: var(--red);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.session-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 12px;
  background: var(--paper-subtle);
  border-radius: var(--radius-pill);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper-card);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible,
.choice:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(167, 44, 38, 0.25);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(167, 44, 38, 0.32);
}
.btn-dark {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(25, 28, 25, 0.2);
}
.btn-dark:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
  box-shadow: none;
}
.btn-quiet:hover {
  background: rgba(25, 28, 25, 0.05);
  border-color: transparent;
  color: var(--ink);
  box-shadow: none;
}
.btn-small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-pill);
  box-sizing: border-box;
}
.btn-wide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.text-link {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--red-dark);
}

/* Public Hero Section */
.hero {
  min-height: calc(100vh - 72px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.65;
  pointer-events: none;
  background: radial-gradient(circle at 65% 25%, rgba(241, 227, 207, 0.5) 0%, transparent 65%);
}
.hero-shell {
  max-width: var(--content);
  margin: auto;
  padding: 70px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 16px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 24px;
  border-top: 2px solid currentColor;
}
.hero h1,
.hero-main-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
  max-width: 680px;
}
.hero-title-nowrap {
  white-space: nowrap;
}
.application-textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
  line-height: 1.6;
}
.hero-lead {
  max-width: 620px;
  margin: 24px 0 32px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.8;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-bullet {
  color: var(--olive);
  font-size: 14px;
}

/* Hero Outcome Visual Board */
.hero-visual-board {
  background: var(--paper-light);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  transition: transform 0.3s ease;
}
.hero-visual-board:hover {
  transform: translateY(-2px);
}
.visual-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--line);
}
.visual-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--olive-dark);
  letter-spacing: 0.05em;
}
.visual-tag-synthetic {
  font-size: 11px;
  font-weight: 700;
  color: var(--olive);
  background: var(--olive-soft);
  border: 1px solid var(--olive-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}
.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 16px;
}
.flow-stream {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  transition: all 0.2s ease;
}
.flow-stream.active {
  background: var(--olive-soft);
  border-color: var(--olive);
  box-shadow: 0 2px 8px rgba(43, 90, 60, 0.12);
}
.stream-role {
  font-weight: 700;
  color: var(--ink);
}
.stream-arrow {
  color: var(--ink-faint);
  font-size: 14px;
}
.flow-stream.active .stream-arrow {
  color: var(--olive);
  font-weight: 700;
}
.stream-artifact {
  font-weight: 600;
  color: var(--olive-dark);
  font-family: var(--serif);
}
.flow-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 12px;
  border-top: 1px solid var(--line-subtle);
  line-height: 1.5;
}
.flow-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--olive);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

/* Synthetic Event Callout Bar */
.synthetic-event-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.event-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.event-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.event-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.synthetic-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--olive-dark);
  background: var(--olive-soft);
  border: 1px solid var(--olive-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* 4-Role Gallery Switcher */
.gallery-role-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.role-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  background: var(--paper-light);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  min-height: 72px;
}
.role-tab-btn:hover {
  border-color: var(--olive);
  background: var(--paper-subtle);
}
.role-tab-btn.active {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  box-shadow: 0 4px 14px rgba(30, 66, 44, 0.2);
}
.role-tab-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.role-tab-btn.active .role-tab-name {
  color: #ffffff;
}
.role-tab-artifact {
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--serif);
}
.role-tab-btn.active .role-tab-artifact {
  color: rgba(255, 255, 255, 0.85);
}

/* Gallery Outcome Display */
.gallery-outcome-display {
  background: var(--paper-light);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}
.outcome-display-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
  flex-wrap: wrap;
}
.display-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.display-role-badge {
  font-size: 12px;
  font-weight: 800;
  background: var(--olive-soft);
  color: var(--olive-dark);
  border: 1px solid var(--olive-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.display-title-group h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.display-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.display-focus {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.synthetic-tag-mini {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}
.display-summary {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin: 18px 0 24px;
}
.outcome-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.outcome-preview-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--olive-dark);
  background: var(--olive-soft);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}
.outcome-preview-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.preview-item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-item-list li {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
}
.preview-item-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--olive);
}

/* Sections Common */
.section {
  padding: 96px 28px;
  border-bottom: 1px solid var(--line);
}
.section-shell {
  max-width: var(--content);
  margin: auto;
}
.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  margin-bottom: 50px;
  align-items: end;
}
.section-index {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 800;
  text-transform: uppercase;
}
.section h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.section-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}
.dark-section {
  background: var(--ink);
  color: #f7f5f0;
}
.dark-section h2 {
  color: #ffffff;
}
.dark-section .section-intro,
.dark-section .muted {
  color: #b5b9b2;
}

/* Outcomes Grid */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.outcome-card {
  min-height: 240px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.outcome-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.outcome-card .number {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}
.outcome-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 20px 0 10px;
  line-height: 1.25;
  color: var(--ink);
}
.outcome-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.outcome-card.featured {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
  box-shadow: 0 12px 32px rgba(167, 44, 38, 0.28);
}
.outcome-card.featured .number {
  color: rgba(255, 255, 255, 0.9);
}
.outcome-card.featured h3 {
  color: #ffffff;
}
.outcome-card.featured p {
  color: rgba(255, 255, 255, 0.85);
}

/* Journey Grid (Dark Section) */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.journey-step {
  position: relative;
  padding: 28px 22px;
  min-height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.journey-step:hover {
  background: rgba(255, 255, 255, 0.08);
}
.journey-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  color: #e5877c;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
}
.journey-step h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #ffffff;
}
.journey-step p {
  color: #b5b9b2;
  font-size: 13px;
  margin: 0;
  line-height: 1.65;
}
.journey-step::after {
  content: "→";
  position: absolute;
  right: -10px;
  top: 30px;
  z-index: 2;
  color: #e5877c;
  font-size: 14px;
  font-weight: bold;
}
.journey-step:last-child::after {
  display: none;
}

/* Boundary Grid */
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.boundary-card {
  padding: 28px 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.boundary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.boundary-pill {
  display: inline-block;
  padding: 3px 10px;
  background: var(--olive-soft);
  border: 1px solid var(--olive-border);
  color: var(--olive-dark);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.boundary-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.35;
}
.boundary-card p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}

/* Apply Section */
.apply-section {
  background: var(--ink);
  color: #ffffff;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.apply-section .section-index {
  color: #e5877c;
}
.apply-shell {
  max-width: var(--content);
  margin: auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.apply-copy h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.12;
  margin: 12px 0 20px;
  letter-spacing: -0.04em;
  color: #ffffff;
}
.apply-copy p {
  color: #b5b9b2;
  font-size: 16px;
  line-height: 1.8;
}
.apply-note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: #8c9388;
  line-height: 1.7;
}

/* Form Styles */
.apply-form {
  background: var(--paper-light);
  color: var(--ink);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.field-hint {
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.5;
}
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  transition: all 0.18s ease;
}
.input:hover, .textarea:hover, .select:hover {
  border-color: var(--ink);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--red);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 44, 38, 0.15);
}
.textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
.input::placeholder, .textarea::placeholder {
  color: #9aa198;
}
.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 10px 0 24px;
  align-items: start;
  line-height: 1.6;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--red);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form-message {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--olive-border);
  background: var(--olive-soft);
  margin-bottom: 20px;
}
.form-message strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--olive-dark);
  margin-bottom: 6px;
}
.form-message p {
  color: var(--olive-dark);
  font-size: 13px;
  margin: 4px 0 0;
}

/* Footer */
.site-footer {
  background: #111311;
  color: #949b90;
  padding: 36px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-shell {
  max-width: var(--content);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-size: 13px;
}

/* Modals */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 19, 17, 0.68);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: overlay-fade .2s ease both;
}
@keyframes overlay-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  padding: 36px 36px 32px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  position: relative;
  animation: modal-pop .24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes modal-pop {
  from { transform: scale(0.96) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal h2 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 4px 0 8px;
  color: var(--ink);
}
.modal > p {
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  border-radius: 50%;
  font-size: 20px;
  color: var(--ink-faint);
  transition: all 0.15s ease;
  padding: 0;
  box-sizing: border-box;
}
.modal-close:hover {
  background: var(--paper-subtle);
  color: var(--ink);
}
.login-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.6;
}
.credential-box {
  background: var(--ink);
  color: #ffffff;
  padding: 20px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}
.credential-box code {
  display: block;
  color: #f3c2b9;
  font-size: 16px;
  margin: 6px 0 12px;
  word-break: break-all;
}

/* Toast Notifications */
#toast-root {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  max-width: 400px;
  background: var(--ink);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  animation: toast-in 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: auto;
}
.toast.success {
  border-left-color: #5bb377;
}
@keyframes toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Authenticated Workspace */
.workspace-page {
  min-height: 100vh;
  background: var(--paper);
}
.workspace-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.workspace-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.brand-title {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.workspace-tenant-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.nav-center-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.nav-tab-btn {
  border: none;
  background: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-tab-btn span {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}
.nav-tab-btn:hover {
  color: var(--ink);
  background: var(--paper-light);
}
.nav-tab-btn.active {
  background: #ffffff;
  color: var(--red);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.credits-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--olive-dark);
  background: var(--olive-soft);
  border: 1px solid var(--olive-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.user-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.workspace-shell {
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.workspace-main {
  flex: 1;
  padding: 32px 28px 80px;
}
.workspace-welcome {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.workspace-welcome h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 48px);
  margin: 6px 0 0;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.workspace-welcome p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--olive);
  border: 1px solid var(--olive-border);
  background: var(--olive-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.engine-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px rgba(43, 90, 60, 0.2);
}
.agent-privacy-note {
  margin: -10px 0 24px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.7;
  max-width: 900px;
}
.password-notice {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 28px;
  background: #fdf5ea;
  color: #8f5211;
  border-bottom: 1px solid #f6dcbd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Diagnostic Wizard Layout */
.diagnostic-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.step-sidebar {
  position: sticky;
  top: 96px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step-sidebar h2 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--ink);
}
.step-nav {
  display: grid;
  gap: 4px;
}
.step-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  text-align: left;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.16s ease;
}
.step-item:hover:not(:disabled) {
  background: var(--paper-subtle);
  color: var(--ink);
}
.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: var(--paper);
  color: var(--ink-soft);
}
.step-item.active {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: var(--red-dark);
  font-weight: 800;
}
.step-item.active .step-number {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(167, 44, 38, 0.3);
}
.step-item.done .step-number {
  background: var(--olive);
  border-color: var(--olive);
  color: #ffffff;
}
.step-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sidebar-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* Diagnostic Form Card */
.diagnostic-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 600px;
  padding: clamp(32px, 5vw, 60px);
  box-shadow: var(--shadow-sm);
}
.step-kicker {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-transform: uppercase;
}
.diagnostic-card h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin: 8px 0 12px;
  color: var(--ink);
}
.step-lead {
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 780px;
  font-size: 16px;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}
.field.full {
  grid-column: 1 / -1;
}
.field .select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}
.question-block {
  margin: 0 0 24px;
}
.question-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.45;
}
.question-label span {
  display: inline-block;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 400;
  margin-left: 6px;
}

/* Choice Grid & Refined Option Cards */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.choice-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice {
  min-height: auto;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  box-sizing: border-box;
}
.choice input[type="radio"],
.choice input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}
.choice-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.choice-content b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.choice-content small {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
  font-weight: 400;
}
.choice:hover {
  border-color: var(--red);
  background: var(--paper-light);
  transform: translateY(-1px);
}
.choice.selected,
.choice:has(input:checked) {
  background: #fdf5f4;
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(153, 38, 31, 0.08);
}
.choice.selected .choice-content b,
.choice:has(input:checked) .choice-content b {
  color: var(--red-dark);
  font-weight: 700;
}
.custom-field-box {
  margin-top: 8px;
  animation: fadeIn 0.2s ease;
}

/* Horizontal Scale Row (0-4 Rating) */
.scale-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.scale-choice {
  min-height: 52px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.15s ease;
}
.scale-choice b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 2px;
}
.scale-choice small {
  font-size: 11px;
  line-height: 1.15;
  color: var(--ink-soft);
  font-weight: 400;
}
.scale-choice:hover {
  border-color: var(--red);
  background: var(--paper-light);
}
.scale-choice.selected {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(153, 38, 31, 0.2);
}
.scale-choice.selected b {
  color: #ffffff;
}
.scale-choice.selected small {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Dossier Blueprint Grid (Step 11 事实核对档案) */
.dossier-wrapper {
  background: #faf8f5;
  border: 1px solid #e5dfd5;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 16px;
  margin-bottom: 20px;
}
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dossier-card {
  background: #ffffff;
  border: 1px solid #e8e2d8;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dossier-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0ece5;
}
.dossier-card-head strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
}
.dossier-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--olive-dark);
  background: var(--olive-soft);
  border: 1px solid var(--olive-border);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
}
.dossier-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dossier-item {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.dossier-label {
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
}
.dossier-val {
  color: #2e3831;
  word-break: break-word;
}

/* Generating Overlay */
.generating-overlay-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  max-width: 640px;
  margin: 40px auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.generating-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #f0eae1;
  border-top-color: var(--red);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}
.generating-steps-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.generating-steps-indicator span.active {
  color: var(--red);
  font-weight: 700;
  animation: pulse 1.5s infinite;
}

/* Sidebar Refinements */
.step-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.step-sidebar-header h2 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.step-count-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.step-meta-box {
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink-soft);
}
.step-text small {
  display: block;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.25;
}

/* Diagnostic Actions */
.diagnostic-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.saving-state {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
}
.mobile-progress {
  display: none;
}

/* Result Page (Executive Briefing) */
.result-shell {
  max-width: 1160px;
  margin: auto;
}
.result-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.result-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}
.result-cover {
  background: var(--paper-light);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: clamp(36px, 6vw, 76px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.result-cover::after {
  content: "AI";
  position: absolute;
  right: -20px;
  bottom: -90px;
  font-family: var(--serif);
  font-size: 280px;
  line-height: 1;
  color: rgba(167, 44, 38, 0.04);
  pointer-events: none;
  font-weight: 800;
}
.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.result-cover h1 {
  max-width: 880px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 44px 0 20px;
  color: var(--ink);
}
.result-cover h1 em {
  color: var(--red);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(167, 44, 38, 0.35);
  text-underline-offset: 4px;
}
.result-narrative {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.8;
}
.stage-line {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.stage-line div {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.stage-line div:last-child {
  border-right: 0;
  padding-right: 0;
}
.stage-line small {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stage-line strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--red);
  margin: 4px 0 6px;
}
.stage-line p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Result Sections */
.result-section {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-top: 0;
  padding: clamp(32px, 5vw, 56px);
}
.result-section:last-of-type {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.result-section-head {
  display: flex;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 28px;
}
.result-section-head span {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.result-section h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 40px);
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* 01 Scores & Gate */
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
}
.score-item {
  display: grid;
  grid-template-columns: 140px 1fr 44px;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
}
.score-track {
  height: 8px;
  background: var(--paper-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-hover), var(--red));
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}
.score-item b {
  text-align: right;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.gate-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
}
.gate-card strong {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
}
.gate-card i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.gate-card.pass i {
  background: var(--olive);
  box-shadow: 0 0 0 3px var(--olive-soft);
}
.gate-card p {
  margin: 8px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.55;
}

/* 02 Scenarios */
.scenario-list {
  display: grid;
  gap: 18px;
}
.scenario-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 28px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  transition: all 0.2s ease;
}
.scenario-card:hover {
  box-shadow: var(--shadow-sm);
}
.scenario-card.primary {
  border: 2px solid var(--red);
  background: var(--paper-light);
  box-shadow: var(--shadow-md);
}
.scenario-rank {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.scenario-rank small {
  display: block;
  font-family: var(--sans);
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
}
.scenario-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}
.scenario-event {
  color: var(--ink-secondary);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.6;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tag {
  border: 1px solid var(--line-strong);
  background: var(--paper-card);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
}
.scenario-why {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* 03 Experiment Grid */
.experiment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.info-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card h3 {
  font-family: var(--serif);
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--ink);
}
.info-card p {
  color: var(--ink-secondary);
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.info-card small {
  display: block;
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.6;
}
.mini-list {
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* 04 Timeline (90-Day Roadmap) */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.timeline-item {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
}
.timeline-item time {
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.timeline-item h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 8px 0 12px;
  color: var(--ink);
}
.timeline-item ul {
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}
.timeline-exit {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
  line-height: 1.5;
  background: var(--amber-soft);
  margin: auto -22px -22px;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* 05 Portfolio Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.portfolio-card h3 {
  color: var(--red);
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 12px;
}
.portfolio-card p {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}
.portfolio-card small {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.6;
}

/* 06 Evidence Ledger (Facts, Inferences, Recommendations, Unknowns) */
.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ledger-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}
.ledger-card h3 {
  font-family: var(--serif);
  margin: 0 0 12px;
  font-size: 18px;
}
.ledger-card ul {
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.ledger-card:nth-child(1) {
  border-color: var(--fact-border);
  background: var(--fact-bg);
}
.ledger-card:nth-child(1) h3 {
  color: var(--fact-color);
}
.ledger-card:nth-child(2) {
  border-color: var(--infer-border);
  background: var(--infer-bg);
}
.ledger-card:nth-child(2) h3 {
  color: var(--infer-color);
}
.ledger-card:nth-child(3) {
  border-color: var(--rec-border);
  background: var(--rec-bg);
}
.ledger-card:nth-child(3) h3 {
  color: var(--rec-color);
}
.ledger-card.unknown {
  border-color: var(--unknown-border);
  background: var(--unknown-bg);
}
.ledger-card.unknown h3 {
  color: var(--unknown-color);
}

/* Boundary Disclaimer */
.boundary-note {
  background: var(--ink);
  color: #d8ded5;
  padding: 24px 30px;
  font-size: 13px;
  line-height: 1.75;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Admin Dashboard Styles */
.admin-body {
  background: #151815;
  color: #f2eee6;
}
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.admin-login-card {
  width: min(460px, 100%);
  background: var(--paper-light);
  color: var(--ink);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.admin-login-card h1 {
  font-family: var(--serif);
  font-size: 36px;
  margin: 10px 0;
  color: var(--ink);
}
.admin-page {
  min-height: 100vh;
}
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #1c201c;
  border-bottom: 1px solid #3c413b;
}
.admin-header .nav-shell {
  max-width: 1440px;
}
.admin-shell {
  max-width: 1440px;
  margin: auto;
  padding: 36px 28px 80px;
}
.admin-title {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-end;
  margin-bottom: 30px;
}
.admin-title h1 {
  font-family: var(--serif);
  font-size: 40px;
  margin: 0;
  color: #ffffff;
}
.admin-title p {
  color: #9ba198;
  margin: 6px 0 0;
  font-size: 14px;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.admin-metric {
  background: #1f241f;
  border: 1px solid #3c413b;
  border-radius: var(--radius);
  padding: 22px;
}
.admin-metric small {
  color: #9ba198;
  font-size: 12px;
  font-weight: 600;
}
.admin-metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  color: #f1b0a6;
  margin-top: 4px;
}
.admin-panel {
  background: #1f241f;
  border: 1px solid #3c413b;
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.admin-panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid #3c413b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.admin-panel-head h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0;
  color: #ffffff;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  color: #8c9388;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  border-bottom: 1px solid #3c413b;
  text-transform: uppercase;
}
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #2d332d;
  vertical-align: top;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-table strong {
  color: #ffffff;
}
.admin-table small {
  color: #9ba198;
  display: block;
  margin-top: 3px;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-body .btn {
  border-color: #555b53;
  color: #f1eee7;
  background: #252b25;
}
.admin-body .btn:hover {
  background: #333a33;
  border-color: #777e74;
}
.admin-body .btn-primary {
  background: #a72c26;
  border-color: #a72c26;
  color: #ffffff;
}
.admin-body .btn-primary:hover {
  background: #bf342d;
  border-color: #bf342d;
}
.status {
  display: inline-flex;
  padding: 3px 10px;
  border: 1px solid #555b53;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}
.status.submitted {
  color: #f6c876;
  border-color: #84693b;
  background: rgba(246, 200, 118, 0.1);
}
.status.approved, .status.sent, .status.completed {
  color: #a4d399;
  border-color: #4b7342;
  background: rgba(164, 211, 153, 0.1);
}
.status.rejected, .status.failed {
  color: #f39b92;
  border-color: #834742;
  background: rgba(243, 155, 146, 0.1);
}
.status.pending_configuration {
  color: #d1bfa3;
}
.empty-admin {
  padding: 60px 20px;
  text-align: center;
  color: #8c9388;
  font-size: 14px;
}

/* Tablet Responsive Breakpoints */
@media (max-width: 1020px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    min-height: auto;
  }
  .hero-visual-board {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .gallery-role-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .outcome-sections-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .journey-step {
    min-height: 0;
    display: grid;
    grid-template-columns: 50px 180px 1fr;
    gap: 16px;
    align-items: start;
  }
  .journey-step::before {
    margin: 0;
  }
  .journey-step::after {
    content: "↓";
    right: auto;
    left: 24px;
    top: auto;
    bottom: -12px;
  }
  .boundary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .apply-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .diagnostic-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-table-wrap {
    overflow-x: auto;
  }
  .admin-table {
    min-width: 900px;
  }
}

/* Mobile Responsive Breakpoints (<= 760px) */
@media (max-width: 760px) {
  .boundary-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .nav-shell {
    min-height: 56px;
    padding: 0 12px;
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 10px;
    border-radius: 50% 50% 50% 6px;
  }
  .brand-label {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn-small {
    padding: 5px 10px;
    font-size: 12px;
    min-height: 32px;
  }
  .session-chip {
    max-width: 140px;
    font-size: 11.5px;
    padding: 3px 8px;
  }
  .btn {
    min-height: 44px;
    padding: 10px 16px;
  }
  .hero-shell {
    padding: 36px 16px 44px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-content {
    order: 1;
  }
  .hero-visual-board {
    order: 2;
    padding: 20px 16px;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(32px, 8.5vw, 48px);
  }
  .hero-lead {
    font-size: 15.5px;
    margin: 16px 0 24px;
    line-height: 1.7;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .trust-row {
    gap: 10px 16px;
    margin-top: 24px;
    font-size: 12px;
  }
  .synthetic-event-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
  .event-text {
    font-size: 14px;
  }
  .gallery-role-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .role-tab-btn {
    min-height: 56px;
    padding: 10px 14px;
  }
  .gallery-outcome-display {
    padding: 20px 14px;
  }
  .outcome-display-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .display-title-group h3 {
    font-size: 20px;
  }
  .outcome-sections-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .outcome-preview-card {
    padding: 14px;
  }
  .section {
    padding: 50px 16px;
  }
  .section h2 {
    font-size: 28px;
  }
  .section-intro {
    font-size: 14.5px;
  }
  .journey-step {
    grid-template-columns: 36px 1fr;
  }
  .journey-step p {
    grid-column: 2;
  }
  .boundary-grid {
    grid-template-columns: 1fr;
  }
  .boundary-card {
    padding: 22px 18px;
  }
  .apply-form {
    padding: 22px 16px;
  }
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .workspace-shell {
    padding: 20px 14px 60px;
  }
  .workspace-welcome {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .workspace-welcome h1 {
    font-size: 30px;
  }
  .password-notice {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .diagnostic-layout {
    display: block;
  }
  .step-sidebar {
    display: none;
  }
  .mobile-progress {
    display: block;
    margin-bottom: 16px;
    background: var(--paper-light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
  }
  .mobile-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .mobile-progress-track {
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--paper-deep);
    overflow: hidden;
  }
  .mobile-progress-fill {
    height: 100%;
    background: var(--red);
    border-radius: var(--radius-pill);
    transition: width 0.25s ease;
  }
  .diagnostic-card {
    padding: 24px 18px;
    min-height: auto;
  }
  .diagnostic-card h2 {
    font-size: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .choice-grid, .choice-grid.two {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .scale-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .scale-choice {
    min-height: 48px;
    padding: 6px 2px;
  }
  .scale-choice b {
    font-size: 16px;
  }
  .scale-choice small {
    font-size: 10px;
  }
  .dossier-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .diagnostic-actions {
    position: sticky;
    bottom: 0;
    margin-left: -18px;
    margin-right: -18px;
    margin-bottom: -24px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 10;
  }
  .saving-state {
    display: none;
  }
  .result-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .result-toolbar > div {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .result-toolbar > div .btn {
    flex: 1;
  }
  .result-cover {
    padding: 28px 20px;
  }
  .result-cover h1 {
    margin-top: 32px;
    font-size: 34px;
  }
  .result-narrative {
    font-size: 16px;
  }
  .stage-line {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stage-line div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    padding-right: 0;
  }
  .stage-line div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .score-grid {
    grid-template-columns: 1fr;
  }
  .score-item {
    grid-template-columns: 120px 1fr 36px;
  }
  .gate-grid {
    grid-template-columns: 1fr;
  }
  .scenario-card {
    grid-template-columns: 48px 1fr;
    padding: 20px 16px;
    gap: 14px;
  }
  .scenario-rank {
    font-size: 30px;
  }
  .scenario-card h3 {
    font-size: 20px;
  }
  .experiment-grid, .portfolio-grid, .ledger-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .result-section {
    padding: 28px 18px;
  }
  .admin-shell {
    padding: 20px 14px;
  }
  .admin-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .admin-title h1 {
    font-size: 30px;
  }
  .admin-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .admin-metric {
    padding: 16px;
  }
  .modal {
    padding: 28px 20px;
  }
  #toast-root {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

/* Small Screens (<= 390px / 360px) */
@media (max-width: 390px) {
  .choice-grid, .choice-grid.two {
    grid-template-columns: 1fr;
  }
  .score-item {
    grid-template-columns: 96px 1fr 32px;
    font-size: 12px;
  }
  .scenario-card {
    grid-template-columns: 1fr;
  }
  .scenario-rank {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 26px;
  }
  .scenario-rank small {
    margin-top: 0;
  }
}

/* Print Styles */
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .site-header,
  .workspace-header,
  .password-notice,
  .workspace-welcome,
  .result-toolbar,
  #overlay-root,
  #toast-root,
  .no-print {
    display: none !important;
  }
  .workspace-shell {
    max-width: none !important;
    padding: 0 !important;
  }
  .result-shell {
    max-width: none !important;
  }
  .result-cover {
    border: 1px solid #777777 !important;
    border-radius: 0 !important;
    padding: 24pt !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .result-cover h1 {
    font-size: 32pt !important;
    margin: 20pt 0 12pt !important;
  }
  .result-section {
    border: 1px solid #777777 !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    padding: 20pt !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .result-section h2 {
    font-size: 20pt !important;
  }
  .scenario-card,
  .info-card,
  .portfolio-card,
  .ledger-card,
  .timeline-item {
    border-color: #999999 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --------------------------------------------------------------------------
   Guide Page, Login Intro Box & Wizard Extra Actions
   -------------------------------------------------------------------------- */
.login-intro-box {
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.login-intro-box strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 6px;
}

.login-intro-box ul {
  list-style: disc;
  padding-left: 18px;
  margin: 6px 0;
}

.login-intro-box li {
  margin-bottom: 4px;
}

.btn-danger {
  background: #B5322C;
  color: #FFFFFF;
  border: 1px solid #821D18;
}

.btn-danger:hover {
  background: #90211C;
}

.wizard-extra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
}

.guide-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.guide-header-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.guide-header-card h1 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.3;
  margin: 8px 0 16px;
  color: var(--ink);
}

.guide-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.guide-section-block {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.guide-section-block h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-section-block h2 .guide-badge {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.guide-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.guide-card-mini {
  background: var(--paper);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13.5px;
}

.guide-card-mini strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.guide-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 760px) {
  .guide-header-card {
    padding: 24px 20px;
  }
  .guide-header-card h1 {
    font-size: 24px;
  }
  .guide-section-block {
    padding: 20px 18px;
  }
  .guide-content-grid {
    grid-template-columns: 1fr;
  }
  .choice {
    background: var(--paper-card);
    border: 1px solid rgba(25, 28, 25, 0.16);
    box-shadow: 0 2px 6px rgba(25, 28, 25, 0.04);
  }
  .choice.selected {
    background: #FFFDF8 !important;
    border: 1.5px solid var(--red) !important;
    box-shadow: 0 4px 14px rgba(167, 44, 38, 0.14), inset 3px 0 0 var(--red) !important;
  }
  .scale-choice.selected {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: #ffffff !important;
  }
  .ledger-card.fact-card {
    border-left: 3.5px solid #234E40;
    background: rgba(35, 78, 64, 0.03);
  }
  .ledger-card.infer-card {
    border-left: 3.5px solid #B36B00;
    background: rgba(179, 107, 0, 0.03);
  }
  .ledger-card.rec-card {
    border-left: 3.5px solid #A72C26;
    background: rgba(167, 44, 38, 0.03);
  }
  .ledger-card.unknown-card {
    border-left: 3.5px solid #46505F;
    background: rgba(70, 80, 95, 0.03);
  }
}

/* --------------------------------------------------------------------------
   Credits Badge, Logout & WeChat Sharing Elements
   -------------------------------------------------------------------------- */
.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

.credits-badge strong {
  color: var(--red);
  font-weight: 700;
}

.btn-logout {
  color: #B5322C !important;
  border-color: rgba(181, 50, 44, 0.3) !important;
}

.btn-logout:hover {
  background: rgba(181, 50, 44, 0.08) !important;
  border-color: #B5322C !important;
}

.wechat-share-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 16px;
}
#wechat-share-textarea {
  width: 100%;
  background: #fafbfa;
  color: #1c1e1b;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 14px;
  box-sizing: border-box;
  font-family: var(--font-mono, monospace);
}

/* --------------------------------------------------------------------------
   Open Design: 4 Value Pillars, Demo Evolution Showcase, 7-Element Plan, Action Board
   -------------------------------------------------------------------------- */
.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--olive-dark);
  background: var(--olive-soft);
  border: 1px solid var(--olive-border);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.trust-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
  margin-right: 6px;
  vertical-align: middle;
}

.workflow-stream-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-stream-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.workflow-stream-item.active {
  background: var(--paper-card);
  border-color: var(--olive-border);
  box-shadow: 0 4px 14px rgba(32, 93, 72, 0.08);
}

.stream-step-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.workflow-stream-item small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* 4 Value Pillars Grid */
.value-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.value-pillar-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--line-strong);
  line-height: 1;
  margin-bottom: 12px;
  font-family: "IBM Plex Sans", monospace;
}

.pillar-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.value-pillar-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.35;
}

.value-pillar-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Mechanism Demonstration Showcase */
.demo-showcase-shell {
  background: var(--ink-800);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.demo-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.demo-step-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-step-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.demo-step-tab.active {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.step-badge-num {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
}

.demo-step-tab.active .step-badge-num {
  background: var(--red);
  color: #fff;
}

.step-tab-title {
  font-size: 13.5px;
  font-weight: 700;
}

.demo-display-board {
  background: var(--paper-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}

.demo-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.demo-stage-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-dark);
  background: var(--olive-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
  display: inline-block;
}

.demo-board-head h3 {
  font-size: 22px;
  color: var(--ink);
  font-weight: 800;
}

.demo-board-summary {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.6;
}

.demo-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.demo-card-item {
  background: var(--paper);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}

.demo-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.demo-card-item h4 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 700;
}

.demo-card-item p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* 7-Element Plan Grid */
.plan-7-elements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.element-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.element-card.full-width {
  grid-column: 1 / -1;
}

.element-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.element-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  background: var(--paper-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: monospace;
}

.element-card-head h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.element-lead {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.element-sub-block {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.scenario-highlight {
  background: var(--olive-soft);
  border: 1px solid var(--olive-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.scenario-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--olive-dark);
  background: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.roadmap-3phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.phase-col {
  background: var(--paper);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.phase-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--primary-700);
  margin-bottom: 6px;
}

.phase-col h4 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}

.exit-check-box {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.role-matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.risks-mitigation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-size: 13.5px;
}

/* Confirmation Banner */
.confirmation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--paper-card);
}

.confirmation-banner.pending {
  background: var(--amber-soft);
  border-color: var(--amber-border);
}

.confirmation-banner.confirmed {
  background: var(--olive-soft);
  border-color: var(--olive-border);
}

.confirm-status-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.confirm-icon {
  font-size: 20px;
}

.tag-confirmed {
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-dark);
  background: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--olive-border);
}

/* Action Board & Review Shell */
.action-board-shell, .review-shell {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.action-board-head, .review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.action-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.action-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
}

.action-item-card.done {
  opacity: 0.65;
  background: var(--paper-subtle);
}

.action-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-phase-pill {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-700);
  background: var(--olive-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.action-item-title {
  font-size: 14.5px;
  color: var(--ink);
}

.action-item-meta {
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.action-status-select {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
}

.evidence-progress-box, .review-metrics-card, .review-decision-box {
  background: var(--paper);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 20px;
}

.metric-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.metric-compare-item {
  background: #fff;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xs);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.metric-status-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .value-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-tabs-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-cards-grid {
    grid-template-columns: 1fr;
  }
  .plan-7-elements-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-3phases {
    grid-template-columns: 1fr;
  }
  .risks-mitigation-grid {
    grid-template-columns: 1fr;
  }
  .metric-compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .value-pillars-grid {
    grid-template-columns: 1fr;
  }
  .demo-tabs-bar {
    grid-template-columns: 1fr;
  }
  .action-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .action-item-right {
    align-self: flex-end;
  }
  .confirmation-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

/* ==========================================================================
   Executive AI Landing Proposal & Implementation Master Plan Styles
   ========================================================================== */

.proposal-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.proposal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.toolbar-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-sub-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
}

.proposal-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proposal-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.proposal-status-banner.pending {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

.proposal-status-banner.confirmed {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.proposal-status-banner p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.9;
}

.proposal-document {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  padding: 48px 48px 60px;
}

.proposal-doc-header {
  border-bottom: 2px solid var(--line-light);
  padding-bottom: 32px;
  margin-bottom: 36px;
}

.doc-company-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-tint);
  border: 1px solid rgba(167, 44, 38, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.proposal-hero-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.proposal-lead-narrative {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: 20px;
  max-width: 960px;
}

.proposal-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proposal-meta-pills span {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.proposal-meta-pills strong {
  color: var(--ink);
}

/* Sections */
.proposal-section {
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-light);
}

.proposal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-badge-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.sec-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--ink);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.section-badge-title h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

/* Workflow Comparison Grid */
.workflow-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.workflow-col {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.workflow-col.as-is {
  background: #fdfbf9;
  border-left: 4px solid #d97706;
}

.workflow-col.to-be {
  background: #f8faf9;
  border-left: 4px solid var(--olive-dark);
}

.wf-col-header {
  margin-bottom: 16px;
}

.wf-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
}

.to-be-tag {
  color: var(--olive-dark);
  background: var(--olive-soft);
}

.wf-col-header h4 {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.wf-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 10px;
}

.wf-friction-list {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.wf-friction-list strong {
  font-size: 13px;
  color: #991b1b;
}

.wf-friction-list ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.to-be-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tb-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
  background: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.tb-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--olive-dark);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Human AI Split Card */
.human-ai-split-card {
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.human-ai-split-card h4 {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}

.split-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.split-col {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid var(--line);
}

.split-head {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.split-col.ai-side .split-head {
  color: #1e40af;
}

.split-col.human-side .split-head {
  color: #a72c26;
}

.split-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Tech & Knowledge Grid */
.tech-knowledge-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.tech-card, .knowledge-card {
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.tech-card h4, .knowledge-card h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}

.tech-item {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}

.tech-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tech-item.non-ai {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed #d97706;
}

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asset-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.asset-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.asset-item strong {
  font-size: 13.5px;
  color: var(--ink);
}

.asset-item p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

/* Roadmap Multistream Container */
.roadmap-multistream-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roadmap-stage-block {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.stage-block-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}

.stage-badge {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--red);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.stage-block-header h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.stage-theme {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: auto;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stream-item {
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.stream-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.stream-item p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
  margin: 0;
}

.stage-exit-bar {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #166534;
}

/* Governance Grid */
.governance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.accountability-card, .gate-and-risks-card {
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.accountability-card h4, .gate-and-risks-card h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}

.role-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.role-row:last-child {
  margin-bottom: 0;
}

.role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.role-badge.sponsor { background: #fef3c7; color: #92400e; }
.role-badge.owner { background: #e0e7ff; color: #3730a3; }
.role-badge.lead { background: #dcfce7; color: #166534; }

.role-row strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.role-row p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.human-gate-highlight {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.human-gate-highlight h4 {
  color: #991b1b;
  margin: 0 0 8px;
  font-size: 14px;
}

.human-gate-highlight p {
  font-size: 13px;
  line-height: 1.6;
  color: #7f1d1d;
  margin: 0;
}

.stop-conditions-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.stop-conditions-box h4 {
  font-size: 13.5px;
  margin: 0 0 8px;
  color: var(--ink);
}

.stop-conditions-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* ROI Metrics Grid */
.roi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.roi-metric-card {
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.metric-name {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.metric-num {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}

.metric-sub {
  display: block;
  font-size: 11.5px;
  color: var(--olive-dark);
}

.baseline-comparison-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.baseline-comparison-box strong {
  color: var(--ink);
}

.proposal-footer-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

/* Print Styles */
@media print {
  .no-print, .workspace-nav, .proposal-toolbar, .proposal-status-banner, .proposal-footer-bar {
    display: none !important;
  }
  .proposal-shell {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .proposal-document {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

@media (max-width: 900px) {
  .workflow-comparison-grid, .split-table-grid, .tech-knowledge-grid, .governance-grid {
    grid-template-columns: 1fr;
  }
  .stream-grid, .roi-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proposal-document {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Open Design: Public Homepage, 4 Pillars, Mechanism Demo, Apply Section
   ========================================================================== */

.public-shell {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Public Top Navigation */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--olive-dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-xs);
  letter-spacing: -0.5px;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hero Section */
.public-hero {
  padding: 72px 24px 64px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(235, 245, 239, 0.7) 0%, rgba(247, 245, 240, 0) 70%);
  border-bottom: 1px solid var(--line-subtle);
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-pre-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--olive-dark);
  background: var(--olive-soft);
  border: 1px solid var(--olive-border);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-headline {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin: 0 auto 32px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-footnote {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0;
}

/* Sections Common */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-header h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* Four Pillars Section */
.four-pillars-section {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 14px);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pillar-num {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}

.pillar-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.pillar-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0;
}

.pillar-desc strong {
  color: var(--ink);
}

/* Mechanism Demonstration Section */
.mechanism-demo-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.demo-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.demo-tab-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-tab-btn:hover {
  border-color: var(--red-border);
  background: var(--paper-subtle);
}

.demo-tab-btn.active {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 2px 8px rgba(167, 44, 38, 0.12);
}

.demo-tab-num {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-faint);
}

.demo-tab-btn.active .demo-tab-num {
  color: var(--red);
}

.demo-tab-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.demo-tab-btn.active .demo-tab-title {
  color: var(--red-dark);
}

.demo-display-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.demo-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 28px;
}

.demo-step-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-dark);
  background: var(--olive-soft);
  border: 1px solid var(--olive-border);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}

.demo-panel-header h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.demo-summary {
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.6;
}

.demo-watermark-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.demo-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.demo-card-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 12px);
  padding: 20px 22px;
}

.demo-card-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}

.demo-card-item h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.demo-card-item p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0;
}

.demo-panel-footer {
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.demo-notice-text {
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* Application Form Section */
.apply-section {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.apply-container {
  max-width: 800px;
}

.apply-header {
  text-align: center;
  margin-bottom: 36px;
}

.apply-header h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.apply-header p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.apply-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

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

.input, .textarea {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(167, 44, 38, 0.1);
}

.consent-row {
  margin: 20px 0;
  font-size: 13px;
  color: var(--ink-secondary);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.apply-success-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: #166534;
  color: #ffffff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.apply-success-box h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: #166534;
  margin: 0 0 10px;
}

.apply-success-box p {
  font-size: 14.5px;
  color: #14532d;
  margin: 0 0 6px;
}

.success-hint {
  font-size: 13px;
  opacity: 0.85;
}

/* Public Footer */
.public-footer {
  background: var(--paper-subtle);
  border-top: 1px solid var(--line);
  padding: 40px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-container strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-container p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--ink-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--red);
}

/* Buttons Common */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13.5px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 2px 8px rgba(167, 44, 38, 0.25);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--paper-subtle);
  border-color: var(--ink);
}

.btn-quiet {
  background: transparent;
  color: var(--ink-secondary);
}

.btn-quiet:hover {
  background: var(--paper-subtle);
  color: var(--red);
}

.btn-small {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-large {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius-md, 10px);
}

/* Comprehensive Responsive Breakpoints */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-tabs-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 28px;
  }
  .hero-subtext {
    font-size: 14.5px;
  }
  .section-container {
    padding: 40px 16px;
  }
  .section-header h2 {
    font-size: 24px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .demo-tabs-bar {
    grid-template-columns: 1fr;
  }
  .demo-display-panel {
    padding: 20px 16px;
  }
  .demo-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .apply-form {
    padding: 24px 16px;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .proposal-document {
    padding: 20px 16px;
  }
  .proposal-hero-title {
    font-size: 22px;
  }
  .proposal-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .toolbar-title-group {
    flex-wrap: wrap;
  }
  .proposal-toolbar-actions {
    flex-wrap: wrap;
  }
  .proposal-status-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .stream-grid, .roi-metrics-grid {
    grid-template-columns: 1fr;
  }
  .workspace-nav {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 90;
  }
  .workspace-nav-container {
    height: auto !important;
    min-height: unset !important;
    padding: 10px 14px !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-left {
    justify-content: space-between;
    width: 100%;
  }
  .nav-center-tabs {
    overflow-x: auto;
    width: 100%;
    padding: 4px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .nav-center-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-tab-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 12px;
  }
  .nav-right {
    justify-content: space-between;
    width: 100%;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
  }
  .proposal-footer-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .proposal-footer-bar button {
    width: 100%;
  }
}




