:root {
  --bg: #0d1218;
  --bg-strong: #151d26;
  --panel: rgba(23, 31, 40, 0.72);
  --panel-strong: rgba(29, 39, 50, 0.86);
  --text: #f3f7fb;
  --muted: #98a8b9;
  --line: rgba(210, 223, 240, 0.12);
  --line-strong: rgba(218, 231, 246, 0.2);
  --accent: #84bfd0;
  --accent-strong: #d6f1f7;
  --accent-soft: rgba(132, 191, 208, 0.14);
  --accent-rgb: 132, 191, 208;
  --glow: rgba(105, 165, 184, 0.16);
  --glass-sheen: rgba(255, 255, 255, 0.11);
  --glass-frost: rgba(255, 255, 255, 0.05);
  --surface-1: rgba(27, 36, 47, 0.88);
  --surface-2: rgba(19, 27, 35, 0.74);
  --surface-3: rgba(12, 17, 23, 0.62);
  --surface-4: rgba(10, 14, 19, 0.46);
  --shadow: 0 26px 60px rgba(2, 7, 14, 0.26);
  --shadow-soft: 0 16px 32px rgba(4, 11, 21, 0.18);
  --shadow-elevated: 0 28px 56px rgba(4, 11, 21, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

body[data-template="holiday"] {
  --accent: #d6a5b8;
  --accent-strong: #fde7ef;
  --accent-soft: rgba(214, 165, 184, 0.14);
  --accent-rgb: 214, 165, 184;
  --glow: rgba(157, 101, 124, 0.18);
}

body[data-template="weekly"] {
  --accent: #84bfd0;
  --accent-strong: #d6f1f7;
  --accent-soft: rgba(132, 191, 208, 0.14);
  --accent-rgb: 132, 191, 208;
  --glow: rgba(86, 146, 167, 0.18);
}

body[data-template="pk"] {
  --accent: #f09ba0;
  --accent-strong: #ffe4e3;
  --accent-soft: rgba(240, 155, 160, 0.14);
  --accent-rgb: 240, 155, 160;
  --glow: rgba(164, 87, 98, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(var(--accent-rgb), 0.16), transparent 24%),
    radial-gradient(circle at 72% 82%, rgba(119, 144, 177, 0.14), transparent 26%),
    linear-gradient(180deg, #121921 0%, var(--bg) 46%, #0b1015 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.2;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 22px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 22px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 76%);
}

body::after {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.06), transparent 18%),
    radial-gradient(circle at 88% 16%, rgba(var(--accent-rgb), 0.08), transparent 18%);
  z-index: 0;
}

.ambient-orb,
.ambient-grid-line {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb {
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  filter: blur(90px);
}

.ambient-orb-left {
  top: 8vh;
  left: -8vw;
  opacity: 0.22;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2), transparent 66%);
}

.ambient-orb-right {
  right: -10vw;
  bottom: 8vh;
  opacity: 0.16;
  background: radial-gradient(circle, rgba(188, 207, 233, 0.2), transparent 70%);
}

.ambient-grid-line {
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.ambient-grid-line-left {
  left: 72px;
}

.ambient-grid-line-right {
  right: 72px;
}

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

button {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.48;
  box-shadow: none;
}

button:disabled:hover {
  transform: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.3);
  outline-offset: 2px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 21, 28, 0.68);
  color: var(--text);
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(16px);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--line-strong);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
  background: rgba(18, 25, 33, 0.9);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.72;
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 24px 0 100px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 24px;
  align-self: start;
}

.content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.brand-card,
.history-card,
.hero-card,
.panel,
.result-overview,
.result-meta,
.result-card,
.cover-card,
.snapshot-main-card,
.snapshot-mini-card,
.decision-card,
.summary-card,
.focus-card,
.quick-card,
.modal-info-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(125%);
}

.brand-card,
.history-card,
.hero-card,
.panel,
.modal-card {
  position: relative;
  overflow: hidden;
}

.brand-card::before,
.history-card::before,
.hero-card::before,
.panel::before,
.modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--glass-sheen), transparent 34%);
}

.brand-card,
.history-card,
.hero-card,
.panel {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 {
  font-size: 34px;
  line-height: 1.06;
}

h2 {
  font-size: 24px;
  line-height: 1.16;
}

h3 {
  font-size: 16px;
  line-height: 1.3;
}

p {
  margin: 0;
}

.brand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.brand-badge,
.detail-tag,
.hero-tags span,
.overview-pills span,
.empty-state-pills span,
.result-nav-chip,
.template-chip,
.result-filter-chip,
.modal-tab {
  border-radius: 999px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-badge.subtle {
  color: var(--muted);
}

.brand-copy,
.hero-copy,
.panel-intro,
.overview-copy,
.quick-copy,
.modal-info-card p,
.empty-state,
.draft-status,
.form-helper,
.advanced-copy {
  color: var(--muted);
  line-height: 1.72;
}

.brand-card {
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.16), transparent 24%),
    radial-gradient(circle at left top, rgba(255, 255, 255, 0.07), transparent 20%),
    linear-gradient(160deg, rgba(32, 41, 52, 0.94) 0%, rgba(22, 29, 39, 0.9) 58%, rgba(16, 22, 30, 0.94) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 56px rgba(3, 10, 18, 0.28);
}

.brand-signature,
.hero-frame-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-signature {
  margin-bottom: 18px;
  color: rgba(223, 243, 248, 0.74);
}

.hero-frame-label {
  color: rgba(223, 243, 248, 0.8);
}

.brand-signature-line,
.hero-frame-line {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.82), transparent);
}

.brand-note-strip {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-note-strip span {
  color: rgba(234, 240, 247, 0.78);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.brand-card .eyebrow,
.brand-card .brand-badge.subtle,
.brand-card .brand-copy {
  color: rgba(231, 237, 244, 0.74);
}

.brand-card h1 {
  color: #f6f8fb;
}

.brand-card .brand-badge {
  color: #eff8fb;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.11);
}

.brand-actions,
.action-row,
.draft-actions,
.history-actions,
.result-view-actions,
.modal-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-row {
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(31, 41, 52, 0.74), rgba(18, 24, 31, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.brand-actions {
  margin-top: 18px;
}

.ghost-button,
.primary-button,
.copy-button,
.template-chip,
.preset-button,
.result-filter-chip,
.result-nav-chip,
.modal-tab,
.floating-primary-button,
.floating-secondary-button,
.card-toggle-button {
  border: 1px solid transparent;
}

.ghost-button {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-card .ghost-button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.12);
  color: #f3f6fa;
}

.ghost-button.compact {
  padding: 8px 12px;
  font-size: 12px;
}

.ghost-button.icon-only {
  padding-inline: 12px;
}

.text-button {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
}

.action-row .text-button {
  padding: 8px 10px;
  border-radius: 999px;
  color: #e7edf5;
  background: transparent;
}

.text-button:hover {
  color: var(--accent-strong);
}

.action-row .text-button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.text-button.danger {
  color: #8d433a;
}

.primary-button {
  width: 100%;
  padding: 15px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), rgba(255, 255, 255, 0.08));
  border-color: rgba(var(--accent-rgb), 0.24);
  color: #f6fdff;
  font-weight: 700;
  box-shadow:
    0 16px 30px rgba(8, 18, 28, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.copy-button {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.copy-button.subtle {
  padding: 6px 9px;
  font-size: 12px;
}

.history-card {
  min-height: 260px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.12), transparent 26%),
    linear-gradient(180deg, rgba(27, 36, 47, 0.92), rgba(15, 21, 28, 0.86));
}

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

.history-summary {
  margin: 8px 0 0;
  color: rgba(237, 242, 248, 0.64);
  font-size: 12px;
  line-height: 1.6;
}

.history-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(30, 39, 50, 0.84), rgba(17, 23, 30, 0.76));
  box-shadow: var(--shadow-soft);
}

.history-item.is-latest {
  border-color: rgba(var(--accent-rgb), 0.18);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.1), transparent 34%),
    linear-gradient(180deg, rgba(33, 42, 54, 0.9), rgba(17, 23, 30, 0.8));
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.history-title {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.35;
}

.history-meta {
  display: grid;
  gap: 4px;
}

.history-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.history-item-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.history-item-copy {
  min-width: 0;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.history-load-button,
.history-delete-button {
  min-width: 68px;
  justify-content: center;
}

.history-delete-button {
  color: #f2d8d4;
  border-color: rgba(167, 96, 96, 0.18);
  background: rgba(104, 47, 47, 0.12);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 300px;
  gap: 20px;
  min-height: 300px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.14), transparent 28%),
    radial-gradient(circle at left bottom, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(135deg, rgba(31, 40, 52, 0.96), rgba(19, 26, 34, 0.88));
}

.hero-main {
  display: grid;
  gap: 16px;
  align-content: space-between;
}

.hero-main h2 {
  max-width: 11ch;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.03em;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-aside {
  display: grid;
  gap: 12px;
}

.hero-stat,
.planner-note {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(14, 19, 25, 0.46));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-stat::before,
.planner-note::before,
.delivery-step-card::before,
.signal-card::before,
.execution-memo-side::before,
.modal-info-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.52), transparent 78%);
  pointer-events: none;
}

.hero-stat {
  padding: 16px 18px;
  min-height: 86px;
}

.hero-stat strong {
  display: block;
  font-family: "Segoe UI Variable Display", "Avenir Next", sans-serif;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.planner-note {
  padding: 16px 18px;
  color: var(--accent-strong);
  line-height: 1.68;
}

.hero-footer-mark {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-footer-mark strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-footer-mark span {
  max-width: 44ch;
  color: rgba(237, 242, 248, 0.72);
  line-height: 1.68;
}

.template-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(32, 41, 51, 0.78), rgba(17, 23, 30, 0.68));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.template-chip,
.preset-button,
.result-nav-chip,
.result-filter-chip,
.modal-tab {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.template-chip {
  padding: 11px 15px;
  box-shadow: var(--shadow-soft);
}

.template-chip.is-active,
.result-filter-chip.is-active,
.modal-tab.is-active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(255, 255, 255, 0.1));
  border-color: rgba(var(--accent-rgb), 0.22);
  color: #f6fdff;
  box-shadow: 0 14px 26px rgba(8, 18, 28, 0.18);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
}

.panel {
  min-width: 0;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 28%),
    linear-gradient(180deg, rgba(30, 39, 50, 0.92), rgba(15, 21, 28, 0.84));
}

.form-panel,
.result-panel {
  position: relative;
}

.result-panel[data-busy="true"] {
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(var(--accent-rgb), 0.06);
}

.form-panel::after,
.result-panel::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 78px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.18), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.result-panel[data-busy="true"]::after {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.28), rgba(255, 255, 255, 0.08), rgba(var(--accent-rgb), 0.28));
  animation: panelPulse 1.8s ease-in-out infinite;
}

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

.section-heading.compact {
  align-items: center;
  margin-bottom: 12px;
}

.draft-strip,
.form-brief-card,
.preflight-card,
.minimal-intake-card,
.form-drawer,
.preset-card,
.template-profile-card,
.detail-card,
.template-hint,
.advanced-settings,
.module-details,
.insight-details,
.overview-details,
.result-meta,
.result-view-toolbar {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(31, 40, 51, 0.82), rgba(18, 24, 31, 0.74));
  backdrop-filter: blur(18px);
}

.draft-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.draft-strip[data-draft-state="pending"] {
  border-color: rgba(var(--accent-rgb), 0.22);
  background: linear-gradient(180deg, rgba(34, 44, 56, 0.88), rgba(18, 24, 31, 0.82));
}

.draft-strip[data-draft-state="saved"] {
  border-color: rgba(var(--accent-rgb), 0.18);
}

.draft-strip[data-draft-state="empty"] {
  opacity: 0.94;
}

.form-brief-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form-brief-card::before,
.preflight-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), rgba(var(--accent-rgb), 0));
}

.form-brief-copy {
  display: grid;
  gap: 8px;
}

.form-brief-copy strong {
  font-size: 18px;
  line-height: 1.34;
  color: #f4f8fc;
}

.form-brief-copy p:last-child {
  color: var(--muted);
  line-height: 1.68;
}

.form-brief-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-brief-pills span {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.preflight-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.preflight-copy {
  display: grid;
  gap: 8px;
}

.preflight-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.08);
  color: #f6fdff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.preflight-card[data-readiness="hold"] .preflight-badge {
  border-color: rgba(196, 129, 102, 0.26);
  background: rgba(196, 129, 102, 0.12);
  color: #ffd7ca;
}

.preflight-card[data-readiness="tune"] .preflight-badge {
  border-color: rgba(143, 168, 198, 0.22);
  background: rgba(143, 168, 198, 0.12);
  color: #e0ecfa;
}

.preflight-card[data-readiness="ready"] .preflight-badge {
  border-color: rgba(142, 180, 177, 0.22);
  background: rgba(142, 180, 177, 0.12);
  color: #dbf0ea;
}

.preflight-copy strong {
  font-size: 18px;
  line-height: 1.34;
  color: #f4f8fc;
}

.preflight-copy p:last-child {
  color: var(--muted);
  line-height: 1.68;
}

.preflight-points {
  display: grid;
  gap: 10px;
}

.preflight-points span {
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  line-height: 1.6;
}

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

#planner-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 9px;
  margin-bottom: 0;
}

.field.no-margin {
  margin-bottom: 0;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #d6deea;
}

.template-hint {
  margin-bottom: 14px;
  padding: 16px 16px 16px 18px;
  color: var(--accent-strong);
  line-height: 1.68;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.template-hint::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-strong), transparent);
}

.preset-card,
.template-profile-card,
.request-preset-card,
.detail-card {
  margin-bottom: 14px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.template-profile-card {
  display: grid;
  gap: 14px;
}

.template-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.template-guide-point {
  position: relative;
  overflow: hidden;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(15, 20, 26, 0.4));
  box-shadow: var(--shadow-soft);
}

.template-guide-point::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.46), transparent 80%);
}

.template-guide-point span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.template-guide-point strong {
  display: block;
  margin-top: 10px;
  color: #f5f8fc;
  font-size: 14px;
  line-height: 1.66;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.request-preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-button {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.request-preset-button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #eef3f9;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.request-preset-button.is-active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(255, 255, 255, 0.08));
  border-color: rgba(var(--accent-rgb), 0.2);
  color: #f6fdff;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.minimal-intake-card,
.form-drawer {
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(31, 40, 51, 0.82), rgba(18, 24, 31, 0.74));
  backdrop-filter: blur(18px);
}

.minimal-intake-card {
  padding: 16px 18px;
  display: grid;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.minimal-intake-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.minimal-intake-steps span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.core-field-grid {
  margin-top: 2px;
}

.form-helper.emphasis {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(var(--accent-rgb), 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.form-drawer {
  overflow: hidden;
}

.form-drawer-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  color: var(--accent-strong);
  font-weight: 700;
}

.form-drawer-summary::-webkit-details-marker {
  display: none;
}

.form-drawer-summary::after {
  content: "OPTIONAL";
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(var(--accent-rgb), 0.08);
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.form-drawer-content {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.form-drawer[open] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.advanced-settings,
.module-details,
.insight-details,
.overview-details {
  overflow: hidden;
  margin-bottom: 14px;
}

.advanced-settings {
  background:
    linear-gradient(180deg, rgba(31, 40, 51, 0.82), rgba(15, 21, 28, 0.76));
}

.advanced-settings[open],
.module-details[open],
.insight-details[open],
.overview-details[open] {
  padding: 16px;
}

.advanced-settings summary,
.module-details-toggle,
.insight-details-toggle,
.overview-details-toggle {
  list-style: none;
  cursor: pointer;
  padding: 15px 16px;
  color: var(--accent-strong);
  font-weight: 700;
}

.advanced-settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.advanced-settings summary::after {
  content: "PRO";
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(var(--accent-rgb), 0.08);
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.advanced-settings summary::-webkit-details-marker,
.module-details-toggle::-webkit-details-marker,
.insight-details-toggle::-webkit-details-marker,
.overview-details-toggle::-webkit-details-marker {
  display: none;
}

.advanced-settings[open] summary,
.module-details[open] .module-details-toggle,
.insight-details[open] .insight-details-toggle,
.overview-details[open] .overview-details-toggle {
  padding: 0 0 14px;
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(18, 24, 31, 0.68);
}

.empty-state.large {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
}

.rich-empty-state {
  gap: 18px;
}

.empty-state-copy {
  display: grid;
  gap: 10px;
}

.empty-state-copy strong {
  font-size: 19px;
  line-height: 1.42;
}

.form-panel .panel-intro,
.result-panel .panel-intro {
  max-width: 60ch;
}

.form-panel .section-heading,
.result-panel .section-heading {
  padding-bottom: 14px;
}

.form-panel .section-heading h2,
.result-panel .section-heading h2 {
  font-size: 30px;
}

.form-panel .primary-button {
  margin-top: 6px;
  min-height: 54px;
  letter-spacing: 0.04em;
}

.submit-hint {
  margin: -2px 2px 0;
  color: rgba(237, 242, 248, 0.58);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #f6f9fc;
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.4;
  vertical-align: middle;
}

.form-panel .text-button,
.result-panel .text-button {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.draft-actions .text-button,
.history-actions .text-button,
.action-row .text-button {
  opacity: 0.88;
}

.empty-state-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.empty-state-pills span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.empty-state-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.empty-state-actions .ghost-button {
  min-width: 154px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.08));
  border-color: rgba(var(--accent-rgb), 0.2);
  color: #f6fdff;
}

.result-sections {
  display: grid;
  gap: 14px;
}

.result-stage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.03) 32%, rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
}

.result-stage-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-stage-kicker,
.result-card-kicker {
  display: inline-flex;
  align-items: center;
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.result-stage-kicker::before,
#host-pack-card .section-heading::before,
#ops-pack-card .section-heading::before,
#management-pack-card .section-heading::before,
#host-sheet-card .section-heading::before,
#delivery-brief-card .section-heading::before,
#master-card .section-heading::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  margin-right: 10px;
  background: linear-gradient(90deg, var(--accent-strong), transparent);
  vertical-align: middle;
}

.result-stage-copy strong {
  font-size: 15px;
  color: #f8fbff;
}

.result-stage-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.delivery-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.delivery-step-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(32, 41, 52, 0.82), rgba(17, 23, 30, 0.74));
  box-shadow: var(--shadow-soft);
}

.delivery-step-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.delivery-step-card strong {
  display: block;
  line-height: 1.66;
  font-size: 15px;
}

.result-overview {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 22px 24px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.14), transparent 26%),
    linear-gradient(135deg, rgba(34, 43, 54, 0.92), rgba(18, 24, 31, 0.82));
}

.result-overview h3 {
  font-size: 34px;
  line-height: 1.02;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(32, 41, 52, 0.82), rgba(17, 23, 30, 0.74));
  box-shadow: var(--shadow-soft);
}

.signal-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.signal-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.66;
}

.execution-memo-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 320px;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.14), transparent 24%),
    linear-gradient(135deg, rgba(34, 43, 54, 0.92), rgba(18, 24, 31, 0.82));
  box-shadow: var(--shadow-soft);
}

.execution-memo-copy {
  display: grid;
  gap: 10px;
}

.execution-memo-copy h3 {
  font-size: 28px;
  line-height: 1.12;
}

.execution-memo-copy p:last-child {
  color: var(--muted);
  line-height: 1.72;
}

.execution-memo-side {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.execution-memo-side span {
  display: block;
  color: var(--accent-strong);
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.execution-memo-side em {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.08);
  color: #f6fdff;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.execution-memo-side strong {
  display: block;
  font-size: 15px;
  line-height: 1.68;
}

.overview-main {
  position: relative;
  padding-left: 18px;
}

.overview-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-strong), transparent 88%);
  opacity: 0.52;
}

.overview-main {
  max-width: 760px;
  display: grid;
  gap: 10px;
}

.overview-pills {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 10px;
  max-width: 360px;
}

.overview-pills span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.cover-strip,
.decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cover-card,
.snapshot-main-card,
.snapshot-mini-card,
.decision-card,
.summary-card,
.focus-card,
.quick-card,
.result-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cover-card,
.snapshot-main-card,
.snapshot-mini-card,
.decision-card,
.summary-card,
.focus-card,
.quick-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(32, 41, 52, 0.82), rgba(17, 23, 30, 0.74));
  box-shadow: var(--shadow-soft);
}

.cover-card span,
.snapshot-kicker,
.snapshot-mini-card span,
.decision-card span,
.summary-card span,
.focus-card span,
.quick-card-heading span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cover-card span,
.snapshot-kicker,
.snapshot-mini-card span,
.decision-card span,
.summary-card span,
.focus-card span {
  margin-bottom: 10px;
}

.cover-card strong,
.snapshot-main-card strong,
.snapshot-mini-card strong,
.decision-card strong,
.summary-card strong,
.focus-card strong {
  display: block;
  line-height: 1.62;
}

.cover-card strong {
  font-size: 16px;
}

.snapshot-mini-card strong,
.decision-card strong,
.summary-card strong,
.focus-card strong {
  font-size: 15px;
}

.snapshot-board {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.snapshot-main-card {
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.16), transparent 28%),
    linear-gradient(135deg, rgba(35, 44, 56, 0.92), rgba(18, 24, 31, 0.82));
}

.snapshot-main-card strong {
  font-size: 20px;
}

.snapshot-brief {
  margin-top: 12px;
}

.overview-details {
  margin-top: 14px;
}

.decision-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.decision-card {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.focus-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.focus-card:nth-child(1) {
  grid-column: span 4;
}

.focus-card:nth-child(2) {
  grid-column: span 3;
}

.focus-card:nth-child(3) {
  grid-column: span 5;
}

.focus-card:nth-child(4) {
  grid-column: span 12;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

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

.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.result-meta-copy,
.result-nav-wrap {
  display: grid;
  gap: 6px;
}

.result-meta-copy {
  min-width: 0;
}

#result-status-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#result-status-text::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

body[data-ui-state="ready"] #result-status-text::before {
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

body[data-ui-state="generating"] #result-status-text::before {
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
  animation: statusPulse 1.35s ease-in-out infinite;
}

#result-status-subtext {
  color: rgba(237, 242, 248, 0.68);
}

.result-meta span,
.result-view-copy span,
.product-footer p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.result-nav-label {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.result-nav-chip {
  padding: 8px 12px;
  font-size: 12px;
}

.result-nav-chip.is-active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.08));
  border-color: rgba(var(--accent-rgb), 0.18);
  color: #f6fdff;
}

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

.result-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(32, 41, 52, 0.84), rgba(17, 23, 30, 0.76));
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#host-pack-card,
#ops-pack-card,
#management-pack-card,
#host-sheet-card,
#delivery-brief-card,
#master-card {
  overflow: hidden;
}

.result-card::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), rgba(var(--accent-rgb), 0.12));
}

.result-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.result-card .section-heading h3 {
  font-size: 20px;
}

#host-pack-card .section-heading,
#ops-pack-card .section-heading,
#management-pack-card .section-heading,
#host-sheet-card .section-heading,
#delivery-brief-card .section-heading,
#master-card .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

#host-pack-card .section-heading > h3,
#ops-pack-card .section-heading > h3,
#management-pack-card .section-heading > h3,
#host-sheet-card .section-heading > h3,
#delivery-brief-card .section-heading > h3,
#master-card .section-heading > h3 {
  grid-column: 1;
}

#host-pack-card .section-heading::before {
  content: "Host Package";
}

#ops-pack-card .section-heading::before {
  content: "Ops Package";
}

#management-pack-card .section-heading::before {
  content: "Manager Brief";
}

#host-sheet-card .section-heading::before {
  content: "Quick Sheet";
}

#delivery-brief-card .section-heading::before {
  content: "Delivery Brief";
}

#master-card .section-heading::before {
  content: "Master File";
}

#host-pack-card .section-heading::before,
#ops-pack-card .section-heading::before,
#management-pack-card .section-heading::before,
#host-sheet-card .section-heading::before,
#delivery-brief-card .section-heading::before,
#master-card .section-heading::before {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

#host-pack-card textarea,
#ops-pack-card textarea,
#management-pack-card textarea,
#host-sheet-card textarea,
#delivery-brief-card textarea,
#master-card textarea {
  background:
    linear-gradient(180deg, rgba(12, 17, 23, 0.92), rgba(9, 13, 19, 0.82));
}

.result-card textarea {
  min-height: 148px;
  padding: 14px 15px;
  background: rgba(14, 19, 25, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  line-height: 1.72;
  font-size: 14px;
}

.bundle-card textarea {
  min-height: 220px;
}

.feature-card,
.bundle-card,
.host-sheet-card {
  background: linear-gradient(180deg, rgba(34, 43, 54, 0.9), rgba(17, 23, 30, 0.8));
}

.result-card.is-collapsed .section-heading {
  margin-bottom: 0;
}

.result-card.is-collapsed textarea {
  display: none;
}

.result-view-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  position: sticky;
  top: 16px;
  z-index: 4;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(5, 12, 22, 0.2);
}

.module-details[open] {
  background:
    linear-gradient(180deg, rgba(30, 39, 49, 0.86), rgba(15, 21, 28, 0.78));
}

.result-view-copy {
  display: grid;
  gap: 6px;
}

.result-view-copy strong {
  font-size: 15px;
}

#result-filter-note {
  max-width: 52ch;
  color: rgba(237, 242, 248, 0.68);
}

.result-view-controls {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.result-filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.result-filter-chip {
  padding: 10px 14px;
  font-size: 12px;
}

.card-toggle-button {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

#result-filter-empty {
  text-align: center;
}

.quick-copy {
  color: var(--text);
  line-height: 1.72;
}

.product-footer {
  padding: 0 4px 8px;
}

.product-footer p {
  text-align: center;
  letter-spacing: 0.04em;
}

.floating-action-bar {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 11, 0.58);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100vw - 24px));
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.14), transparent 28%),
    linear-gradient(180deg, rgba(34, 43, 54, 0.94), rgba(17, 23, 30, 0.86));
  box-shadow: 0 30px 62px rgba(5, 12, 22, 0.28);
}

.modal-heading {
  margin-bottom: 16px;
}

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

.modal-grid.single {
  grid-template-columns: 1fr;
}

.modal-info-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 18px;
}

.modal-info-card strong {
  display: block;
  margin-bottom: 8px;
}

.modal-checklist {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.modal-checklist li + li {
  margin-top: 8px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 28px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(24, 31, 42, 0.94);
  color: #f6f9fc;
  box-shadow: 0 20px 42px rgba(18, 28, 45, 0.24);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  background: rgba(112, 37, 37, 0.94);
}

@keyframes statusPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes panelPulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 1240px) {
  .ambient-grid-line-left,
  .ambient-grid-line-right {
    display: none;
  }

  .result-stage-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-shell,
  .layout-grid,
  .hero-card,
  .execution-memo-card {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero-aside,
  .overview-pills,
  .result-nav,
  .result-filter-list,
  .result-view-controls {
    justify-content: flex-start;
    max-width: none;
  }

  .result-view-controls {
    justify-items: start;
  }

  .snapshot-board,
  .signal-strip,
  .decision-strip,
  .summary-strip,
  .template-guide-grid,
  .delivery-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-strip,
  .bundle-strip,
  .quick-strip,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .focus-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-card:nth-child(1),
  .focus-card:nth-child(2),
  .focus-card:nth-child(3),
  .focus-card:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 780px) {
  body {
    padding-bottom: 122px;
  }

  .app-shell {
    width: calc(100vw - 24px);
    padding: 12px 0 136px;
    gap: 14px;
  }

  .brand-card,
  .history-card,
  .hero-card,
  .panel,
  .modal-card {
    padding: 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .hero-main h2,
  .result-overview h3,
  .execution-memo-copy h3 {
    max-width: none;
    font-size: 32px;
  }

  .section-heading,
  .draft-strip,
  .result-meta,
  .result-view-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-nav {
    justify-content: flex-start;
  }

  .field-grid,
  .snapshot-board,
  .signal-strip,
  .decision-strip,
  .summary-strip,
  .template-guide-grid,
  .focus-board,
  .quick-strip,
  .bundle-strip,
  .delivery-rail {
    grid-template-columns: 1fr;
  }

  .focus-card:nth-child(1),
  .focus-card:nth-child(2),
  .focus-card:nth-child(3),
  .focus-card:nth-child(4) {
    grid-column: auto;
  }

  .result-overview {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-row,
  .brand-actions,
  .result-view-actions {
    width: 100%;
  }

  .action-row .text-button {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .ghost-button,
  .result-view-actions .ghost-button,
  .brand-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .result-filter-chip {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .floating-action-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 26;
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 17, 24, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  }

  .floating-primary-button,
  .floating-secondary-button {
    border-radius: 14px;
    font-weight: 700;
  }

  .floating-primary-button {
    padding: 13px 16px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(255, 255, 255, 0.08));
    border-color: rgba(var(--accent-rgb), 0.22);
    color: #f6fdff;
  }

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

  .floating-secondary-button {
    padding: 11px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-strong);
  }

  .toast {
    right: 12px;
    bottom: 12px;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .history-item-actions {
    justify-content: flex-start;
  }
}

/* Clay Showcase Theme */

:root {
  --bg: #e3d8ca;
  --bg-strong: #d7cabd;
  --panel: rgba(244, 237, 228, 0.92);
  --panel-strong: rgba(248, 243, 236, 0.96);
  --text: #40342a;
  --muted: #68584b;
  --line: rgba(88, 72, 60, 0.1);
  --line-strong: rgba(88, 72, 60, 0.18);
  --accent: #7d91ad;
  --accent-strong: #526274;
  --accent-soft: rgba(143, 158, 184, 0.16);
  --accent-rgb: 125, 145, 173;
  --glow: rgba(125, 145, 173, 0.18);
  --glass-sheen: rgba(255, 255, 255, 0.34);
  --glass-frost: rgba(255, 255, 255, 0.18);
  --surface-1: #f4ede4;
  --surface-2: #ebdfd2;
  --surface-3: #ddd0c1;
  --surface-4: #cec0b2;
  --shadow: 14px 18px 36px rgba(176, 160, 140, 0.32), -8px -8px 18px rgba(255, 255, 255, 0.46);
  --shadow-soft: 10px 12px 24px rgba(178, 163, 144, 0.24), -6px -6px 14px rgba(255, 255, 255, 0.42);
  --shadow-elevated: 18px 20px 40px rgba(170, 154, 135, 0.36), -10px -10px 22px rgba(255, 255, 255, 0.52);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --clay-surface: linear-gradient(145deg, #f5eee5 0%, #e6d9cb 100%);
  --clay-surface-soft: linear-gradient(145deg, #f2ebe2 0%, #e1d4c6 100%);
  --clay-surface-pressed: linear-gradient(145deg, #e5d7c8 0%, #f3ece3 100%);
  --clay-line: rgba(255, 255, 255, 0.82);
}

body[data-template="holiday"] {
  --accent: #d09f95;
  --accent-strong: #8b5c55;
  --accent-soft: rgba(208, 159, 149, 0.18);
  --accent-rgb: 208, 159, 149;
}

body[data-template="weekly"] {
  --accent: #8f9eb8;
  --accent-strong: #5c6881;
  --accent-soft: rgba(143, 158, 184, 0.16);
  --accent-rgb: 143, 158, 184;
}

body[data-template="pk"] {
  --accent: #d98a81;
  --accent-strong: #8b4d46;
  --accent-soft: rgba(217, 138, 129, 0.18);
  --accent-rgb: 217, 138, 129;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.54), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(var(--accent-rgb), 0.12), transparent 18%),
    radial-gradient(circle at 84% 82%, rgba(255, 255, 255, 0.22), transparent 16%),
    linear-gradient(160deg, #ece3d7 0%, #e2d7c9 48%, #d4c7b9 100%);
}

body::before {
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(118, 101, 88, 0.028) 0,
      rgba(118, 101, 88, 0.028) 1px,
      transparent 1px,
      transparent 24px
    );
}

body::after {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.34), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(var(--accent-rgb), 0.08), transparent 18%);
}

.ambient-orb {
  filter: blur(120px);
}

.ambient-orb-left {
  opacity: 0.28;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 66%);
}

.ambient-orb-right {
  opacity: 0.14;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 70%);
}

.ambient-grid-line {
  background: linear-gradient(180deg, transparent, rgba(131, 114, 100, 0.09), transparent);
}

input,
textarea,
select {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.8);
  background: var(--clay-surface-soft);
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, 0.62),
    inset -7px -7px 14px rgba(204, 188, 168, 0.54);
  backdrop-filter: none;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: linear-gradient(145deg, #fbf6ef 0%, #e9ded1 100%);
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, 0.72),
    inset -7px -7px 14px rgba(204, 188, 168, 0.56),
    0 0 0 5px rgba(var(--accent-rgb), 0.12);
}

.app-shell {
  width: min(1480px, calc(100vw - 40px));
  padding: 28px 0 84px;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}

.sidebar {
  gap: 20px;
}

.content {
  gap: 20px;
}

.brand-card,
.history-card,
.hero-card,
.panel,
.modal-card,
.showcase-rail-card,
.showcase-header-card,
.result-overview,
.result-meta,
.execution-memo-card,
.cover-card,
.snapshot-main-card,
.snapshot-mini-card,
.decision-card,
.summary-card,
.focus-card,
.quick-card,
.result-card,
.showcase-template-card,
.delivery-step-card,
.signal-card,
.modal-info-card,
.showcase-page-button {
  background: var(--clay-surface);
  border: 1px solid var(--clay-line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.brand-card,
.history-card,
.hero-card,
.panel,
.modal-card,
.showcase-rail-card,
.showcase-header-card {
  border-radius: var(--radius-xl);
}

.brand-card::before,
.history-card::before,
.hero-card::before,
.panel::before,
.modal-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 34%);
}

.draft-strip,
.form-brief-card,
.preflight-card,
.preset-card,
.template-profile-card,
.detail-card,
.template-hint,
.advanced-settings,
.module-details,
.insight-details,
.overview-details,
.result-meta,
.result-view-toolbar,
.template-strip {
  background: var(--clay-surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.brand-card {
  background:
    radial-gradient(circle at 80% 16%, rgba(var(--accent-rgb), 0.14), transparent 22%),
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.52), transparent 18%),
    linear-gradient(145deg, #faf5ee 0%, #e9dfd3 100%);
}

.brand-card h1,
.hero-main h2,
.form-panel .section-heading h2,
.result-panel .section-heading h2,
.result-overview h3,
.execution-memo-copy h3,
.showcase-header-copy strong {
  color: var(--text);
}

.brand-card h1 {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.08;
}

.eyebrow,
.brand-signature,
.hero-frame-label,
.result-stage-kicker,
.result-card-kicker,
.execution-memo-side span,
.showcase-template-index {
  color: var(--accent-strong);
}

.brand-copy,
.hero-copy,
.panel-intro,
.overview-copy,
.quick-copy,
.modal-info-card p,
.empty-state,
.draft-status,
.form-helper,
.advanced-copy,
.history-summary,
.hero-stat span,
.planner-note,
.signal-card span,
.delivery-step-card span,
.result-stage-note,
#result-status-subtext,
#result-filter-note,
.showcase-header-copy span,
.showcase-rail-copy p,
.showcase-rail-footer p,
.showcase-template-card p,
.showcase-template-card em {
  color: var(--muted);
}

.brand-badge,
.detail-tag,
.hero-tags span,
.overview-pills span,
.empty-state-pills span,
.result-nav-chip,
.template-chip,
.result-filter-chip,
.modal-tab,
.history-badge,
.preflight-badge,
.form-brief-pills span {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.ghost-button,
.copy-button,
.template-chip,
.preset-button,
.result-filter-chip,
.result-nav-chip,
.modal-tab,
.floating-primary-button,
.floating-secondary-button,
.card-toggle-button,
.showcase-page-button {
  color: var(--text);
  background: var(--clay-surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.ghost-button:hover,
.copy-button:hover,
.template-chip:hover,
.preset-button:hover,
.result-filter-chip:hover,
.result-nav-chip:hover,
.modal-tab:hover,
.showcase-page-button:hover,
.showcase-template-card:hover {
  transform: translateY(-2px);
}

.primary-button {
  color: #68463c;
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.18) 0%, rgba(255, 255, 255, 0.72) 46%, rgba(231, 221, 208, 0.96) 100%);
  box-shadow: var(--shadow-elevated);
}

.text-button {
  color: var(--accent-strong);
}

.text-button.danger {
  color: #9b5d55;
}

.action-row {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.showcase-rail-card,
.showcase-header-card {
  position: relative;
  overflow: hidden;
}

.showcase-rail-card {
  padding: 18px;
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at 86% 14%, rgba(var(--accent-rgb), 0.14), transparent 22%),
    linear-gradient(145deg, #f9f4ed 0%, #eadfd2 100%);
}

.showcase-rail-copy {
  display: grid;
  gap: 8px;
}

.showcase-rail-copy strong,
.showcase-header-copy strong {
  display: block;
  letter-spacing: -0.04em;
}

.showcase-rail-copy strong {
  font-size: 22px;
  line-height: 1.12;
}

.showcase-page-list {
  display: grid;
  gap: 12px;
}

.showcase-page-button {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 24px;
}

.showcase-page-button span {
  color: var(--accent-strong);
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.showcase-page-button strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.showcase-page-button em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.52;
}

.showcase-page-button.is-active {
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(255, 255, 255, 0.84) 44%, rgba(233, 223, 210, 1) 100%);
  box-shadow: var(--shadow-elevated);
}

.showcase-rail-footer {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

#showcase-page-index {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  font-family: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.showcase-header-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 84% 18%, rgba(var(--accent-rgb), 0.14), transparent 22%),
    linear-gradient(145deg, #fbf6ef 0%, #ece1d4 100%);
}

.showcase-header-copy {
  display: grid;
  gap: 10px;
}

.showcase-header-copy strong {
  max-width: 18ch;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.04;
}

.showcase-header-copy span {
  max-width: 68ch;
  line-height: 1.72;
}

.showcase-header-actions {
  display: flex;
  gap: 10px;
}

.showcase-stage {
  position: relative;
  min-height: 580px;
  perspective: 1800px;
}

.showcase-page {
  display: none;
  transform-origin: left center;
}

.showcase-page.is-active {
  display: block;
  animation: showcasePageIn 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-page-shell {
  display: grid;
  gap: 18px;
}

.template-showcase-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.showcase-template-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 188px;
  padding: 20px;
  border-radius: 30px;
  text-align: left;
}

.showcase-template-card.is-featured {
  grid-column: span 2;
  min-height: 252px;
}

.showcase-template-card.is-selected {
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(255, 255, 255, 0.84) 44%, rgba(232, 220, 207, 1) 100%);
  box-shadow: var(--shadow-elevated);
}

.showcase-template-index {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.showcase-template-card strong {
  font-size: 18px;
  line-height: 1.18;
  color: var(--text);
}

.showcase-template-card p {
  line-height: 1.68;
}

.showcase-template-card em {
  font-style: normal;
  font-size: 13px;
}

.hero-card {
  min-height: 340px;
  grid-template-columns: minmax(0, 1.42fr) 320px;
  gap: 20px;
  background:
    radial-gradient(circle at 84% 14%, rgba(var(--accent-rgb), 0.14), transparent 24%),
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(145deg, #f7fbfa 0%, #dfe9eb 100%);
}

.hero-main h2 {
  max-width: 12ch;
  font-size: clamp(32px, 3.6vw, 46px);
}

.hero-stat,
.planner-note,
.template-guide-point,
.history-item,
.delivery-step-card,
.signal-card,
.cover-card,
.snapshot-main-card,
.snapshot-mini-card,
.decision-card,
.summary-card,
.focus-card,
.quick-card,
.execution-memo-side {
  background: var(--clay-surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.hero-stat strong,
.signal-card strong,
.delivery-step-card strong,
.cover-card strong,
.snapshot-main-card strong,
.snapshot-mini-card strong,
.decision-card strong,
.summary-card strong,
.focus-card strong,
.execution-memo-side strong,
.form-brief-copy strong,
.preflight-copy strong {
  color: var(--text);
}

.template-strip {
  padding: 12px;
  border-radius: 28px;
}

.minimal-intake-card {
  background:
    radial-gradient(circle at 86% 16%, rgba(var(--accent-rgb), 0.14), transparent 24%),
    linear-gradient(145deg, #faf5ee 0%, #eadfd2 100%);
}

.minimal-intake-steps span,
.form-helper.emphasis {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.form-drawer-summary {
  color: var(--text);
}

.form-drawer-summary::after {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.form-drawer-content {
  padding: 0 16px 16px;
}

.template-chip.is-active,
.result-filter-chip.is-active,
.modal-tab.is-active,
.request-preset-button.is-active,
.result-nav-chip.is-active {
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(255, 255, 255, 0.82) 48%, rgba(231, 221, 210, 1) 100%);
  color: var(--accent-strong);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-elevated);
}

.form-panel,
.result-panel,
.history-page-card {
  padding: 24px 24px 26px;
}

.form-panel::after,
.result-panel::after {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), rgba(255, 255, 255, 0.26), transparent);
}

.template-hint,
.form-brief-card,
.preflight-card,
.draft-strip,
.result-view-toolbar,
.result-meta {
  box-shadow: var(--shadow-soft);
}

.field span {
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-panel .section-heading h2,
.result-panel .section-heading h2 {
  font-size: 24px;
}

.empty-state {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(var(--accent-rgb), 0.18);
}

.result-overview {
  background:
    radial-gradient(circle at 86% 16%, rgba(var(--accent-rgb), 0.16), transparent 24%),
    linear-gradient(145deg, #faf5ee 0%, #eadfd2 100%);
}

.result-overview h3 {
  font-size: clamp(26px, 2.7vw, 34px);
}

.execution-memo-card {
  background:
    radial-gradient(circle at 82% 14%, rgba(var(--accent-rgb), 0.16), transparent 24%),
    linear-gradient(145deg, #faf4ec 0%, #ebdfd1 100%);
}

.execution-memo-side em {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.result-stage-bar {
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.12) 0%, rgba(255, 255, 255, 0.7) 42%, rgba(232, 222, 211, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.result-card {
  background: var(--clay-surface);
}

.result-card::before {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.9), rgba(var(--accent-rgb), 0.14));
}

.result-card textarea {
  color: var(--text);
  background: linear-gradient(145deg, #f9f4ed 0%, #e7dccf 100%);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, 0.66),
    inset -8px -8px 14px rgba(201, 185, 165, 0.54);
}

.result-view-toolbar {
  box-shadow: var(--shadow-elevated);
}

.history-card {
  background:
    radial-gradient(circle at 84% 14%, rgba(var(--accent-rgb), 0.14), transparent 24%),
    linear-gradient(145deg, #faf5ee 0%, #eadfd2 100%);
}

.history-page-card {
  min-height: 640px;
}

.history-item.is-latest {
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.14) 0%, rgba(255, 255, 255, 0.76) 46%, rgba(234, 224, 212, 1) 100%);
}

.modal-backdrop {
  background: rgba(130, 116, 102, 0.18);
}

.modal-card {
  background:
    radial-gradient(circle at 84% 14%, rgba(var(--accent-rgb), 0.14), transparent 24%),
    linear-gradient(145deg, #fcf8f2 0%, #e9dfd2 100%);
  box-shadow: var(--shadow-elevated);
}

.toast {
  background: rgba(246, 240, 232, 0.96);
  color: var(--text);
  box-shadow: var(--shadow-elevated);
}

.toast.is-error {
  background: rgba(250, 225, 220, 0.96);
  color: #875249;
}

.product-footer p {
  color: rgba(109, 92, 78, 0.78);
}

.floating-action-bar {
  background: rgba(247, 241, 233, 0.96);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-elevated);
}

.floating-primary-button {
  color: #68463c;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.18) 0%, rgba(255, 255, 255, 0.76) 48%, rgba(231, 221, 208, 0.98) 100%);
  border-color: rgba(255, 255, 255, 0.84);
}

.floating-secondary-button {
  color: var(--accent-strong);
  background: var(--clay-surface-soft);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

@keyframes showcasePageIn {
  0% {
    opacity: 0;
    transform: rotateY(12deg) translateX(28px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg) translateX(0) scale(1);
  }
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .showcase-header-card,
  .showcase-rail-footer,
  .result-overview,
  .execution-memo-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-template-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-template-card.is-featured {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: calc(100vw - 22px);
    padding: 12px 0 138px;
    gap: 16px;
  }

  .brand-card,
  .history-card,
  .hero-card,
  .panel,
  .modal-card,
  .showcase-rail-card,
  .showcase-header-card {
    padding: 18px;
    border-radius: 26px;
  }

  .showcase-page-button {
    padding: 14px 16px;
  }

  .showcase-header-copy strong {
    max-width: none;
    font-size: 28px;
  }

  .showcase-header-actions,
  .showcase-rail-footer {
    width: 100%;
  }

  .showcase-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-template-board {
    grid-template-columns: 1fr;
  }

  .showcase-template-card.is-featured {
    grid-column: auto;
    min-height: 216px;
  }

  .hero-main h2 {
    max-width: none;
    font-size: 36px;
  }

  .form-panel,
  .result-panel,
  .history-page-card {
    padding: 20px;
  }
}

/* Practical Workbench Pass */

:root {
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow: 0 16px 34px rgba(118, 100, 82, 0.18);
  --shadow-soft: 0 10px 22px rgba(118, 100, 82, 0.14);
  --shadow-elevated: 0 18px 40px rgba(98, 82, 66, 0.2);
}

h1,
h2,
h3,
.hero-main h2,
.hero-stat strong {
  letter-spacing: 0;
}

.app-shell {
  width: min(1320px, calc(100vw - 32px));
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
}

.sidebar,
.content,
.showcase-page-shell {
  gap: 12px;
}

.brand-card,
.showcase-rail-card,
.showcase-header-card,
.panel,
.history-card,
.hero-card {
  padding: 16px;
  border-radius: var(--radius-xl);
}

.brand-signature,
.brand-badges,
.brand-note-strip,
.showcase-rail-footer,
.showcase-page-button em,
.form-panel .panel-intro,
#showcase-page-build .form-brief-card,
#showcase-page-build .minimal-intake-card,
#showcase-page-build .preflight-points {
  display: none;
}

.brand-card h1 {
  font-size: 26px;
  line-height: 1.12;
}

.brand-copy {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.brand-actions {
  margin-top: 14px;
}

.brand-actions .ghost-button {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 10px;
}

.showcase-rail-copy strong {
  font-size: 18px;
}

.showcase-rail-copy p {
  font-size: 13px;
  line-height: 1.5;
}

.showcase-page-list {
  gap: 8px;
}

.showcase-page-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 10px;
  text-align: left;
}

.showcase-page-button span {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.showcase-page-button strong {
  font-size: 14px;
  line-height: 1.25;
}

.showcase-header-card {
  display: flex;
  align-items: center;
  min-height: 0;
}

body[data-showcase-page="build"] .showcase-header-card {
  display: none;
}

.showcase-header-copy strong {
  max-width: none;
  font-size: 24px;
  line-height: 1.15;
}

.showcase-header-copy span {
  font-size: 13px;
  line-height: 1.55;
}

.showcase-stage {
  min-height: 0;
}

.form-panel,
.result-panel,
.history-page-card {
  padding: 18px;
}

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

.form-panel .section-heading h2,
.result-panel .section-heading h2 {
  font-size: 22px;
}

.preflight-card {
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.preflight-copy {
  gap: 6px;
}

.preflight-copy strong {
  font-size: 16px;
  line-height: 1.35;
}

.preflight-copy p {
  font-size: 13px;
  line-height: 1.55;
}

.draft-strip,
.template-hint,
.form-drawer,
.advanced-settings {
  border-radius: var(--radius-lg);
}

.draft-strip {
  padding: 10px 12px;
  margin-bottom: 12px;
}

.template-hint,
.form-helper.emphasis {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
}

.form-drawer-summary,
.advanced-settings summary,
.module-details-toggle,
.insight-details-toggle,
.overview-details-toggle {
  min-height: 42px;
  padding: 12px 14px;
  font-size: 13px;
}

.form-drawer-content {
  padding: 0 12px 12px;
}

.field {
  gap: 6px;
}

.field span {
  font-size: 11px;
  letter-spacing: 0;
}

input,
textarea,
select {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

textarea {
  min-height: 104px;
  line-height: 1.55;
}

.primary-button {
  padding: 13px 16px;
  border-radius: var(--radius-md);
}

.result-card textarea {
  color: #322920;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px rgba(88, 72, 60, 0.08);
}

.template-strip {
  padding: 8px;
  border-radius: var(--radius-lg);
}

.template-chip,
.preset-button,
.request-preset-button,
.result-filter-chip,
.result-nav-chip,
.modal-tab {
  border-radius: var(--radius-md);
  padding: 9px 11px;
  font-size: 13px;
}

.result-overview,
.execution-memo-card,
.delivery-rail,
.signal-strip,
.cover-strip,
.snapshot-board,
.decision-strip,
.summary-strip,
.focus-board,
.quick-strip {
  gap: 12px;
}

.result-overview h3,
.execution-memo-copy h3 {
  font-size: 24px;
  line-height: 1.22;
}

.result-card {
  border-radius: var(--radius-lg);
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .brand-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .brand-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: calc(100vw - 18px);
    padding-top: 10px;
  }

  .brand-card,
  .showcase-rail-card,
  .showcase-header-card,
  .panel,
  .history-card {
    padding: 14px;
    border-radius: 16px;
  }

  .brand-card {
    grid-template-columns: 1fr;
  }

  .showcase-page-button {
    grid-template-columns: 30px minmax(0, 1fr);
  }
}

/* Practical Workbench Polish */

body[data-showcase-page="build"] .preflight-card,
#showcase-page-build .template-reference-drawer,
#showcase-page-build .inspiration-drawer {
  display: none;
}

body[data-showcase-page="build"] .brand-copy {
  display: none;
}

body[data-showcase-page="build"] .brand-card h1 {
  font-size: 24px;
}

#showcase-page-build .section-heading {
  margin-bottom: 10px;
}

#showcase-page-build .section-heading h2 {
  font-size: 21px;
}

#planner-form {
  display: grid;
  gap: 12px;
}

#showcase-page-build .draft-strip[data-state="empty"] {
  display: none;
}

#showcase-page-build .draft-strip[data-state="saved"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 0;
  font-size: 12px;
}

#showcase-page-build .template-hint,
#showcase-page-build .form-helper.emphasis {
  padding: 10px 12px;
  color: #5d5146;
  background: rgba(255, 250, 242, 0.72);
  border-color: rgba(105, 91, 76, 0.16);
}

#showcase-page-build .core-field-grid,
#showcase-page-build .field-grid {
  gap: 12px;
}

#showcase-page-build .field.no-margin {
  margin: 0;
}

#showcase-page-build textarea {
  min-height: 92px;
}

#showcase-page-build .detail-direction-drawer,
#showcase-page-build .advanced-settings {
  background: rgba(255, 250, 242, 0.62);
  border-color: rgba(91, 78, 67, 0.14);
  box-shadow: none;
}

#showcase-page-build .detail-direction-drawer .form-drawer-summary,
#showcase-page-build .advanced-settings summary {
  color: #3d352d;
  background: rgba(255, 255, 255, 0.34);
}

#showcase-page-build .primary-button {
  margin-top: 2px;
}

#showcase-page-build .submit-hint {
  margin-top: -4px;
  font-size: 12px;
}

@media (max-width: 780px) {
  body[data-showcase-page="build"] .brand-actions {
    display: none;
  }

  #showcase-page-build .section-heading {
    align-items: center;
  }
}

/* Practical Delivery Pass */

#showcase-page-deliver .panel-intro,
#showcase-page-deliver .result-stage-bar,
#showcase-page-deliver .delivery-rail,
#showcase-page-deliver .result-overview,
#showcase-page-deliver .signal-strip,
#showcase-page-deliver .execution-memo-card,
#showcase-page-deliver .insight-details {
  display: none;
}

#showcase-page-deliver .result-sections {
  gap: 12px;
}

#showcase-page-deliver .result-panel > .section-heading {
  align-items: center;
  margin-bottom: 10px;
}

#showcase-page-deliver .action-row {
  gap: 6px;
}

#showcase-page-deliver .action-row .text-button {
  padding: 8px 10px;
  font-size: 12px;
}

#showcase-page-deliver .result-meta {
  order: 0;
  align-items: flex-start;
  padding: 12px 14px;
  box-shadow: none;
}

#showcase-page-deliver #delivery-brief-card {
  order: 1;
}

#showcase-page-deliver #bundle-strip {
  order: 2;
}

#showcase-page-deliver #management-pack-card {
  order: 3;
}

#showcase-page-deliver #host-sheet-card {
  order: 4;
}

#showcase-page-deliver .module-details {
  order: 5;
}

#showcase-page-deliver .result-card {
  padding: 14px;
  box-shadow: none;
}

#showcase-page-deliver .result-card .section-heading {
  margin-bottom: 4px;
}

#showcase-page-deliver .result-card textarea {
  min-height: 170px;
  color: #2f271f;
  background: rgba(255, 252, 246, 0.94);
  border-color: rgba(91, 78, 67, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

#showcase-page-deliver #delivery-brief-card textarea {
  min-height: 132px;
}

#showcase-page-deliver .result-card textarea:focus {
  border-color: rgba(127, 104, 82, 0.42);
  box-shadow:
    0 0 0 3px rgba(127, 104, 82, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Premium Clay Studio UI */

:root {
  --bg: #dfe6ea;
  --bg-strong: #f4f7f6;
  --text: #1f2931;
  --muted: #64717b;
  --muted-strong: #46535c;
  --line: rgba(62, 76, 86, 0.13);
  --line-strong: rgba(41, 54, 63, 0.2);
  --accent: #2d7680;
  --accent-strong: #174f58;
  --accent-soft: rgba(45, 118, 128, 0.12);
  --accent-rgb: 45, 118, 128;
  --clay: #eef2ef;
  --clay-raised: #f8faf7;
  --clay-sunken: #d1dce0;
  --ink: #172229;
  --paper: #fbfcf8;
  --shadow: 18px 22px 44px rgba(70, 86, 94, 0.2), -12px -14px 34px rgba(255, 255, 255, 0.82);
  --shadow-soft: 10px 14px 28px rgba(70, 86, 94, 0.14), -8px -10px 24px rgba(255, 255, 255, 0.78);
  --shadow-elevated: 26px 34px 70px rgba(54, 70, 82, 0.24), -18px -20px 46px rgba(255, 255, 255, 0.86);
  --inner-clay: inset 5px 6px 14px rgba(79, 96, 106, 0.14), inset -5px -6px 14px rgba(255, 255, 255, 0.86);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

body[data-template="holiday"],
body[data-template="weekly"],
body[data-template="pk"] {
  --accent: #2d7680;
  --accent-strong: #174f58;
  --accent-soft: rgba(45, 118, 128, 0.12);
  --accent-rgb: 45, 118, 128;
  --glow: rgba(45, 118, 128, 0.14);
}

body {
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.95), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(45, 118, 128, 0.22), transparent 28%),
    radial-gradient(circle at 72% 84%, rgba(95, 111, 121, 0.18), transparent 30%),
    linear-gradient(135deg, #edf2f1 0%, #d9e2e5 48%, #cbd6dc 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  opacity: 0.36;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.24), transparent 36%, rgba(23, 34, 41, 0.035) 68%, transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(28, 47, 55, 0.055) 0 1px, transparent 1px 28px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 82%);
}

body::after {
  opacity: 0.82;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.7), transparent 16%),
    radial-gradient(circle at 78% 22%, rgba(45, 118, 128, 0.13), transparent 24%),
    radial-gradient(circle at 36% 88%, rgba(255, 255, 255, 0.34), transparent 24%);
}

.ambient-orb {
  filter: blur(70px);
}

.ambient-orb-left {
  opacity: 0.45;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.86), rgba(45, 118, 128, 0.18) 42%, transparent 68%);
}

.ambient-orb-right {
  opacity: 0.35;
  background: radial-gradient(circle, rgba(45, 118, 128, 0.24), rgba(255, 255, 255, 0.22) 46%, transparent 72%);
}

.ambient-grid-line {
  background: linear-gradient(180deg, transparent, rgba(27, 45, 53, 0.12), transparent);
}

.app-shell {
  width: min(1360px, calc(100vw - 36px));
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
}

.sidebar {
  gap: 14px;
}

.brand-card,
.showcase-rail-card,
.showcase-header-card,
.panel,
.history-card,
.hero-card,
.modal-card {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(221, 231, 233, 0.8)),
    var(--clay);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.brand-card::before,
.showcase-rail-card::before,
.showcase-header-card::before,
.panel::before,
.history-card::before,
.hero-card::before,
.modal-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), transparent 28%, rgba(45, 118, 128, 0.06) 68%, transparent),
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.9), transparent 18%);
  opacity: 0.8;
}

.brand-card > *,
.showcase-rail-card > *,
.showcase-header-card > *,
.panel > *,
.history-card > *,
.hero-card > *,
.modal-card > * {
  position: relative;
  z-index: 1;
}

.brand-signature,
.brand-badges,
.brand-note-strip {
  display: flex;
}

body[data-showcase-page="build"] .brand-copy {
  display: block;
}

.brand-card {
  padding: 18px;
  min-height: 214px;
}

.brand-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 122px;
  height: 122px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(145deg, rgba(56, 133, 142, 0.38), rgba(255, 255, 255, 0.28));
  box-shadow:
    16px 20px 34px rgba(48, 78, 88, 0.2),
    inset 10px 12px 18px rgba(255, 255, 255, 0.34),
    inset -12px -14px 22px rgba(25, 70, 80, 0.16);
  transform: rotate(-10deg);
}

.brand-signature {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted-strong);
}

.brand-signature-line {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.brand-signature-copy,
.eyebrow,
.result-stage-kicker,
.snapshot-kicker {
  color: var(--muted-strong);
  letter-spacing: 0.16em;
}

.brand-card h1 {
  max-width: 9em;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.08;
  font-weight: 860;
}

body[data-showcase-page="build"] .brand-card h1 {
  font-size: 27px;
}

.brand-copy,
.showcase-rail-copy p,
.showcase-header-copy span,
.panel-intro,
.form-helper,
.template-hint,
.submit-hint,
.empty-state p,
.modal-info-card p {
  color: var(--muted);
}

.brand-copy {
  max-width: 18em;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.brand-badges,
.brand-note-strip {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.brand-badge,
.brand-note-strip span,
.preflight-badge,
.detail-tag,
.template-chip,
.result-nav-label {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 4px 6px 14px rgba(71, 90, 99, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.brand-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.showcase-rail-card {
  padding: 18px;
}

.showcase-rail-copy strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
}

.showcase-page-list {
  gap: 10px;
}

.showcase-page-button {
  min-height: 50px;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 6px 8px 18px rgba(76, 94, 103, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.showcase-page-button span {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--inner-clay);
}

.showcase-page-button strong {
  color: var(--ink);
  font-weight: 780;
}

.showcase-page-button.is-active {
  color: #f8fffe;
  background:
    linear-gradient(145deg, rgba(45, 118, 128, 0.94), rgba(22, 78, 88, 0.92));
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow:
    12px 16px 28px rgba(18, 80, 92, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.showcase-page-button.is-active span {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.9);
}

.showcase-page-button.is-active strong {
  color: #ffffff;
}

.showcase-stage {
  min-height: 0;
}

.showcase-page-shell {
  gap: 14px;
}

.panel {
  padding: 22px;
}

.section-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-heading h2 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.form-panel .section-heading h2,
.result-panel .section-heading h2 {
  font-size: 25px;
}

#planner-form {
  gap: 14px;
}

.draft-strip,
.template-hint,
.form-helper.emphasis,
.form-drawer,
.advanced-settings,
.result-meta,
.result-view-toolbar,
.empty-state,
.history-empty,
.import-card,
.preflight-card {
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 6px 8px 18px rgba(72, 90, 101, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

#showcase-page-build .template-hint,
#showcase-page-build .form-helper.emphasis {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--inner-clay);
}

.field {
  gap: 7px;
}

.field span {
  color: #34434c;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

input,
textarea,
select {
  color: var(--ink);
  background: rgba(251, 252, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 5px 6px 13px rgba(71, 89, 99, 0.12),
    inset -5px -6px 13px rgba(255, 255, 255, 0.88),
    0 1px 0 rgba(255, 255, 255, 0.65);
}

input::placeholder,
textarea::placeholder {
  color: rgba(59, 74, 84, 0.56);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(45, 118, 128, 0.22);
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus,
select:focus {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(45, 118, 128, 0.5);
  box-shadow:
    0 0 0 4px rgba(45, 118, 128, 0.12),
    inset 3px 4px 10px rgba(71, 89, 99, 0.08),
    inset -4px -5px 12px rgba(255, 255, 255, 0.9);
}

select {
  color: var(--ink);
}

.ghost-button,
.primary-button,
.text-button,
.copy-button,
.result-nav-chip,
.result-filter-chip,
.preset-button,
.request-preset-button,
.modal-tab,
.floating-primary-button,
.floating-secondary-button {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 6px 8px 18px rgba(73, 91, 101, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.ghost-button:hover,
.text-button:hover,
.copy-button:hover,
.result-nav-chip:hover,
.result-filter-chip:hover,
.preset-button:hover,
.request-preset-button:hover,
.modal-tab:hover {
  color: var(--accent-strong);
  border-color: rgba(45, 118, 128, 0.22);
  background: rgba(255, 255, 255, 0.68);
}

.primary-button,
.floating-primary-button {
  color: #ffffff;
  font-weight: 820;
  letter-spacing: 0.02em;
  background:
    linear-gradient(145deg, #327f89, #174f58);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    14px 18px 30px rgba(20, 88, 100, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset -8px -10px 18px rgba(5, 41, 49, 0.22);
}

.primary-button:hover,
.floating-primary-button:hover {
  color: #ffffff;
  background: linear-gradient(145deg, #3b8e98, #174f58);
  box-shadow:
    16px 22px 38px rgba(20, 88, 100, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.text-button.danger {
  color: #8b3b3b;
}

.copy-button {
  color: var(--accent-strong);
  font-weight: 760;
}

#showcase-page-deliver .result-sections {
  gap: 14px;
}

#showcase-page-deliver .result-meta {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(222, 232, 234, 0.72));
}

#result-status-text {
  color: var(--ink);
  font-weight: 780;
}

#result-status-subtext,
.result-meta span,
.result-view-copy span {
  color: var(--muted-strong);
}

#showcase-page-deliver .result-card {
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(219, 229, 231, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

#showcase-page-deliver .result-card::before {
  color: rgba(23, 34, 41, 0.46);
}

#showcase-page-deliver .result-card .section-heading h3,
.result-card .section-heading h3 {
  color: var(--ink);
  font-weight: 830;
  letter-spacing: -0.025em;
}

#showcase-page-deliver .result-card textarea,
.result-card textarea {
  color: #172229;
  background: rgba(252, 253, 249, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 5px 6px 14px rgba(70, 88, 99, 0.1),
    inset -6px -7px 16px rgba(255, 255, 255, 0.9);
}

#showcase-page-deliver .result-card textarea::selection,
.result-card textarea::selection {
  color: #ffffff;
  background: rgba(45, 118, 128, 0.88);
}

#showcase-page-deliver #delivery-brief-card {
  background:
    radial-gradient(circle at 94% 14%, rgba(45, 118, 128, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(221, 231, 233, 0.78));
  box-shadow: var(--shadow);
}

#showcase-page-deliver #bundle-strip {
  gap: 16px;
}

.module-details,
.insight-details,
.overview-details {
  color: var(--text);
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.module-details-toggle,
.insight-details-toggle,
.overview-details-toggle,
.form-drawer-summary,
.advanced-settings summary {
  color: var(--ink);
  font-weight: 760;
  background: rgba(255, 255, 255, 0.5);
}

.toast {
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(31, 72, 79, 0.96), rgba(16, 42, 49, 0.94));
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 16px 22px 42px rgba(29, 54, 64, 0.28);
}

.modal-backdrop {
  background: rgba(30, 44, 52, 0.38);
  backdrop-filter: blur(18px);
}

.modal-info-card,
.template-profile-card,
.preset-card,
.request-preset-card,
.detail-card,
.history-item {
  color: var(--text);
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 5px 7px 16px rgba(74, 91, 101, 0.09);
}

.floating-action-bar {
  background: rgba(231, 238, 239, 0.72);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 -12px 34px rgba(59, 75, 86, 0.13);
  backdrop-filter: blur(18px);
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: 0;
  }

  .brand-card::after {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: calc(100vw - 18px);
    gap: 12px;
    padding-top: 10px;
  }

  .panel,
  .brand-card,
  .showcase-rail-card,
  .showcase-header-card,
  .history-card,
  .modal-card {
    padding: 16px;
    border-radius: 20px;
  }

  .brand-card h1,
  body[data-showcase-page="build"] .brand-card h1 {
    max-width: 12em;
    font-size: 23px;
  }

  .brand-note-strip,
  .brand-actions {
    display: none;
  }

  .form-panel .section-heading h2,
  .result-panel .section-heading h2 {
    font-size: 22px;
  }

  #showcase-page-deliver #bundle-strip {
    grid-template-columns: 1fr;
  }
}

/* System cohesion pass: align workbench with the entry gate dark-glass language */

.app-shell {
  width: min(1400px, calc(100vw - 34px));
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 20px;
}

.sidebar {
  gap: 16px;
}

.brand-card,
.showcase-rail-card,
.showcase-header-card,
.panel,
.history-card,
.hero-card,
.modal-card,
#showcase-page-deliver .result-card,
.modal-info-card,
.template-profile-card,
.preset-card,
.request-preset-card,
.detail-card,
.history-item,
.draft-strip,
.template-hint,
.form-helper.emphasis,
.form-drawer,
.advanced-settings,
.result-meta,
.result-view-toolbar,
.empty-state,
.history-empty,
.import-card,
.preflight-card,
.module-details,
.insight-details,
.overview-details {
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 28%),
    linear-gradient(180deg, rgba(28, 38, 49, 0.92), rgba(13, 19, 26, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(3, 9, 14, 0.2);
  backdrop-filter: blur(20px);
}

.brand-card::before,
.showcase-rail-card::before,
.showcase-header-card::before,
.panel::before,
.history-card::before,
.hero-card::before,
.modal-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.12), transparent 18%);
  opacity: 1;
}

.brand-card {
  padding: 20px;
  min-height: 228px;
}

.brand-card::after {
  right: -44px;
  bottom: -46px;
  width: 132px;
  height: 132px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(56, 133, 142, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow:
    16px 20px 38px rgba(4, 12, 18, 0.2),
    inset 8px 10px 18px rgba(255, 255, 255, 0.08),
    inset -12px -14px 22px rgba(12, 44, 52, 0.28);
}

.brand-card h1,
body[data-showcase-page="build"] .brand-card h1,
.showcase-rail-copy strong,
.showcase-header-copy strong,
.hero-main h2,
.section-heading h2,
.form-panel .section-heading h2,
.result-panel .section-heading h2,
#showcase-page-deliver .result-card .section-heading h3,
.result-card .section-heading h3 {
  color: #f5fafc;
}

.brand-card h1,
body[data-showcase-page="build"] .brand-card h1 {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 820;
}

.brand-copy,
.showcase-rail-copy p,
.showcase-header-copy span,
.panel-intro,
.form-helper,
.template-hint,
.submit-hint,
.empty-state p,
.modal-info-card p,
.hero-copy,
.hero-stat span,
.planner-note,
.showcase-rail-footer p,
#result-status-subtext,
.result-meta span,
.result-view-copy span {
  color: rgba(223, 232, 238, 0.72);
}

.brand-signature-copy,
.eyebrow,
.result-stage-kicker,
.snapshot-kicker,
.field span,
.brand-card .eyebrow,
.brand-card .brand-badge.subtle {
  color: rgba(176, 210, 219, 0.84);
}

.brand-badge,
.brand-note-strip span,
.preflight-badge,
.detail-tag,
.template-chip,
.result-nav-label {
  color: rgba(236, 247, 250, 0.92);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.showcase-page-button {
  color: rgba(224, 235, 239, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.showcase-page-button strong,
.showcase-page-button.is-active strong {
  color: #f7fbfc;
}

.showcase-page-button span {
  color: rgba(190, 224, 230, 0.86);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.showcase-page-button.is-active {
  background: linear-gradient(145deg, rgba(45, 118, 128, 0.94), rgba(18, 74, 84, 0.92));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    12px 18px 34px rgba(8, 42, 50, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.showcase-page-button.is-active::after {
  background: rgba(255, 255, 255, 0.08);
}

input,
textarea,
select,
#showcase-page-deliver .result-card textarea,
.result-card textarea {
  color: #eef6f8;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1px 0 rgba(0, 0, 0, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: rgba(214, 225, 230, 0.38);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(var(--accent-rgb), 0.22);
  background: rgba(255, 255, 255, 0.06);
}

input:focus,
textarea:focus,
select:focus {
  color: #f7fbfc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--accent-rgb), 0.44);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ghost-button,
.text-button,
.copy-button,
.result-nav-chip,
.result-filter-chip,
.preset-button,
.request-preset-button,
.modal-tab,
.floating-secondary-button,
.brand-card .ghost-button,
.brand-actions .ghost-button,
#open-help-modal-btn,
#open-about-modal-btn {
  color: #ebf5f7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-shadow: none;
}

.ghost-button:hover,
.text-button:hover,
.copy-button:hover,
.result-nav-chip:hover,
.result-filter-chip:hover,
.preset-button:hover,
.request-preset-button:hover,
.modal-tab:hover,
.brand-card .ghost-button:hover,
.brand-actions .ghost-button:hover,
#open-help-modal-btn:hover,
#open-about-modal-btn:hover {
  color: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.primary-button,
.floating-primary-button {
  color: #ffffff;
  background: linear-gradient(145deg, #327f89, #174f58);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    14px 18px 30px rgba(20, 88, 100, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset -8px -10px 18px rgba(5, 41, 49, 0.22);
}

.primary-button:hover,
.floating-primary-button:hover {
  color: #ffffff;
  background: linear-gradient(145deg, #3b8e98, #174f58);
}

.hero-card {
  grid-template-columns: minmax(0, 1.28fr) 300px;
  gap: 22px;
}

.hero-main h2 {
  max-width: 17ch;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 760;
  line-height: 1.08;
}

.hero-product-intro article,
.hero-stat,
.showcase-template-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-product-intro span {
  color: rgba(190, 224, 230, 0.84);
}

.hero-product-intro strong,
.hero-stat strong,
.showcase-template-card strong {
  color: #f7fbfc;
}

.floating-action-bar {
  background: rgba(17, 24, 31, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 34px rgba(7, 14, 20, 0.18);
  backdrop-filter: blur(18px);
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: calc(100vw - 18px);
    gap: 12px;
    padding-top: 10px;
  }

  .panel,
  .brand-card,
  .showcase-rail-card,
  .showcase-header-card,
  .history-card,
  .modal-card {
    padding: 16px;
    border-radius: 20px;
  }

  .brand-card h1,
  body[data-showcase-page="build"] .brand-card h1 {
    max-width: 12em;
    font-size: 23px;
  }

  .hero-main h2 {
    font-size: 26px;
  }

  .brand-note-strip,
  .brand-actions {
    display: none;
  }
}

/* Premium contrast corrections */

.brand-card .eyebrow,
.brand-card .brand-badge.subtle,
.brand-card .brand-copy,
.brand-card .brand-signature-copy {
  color: #46535c;
}

.brand-card .ghost-button,
.brand-actions .ghost-button,
#open-help-modal-btn,
#open-about-modal-btn {
  color: #17313a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(223, 232, 234, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    8px 10px 20px rgba(72, 91, 101, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  text-shadow: none;
}

.brand-card .ghost-button:hover,
.brand-actions .ghost-button:hover,
#open-help-modal-btn:hover,
#open-about-modal-btn:hover {
  color: #ffffff;
  background: linear-gradient(145deg, #327f89, #174f58);
  border-color: rgba(255, 255, 255, 0.7);
}

.showcase-page-button.is-active {
  position: relative;
  overflow: hidden;
}

.showcase-page-button.is-active::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -24px;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(18deg);
}

.showcase-page-button.is-active > * {
  position: relative;
  z-index: 1;
}

.brand-note-strip span {
  color: #174f58;
  font-weight: 720;
}

#showcase-page-build .submit-hint,
#showcase-page-build .draft-status {
  color: #51626c;
}

/* Cover product intro polish */

.hero-card {
  grid-template-columns: minmax(0, 1.28fr) 300px;
  gap: 22px;
}

.hero-main {
  align-content: center;
  gap: 18px;
}

.hero-main h2 {
  max-width: 16ch;
  color: #2b353b;
  font-size: clamp(30px, 3.25vw, 44px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 58ch;
  color: #5b6870;
  font-size: 15px;
  line-height: 1.86;
}

.hero-product-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
}

.hero-product-intro article {
  min-height: 82px;
  padding: 13px 14px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(225, 234, 236, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    8px 10px 20px rgba(72, 91, 101, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero-product-intro span {
  display: block;
  margin-bottom: 8px;
  color: #60717b;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-product-intro strong {
  display: block;
  color: #172229;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hero-tags {
  gap: 8px;
}

.hero-tags span {
  color: #174f58;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(255, 255, 255, 0.78);
}

.hero-stat strong {
  color: #24323a;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.hero-stat span,
.planner-note {
  color: #5d6b73;
}

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

  .hero-product-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .hero-main h2 {
    max-width: 14ch;
    font-size: 30px;
    line-height: 1.12;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.75;
  }
}

#showcase-page-deliver .module-details-toggle {
  min-height: 42px;
}

@media (max-width: 980px) {
  #showcase-page-deliver .result-meta {
    display: grid;
  }

  #showcase-page-deliver .result-nav {
    justify-content: flex-start;
  }
}

/* Final delivery unification: keep the result area on the same dark-glass system and
   make the top three outputs behave like a focused reading view. */

#showcase-page-deliver #delivery-brief-card,
#showcase-page-deliver #script-card,
#showcase-page-deliver #game-card,
#showcase-page-deliver #master-card,
#showcase-page-deliver .module-details {
  color: #eef7f9 !important;
  background:
    radial-gradient(circle at 92% 10%, rgba(45, 118, 128, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(20, 29, 37, 0.94), rgba(9, 14, 20, 0.92)) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow:
    0 18px 40px rgba(4, 10, 16, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

#showcase-page-deliver #delivery-brief-card .section-heading,
#showcase-page-deliver #script-card .section-heading,
#showcase-page-deliver #game-card .section-heading,
#showcase-page-deliver #master-card .section-heading {
  margin-bottom: 10px;
}

#showcase-page-deliver #delivery-brief-card .section-heading h3,
#showcase-page-deliver #script-card .section-heading h3,
#showcase-page-deliver #game-card .section-heading h3,
#showcase-page-deliver #master-card .section-heading h3,
#showcase-page-deliver .module-details-toggle {
  color: #f4fafc !important;
}

#showcase-page-deliver #delivery-brief-card .section-heading::before,
#showcase-page-deliver #script-card .section-heading::before,
#showcase-page-deliver #game-card .section-heading::before,
#showcase-page-deliver #master-card .section-heading::before {
  color: rgba(168, 218, 224, 0.88) !important;
  text-shadow: none !important;
}

#showcase-page-deliver #delivery-brief-card textarea,
#showcase-page-deliver #script-card textarea,
#showcase-page-deliver #game-card textarea,
#showcase-page-deliver #master-card textarea {
  color: #eef7f9 !important;
  background:
    linear-gradient(180deg, rgba(7, 11, 16, 0.78), rgba(9, 13, 18, 0.72)) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015) !important;
}

#showcase-page-deliver #delivery-brief-card textarea {
  min-height: 28rem;
}

#showcase-page-deliver #script-card textarea,
#showcase-page-deliver #game-card textarea {
  min-height: 25rem;
}

#showcase-page-deliver .module-details-toggle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at right center, rgba(45, 118, 128, 0.12), transparent 32%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Final cover cohesion pass */

#showcase-page-cover .hero-card {
  grid-template-columns: minmax(0, 1.22fr) 318px;
  min-height: 438px;
  gap: 24px;
  color: #203039;
  background:
    radial-gradient(circle at 82% 16%, rgba(45, 118, 128, 0.12), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(145deg, rgba(248, 252, 250, 0.86), rgba(222, 232, 234, 0.84));
}

#showcase-page-cover .hero-main {
  align-content: center;
  gap: 17px;
}

#showcase-page-cover .hero-main h2 {
  max-width: 17ch;
  margin: 0;
  color: #223039;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 620;
  line-height: 1.14;
  letter-spacing: -0.038em;
}

#showcase-page-cover .hero-copy {
  max-width: 62ch;
  color: #576872;
  font-size: 15px;
  line-height: 1.9;
}

#showcase-page-cover .hero-product-intro {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#showcase-page-cover .hero-product-intro article,
#showcase-page-cover .hero-stat,
#showcase-page-cover .planner-note,
#showcase-page-cover .showcase-template-card,
#showcase-page-cover .template-strip {
  color: #203039;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(226, 235, 237, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    9px 12px 24px rgba(74, 93, 103, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

#showcase-page-cover .hero-product-intro span,
#showcase-page-cover .hero-stat span,
#showcase-page-cover .planner-note,
#showcase-page-cover .showcase-template-card p,
#showcase-page-cover .showcase-template-card em {
  color: #60717b;
}

#showcase-page-cover .hero-product-intro strong,
#showcase-page-cover .hero-stat strong,
#showcase-page-cover .showcase-template-card strong {
  color: #19262d;
  font-weight: 660;
}

#showcase-page-cover .hero-stat strong {
  font-size: 18px;
  line-height: 1.35;
}

#showcase-page-cover .planner-note {
  color: #435762;
  font-size: 14px;
  line-height: 1.78;
}

#showcase-page-cover .hero-tags span,
#showcase-page-cover .template-chip,
#showcase-page-cover .showcase-template-index {
  color: #174f58;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    5px 7px 16px rgba(72, 91, 101, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#showcase-page-cover .showcase-template-card.is-featured,
#showcase-page-cover .showcase-template-card.is-selected {
  background:
    radial-gradient(circle at 88% 18%, rgba(45, 118, 128, 0.14), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(218, 231, 233, 0.82));
  border-color: rgba(45, 118, 128, 0.2);
}

#showcase-page-cover .template-strip {
  padding: 9px;
}

#showcase-page-cover .template-chip.is-active {
  color: #ffffff;
  background: linear-gradient(145deg, #327f89, #174f58);
  border-color: rgba(255, 255, 255, 0.68);
}

/* Compact delivery mode: keep the main result page focused on the three outputs users need most. */
.legacy-role-output,
#showcase-page-deliver .result-overview,
#showcase-page-deliver .signal-strip,
#showcase-page-deliver .execution-memo-card,
#showcase-page-deliver .insight-details {
  display: none !important;
}

body[data-showcase-page="cover"] .showcase-header-copy strong {
  color: #223039;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

body[data-showcase-page="cover"] .showcase-header-copy span {
  color: #5f7079;
}

@media (max-width: 980px) {
  #showcase-page-cover .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #showcase-page-cover .hero-product-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  #showcase-page-cover .hero-main h2 {
    max-width: 15ch;
    font-size: 29px;
    line-height: 1.16;
  }

  .showcase-page.is-active .form-panel,
  .showcase-page.is-active .result-panel,
  .showcase-page.is-active .history-page-card,
  .showcase-page.is-active .hero-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }

  .showcase-page.is-active .form-panel > article,
  .showcase-page.is-active .form-panel > .field,
  .showcase-page.is-active .form-panel > .form-drawer,
  .showcase-page.is-active .result-sections > *,
  .showcase-page.is-active .history-list > * {
    content-visibility: auto;
    contain-intrinsic-size: 1px 320px;
  }
}

body[data-entry-gate="open"] {
  overflow: hidden;
}

body[data-entry-gate="open"] .app-shell {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body[data-entry-gate="closed"] .app-shell {
  visibility: visible;
  transition: opacity 180ms ease;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.entry-gate.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.entry-gate-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(100, 167, 173, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(210, 180, 136, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 14, 20, 0.96), rgba(8, 14, 20, 0.98));
}

.entry-gate-shell {
  position: relative;
  width: min(1100px, 100%);
}

.entry-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.72fr);
  gap: 18px;
  padding: 24px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(15, 25, 33, 0.94), rgba(11, 18, 24, 0.84)),
    radial-gradient(circle at top right, rgba(100, 167, 173, 0.14), transparent 28%);
  box-shadow: 0 18px 48px rgba(3, 9, 14, 0.26);
  overflow: hidden;
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%);
  pointer-events: none;
}

.entry-copy,
.entry-panel {
  position: relative;
  z-index: 1;
}

.entry-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 12px 8px 12px 2px;
}

.entry-kicker,
.entry-panel-kicker {
  margin: 0;
  color: rgba(146, 218, 220, 0.88);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.entry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-badges span,
.entry-mini-metrics span {
  color: rgba(225, 234, 236, 0.72);
}

.entry-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.entry-copy h1 {
  margin: 0;
  max-width: 12ch;
  color: #f7fbfc;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.048em;
}

.entry-lead {
  margin: 0;
  max-width: 48ch;
  color: rgba(231, 239, 240, 0.78);
  font-size: 13px;
  line-height: 1.86;
}

.entry-platform-board {
  display: grid;
  gap: 14px;
  padding: 14px 15px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.entry-platform-intro strong,
.entry-usage-note span {
  display: block;
  color: #f7fbfc;
}

.entry-platform-intro p,
.entry-usage-note p {
  margin: 8px 0 0;
  color: rgba(231, 239, 240, 0.74);
  font-size: 12px;
  line-height: 1.72;
}

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

.entry-platform-chip {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.entry-platform-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #eff6f7;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.entry-platform-chip strong {
  display: block;
  color: #f7fbfc;
  font-size: 13px;
}

.entry-platform-chip p {
  margin: 4px 0 0;
  color: rgba(226, 235, 237, 0.68);
  font-size: 10px;
  line-height: 1.5;
}

.entry-platform-chip.is-douyin .entry-platform-mark {
  background: linear-gradient(145deg, rgba(40, 215, 255, 0.48), rgba(16, 40, 67, 0.62));
}

.entry-platform-chip.is-kuaishou .entry-platform-mark {
  background: linear-gradient(145deg, rgba(255, 138, 61, 0.58), rgba(111, 40, 14, 0.62));
}

.entry-platform-chip.is-rednote .entry-platform-mark {
  background: linear-gradient(145deg, rgba(255, 102, 102, 0.54), rgba(109, 26, 26, 0.66));
}

.entry-platform-chip.is-tt .entry-platform-mark {
  background: linear-gradient(145deg, rgba(146, 218, 220, 0.54), rgba(30, 69, 83, 0.66));
}

.entry-platform-chip.is-soul .entry-platform-mark {
  background: linear-gradient(145deg, rgba(170, 149, 255, 0.52), rgba(58, 44, 104, 0.68));
}

.entry-platform-chip.is-hello .entry-platform-mark {
  background: linear-gradient(145deg, rgba(255, 206, 101, 0.5), rgba(106, 74, 22, 0.68));
}

.entry-usage-note {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.entry-promise-grid article,
.entry-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.entry-promise-grid article {
  padding: 14px;
  border-radius: 22px;
}

.entry-promise-grid strong,
.entry-panel-header strong {
  display: block;
  color: #f8fcfd;
}

.entry-promise-grid p {
  margin: 8px 0 0;
  color: rgba(231, 239, 240, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.entry-panel {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 24px 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top center, rgba(100, 167, 173, 0.14), transparent 36%),
    rgba(12, 18, 24, 0.9);
  min-height: 100%;
}

.entry-panel-header span,
.entry-access-note {
  color: rgba(228, 236, 238, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.entry-panel-header strong {
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.entry-panel-body {
  display: grid;
  gap: 14px;
}

.entry-panel-note {
  display: grid;
  gap: 8px;
  padding: 16px 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.entry-panel-note span,
.entry-panel-footnote {
  color: rgba(228, 236, 238, 0.7);
  font-size: 12px;
  line-height: 1.7;
}

.entry-panel-note p {
  margin: 0;
  color: #f5fbfc;
  font-size: 14px;
  line-height: 1.72;
}

.entry-panel-points {
  display: grid;
  gap: 10px;
}

.entry-panel-points span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #f4fafb;
  font-size: 13px;
  font-weight: 600;
}

.entry-panel-points span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(146, 218, 220, 0.9);
  box-shadow: 0 0 0 5px rgba(146, 218, 220, 0.08);
}

.entry-actions {
  display: block;
}

.entry-enter-button,
.entry-tour-button {
  width: 100%;
  min-height: 58px;
  padding-inline: 20px;
}

.entry-panel-footnote {
  margin: 0;
}

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

  .entry-copy h1 {
    max-width: 12ch;
  }

  .entry-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-panel {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .entry-gate {
    padding: 14px;
    align-items: start;
    overflow: auto;
  }

  .entry-card {
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
  }

  .entry-card::before {
    border-radius: 23px;
  }

  .entry-copy {
    gap: 14px;
    padding: 4px 0 0;
  }

  .entry-copy h1 {
    max-width: 12ch;
    font-size: 24px;
    line-height: 1.1;
  }

  .entry-lead {
    font-size: 12px;
    line-height: 1.75;
  }

  .entry-platform-board {
    padding: 14px;
    border-radius: 20px;
  }

  .entry-platform-grid {
    grid-template-columns: 1fr;
  }

  .entry-platform-chip {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .entry-platform-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
  }

  .entry-promise-grid {
    grid-template-columns: 1fr;
  }

  .entry-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .entry-panel-header strong {
    font-size: 24px;
  }

.entry-enter-button,
  .entry-tour-button {
    width: 100%;
  }
}

/* Final system unification pass: keep entry and workspace inside one dark-glass product language. */

:root {
  --system-glass:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 28%),
    linear-gradient(180deg, rgba(28, 38, 49, 0.92), rgba(13, 19, 26, 0.86));
  --system-copy: rgba(223, 232, 238, 0.74);
  --system-muted: rgba(176, 210, 219, 0.84);
  --system-border: rgba(255, 255, 255, 0.1);
  --system-border-strong: rgba(255, 255, 255, 0.16);
  --system-shadow: 0 18px 44px rgba(3, 9, 14, 0.22);
}

.app-shell {
  width: min(1380px, calc(100vw - 34px));
  gap: 22px;
}

.entry-card {
  grid-template-columns: minmax(0, 1.28fr) minmax(292px, 0.72fr);
  gap: 20px;
  padding: 26px;
  border-radius: 34px;
}

.entry-copy {
  gap: 16px;
}

.entry-copy h1 {
  max-width: 13ch;
  font-size: clamp(28px, 3vw, 37px);
  line-height: 1.08;
}

.entry-lead {
  max-width: 54ch;
  font-size: 13px;
  line-height: 1.82;
}

.entry-platform-board,
.entry-panel,
.entry-promise-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.08), transparent 34%);
  border: 1px solid var(--system-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.entry-panel {
  padding: 22px;
  gap: 18px;
}

.entry-panel-header strong {
  font-size: clamp(26px, 2.4vw, 33px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.entry-panel-header span,
.entry-panel-note p,
.entry-panel-footnote,
.entry-platform-intro p,
.entry-usage-note p,
.entry-platform-chip p {
  color: var(--system-copy);
}

.showcase-stage {
  min-height: 620px;
}

.showcase-page-shell {
  gap: 20px;
}

.showcase-header-card,
.showcase-rail-card {
  background: var(--system-glass);
  border-color: var(--system-border);
  box-shadow: var(--system-shadow);
}

.showcase-header-copy strong {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.showcase-header-copy span,
.showcase-rail-copy p,
.showcase-rail-footer p {
  color: var(--system-copy);
}

#showcase-page-cover .hero-card {
  min-height: 430px;
  grid-template-columns: minmax(0, 1.18fr) 314px;
  gap: 24px;
  color: #f5fafc;
  background:
    radial-gradient(circle at 82% 14%, rgba(45, 118, 128, 0.16), transparent 26%),
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(27, 38, 48, 0.94), rgba(11, 17, 23, 0.9));
  border: 1px solid var(--system-border-strong);
  box-shadow: 0 22px 52px rgba(3, 9, 14, 0.26);
}

#showcase-page-cover .hero-main {
  align-content: center;
  gap: 16px;
}

#showcase-page-cover .hero-main h2 {
  max-width: 15ch;
  color: #f5fafc;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

#showcase-page-cover .hero-copy {
  max-width: 56ch;
  color: var(--system-copy);
  font-size: 14px;
  line-height: 1.82;
}

#showcase-page-cover .hero-product-intro article,
#showcase-page-cover .hero-stat,
#showcase-page-cover .planner-note,
#showcase-page-cover .showcase-template-card,
#showcase-page-cover .template-strip {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.07), transparent 32%);
  border: 1px solid var(--system-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#showcase-page-cover .hero-product-intro article {
  min-height: 78px;
}

#showcase-page-cover .hero-product-intro span,
#showcase-page-cover .hero-stat span,
#showcase-page-cover .planner-note,
#showcase-page-cover .showcase-template-card p,
#showcase-page-cover .showcase-template-card em {
  color: var(--system-copy);
}

#showcase-page-cover .hero-product-intro strong,
#showcase-page-cover .hero-stat strong,
#showcase-page-cover .showcase-template-card strong {
  color: #f5fafc;
}

#showcase-page-cover .hero-stat strong {
  font-size: 17px;
  line-height: 1.35;
}

#showcase-page-cover .planner-note {
  font-size: 14px;
  line-height: 1.76;
}

#showcase-page-cover .showcase-template-card {
  min-height: 180px;
  padding: 18px;
  gap: 10px;
}

#showcase-page-cover .showcase-template-card.is-featured {
  min-height: 238px;
}

#showcase-page-cover .showcase-template-card.is-featured,
#showcase-page-cover .showcase-template-card.is-selected {
  background:
    radial-gradient(circle at 86% 16%, rgba(45, 118, 128, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(126, 199, 207, 0.22);
}

#showcase-page-cover .showcase-template-index,
#showcase-page-cover .template-chip,
#showcase-page-cover .hero-tags span {
  color: #e8f6f7;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#showcase-page-cover .template-chip.is-active {
  color: #ffffff;
  background: linear-gradient(145deg, #327f89, #174f58);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    12px 18px 28px rgba(14, 68, 77, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#showcase-page-build .form-panel,
#showcase-page-deliver .result-panel {
  padding: 26px 26px 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(45, 118, 128, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(26, 36, 46, 0.94), rgba(11, 17, 23, 0.9));
  border: 1px solid var(--system-border-strong);
  box-shadow: 0 22px 52px rgba(3, 9, 14, 0.24);
}

#showcase-page-build .section-heading h2,
#showcase-page-deliver .section-heading h2 {
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

#showcase-page-build .panel-intro,
#showcase-page-deliver .panel-intro {
  max-width: 58ch;
  color: var(--system-copy);
  font-size: 14px;
  line-height: 1.78;
}

#showcase-page-build .form-brief-card,
#showcase-page-build .preflight-card,
#showcase-page-build .minimal-intake-card,
#showcase-page-build .draft-strip,
#showcase-page-build .template-profile-card,
#showcase-page-build .preset-card,
#showcase-page-build .request-preset-card,
#showcase-page-build .detail-card,
#showcase-page-build .advanced-settings,
#showcase-page-build .template-hint,
#showcase-page-build .form-helper.emphasis {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.07), transparent 32%);
  border: 1px solid var(--system-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#showcase-page-build .form-brief-copy strong,
#showcase-page-build .preflight-copy strong,
#showcase-page-build .minimal-intake-card h3,
#showcase-page-build .detail-card h3,
#showcase-page-build .template-profile-card h3,
#showcase-page-build .preset-card h3,
#showcase-page-build .request-preset-card h3 {
  color: #f5fafc;
}

#showcase-page-build .minimal-intake-steps span,
#showcase-page-build .form-helper.emphasis,
#showcase-page-build .preflight-points span,
#showcase-page-build .form-brief-pills span {
  color: #ecf6f8;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#showcase-page-build .field span,
#showcase-page-deliver .result-card .section-heading span,
#showcase-page-deliver .result-stage-note,
#showcase-page-deliver .empty-state p {
  color: var(--system-muted);
}

#showcase-page-build .form-drawer-summary::after {
  color: #e8f6f7;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

#showcase-page-deliver .empty-state,
#showcase-page-deliver .result-stage-bar,
#showcase-page-deliver .delivery-step-card,
#showcase-page-deliver .signal-card,
#showcase-page-deliver .result-overview,
#showcase-page-deliver .execution-memo-card,
#showcase-page-deliver .result-meta,
#showcase-page-deliver .result-view-toolbar,
#showcase-page-deliver .result-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.07), transparent 32%);
  border: 1px solid var(--system-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#showcase-page-deliver .empty-state strong,
#showcase-page-deliver .result-stage-copy strong,
#showcase-page-deliver .delivery-step-card strong,
#showcase-page-deliver .signal-card strong,
#showcase-page-deliver .result-overview h3,
#showcase-page-deliver .result-card .section-heading h3 {
  color: #f5fafc;
}

#showcase-page-deliver .result-card textarea {
  color: #eef6f8;
  background: rgba(6, 10, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1px 0 rgba(0, 0, 0, 0.08);
}

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

  #showcase-page-cover .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #showcase-page-cover .hero-product-intro,
  .template-showcase-board {
    grid-template-columns: 1fr;
  }

  #showcase-page-cover .showcase-template-card.is-featured {
    grid-column: auto;
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: min(100vw - 20px, 100%);
  }

  .entry-card {
    padding: 20px;
    border-radius: 26px;
  }

  .entry-copy h1 {
    max-width: 12ch;
    font-size: 26px;
  }

  .entry-panel {
    padding: 18px;
  }

  .entry-panel-header strong {
    font-size: 24px;
  }

  #showcase-page-cover .hero-card,
  #showcase-page-build .form-panel,
  #showcase-page-deliver .result-panel {
    padding: 20px;
    border-radius: 24px;
  }

  #showcase-page-cover .hero-main h2 {
    max-width: 14ch;
    font-size: 27px;
    line-height: 1.14;
  }

  #showcase-page-cover .hero-copy,
  #showcase-page-build .panel-intro,
  #showcase-page-deliver .panel-intro {
    font-size: 13px;
    line-height: 1.74;
  }

  #showcase-page-build .section-heading h2,
  #showcase-page-deliver .section-heading h2 {
    font-size: 22px;
  }
}

/* Fit-and-contrast refinement: reduce bright empty background and restore text clarity. */

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.045), transparent 18%),
    radial-gradient(circle at 86% 12%, rgba(var(--accent-rgb), 0.14), transparent 22%),
    radial-gradient(circle at 74% 82%, rgba(74, 102, 131, 0.12), transparent 24%),
    linear-gradient(180deg, #0e141b 0%, #0a1016 48%, #070c11 100%);
}

body::before {
  opacity: 0.14;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 82%);
}

body::after {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.04), transparent 16%),
    radial-gradient(circle at 88% 16%, rgba(var(--accent-rgb), 0.07), transparent 18%);
}

.ambient-orb-left {
  opacity: 0.16;
}

.ambient-orb-right {
  opacity: 0.1;
}

.ambient-grid-line {
  background: linear-gradient(180deg, transparent, rgba(214, 228, 236, 0.05), transparent);
}

.app-shell {
  width: min(1600px, calc(100vw - 26px));
  grid-template-columns: 318px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 72px;
}

.content {
  gap: 18px;
}

.sidebar {
  top: 18px;
}

#showcase-page-build .form-drawer,
#showcase-page-build .advanced-settings {
  border-color: rgba(255, 255, 255, 0.12);
}

#showcase-page-build .form-drawer-summary,
#showcase-page-build .advanced-settings summary {
  color: #f1f8fa;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at right center, rgba(var(--accent-rgb), 0.09), transparent 34%);
}

#showcase-page-build .form-drawer[open] .form-drawer-summary,
#showcase-page-build .advanced-settings[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#showcase-page-build .form-drawer-summary::after,
#showcase-page-build .advanced-settings summary::after {
  color: #ecf7f8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

#showcase-page-build .draft-status,
#showcase-page-build .template-hint,
#showcase-page-build .smart-default-note,
#showcase-page-build .submit-hint,
.product-footer p {
  color: rgba(222, 232, 238, 0.76);
}

.product-footer {
  padding-bottom: 10px;
}

@media (max-width: 1100px) {
  .app-shell {
    width: min(100vw - 22px, 100%);
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }
}

/* Output readability pass: loosen Chinese text metrics and remove the “pressed” look. */

#showcase-page-deliver .result-card .section-heading h3,
.result-card .section-heading h3 {
  line-height: 1.24;
  padding-bottom: 2px;
}

#showcase-page-deliver .result-card textarea,
.result-card textarea {
  padding: 16px 18px 18px;
  line-height: 1.84;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #f1f7f9;
  background: rgba(8, 12, 17, 0.54);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

#showcase-page-deliver .result-card textarea::placeholder,
.result-card textarea::placeholder {
  color: rgba(211, 223, 229, 0.42);
}

#showcase-page-deliver .result-card textarea:focus,
.result-card textarea:focus {
  color: #f8fcfd;
  background: rgba(10, 14, 20, 0.68);
  border-color: rgba(126, 199, 207, 0.34);
  box-shadow:
    0 0 0 4px rgba(45, 118, 128, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Delivery reading mode: give result cards more width and taller first-view blocks. */

body[data-showcase-page="deliver"] .app-shell {
  width: min(1700px, calc(100vw - 22px));
  grid-template-columns: minmax(0, 1fr);
}

body[data-showcase-page="deliver"] .sidebar {
  display: none;
}

body[data-showcase-page="deliver"] .content {
  gap: 20px;
}

#showcase-page-deliver .result-panel {
  padding: 30px 32px 34px;
}

#showcase-page-deliver .result-sections {
  gap: 18px;
}

#showcase-page-deliver .result-card {
  padding: 18px 18px 20px;
  border-radius: 22px;
}

#showcase-page-deliver .result-card .section-heading {
  margin-bottom: 12px;
}

#delivery-brief-card,
#script-card,
#game-card {
  padding: 22px 22px 24px;
}

#delivery-brief-card textarea,
#script-card textarea,
#game-card textarea {
  min-height: 24rem;
}

#master-card textarea {
  min-height: 30rem;
}

.bundle-card textarea,
#host-sheet-card textarea,
#management-pack-card textarea {
  min-height: 19rem;
}

@media (max-width: 1100px) {
  body[data-showcase-page="deliver"] .app-shell {
    width: min(100vw - 18px, 100%);
  }

  body[data-showcase-page="deliver"] .sidebar {
    display: flex;
  }

  #showcase-page-deliver .result-panel {
    padding: 22px;
  }
}

/* Final build drawer correction: fully remove the leftover light skin from the detail and advanced blocks. */

#showcase-page-build .detail-direction-drawer,
#showcase-page-build .advanced-settings,
#showcase-page-build .detail-direction-drawer[open],
#showcase-page-build .advanced-settings[open] {
  background:
    radial-gradient(circle at 92% 10%, rgba(45, 118, 128, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(24, 34, 43, 0.94), rgba(11, 17, 23, 0.9)) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow:
    0 18px 38px rgba(3, 9, 14, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

#showcase-page-build .detail-direction-drawer .form-drawer-summary,
#showcase-page-build .advanced-settings summary {
  color: #f3f8fa !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at right center, rgba(var(--accent-rgb), 0.1), transparent 34%) !important;
  border-bottom: none;
}

#showcase-page-build .detail-direction-drawer[open] .form-drawer-summary,
#showcase-page-build .advanced-settings[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#showcase-page-build .detail-direction-drawer .form-drawer-content,
#showcase-page-build .advanced-settings[open] {
  background: transparent !important;
}

#showcase-page-build .request-preset-card,
#showcase-page-build .detail-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.022)),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.06), transparent 30%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

#showcase-page-build .request-preset-card h3,
#showcase-page-build .detail-card h3,
#showcase-page-build .detail-direction-drawer .detail-tag,
#showcase-page-build .advanced-settings .advanced-copy,
#showcase-page-build .advanced-settings .field span,
#showcase-page-build .detail-direction-drawer .field span {
  color: #eef6f8 !important;
}

#showcase-page-build .detail-direction-drawer .detail-tag,
#showcase-page-build .advanced-settings .detail-tag {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

#showcase-page-build .detail-direction-drawer input,
#showcase-page-build .detail-direction-drawer select,
#showcase-page-build .advanced-settings input,
#showcase-page-build .advanced-settings select {
  color: #eef6f8 !important;
  background: rgba(6, 11, 16, 0.42) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

#showcase-page-build .detail-direction-drawer input::placeholder,
#showcase-page-build .advanced-settings input::placeholder {
  color: rgba(211, 223, 229, 0.42) !important;
}

/* Brand card readability pass: lift the small copy above decorative layers and increase contrast. */

.brand-card::after {
  right: -58px;
  bottom: -64px;
  opacity: 0.72;
  filter: blur(0.2px);
}

.brand-signature,
.brand-badges,
.brand-note-strip,
.brand-actions {
  position: relative;
  z-index: 2;
}

.brand-signature-copy {
  color: rgba(232, 245, 248, 0.82) !important;
  text-shadow: 0 1px 10px rgba(3, 10, 18, 0.22);
}

.brand-card .eyebrow {
  color: rgba(206, 228, 234, 0.72) !important;
  letter-spacing: 0.17em;
}

.brand-card .brand-badge,
.brand-note-strip span {
  color: #eef8fa !important;
}

.brand-card .brand-badge.subtle {
  color: rgba(220, 234, 238, 0.72) !important;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

.brand-note-strip {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.brand-note-strip span {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  border-radius: 12px;
  padding: 5px 8px;
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Final product polish: make the landing and workbench read like one finished system. */

.entry-card {
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.78fr);
  gap: 22px;
  padding: 28px;
  border-radius: 38px;
}

.entry-card::after {
  content: "";
  position: absolute;
  inset: auto auto -140px 55%;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(146, 218, 220, 0.12), transparent 68%);
  pointer-events: none;
}

.entry-copy {
  gap: 20px;
}

.entry-copy h1 {
  max-width: 11.5ch;
  font-size: clamp(30px, 3.25vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.entry-lead {
  max-width: 55ch;
  font-size: 14px;
  line-height: 1.92;
  color: rgba(233, 241, 243, 0.82);
}

.entry-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.entry-mini-metrics span {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024)),
    radial-gradient(circle at top right, rgba(100, 167, 173, 0.08), transparent 36%);
  color: rgba(225, 235, 238, 0.74);
  font-size: 12px;
  line-height: 1.6;
}

.entry-mini-metrics strong {
  color: #f7fbfc;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.entry-platform-board {
  padding: 18px 18px 16px;
  border-radius: 26px;
}

.entry-platform-intro strong,
.entry-usage-note span,
.entry-panel-note span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(167, 221, 225, 0.92);
}

.entry-platform-intro p,
.entry-usage-note p,
.entry-panel-header span,
.entry-panel-note p,
.entry-panel-footnote {
  font-size: 13px;
  line-height: 1.8;
}

.entry-promise-grid {
  gap: 16px;
}

.entry-promise-grid article {
  padding: 16px 16px 18px;
  border-radius: 24px;
}

.entry-promise-grid strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.entry-panel {
  gap: 22px;
  padding: 28px 24px;
  border-radius: 32px;
}

.entry-panel-header strong {
  max-width: 9ch;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.entry-panel-checklist {
  display: grid;
  gap: 10px;
}

.entry-panel-checklist article {
  display: grid;
  gap: 6px;
  padding: 14px 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.032);
}

.entry-panel-checklist strong {
  color: #f7fbfc;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.entry-panel-checklist p {
  margin: 0;
  color: rgba(223, 234, 237, 0.72);
  font-size: 12px;
  line-height: 1.72;
}

.brand-card h1,
body[data-showcase-page="build"] .brand-card h1 {
  max-width: 11ch;
  font-size: clamp(28px, 2.3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.brand-card .brand-copy,
.showcase-header-copy span,
#showcase-page-cover .hero-copy,
#showcase-page-build .panel-intro,
#showcase-page-deliver .panel-intro {
  color: rgba(225, 236, 239, 0.78);
  font-size: 14px;
  line-height: 1.84;
}

.showcase-header-card {
  padding: 20px 22px;
  border-radius: 24px;
}

.showcase-header-copy {
  gap: 10px;
}

.showcase-header-copy strong {
  max-width: 18ch;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

#showcase-page-cover .hero-card {
  min-height: 470px;
  gap: 28px;
  border-radius: 30px;
}

#showcase-page-cover .hero-main {
  gap: 18px;
}

#showcase-page-cover .hero-main h2 {
  max-width: 14ch;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.04;
}

#showcase-page-cover .hero-stat,
#showcase-page-cover .planner-note {
  padding: 18px;
  border-radius: 20px;
}

#showcase-page-build .form-panel,
#showcase-page-deliver .result-panel {
  padding: 30px 30px 32px;
  border-radius: 30px;
}

#showcase-page-build .section-heading h2,
#showcase-page-deliver .section-heading h2 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

#showcase-page-build .form-brief-card,
#showcase-page-build .preflight-card,
#showcase-page-build .minimal-intake-card,
#showcase-page-build .template-profile-card,
#showcase-page-build .preset-card,
#showcase-page-build .request-preset-card,
#showcase-page-build .detail-card {
  border-radius: 24px;
}

#showcase-page-build .form-brief-copy strong,
#showcase-page-build .preflight-copy strong {
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

#showcase-page-deliver .result-stage-bar,
#showcase-page-deliver .result-overview,
#showcase-page-deliver .execution-memo-card,
#showcase-page-deliver .delivery-step-card,
#showcase-page-deliver .signal-card {
  border-radius: 24px;
}

#showcase-page-deliver .result-stage-copy strong,
#showcase-page-deliver .result-overview h3,
#showcase-page-deliver .execution-memo-card h3 {
  letter-spacing: -0.03em;
}

#showcase-page-deliver .delivery-step-card {
  min-height: 112px;
  padding: 18px;
}

#showcase-page-deliver .delivery-step-card strong {
  font-size: 15px;
  line-height: 1.66;
}

#showcase-page-deliver .execution-memo-card {
  grid-template-columns: minmax(0, 1.2fr) 240px;
}

@media (max-width: 980px) {
  .entry-mini-metrics {
    grid-template-columns: 1fr;
  }

  .entry-panel-checklist {
    grid-template-columns: 1fr;
  }

  .entry-copy h1 {
    max-width: 12ch;
    font-size: 30px;
    line-height: 1.08;
  }

  .showcase-header-copy strong,
  #showcase-page-cover .hero-main h2 {
    max-width: none;
  }

  #showcase-page-deliver .execution-memo-card {
    grid-template-columns: 1fr;
  }
}

/* Native select menu alignment: keep dropdown surfaces dark in Chromium/desktop
   so the recording page does not flash a white system menu against the dark UI. */

select {
  color-scheme: dark;
}

#showcase-page-build select,
#showcase-page-build optgroup,
#showcase-page-build option {
  color: #eef6f8 !important;
  background: #17212a !important;
}

#showcase-page-build option:checked,
#showcase-page-build option[selected] {
  color: #ffffff !important;
  background: linear-gradient(180deg, #2f8be0, #2578ca) !important;
}

#showcase-page-build select:focus {
  color-scheme: dark;
}
