:root {
  --paper: #eef3f7;
  --paper-strong: #f8fbfd;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-dark: rgba(20, 29, 42, 0.88);
  --ink: #0f1723;
  --muted: #5f6f82;
  --muted-strong: #7f90a5;
  --teal: #0f8d8b;
  --teal-soft: rgba(15, 141, 139, 0.12);
  --teal-glow: rgba(15, 141, 139, 0.22);
  --amber: #b46812;
  --red: #b42318;
  --red-soft: rgba(180, 35, 24, 0.08);
  --line: rgba(15, 23, 35, 0.08);
  --line-strong: rgba(15, 23, 35, 0.14);
  --line-dark: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 42px rgba(15, 23, 35, 0.08);
  --shadow-strong: 0 28px 68px rgba(15, 23, 35, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 141, 139, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(21, 35, 54, 0.14), transparent 32%),
    linear-gradient(180deg, #e8edf3 0%, #f8fafc 46%, #eef3f7 100%);
  font-family: "SF Pro Display", "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
}

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

h1, h2, h3 {
  font-family: "SF Pro Display", "Avenir Next", "PingFang SC", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.75;
}

a {
  color: inherit;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.workspace-shell,
.report-shell,
.debug-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.workspace-topbar,
.builder-card,
.rail-card,
.control-panel,
.report-cover,
.report-section,
.report-topbar,
.warning-box,
.debug-block {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 22px;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 252, 0.74)),
    rgba(255, 255, 255, 0.78);
}

.workspace-topbar--product {
  position: relative;
  overflow: hidden;
}

.workspace-topbar--product::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 141, 139, 0.06), transparent 34%, transparent 66%, rgba(18, 34, 54, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.brand-lockup h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.brand-lockup--product {
  max-width: 760px;
}

.workspace-subtitle {
  margin-top: 8px;
  color: var(--muted);
}

.workspace-subtitle span {
  display: inline-block;
  white-space: nowrap;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.capability-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 141, 139, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.8rem;
}

.workspace-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  min-width: 450px;
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.auth-actions--compact {
  margin-top: 16px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.85rem;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  border-color: rgba(15, 141, 139, 0.26);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.workspace-status--product {
  position: relative;
  z-index: 1;
}

.status-chip,
.metric-card,
.cover-meta div {
  padding: 16px 17px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 35, 0.06);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.status-chip span,
.metric-card span,
.cover-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.status-chip strong,
.metric-card strong,
.cover-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 410px;
  gap: 20px;
  align-items: start;
}

.builder-shell,
.workspace-rail {
  display: grid;
  gap: 18px;
}

.builder-card,
.rail-card,
.control-panel,
.report-section,
.debug-block {
  padding: 24px;
}

.builder-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.8)),
    rgba(255, 255, 255, 0.76);
}

.builder-card--hero {
  display: grid;
  gap: 20px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.login-card {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 250, 0.82)),
    rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.login-card__copy {
  padding: 10px 8px 10px 4px;
}

.login-card__copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.login-card__copy p:last-child {
  margin-top: 16px;
  color: var(--muted);
  max-width: 32rem;
}

.login-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 35, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
}

.login-form input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 35, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.login-form input:focus {
  outline: none;
  border-color: rgba(15, 141, 139, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 141, 139, 0.08);
}

.primary-button--block {
  width: 100%;
}

.hero-copy h2 {
  max-width: 880px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.hero-copy p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

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

.hero-stat {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 35, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 245, 249, 0.9)),
    rgba(255, 255, 255, 0.72);
}

.hero-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.composer-shell {
  display: grid;
  gap: 14px;
}

.composer-shell--workspace {
  gap: 16px;
}

.composer-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.composer-shell__header h2 {
  font-size: 1.22rem;
}

.composer-helper {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.92rem;
}

.composer-label {
  font-weight: 600;
}

.composer-shell textarea,
.composer-shell select {
  width: 100%;
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.92);
  padding: 15px 16px;
  font: inherit;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.composer-shell textarea {
  min-height: 176px;
  resize: vertical;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-chip {
  appearance: none;
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sample-chip:hover {
  border-color: rgba(15, 141, 139, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 35, 0.08);
  transform: translateY(-1px);
}

.quick-prompts--command .sample-chip::before {
  content: "⌘";
  margin-right: 6px;
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.composer-actions,
.composer-selects,
.message-links,
.report-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
}

.composer-selects label {
  display: grid;
  gap: 6px;
  min-width: 120px;
}

.composer-selects span {
  font-size: 0.84rem;
  color: var(--muted);
}

.primary-button {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 15px 22px;
  background:
    linear-gradient(135deg, #0f1826, #182637 56%, #11484c);
  color: #fff;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 34px rgba(17, 72, 76, 0.22);
}

.form-status,
.result-empty,
.plan-item p,
.timeline-item p,
.result-card p {
  color: var(--muted);
}

.session-log {
  min-height: 360px;
}

.session-log--workspace {
  padding-bottom: 20px;
}

.session-log__header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.session-log__tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-thread {
  display: grid;
  gap: 12px;
}

.log-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 35, 0.07);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.log-card strong {
  display: block;
  margin-bottom: 6px;
}

.user-message {
  background: linear-gradient(135deg, #0f1826, #182738);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.04);
}

.user-message p {
  color: inherit;
}

.workspace-rail--enterprise {
  position: sticky;
  top: 24px;
}

.control-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-height: 760px;
  max-height: calc(100vh - 48px);
  background:
    linear-gradient(180deg, rgba(16, 24, 38, 0.94), rgba(19, 31, 47, 0.9)),
    rgba(16, 24, 38, 0.92);
  border-color: var(--line-dark);
  box-shadow: var(--shadow-strong);
}

.control-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.control-panel__header h2,
.control-panel__header .eyebrow,
.control-panel__state {
  color: #f6f9fc;
}

.control-panel__header .eyebrow {
  opacity: 0.64;
}

.control-panel__state {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.accordion-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.accordion-section {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  min-height: 72px;
  transition: border-color 0.18s ease, background 0.18s ease, flex 0.18s ease;
}

.accordion-section.is-open {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(15, 141, 139, 0.28);
}

.accordion-toggle {
  appearance: none;
  width: 100%;
  border: none;
  background: transparent;
  color: #f5f9fc;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

.accordion-kicker {
  color: rgba(237, 243, 248, 0.64);
  font-size: 0.78rem;
}

.accordion-meta strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.accordion-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.62);
  border-bottom: 2px solid rgba(255, 255, 255, 0.62);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.accordion-section.is-open .accordion-chevron {
  transform: rotate(225deg);
}

.accordion-body {
  display: none;
  min-height: 0;
}

.accordion-section.is-open .accordion-body {
  display: block;
  flex: 1;
}

.accordion-scroll-body {
  height: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 0 18px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

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

.accordion-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
}

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

.plan-item strong,
.timeline-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.plan-item,
.timeline-item {
  padding: 14px 14px 14px 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.timeline-item.is-active .timeline-dot {
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(15, 141, 139, 0.16);
}

.accordion-scroll-body .plan-item strong,
.accordion-scroll-body .timeline-item strong {
  color: #f5f9fc;
}

.accordion-scroll-body .plan-item p,
.accordion-scroll-body .timeline-item p,
.accordion-scroll-body .result-empty {
  color: rgba(233, 241, 247, 0.66);
}

.timeline-item.is-done .timeline-dot {
  background: var(--teal);
}

.timeline-item.is-error .timeline-dot {
  background: var(--red);
}

.progress-console {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.progress-console--empty {
  min-height: 180px;
  place-items: center;
}

.progress-console__empty strong,
.progress-console__empty p {
  color: #f5f9fc;
}

.progress-console__empty p {
  margin-top: 8px;
  color: rgba(233, 241, 247, 0.68);
}

.progress-console__hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.progress-ring {
  --progress: 0%;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(14, 22, 34, 0.98) 0 54%, transparent 55%),
    conic-gradient(var(--teal) 0 var(--progress), rgba(255, 255, 255, 0.08) var(--progress) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.progress-ring span {
  color: #f5f9fc;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.progress-console__meta {
  display: grid;
  gap: 8px;
}

.progress-console__kicker {
  color: rgba(233, 241, 247, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progress-console__meta h3 {
  color: #f5f9fc;
  font-size: 1.22rem;
}

.progress-console__meta p {
  color: rgba(233, 241, 247, 0.72);
}

.progress-console__inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-console__inline span,
.progress-console__section-head span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(233, 241, 247, 0.76);
  font-size: 0.78rem;
}

.progress-console__section {
  display: grid;
  gap: 12px;
}

.progress-console__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-console__section-head strong {
  color: #f5f9fc;
  font-size: 0.94rem;
}

.progress-checklist,
.progress-events {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.progress-checklist__item,
.progress-events__item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
}

.progress-checklist__dot,
.progress-events__bar {
  display: block;
  width: 10px;
  min-width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.progress-events__bar {
  height: 28px;
  border-radius: var(--radius-pill);
}

.progress-checklist__item strong,
.progress-events__item p {
  color: #f5f9fc;
}

.progress-checklist__item p {
  color: rgba(233, 241, 247, 0.64);
  font-size: 0.84rem;
}

.progress-checklist__item.is-done .progress-checklist__dot,
.progress-events__item .progress-events__bar {
  background: rgba(15, 141, 139, 0.7);
}

.progress-checklist__item.is-active .progress-checklist__dot {
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(15, 141, 139, 0.16);
}

.progress-checklist__item.is-pending .progress-checklist__dot {
  background: rgba(255, 255, 255, 0.12);
}

.progress-events__item.is-empty .progress-events__bar {
  background: rgba(255, 255, 255, 0.08);
}

.progress-log-card__body {
  display: grid;
  gap: 10px;
}

.progress-log-card__row,
.progress-log-card__meta,
.status-hero,
.status-hero__body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.progress-log-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 141, 139, 0.08);
  border: 1px solid rgba(15, 141, 139, 0.14);
  color: var(--ink);
  font-size: 0.8rem;
}

.progress-log-card__percent {
  color: var(--ink);
  font-weight: 600;
}

.progress-log-card__headline,
.status-hero__stage {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.progress-log-card__meta span,
.status-hero__item {
  color: var(--muted);
}

.result-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.result-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.status-hero {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 35, 0.06);
  background: rgba(255, 255, 255, 0.62);
  align-items: flex-start;
}

.status-hero__metric {
  min-width: 88px;
}

.status-hero__metric strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.status-hero__metric span {
  color: var(--muted);
  font-size: 0.78rem;
}

.status-hero__body {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.message-links a,
.report-footer a {
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid rgba(15, 141, 139, 0.14);
  background: rgba(15, 141, 139, 0.08);
}

.warning-inline {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 35, 0.08);
  color: var(--amber);
}

.report-topbar {
  margin-bottom: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 251, 0.82)),
    rgba(255, 255, 255, 0.74);
}

.report-topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.report-backlink {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-actions a {
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.report-cover {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 360px;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 251, 0.82)),
    rgba(255, 255, 255, 0.78);
}

.report-cover__main h1 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  margin-bottom: 14px;
}

.cover-lead {
  margin-top: 4px;
  max-width: 860px;
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 600;
}

.cover-brief {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.cover-brief__section {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 35, 0.06);
  background: rgba(255, 255, 255, 0.68);
}

.cover-brief__label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cover-brief__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.cover-brief__section p {
  color: var(--ink);
}

.cover-art {
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(239, 244, 249, 0.86);
}

.cover-art img,
.component-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-meta {
  display: grid;
  gap: 12px;
}

.report-sidecar {
  display: grid;
  gap: 12px;
}

.sidecar-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 35, 0.06);
  background: rgba(255, 255, 255, 0.72);
}

.sidecar-card__label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.sidecar-card p {
  color: var(--ink);
}

.framework-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.framework-chip {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(245, 248, 251, 0.92);
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.metric-card em {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal);
  font-style: normal;
  font-weight: 600;
}

.metric-card p {
  margin-top: 8px;
  font-size: 0.88rem;
}

.metric-card--critical {
  border-color: rgba(180, 35, 24, 0.14);
  background: rgba(255, 246, 245, 0.88);
}

.metric-card--warning {
  border-color: rgba(180, 104, 18, 0.14);
  background: rgba(255, 250, 243, 0.88);
}

.metric-card--positive {
  border-color: rgba(15, 141, 139, 0.14);
  background: rgba(242, 255, 253, 0.88);
}

.warning-box {
  padding: 18px 22px;
  border-left: 4px solid var(--amber);
  margin-bottom: 24px;
}

.warning-box p + p {
  margin-top: 8px;
}

.report-section {
  margin-top: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 251, 0.82)),
    rgba(255, 255, 255, 0.78);
}

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

.section-body {
  display: grid;
  gap: 16px;
}

.markdown-body {
  color: var(--ink);
}

.markdown-body p + p,
.markdown-body h3 + p,
.markdown-body ul + p,
.markdown-body p + h3 {
  margin-top: 12px;
}

.markdown-body h2,
.markdown-body h3 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.markdown-body code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 35, 0.06);
}

.action-list {
  margin: 0;
  padding-left: 20px;
}

.action-list li + li {
  margin-top: 8px;
}

.markdown-table,
.data-table,
.heatmap-table {
  overflow-x: auto;
}

.markdown-table table,
.data-table table,
.heatmap-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.markdown-table th,
.markdown-table td,
.data-table th,
.data-table td,
.heatmap-table th,
.heatmap-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(15, 23, 35, 0.08);
  text-align: left;
  font-size: 0.92rem;
}

.heatmap-table td {
  background: rgba(15, 141, 139, 0.05);
}

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

.component-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 35, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 252, 0.82)),
    rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.component-card--full,
.component-card--wide {
  grid-column: 1 / -1;
}

.component-card__header {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.component-card__header strong {
  font-size: 1rem;
}

.component-card__header span {
  color: var(--muted);
  font-size: 0.88rem;
}

.component-image {
  max-height: 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.callout-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 35, 0.04);
}

.component-card--critical .callout-card {
  background: var(--red-soft);
  border: 1px solid rgba(185, 28, 28, 0.14);
}

.quadrant-chart {
  display: grid;
  gap: 12px;
}

.quadrant-chart__axes {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.quadrant-plane {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 35, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 141, 139, 0.04), transparent),
    rgba(248, 251, 253, 0.96);
}

.quadrant-line {
  position: absolute;
  background: rgba(15, 23, 35, 0.14);
}

.quadrant-line--vertical {
  top: 12px;
  bottom: 12px;
  width: 1px;
}

.quadrant-line--horizontal {
  left: 12px;
  right: 12px;
  height: 1px;
}

.quadrant-point {
  position: absolute;
  width: var(--size);
  height: var(--size);
  margin-left: calc(var(--size) / -2);
  margin-bottom: calc(var(--size) / -2);
  border-radius: 50%;
  background: rgba(15, 141, 139, 0.12);
  border: 2px solid var(--teal);
  box-shadow: 0 10px 22px rgba(15, 23, 35, 0.14);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.quadrant-point:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 16px 28px rgba(18, 32, 51, 0.18);
}

.quadrant-point--strong {
  background: rgba(15, 141, 139, 0.18);
  border-color: var(--teal);
}

.quadrant-point--risk {
  background: rgba(185, 28, 28, 0.12);
  border-color: var(--red);
}

.quadrant-point--efficient {
  background: rgba(180, 83, 9, 0.15);
  border-color: var(--amber);
}

.quadrant-point--watch {
  background: rgba(15, 23, 35, 0.08);
  border-color: rgba(15, 23, 35, 0.24);
}

.quadrant-label {
  position: absolute;
  top: 50%;
  max-width: 180px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.76rem;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(15, 23, 35, 0.08);
  transform: translateY(-50%);
}

.quadrant-label--right {
  left: calc(100% + 8px);
}

.quadrant-label--left {
  right: calc(100% + 8px);
}

.quadrant-label.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.quadrant-point:hover .quadrant-label,
.quadrant-point:focus-within .quadrant-label {
  opacity: 1;
  visibility: visible;
}

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

.pareto-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.pareto-bar {
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 35, 0.08);
  overflow: hidden;
}

.pareto-bar span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--teal), #2dd4bf);
}

.pareto-item em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
}

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

.project-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.project-card--高 {
  border-color: rgba(185, 28, 28, 0.18);
}

.project-card--中 {
  border-color: rgba(180, 83, 9, 0.16);
}

.project-card header p,
.project-card__meta {
  color: var(--muted);
}

.project-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  font-size: 0.86rem;
}

.project-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.project-card dt {
  font-weight: 700;
  margin-bottom: 4px;
}

.project-card dd {
  margin: 0;
  color: var(--muted);
}

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

.kpi-band__item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 35, 0.08);
}

.kpi-band__item span,
.kpi-band__item p {
  color: var(--muted);
}

.kpi-band__item strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.15rem;
}

.funnel-stack,
.waterfall-list,
.price-ladder {
  display: grid;
  gap: 12px;
}

.funnel-step,
.waterfall-item,
.price-ladder__row,
.roadmap-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 35, 0.08);
}

.funnel-step__meta,
.price-ladder__meta,
.roadmap-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.funnel-bar,
.price-ladder__bar,
.dual-axis-card__meter div {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 35, 0.08);
}

.funnel-bar span,
.price-ladder__bar span,
.dual-axis-card__meter span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--teal), #5eead4);
}

.funnel-step em,
.price-ladder__row em,
.waterfall-item span,
.dual-axis-card__meter em,
.uplift-card em,
.roadmap-card p,
.roadmap-card span {
  color: var(--muted);
  font-style: normal;
}

.waterfall-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

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

.dual-axis-card,
.uplift-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 35, 0.08);
}

.dual-axis-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dual-axis-card__meter + .dual-axis-card__meter {
  margin-top: 10px;
}

.dual-axis-card__meter label {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.dual-axis-card__meter--risk span {
  background: linear-gradient(90deg, #f97316, #fdba74);
}

.uplift-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uplift-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.uplift-card em {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 35, 0.05);
}

.uplift-card em.is-positive {
  color: var(--teal);
  background: rgba(15, 118, 110, 0.1);
}

.uplift-card em.is-watch {
  color: var(--amber);
  background: rgba(180, 83, 9, 0.12);
}

.price-ladder__row em {
  display: inline-block;
  margin-top: 8px;
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-card header strong {
  font-size: 1rem;
}

.roadmap-card p {
  margin: 10px 0 0;
}

.roadmap-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.status-inline-grid {
  display: grid;
  gap: 10px;
}

.status-inline-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 35, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.status-inline-card strong {
  display: block;
  margin-bottom: 8px;
}

.status-inline-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-inline-card li {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 35, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
}

.status-inline-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.status-inline-card dt {
  color: var(--muted);
}

.status-inline-card dd {
  margin: 0;
  text-align: right;
}

.report-footer {
  margin-top: 20px;
}

.debug-block + .debug-block {
  margin-top: 18px;
}

.debug-block pre {
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 35, 0.04);
}

@media (max-width: 1100px) {
  .workspace-grid,
  .report-cover,
  .login-card {
    grid-template-columns: 1fr;
  }

  .workspace-status {
    min-width: 0;
  }

  .workspace-rail--enterprise {
    position: static;
  }

  .control-panel {
    min-height: 620px;
    max-height: none;
  }

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

  .report-topbar,
  .composer-shell__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .component-grid,
  .project-card-grid,
  .dual-axis-grid,
  .uplift-grid,
  .roadmap-grid,
  .kpi-band {
    grid-template-columns: 1fr;
  }

  .workspace-topbar {
    padding: 22px;
  }

  .workspace-topbar,
  .workspace-status {
    grid-template-columns: 1fr;
  }

  .workspace-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions {
    justify-content: space-between;
  }

  .ghost-button,
  .auth-chip {
    width: 100%;
    justify-content: center;
  }

  .workspace-status {
    width: 100%;
  }

  .workspace-subtitle span {
    white-space: normal;
  }

  .status-chip strong,
  .metric-card strong {
    font-size: 1.15rem;
  }

  .status-inline-card dl {
    grid-template-columns: 1fr;
  }

  .status-inline-card dd {
    text-align: left;
  }

  .control-panel {
    min-height: 0;
  }

  .accordion-section.is-open {
    min-height: 280px;
  }

  .progress-console__hero {
    grid-template-columns: 1fr;
  }

  .progress-ring {
    width: 88px;
    height: 88px;
  }
}
