:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --paper: #ffffff;
  --paper-2: #eef3f8;
  --ink: #0a0f18;
  --ink-2: #172033;
  --muted: #647084;
  --line: #d9e1ec;
  --line-dark: #263244;
  --blue: #0057ff;
  --green: #08745c;
  --blue-soft: #e8f0ff;
  --green-soft: #e5f5ef;
  --dark: #08111f;
  --dark-2: #111d2d;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 36px rgba(15, 23, 42, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(10, 15, 24, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10, 15, 24, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--ink);
}

body.cinematic-body {
  background:
    radial-gradient(circle at 70% 8%, rgba(0, 87, 255, 0.13), transparent 34%),
    linear-gradient(180deg, #030507 0%, #080b10 48%, #030507 100%);
  color: #eef3f8;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(217, 225, 236, 0.92);
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(20px);
}

.cinematic-body .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(3, 5, 7, 0.84);
}

.cinematic-body .brand {
  color: #f4f7fb;
}

.cinematic-body .brand-mark {
  background: #f4f7fb;
  color: #05070a;
  box-shadow: inset 0 -10px 0 rgba(0, 87, 255, 0.34);
}

.cinematic-body .nav-links a {
  color: #8d98a8;
}

.cinematic-body .nav-links a.active,
.cinematic-body .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.cinematic-body .account-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(3, 5, 7, 0.88);
}

.cinematic-body .account-status {
  color: #8d98a8;
}

.cinematic-body .account-status strong,
.cinematic-body .account-status b {
  color: #f4f7fb;
}

.cinematic-body .quick-login input {
  color: #eef3f8;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  box-shadow: inset 0 -10px 0 rgba(0, 87, 255, 0.28);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.nav-links a {
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-actions,
.button-row,
.hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 15px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn.blue {
  background: var(--blue);
}

.btn.green {
  background: var(--green);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.account-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.account-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.account-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.account-status strong {
  color: var(--ink);
}

.account-status b {
  color: var(--blue);
}

.quick-login {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-login input {
  width: 150px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  padding: 9px 10px;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 24px 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 24px;
  min-height: calc(100dvh - 112px);
  align-items: stretch;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 24px;
  min-height: calc(100dvh - 112px);
  align-items: stretch;
}

.hero-copy,
.hero-console,
.profile-copy,
.profile-card,
.panel,
.card,
.agent-workbench,
.price-card,
.case-block,
.method-step,
.product-row,
.history-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: clamp(28px, 4vw, 58px);
  display: grid;
  align-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.profile-copy {
  padding: clamp(28px, 4vw, 58px);
  display: grid;
  align-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.profile-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.profile-copy h1 {
  max-width: 980px;
}

.profile-card {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(0, 87, 255, 0.08), transparent 42%),
    #fff;
}

.profile-card-top {
  min-height: 178px;
  border-radius: 7px;
  padding: 22px;
  display: grid;
  align-content: end;
  gap: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 87, 255, 0.96), rgba(8, 116, 92, 0.9)),
    var(--dark);
}

.profile-card-top span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.profile-card-top strong {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
}

.identity-stack {
  display: grid;
  gap: 10px;
}

.identity-stack div,
.profile-quote,
.operator-card,
.architecture-board,
.architecture-services article,
.manifesto-panel,
.method-line div {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.identity-stack div {
  padding: 16px;
}

.identity-stack span,
.operator-card span,
.method-line span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.identity-stack strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.profile-quote {
  padding: 18px;
  background: var(--dark);
}

.profile-quote p {
  color: #dce8f6;
  font-size: 18px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(42px, 6vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  margin-top: 20px;
  max-width: 780px;
  color: #465467;
  font-size: 18px;
}

.hero-actions {
  margin-top: 26px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metric {
  background: #fff;
  padding: 17px 14px;
}

.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.hero-console {
  padding: 18px;
  display: grid;
  gap: 14px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: var(--dark-2);
}

.console-top span,
.hero-console p {
  color: #9fb0c5;
}

.console-top > span {
  color: #d8e7ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}

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

.cockpit-main {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c1626;
}

.cockpit-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line-dark);
}

.cockpit-tabs span {
  padding: 7px 10px;
  border-radius: 6px;
  color: #c6d3e2;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.cockpit-tabs span.active {
  color: #fff;
  background: var(--blue);
}

.cockpit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1px;
  background: var(--line-dark);
}

.cockpit-pane {
  min-height: 310px;
  padding: 16px;
  background: #0c1626;
}

.cockpit-pane.light {
  background: #f7faff;
  color: var(--ink);
}

.fake-field {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 9px;
  color: #9fb0c5;
  font-size: 12px;
}

.cockpit-pane.light .fake-field {
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
}

.output-line {
  height: 10px;
  margin: 11px 0;
  border-radius: 99px;
  background: #dce6f4;
}

.output-line.blue {
  width: 72%;
  background: var(--blue);
}

.output-line.green {
  width: 54%;
  background: var(--green);
}

.cockpit-side {
  display: grid;
  gap: 10px;
}

.score-panel,
.architecture-map,
.mini-agent {
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  padding: 14px;
  background: var(--dark-2);
}

.score-panel strong {
  display: block;
  font-size: 30px;
}

.architecture-map {
  display: grid;
  gap: 8px;
}

.map-node {
  padding: 9px 10px;
  border-radius: 6px;
  color: #d7e4f2;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.map-node:nth-child(2) {
  border-left: 3px solid var(--blue);
}

.map-node:nth-child(4) {
  border-left: 3px solid var(--green);
}

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

.mini-agent {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.mini-agent .screen {
  height: 74px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 87, 255, 0.72), transparent 58%),
    linear-gradient(135deg, #111d2d, #08111f);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel,
.card,
.case-block {
  padding: 28px;
}

.section {
  margin-top: 34px;
}

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

.section-head p {
  max-width: 680px;
}

.operator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr;
  gap: 14px;
}

.operator-card {
  min-height: 260px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.operator-card.dark {
  color: #fff;
  background: var(--dark);
}

.operator-card.dark p {
  color: #b9c7d8;
}

.operator-card.dark span {
  color: #8fb4ff;
}

.operator-card strong {
  display: block;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}

.operator-card.dark strong {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.architecture-showcase {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
}

.architecture-board {
  padding: 18px;
  display: grid;
  gap: 10px;
  background: var(--dark);
}

.board-row {
  padding: 16px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.board-row span {
  display: block;
  margin-bottom: 8px;
  color: #91b5ff;
  font-size: 13px;
  font-weight: 900;
}

.board-row strong {
  color: #fff;
  line-height: 1.5;
}

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

.architecture-services article {
  min-height: 198px;
  padding: 22px;
}

.product-resume .product-row + .product-row {
  margin-top: 14px;
}

.manifesto-panel {
  padding: 30px;
  box-shadow: var(--shadow);
}

.method-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.method-line div {
  min-height: 154px;
  padding: 18px;
}

.method-line strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.agent-strip,
.grid-2,
.grid-3,
.grid-4,
.price-grid,
.cover-results,
.workspace-metrics,
.case-metrics,
.process,
.method-flow {
  display: grid;
  gap: 14px;
}

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

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

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

.card.compact {
  box-shadow: none;
  background: #fff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.tag {
  display: inline-flex;
  border: 1px solid #c8d8ff;
  background: var(--blue-soft);
  color: #0b4fcd;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag.green {
  border-color: #c4e4d8;
  background: var(--green-soft);
  color: var(--green);
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.78fr) auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  margin-bottom: 16px;
}

.price-pill {
  display: inline-flex;
  min-width: 94px;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.agent-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
}

.form-pane,
.result-pane {
  padding: 26px;
}

.form-pane {
  border-right: 1px solid var(--line);
  background: #fbfdff;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #2e3b4e;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 102px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.1);
}

.result-box {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 18px;
  color: #253247;
  line-height: 1.76;
  white-space: pre-wrap;
}

.result-section {
  white-space: normal;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

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

.result-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.result-section p,
.result-section ul {
  margin: 0 0 8px;
}

.result-section ul {
  padding-left: 18px;
}

.mini-result-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  margin: 8px 0;
  background: #f8fafc;
}

.mini-result-card.is-clickable {
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.mini-result-card.is-clickable:hover,
.mini-result-card.is-clickable:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 87, 255, 0.35);
  background: #f2f6ff;
}

.mini-result-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.mini-result-card button {
  margin-top: 8px;
  border: 1px solid rgba(0, 87, 255, 0.22);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  padding: 6px 9px;
  font-size: 12px;
  cursor: pointer;
}

.logic-result dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 14px;
  margin: 0 0 12px;
}

.logic-result dt {
  color: var(--muted);
}

.logic-result dd {
  margin: 0;
  color: var(--ink);
}

.logic-result h4 {
  margin: 12px 0 6px;
  font-size: 13px;
}

.status-result {
  border: 1px solid rgba(0, 87, 255, 0.18);
  border-radius: 7px;
  padding: 12px;
  background: #f4f7ff;
}

.empty-state {
  color: var(--muted);
}

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

.cover-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cover-preview {
  aspect-ratio: 4 / 3;
  padding: 18px;
  display: grid;
  align-content: end;
  color: #fff;
  background: linear-gradient(135deg, #08111f 0%, #102846 58%, #0057ff 100%);
}

.cover-preview.green {
  background: linear-gradient(135deg, #071b16 0%, #08745c 70%, #b5f1db 100%);
}

.cover-preview.light {
  color: var(--ink);
  background: linear-gradient(135deg, #eef3f8 0%, #fff 58%, #d9e7ff 100%);
}

.cover-preview.darkline {
  background: repeating-linear-gradient(135deg, #08111f 0 12px, #111d2d 12px 24px);
}

.cover-preview strong {
  font-size: 24px;
  line-height: 1.08;
}

.cover-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

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

.price-card {
  padding: 24px;
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.price-card.featured {
  border-color: rgba(0, 87, 255, 0.7);
  box-shadow: 0 26px 72px rgba(0, 87, 255, 0.16);
}

.price-card .btn {
  width: 100%;
}

.price {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.58;
}

.list li {
  padding-left: 18px;
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

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

.process-step {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.process-step span,
.method-step span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.case-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 22px;
}

.case-metrics div,
.workspace-metric {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 16px;
}

.case-metrics strong,
.workspace-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
}

.method-flow {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.method-step {
  min-height: 170px;
  padding: 18px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.side {
  border-radius: var(--radius);
  padding: 18px;
  background: var(--dark);
  color: #fff;
  display: grid;
  align-content: start;
  gap: 10px;
}

.side a,
.side button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #dce8f6;
  padding: 11px;
  text-align: left;
  cursor: pointer;
}

.workspace-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.workspace-metric span {
  color: var(--muted);
  font-size: 13px;
}

.page-cinematic {
  max-width: 1480px;
  color: #eef3f8;
}

.page-cinematic .section {
  color: #eef3f8;
}

.page-cinematic .section-head p,
.page-cinematic p {
  color: #a7b0bd;
}

.page-cinematic .section-head h2,
.page-cinematic h2,
.page-cinematic h3 {
  color: #f6f8fb;
}

.page-cinematic .operator-card,
.page-cinematic .architecture-services article,
.page-cinematic .product-row,
.page-cinematic .manifesto-panel,
.page-cinematic .method-line div {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.page-cinematic .operator-card.dark,
.page-cinematic .architecture-board {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.54);
}

.page-cinematic .operator-card strong {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f6f8fb;
}

.page-cinematic .product-row .btn.secondary {
  color: #eef3f8;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.page-cinematic .method-line span,
.page-cinematic .operator-card span {
  color: #8fb4ff;
}

.cinematic-hero {
  position: relative;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 36%, rgba(0, 87, 255, 0.18), transparent 34%),
    linear-gradient(120deg, #05070a 0%, #090d13 48%, #000 100%);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
}

.cinematic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.42;
}

.cinematic-copy {
  z-index: 2;
  min-height: 720px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.98), rgba(5, 7, 10, 0.78), rgba(5, 7, 10, 0.2));
  box-shadow: none;
}

.cinematic-copy::before {
  width: 1px;
  left: 28px;
  top: 46px;
  bottom: 46px;
  height: auto;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.56), transparent);
}

.cinematic-copy .eyebrow {
  color: #9fb9ff;
}

.cinematic-copy h1 {
  color: #f7f8fa;
  font-size: clamp(44px, 6vw, 90px);
  max-width: 980px;
  text-wrap: balance;
}

.cinematic-copy .lead {
  color: #b6bfcb;
  max-width: 760px;
}

.cinematic-copy .btn.secondary {
  color: #eef3f8;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.portrait-stage {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #000;
}

.portrait-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 38%;
  filter: contrast(1.1) saturate(0.9);
}

.portrait-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.92), rgba(5, 7, 10, 0.2) 28%, transparent 46%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 34%, rgba(0, 0, 0, 0.8));
}

.portrait-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 56% 42%, transparent 0 24%, rgba(0, 0, 0, 0.24) 52%, rgba(0, 0, 0, 0.76) 100%);
}

.motion-lines {
  position: absolute;
  z-index: 3;
  left: 4%;
  top: 12%;
  width: 42%;
  height: 70%;
  opacity: 0.35;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent),
    repeating-linear-gradient(180deg, transparent 0 15px, rgba(255, 255, 255, 0.1) 16px, transparent 18px);
  filter: blur(6px);
  transform: skewY(-2deg);
}

.portrait-caption {
  position: absolute;
  z-index: 4;
  left: 36px;
  bottom: 34px;
  max-width: 220px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 300;
}

.portrait-name {
  position: absolute;
  z-index: 4;
  right: 28px;
  top: 28px;
  width: min(300px, calc(100% - 56px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.portrait-name span {
  display: block;
  color: #8fb4ff;
  font-size: 13px;
  font-weight: 900;
}

.portrait-name strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.portrait-name p {
  margin-top: 10px;
  color: #c8d1dc;
}

.cinematic-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
}

.cinematic-proof div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

.cinematic-proof span {
  color: #8fb4ff;
  font-size: 12px;
  font-weight: 900;
}

.cinematic-proof strong {
  display: block;
  margin: 8px 0 6px;
  color: #fff;
}

.cinematic-proof p {
  color: #aeb8c5;
  font-size: 14px;
}

.cinematic-metrics {
  position: relative;
  z-index: 5;
  grid-column: 1 / -1;
  margin: -1px 0 0;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.cinematic-metrics .metric {
  background: rgba(5, 7, 10, 0.86);
}

.cinematic-metrics .metric strong {
  color: #fff;
}

.cinematic-metrics .metric span {
  color: #a7b0bd;
}

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

.history-item {
  padding: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(380px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  padding: 28px 24px 36px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .nav,
  .account-inner,
  .hero,
  .profile-hero,
  .cinematic-hero,
  .cockpit,
  .architecture-showcase,
  .agent-workbench,
  .product-row,
  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-actions {
    justify-content: flex-start;
  }

  .form-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics,
  .agent-strip,
  .grid-4,
  .price-grid,
  .process,
  .method-flow,
  .case-metrics,
  .workspace-metrics,
  .operator-grid,
  .method-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .cinematic-hero {
    gap: 0;
  }

  .cinematic-copy {
    min-height: auto;
    background: linear-gradient(180deg, rgba(5, 7, 10, 0.98), rgba(5, 7, 10, 0.84));
  }

  .portrait-stage {
    min-height: 680px;
  }

  .cinematic-metrics {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 22px 14px 58px;
  }

  .nav {
    padding: 12px 14px;
  }

  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .account-inner {
    padding: 10px 14px;
  }

  .quick-login input {
    width: 100%;
  }

  .hero-copy,
  .profile-copy,
  .profile-card,
  .panel,
  .card,
  .case-block,
  .form-pane,
  .result-pane {
    padding: 22px;
  }

  .metrics,
  .agent-strip,
  .grid-2,
  .grid-3,
  .grid-4,
  .price-grid,
  .process,
  .method-flow,
  .case-metrics,
  .cover-results,
  .form-grid,
  .workspace-metrics,
  .mini-agent-grid,
  .cockpit-grid,
  .operator-grid,
  .architecture-services,
  .cinematic-proof,
  .method-line {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .page-cinematic {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cinematic-copy h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .portrait-stage {
    min-height: 560px;
  }

  .portrait-stage img {
    object-position: 58% 30%;
  }

  .portrait-name {
    right: 16px;
    top: 16px;
    width: min(280px, calc(100% - 32px));
  }

  .portrait-caption {
    left: 20px;
    bottom: 22px;
    font-size: 16px;
  }

  .cinematic-metrics {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

body.minimal-home {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.055), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 360px),
    #050506;
  color: #f3f4f2;
  overflow-x: hidden;
}

.minimal-home .account-bar {
  display: none;
}

.minimal-home .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 6, 0.78);
}

.minimal-home .brand {
  color: #f5f5f0;
  font-weight: 800;
}

.minimal-home .brand-mark {
  color: #050506;
  background: #f5f5f0;
  box-shadow: none;
}

.minimal-home .nav {
  width: min(1680px, calc(100vw - 72px));
  max-width: none;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 0;
  padding-right: 0;
  min-width: 0;
}

.minimal-home .nav-links {
  justify-content: flex-end;
  min-width: 0;
}

.minimal-home .nav-links a {
  color: #8f9494;
  font-size: 13px;
}

.minimal-home .nav-links a.active,
.minimal-home .nav-links a:hover {
  color: #f6f6f1;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.minimal-home .btn {
  border-radius: 7px;
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
}

.minimal-home .btn.blue {
  color: #050506;
  background: #f4f4ee;
}

.minimal-home .btn.secondary,
.minimal-home .cinematic-body .btn.secondary {
  color: #f0f1ee;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.minimal-page {
  width: min(1680px, calc(100vw - 72px));
  max-width: none;
  padding: 46px 0 86px;
  color: #f3f4f2;
  overflow-x: hidden;
}

.minimal-hero {
  display: grid;
  grid-template-columns: minmax(430px, 0.88fr) minmax(520px, 0.82fr);
  gap: clamp(52px, 7vw, 128px);
  align-items: center;
  min-height: 700px;
  padding: 34px 0 62px;
  border-bottom: 0;
}

.minimal-hero-copy {
  max-width: 680px;
  min-width: 0;
}

.minimal-home .eyebrow,
.minimal-section-head span,
.problem-panel > div:first-child span {
  display: block;
  color: #9ea5a4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.minimal-hero h1 {
  max-width: 620px;
  margin: 18px 0 18px;
  color: #f8f8f2;
  font-size: clamp(34px, 3.25vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.minimal-hero h1 span {
  display: block;
}

.mobile-break {
  display: none;
}

.minimal-hero .lead {
  max-width: 570px;
  margin: 0 0 22px;
  color: #bcc2c1;
  font-size: 16px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.minimal-hero .lead span {
  display: block;
}

.hero-points {
  display: grid;
  gap: 9px;
  margin: 0 0 28px;
  max-width: 580px;
  color: #d8ddda;
  font-size: 14px;
  line-height: 1.6;
}

.hero-points span {
  position: relative;
  padding-left: 18px;
}

.hero-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f3f1e7;
}

.minimal-portrait {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 670px;
  aspect-ratio: 4 / 5;
  border: 0;
  background: #090909;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.48);
}

.minimal-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 36%;
  filter: saturate(0.86) contrast(1.07);
}

.minimal-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.03), rgba(5, 5, 6, 0.58)),
    linear-gradient(90deg, rgba(5, 5, 6, 0.12), transparent 50%);
}

.portrait-id {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding-top: 0;
  border-top: 0;
}

.portrait-id span {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.portrait-id strong {
  color: #d6dbd9;
  font-size: 14px;
  font-weight: 700;
}

.minimal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 78px;
  border: 0;
  background: transparent;
}

.minimal-strip div {
  padding: 20px 0;
  background: transparent;
}

.minimal-strip span {
  display: block;
  margin-bottom: 9px;
  color: #8e9696;
  font-size: 13px;
}

.minimal-strip strong {
  color: #f6f6ef;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
}

.minimal-section {
  padding: 62px 0;
  border-top: 0;
}

.minimal-section-head {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 0.72fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 32px;
}

.minimal-section h2,
.problem-panel h2 {
  margin: 0;
  max-width: 720px;
  color: #f7f7f2;
  font-size: clamp(26px, 2.75vw, 36px);
  line-height: 1.22;
  letter-spacing: 0;
}

.lane-grid,
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  background: transparent;
}

.lane-grid article,
.delivery-grid article {
  min-height: 184px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.lane-grid span {
  display: block;
  color: #a7adac;
  font-size: 12px;
  font-weight: 900;
}

.lane-grid h3,
.delivery-grid h3 {
  margin: 30px 0 12px;
  color: #f8f8f2;
  font-size: 19px;
  line-height: 1.25;
}

.lane-grid p,
.delivery-grid p {
  margin: 0;
  color: #adb3b2;
  font-size: 14px;
  line-height: 1.75;
}

.problem-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.85fr);
  gap: 54px;
  align-items: start;
  padding: 34px 0;
}

.problem-panel h2 {
  margin-top: 16px;
}

.problem-list {
  display: grid;
  border-top: 0;
}

.problem-list div {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.problem-list strong {
  color: #f7f7f2;
  font-size: 17px;
}

.problem-list p {
  margin: 0;
  color: #aeb5b4;
  font-size: 14px;
  line-height: 1.78;
}

.proof-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 0.88fr) minmax(0, 0.9fr);
  gap: 14px;
}

.proof-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 420px;
  border-radius: 8px;
  border: 0;
  background: #0a0a0b;
}

.proof-gallery img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(0.93) contrast(1.02);
}

.proof-gallery figure:last-child img {
  object-position: center 36%;
}

.proof-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  padding: 52px 18px 18px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.proof-gallery figcaption span {
  color: #c0c7c5;
  font-size: 12px;
  font-weight: 800;
}

.proof-gallery figcaption strong {
  color: #fff;
  font-size: 17px;
}

.delivery-grid article {
  min-height: 178px;
}

.delivery-grid h3 {
  margin-top: 0;
}

.minimal-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: 34px 0 0;
  border-top: 0;
}

.minimal-cta p {
  max-width: 720px;
  margin: 0;
  color: #f4f4ee;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.42;
  font-weight: 800;
}

.minimal-home .footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: #050506;
  color: #8f9695;
}

@media (max-width: 1100px) {
  .minimal-home .nav {
    grid-template-columns: 1fr;
  }

  .minimal-home .nav-links,
  .minimal-home .nav-actions {
    justify-content: flex-start;
  }

  .minimal-hero,
  .problem-panel,
  .minimal-cta {
    grid-template-columns: 1fr;
  }

  .minimal-portrait {
    min-height: 620px;
  }

  .lane-grid,
  .delivery-grid,
  .minimal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .proof-gallery figure:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .minimal-page {
    padding: 30px 14px 64px;
  }

  .minimal-home .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .minimal-hero {
    min-height: auto;
    gap: 30px;
    padding: 26px 0 42px;
  }

  .minimal-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.8vw, 38px);
    line-height: 1.12;
  }

  .mobile-break {
    display: block;
  }

  .minimal-hero .lead {
    font-size: 15px;
    line-height: 1.85;
    word-break: break-all;
  }

  .minimal-portrait {
    min-height: 520px;
  }

  .minimal-strip,
  .lane-grid,
  .delivery-grid,
  .proof-gallery,
  .minimal-section-head,
  .problem-list div {
    grid-template-columns: 1fr;
  }

  .minimal-section {
    padding: 54px 0;
  }

  .lane-grid article,
  .delivery-grid article {
    min-height: auto;
  }

  .lane-grid h3 {
    margin-top: 24px;
  }

  .proof-gallery figure,
  .proof-gallery img {
    min-height: 430px;
  }

  .minimal-cta .hero-actions {
    align-items: stretch;
  }

  .minimal-cta .btn {
    width: 100%;
  }
}

/* Layout-only refinement: preserve all copy and interactions, tighten the existing design. */
body.minimal-home {
  background:
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.045), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 320px),
    #050506;
}

.minimal-home .nav,
.minimal-page {
  width: min(1520px, calc(100vw - clamp(32px, 5vw, 88px)));
}

.minimal-page {
  padding-top: clamp(24px, 3.4vw, 42px);
  padding-bottom: 76px;
}

.minimal-hero {
  grid-template-columns: minmax(500px, 1.02fr) minmax(470px, 0.88fr);
  gap: clamp(34px, 4.8vw, 76px);
  min-height: min(660px, calc(100dvh - 92px));
  padding: clamp(22px, 3.2vw, 46px) 0 42px;
  align-items: center;
}

.minimal-hero-copy {
  max-width: 760px;
}

.minimal-hero h1 {
  max-width: 780px;
  font-size: clamp(40px, 3.2vw, 52px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.minimal-hero .lead {
  max-width: 660px;
  font-size: 17px;
  line-height: 1.78;
}

.hero-points {
  max-width: 680px;
}

.minimal-portrait {
  width: 100%;
  min-height: auto;
  max-height: 620px;
  aspect-ratio: 1.08 / 1;
  align-self: center;
}

.minimal-portrait img {
  object-position: 62% 34%;
}

.minimal-portrait::after {
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.02), rgba(5, 5, 6, 0.64)),
    linear-gradient(90deg, rgba(5, 5, 6, 0.08), transparent 48%);
}

.portrait-id {
  left: 26px;
  right: 26px;
  bottom: 24px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.minimal-strip {
  gap: 12px;
  margin: 10px 0 58px;
}

.minimal-strip div {
  padding: 20px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.minimal-section {
  padding: 54px 0;
}

.minimal-section-head {
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 0.78fr);
  margin-bottom: 26px;
}

.lane-grid,
.delivery-grid,
.proof-gallery {
  gap: 12px;
}

.lane-grid article,
.delivery-grid article {
  min-height: 168px;
  border-radius: 8px;
}

.proof-gallery figure,
.proof-gallery img {
  min-height: 360px;
}

@media (min-width: 1500px) {
  .minimal-home .nav,
  .minimal-page {
    width: min(1640px, calc(100vw - 72px));
  }

  .minimal-hero {
    grid-template-columns: minmax(600px, 0.98fr) minmax(560px, 0.92fr);
  }
}

@media (max-width: 1100px) {
  .minimal-home .nav,
  .minimal-page {
    width: min(100% - 28px, 900px);
  }

  .minimal-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
  }

  .minimal-portrait {
    aspect-ratio: 16 / 11;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .minimal-home .nav,
  .minimal-page {
    width: calc(100% - 28px);
  }

  .minimal-page {
    padding-top: 24px;
  }

  .minimal-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 34px;
  }

  .minimal-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 7.8vw, 36px);
    line-height: 1.16;
  }

  .minimal-portrait {
    aspect-ratio: 4 / 5;
    min-height: 480px;
  }

  .minimal-hero-copy {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .minimal-hero h1 {
    display: block;
    width: min(100%, 10.5em);
    max-width: 10.5em;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .minimal-hero .lead,
  .hero-points {
    width: min(100%, 330px);
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .minimal-hero .lead span,
  .hero-points span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .minimal-hero .lead {
    font-size: 15.5px;
    line-height: 1.76;
  }
}

/* Hero focus pass: centered navigation, tighter composition, poster-like portrait blend. */
.minimal-home .site-header {
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.96), rgba(5, 5, 6, 0.78));
}

.minimal-home .nav {
  grid-template-columns: minmax(210px, 0.9fr) auto minmax(210px, 0.9fr);
  gap: clamp(18px, 2vw, 36px);
  width: min(100% - 56px, 1780px);
}

.minimal-home .brand {
  justify-self: start;
}

.minimal-home .nav-links {
  justify-self: center;
  justify-content: center;
  gap: 4px;
}

.minimal-home .nav-links a[data-nav="script"],
.minimal-home .nav-links a[data-nav="cover"] {
  display: none;
}

.nav-links a[data-nav="script"],
.nav-links a[data-nav="cover"] {
  display: none;
}

.minimal-home .nav-actions {
  justify-self: end;
  flex-wrap: nowrap;
}

.minimal-page {
  width: min(100% - 72px, 1780px);
  padding-top: clamp(18px, 2.2vw, 32px);
}

.minimal-hero {
  position: relative;
  grid-template-columns: minmax(650px, 0.82fr) minmax(700px, 1fr);
  gap: clamp(12px, 1.6vw, 34px);
  min-height: min(690px, calc(100dvh - 82px));
  padding: clamp(10px, 1.6vw, 24px) 0 30px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 69% 39%, rgba(255, 255, 255, 0.045), transparent 48%),
    linear-gradient(90deg, #050506 0%, #050506 34%, #020203 58%, #000 100%);
}

.minimal-hero::before {
  content: "";
  position: absolute;
  inset: 5% 28% 8% 35%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.035), transparent 64%);
}

.minimal-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin-left: clamp(0px, 1.5vw, 26px);
}

.minimal-hero h1 {
  max-width: 860px;
  font-size: clamp(42px, 3vw, 56px);
  line-height: 1.08;
}

.minimal-hero .lead {
  max-width: 690px;
}

.hero-points {
  margin-bottom: 22px;
}

.minimal-portrait {
  position: relative;
  z-index: 2;
  justify-self: stretch;
  width: calc(100% + clamp(30px, 4vw, 86px));
  margin-left: clamp(-58px, -3.2vw, -28px);
  margin-right: clamp(-80px, -3.6vw, -32px);
  aspect-ratio: 1.56 / 1;
  max-height: 590px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.minimal-portrait img {
  width: 100%;
  height: 100%;
  object-position: 64% 45%;
  filter: saturate(0.84) contrast(1.08) brightness(0.9);
  mix-blend-mode: lighten;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 74%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 92%, transparent 100%),
    radial-gradient(ellipse at 64% 49%, #000 0%, #000 45%, transparent 88%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 74%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 9%, #000 92%, transparent 100%),
    radial-gradient(ellipse at 64% 49%, #000 0%, #000 45%, transparent 88%);
  mask-composite: intersect;
}

.minimal-portrait::before {
  content: none;
}

.minimal-portrait::after {
  z-index: 2;
  inset: -8% -6% -12% -18%;
  background:
    linear-gradient(90deg, #050506 0%, rgba(5, 5, 6, 0.82) 13%, transparent 32%, transparent 68%, rgba(5, 5, 6, 0.76) 88%, #050506 100%),
    linear-gradient(180deg, #050506 0%, transparent 18%, transparent 82%, rgba(5, 5, 6, 0.72) 100%),
    radial-gradient(ellipse at 63% 48%, transparent 0 44%, rgba(5, 5, 6, 0.3) 70%, #050506 98%);
}

.portrait-id {
  left: clamp(58px, 7vw, 118px);
  right: clamp(34px, 5vw, 92px);
  bottom: clamp(28px, 3.2vw, 46px);
  z-index: 4;
  border-top: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.88);
}

.minimal-strip {
  margin-top: 16px;
}

.minimal-home .lane-grid article {
  min-height: 206px;
  padding: 24px 22px;
  display: grid;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.minimal-home .lane-grid span {
  color: #9fb7c4;
  letter-spacing: 0.08em;
}

.minimal-home .lane-grid h3 {
  margin: 22px 0 12px;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
}

.minimal-home .lane-grid p {
  color: #b7bebd;
  font-size: 14px;
  line-height: 1.68;
}

@media (min-width: 1500px) {
  .minimal-hero {
    grid-template-columns: minmax(720px, 0.82fr) minmax(820px, 1fr);
    gap: clamp(10px, 1.2vw, 28px);
  }
}

@media (max-width: 1280px) {
  .minimal-home .nav {
    grid-template-columns: 1fr;
  }

  .minimal-home .brand,
  .minimal-home .nav-links,
  .minimal-home .nav-actions {
    justify-self: start;
  }

  .minimal-hero {
    grid-template-columns: minmax(430px, 0.92fr) minmax(520px, 1.08fr);
  }
}

@media (max-width: 1100px) {
  .minimal-page {
    width: min(100% - 28px, 900px);
  }

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

  .minimal-portrait {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .minimal-home .nav {
    width: calc(100% - 28px);
  }

  .minimal-page {
    width: calc(100% - 28px);
  }

  .minimal-portrait {
    aspect-ratio: 4 / 5;
  }
}

.inner-page {
  --inner-bg: #050506;
  --inner-panel: rgba(255, 255, 255, 0.045);
  --inner-panel-strong: rgba(255, 255, 255, 0.072);
  --inner-line: rgba(255, 255, 255, 0.1);
  --inner-line-soft: rgba(255, 255, 255, 0.06);
  --inner-text: #f4f5f3;
  --inner-muted: #a7adb2;
  --inner-dim: #737b82;
  background:
    radial-gradient(ellipse at 76% 8%, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 360px),
    var(--inner-bg);
  color: var(--inner-text);
  overflow-x: hidden;
}

.inner-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 62%);
}

.inner-page .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 6, 0.84);
}

.inner-page .nav {
  width: min(100% - 48px, 1780px);
  max-width: none;
}

.inner-page .nav-actions {
  justify-self: end;
  flex-wrap: nowrap;
}

.inner-page .page {
  width: min(100% - 72px, 1440px);
  max-width: none;
  padding: clamp(28px, 4vw, 58px) 0 clamp(58px, 7vw, 92px);
}

.inner-page .panel,
.inner-page .card,
.inner-page .case-block,
.inner-page .agent-workbench,
.inner-page .price-card,
.inner-page .product-row,
.inner-page .method-step,
.inner-page .process-step,
.inner-page .workspace-metric,
.inner-page .case-metrics div,
.inner-page .cover-card {
  border: 1px solid var(--inner-line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.028);
  color: var(--inner-text);
  box-shadow: none;
}

.inner-page .panel,
.inner-page .case-block {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4.4vw, 54px);
  min-height: auto;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(255, 255, 255, 0.07), transparent 38%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026) 58%, rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.026);
}

.inner-page .panel::after,
.inner-page .case-block::after {
  content: "";
  position: absolute;
  right: -16%;
  top: -28%;
  width: min(520px, 46vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 62%);
}

.inner-page .eyebrow {
  color: #9fb7c4;
  letter-spacing: 0.13em;
}

.inner-page h1 {
  max-width: 980px;
  margin: 14px 0 16px;
  color: #fff;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.inner-page h2 {
  color: #fff;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.22;
}

.inner-page h3 {
  color: #fff;
  font-size: 19px;
  line-height: 1.28;
}

.inner-page p,
.inner-page .lead,
.inner-page .list,
.inner-page .empty-state {
  color: var(--inner-muted);
}

.inner-page .lead {
  max-width: 760px;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.75;
}

.inner-page .section {
  margin-top: clamp(22px, 3vw, 42px);
}

.inner-page .section-head {
  align-items: end;
  margin-bottom: 16px;
}

.inner-page .section-head p {
  max-width: 540px;
  color: var(--inner-muted);
}

.inner-page .card,
.inner-page .price-card,
.inner-page .method-step,
.inner-page .process-step,
.inner-page .workspace-metric,
.inner-page .case-metrics div {
  padding: 22px;
}

.inner-page .card {
  min-height: 178px;
}

.inner-page .card p,
.inner-page .process-step p,
.inner-page .method-step p,
.inner-page .product-row p,
.inner-page .price-card p,
.inner-page .cover-body p {
  font-size: 14px;
  line-height: 1.68;
}

.inner-page .btn.secondary,
.inner-page .btn.ghost {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: #f6f7f5;
}

.inner-page .btn.blue,
.inner-page .btn.green {
  border-color: rgba(255, 255, 255, 0.16);
  background: #f4f3ee;
  color: #050506;
}

.inner-page .btn:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.inner-page .tag {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #cbd4d8;
}

.inner-page .price-pill {
  background: #f4f3ee;
  color: #050506;
}

.inner-page .product-row {
  grid-template-columns: minmax(0, 1.16fr) minmax(240px, 0.82fr) minmax(118px, auto);
  align-items: stretch;
  padding: 24px;
}

.inner-page .product-row > div {
  align-content: center;
}

.inner-page .grid-4 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inner-page .price-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.inner-page .price-card {
  min-height: 330px;
}

.inner-page .price-card.featured {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.inner-page .price {
  color: #fff;
  font-size: clamp(28px, 2.8vw, 38px);
}

.inner-page .list li::before {
  background: #d8dedc;
}

.inner-page .case-block {
  padding-bottom: clamp(34px, 4vw, 52px);
}

.inner-page .case-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(26px, 3vw, 38px);
}

.inner-page .case-metrics strong,
.inner-page .workspace-metric strong {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 31px);
}

.inner-page .case-metrics p,
.inner-page .workspace-metric span {
  color: var(--inner-dim);
}

.inner-page .process,
.inner-page .method-flow {
  gap: 12px;
}

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

.inner-page .method-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inner-page .process-step,
.inner-page .method-step {
  min-height: 176px;
}

.inner-page .process-step span,
.inner-page .method-step span {
  color: #9fb7c4;
  letter-spacing: 0.08em;
}

.inner-page .agent-workbench {
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  gap: 0;
  overflow: hidden;
}

.inner-page .form-pane,
.inner-page .result-pane {
  padding: clamp(24px, 3vw, 36px);
}

.inner-page .form-pane {
  border-right-color: var(--inner-line);
  background: rgba(255, 255, 255, 0.026);
}

.inner-page .result-pane {
  background:
    radial-gradient(ellipse at 72% 0%, rgba(255, 255, 255, 0.06), transparent 44%),
    rgba(255, 255, 255, 0.018);
}

.inner-page .field label {
  color: #cfd5d4;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.inner-page .field input,
.inner-page .field textarea,
.inner-page .field select,
.inner-page .result-box {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.048);
  color: #f4f5f3;
}

.inner-page .field input::placeholder,
.inner-page .field textarea::placeholder {
  color: rgba(244, 245, 243, 0.38);
}

.inner-page .field input:focus,
.inner-page .field textarea:focus,
.inner-page .field select:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07);
}

.inner-page .result-box {
  min-height: 260px;
  line-height: 1.78;
}

.inner-page .cover-card {
  overflow: hidden;
}

.inner-page .cover-results > .empty-state {
  grid-column: 1 / -1;
}

.inner-page .cover-preview {
  background:
    linear-gradient(135deg, #050506 0%, #141719 58%, #2a2f32 100%);
}

.inner-page .cover-preview.green,
.inner-page .cover-preview.light,
.inner-page .cover-preview.darkline {
  color: #fff;
  background:
    linear-gradient(135deg, #050506 0%, #171a1d 64%, #3a3f42 100%);
}

.inner-page .cover-body {
  background: rgba(255, 255, 255, 0.028);
}

.inner-page .workspace-layout {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
}

.inner-page .workspace-layout .panel h1 {
  font-size: clamp(32px, 3.4vw, 50px);
}

.inner-page .side {
  position: sticky;
  top: 92px;
  border: 1px solid var(--inner-line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.03);
}

.inner-page .side h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.inner-page .side a,
.inner-page .side button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #d7dcda;
}

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

.inner-page .history-item {
  border-color: var(--inner-line-soft);
  background: rgba(255, 255, 255, 0.045);
}

.inner-page .footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 6, 0.72);
  color: var(--inner-dim);
}

.inner-page .footer-inner {
  max-width: 1440px;
}

.store-page {
  width: min(100% - 72px, 1500px);
}

.store-page h1 {
  max-width: 910px;
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.12;
}

.store-page .store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(22px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(36px, 5vw, 70px);
}

.store-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
}

.store-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.store-hero-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  align-content: space-between;
  min-height: 330px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.042)),
    rgba(255, 255, 255, 0.032);
}

.store-hero-card span,
.offer-kicker,
.store-type,
.store-problem-grid span,
.enterprise-products span,
.build-flow-grid span {
  color: #9fb7c4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-hero-card strong {
  display: block;
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.12;
}

.store-hero-card p {
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.78;
}

.store-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.store-signal-grid b,
.briefing-tags span {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  padding: 10px 9px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf0ed;
  font-size: 13px;
  text-align: center;
}

.store-problem-grid,
.consumer-product-grid,
.enterprise-products,
.build-flow-grid {
  display: grid;
  gap: 14px;
}

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

.store-problem-grid article,
.consumer-product-card,
.enterprise-products article,
.build-flow-grid article,
.store-briefing {
  border: 1px solid var(--inner-line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.store-problem-grid article {
  min-height: 198px;
  padding: 24px;
}

.store-problem-grid h3,
.build-flow-grid h3,
.enterprise-products h3,
.consumer-product-card h3 {
  margin: 14px 0 10px;
}

.enterprise-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, 0.085), transparent 36%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.028);
}

.enterprise-offer-main {
  padding: clamp(30px, 4.2vw, 56px);
}

.enterprise-offer-main h2 {
  max-width: 720px;
  margin: 12px 0 14px;
  font-size: clamp(26px, 2.6vw, 38px);
}

.enterprise-offer-main > p {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.82;
}

.enterprise-price {
  width: min(100%, 520px);
  margin: 30px 0 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 8px;
}

.enterprise-price span,
.enterprise-price em {
  color: var(--inner-dim);
  font-style: normal;
  font-size: 13px;
}

.enterprise-price strong {
  color: #fff;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1;
}

.enterprise-offer-detail {
  display: grid;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.13);
}

.enterprise-offer-detail article {
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  align-content: center;
}

.enterprise-offer-detail article + article {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.enterprise-offer-detail span {
  color: #fff;
  font-weight: 900;
}

.enterprise-offer-detail p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.72;
}

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

.consumer-product-card {
  min-height: 330px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.consumer-product-card h3 {
  font-size: clamp(22px, 2.1vw, 30px);
}

.consumer-product-card p {
  max-width: 72ch;
  line-height: 1.72;
}

.consumer-product-card footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.consumer-product-card footer strong {
  color: #fff;
  font-size: 28px;
}

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

.enterprise-products article {
  min-height: 280px;
  padding: 26px;
  display: grid;
  align-content: space-between;
}

.enterprise-products article strong {
  display: block;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
}

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

.build-flow-grid article {
  min-height: 210px;
  padding: 24px;
}

.store-briefing {
  padding: clamp(26px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: center;
}

.store-briefing h2 {
  max-width: 520px;
  margin: 12px 0 0;
}

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

.briefing-tags span {
  min-width: 104px;
}

.pricing-page .price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-lanes,
.proof-grid,
.agent-note-grid {
  display: grid;
  gap: 14px;
}

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

.pricing-lanes article,
.proof-grid article,
.agent-note-grid article {
  border: 1px solid var(--inner-line-soft);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.025);
}

.pricing-lanes span,
.proof-grid span,
.agent-note-grid span {
  color: #9fb7c4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-lanes h2,
.proof-grid h3,
.agent-note-grid p {
  margin-top: 12px;
}

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

.proof-grid article {
  min-height: 220px;
}

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

.agent-note-grid article {
  min-height: 132px;
}

.agent-page .panel.section-head {
  align-items: center;
}

.agent-page .agent-workbench {
  margin-top: 14px;
}

.decision-grid,
.delivery-grid,
.method-principles,
.workspace-routing {
  display: grid;
  gap: 14px;
}

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

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

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

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

.decision-grid article,
.delivery-grid article,
.method-principles article,
.workspace-routing article,
.system-stack article,
.conversion-rail article,
.pricing-proof,
.tool-upgrade-banner,
.system-map {
  border: 1px solid var(--inner-line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.026);
}

.decision-grid article,
.delivery-grid article,
.method-principles article,
.workspace-routing article {
  min-height: 172px;
  padding: 22px;
}

.decision-grid span,
.delivery-grid span,
.method-principles span,
.workspace-routing span,
.system-stack span,
.conversion-rail span {
  color: #9fb7c4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.decision-grid h3,
.delivery-grid h3,
.method-principles h3,
.workspace-routing h3 {
  margin: 16px 0 10px;
}

.decision-grid p,
.delivery-grid p,
.method-principles p,
.workspace-routing p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
}

.workspace-routing .btn {
  width: fit-content;
  margin-top: 20px;
}

.system-map {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(26px, 3.8vw, 44px);
  align-items: center;
  background:
    radial-gradient(ellipse at 80% 12%, rgba(255, 255, 255, 0.07), transparent 42%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.024);
}

.system-map-copy h2 {
  max-width: 560px;
  margin: 12px 0 14px;
}

.system-map-copy p {
  max-width: 540px;
  line-height: 1.78;
}

.system-stack {
  display: grid;
  gap: 10px;
}

.system-stack article {
  min-height: 126px;
  padding: 20px;
}

.system-stack h3 {
  margin: 12px 0 8px;
}

.system-stack p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
}

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

.conversion-rail article {
  min-height: 120px;
  padding: 20px;
}

.conversion-rail h3 {
  margin: 18px 0 0;
  font-size: 18px;
}

.pricing-proof,
.tool-upgrade-banner {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr) auto;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
  align-items: center;
}

.pricing-proof h2,
.tool-upgrade-banner h2 {
  margin: 10px 0 0;
  max-width: 520px;
}

.pricing-proof p,
.tool-upgrade-banner p {
  max-width: 620px;
  margin: 0;
  line-height: 1.72;
}

@media (max-width: 1280px) {
  .inner-page .price-grid,
  .inner-page .grid-4,
  .inner-page .method-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-page .process,
  .inner-page .case-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inner-page .agent-workbench,
  .inner-page .product-row {
    grid-template-columns: 1fr;
  }

  .store-page .store-hero,
  .enterprise-offer,
  .store-briefing,
  .system-map,
  .pricing-proof,
  .tool-upgrade-banner {
    grid-template-columns: 1fr;
  }

  .enterprise-offer-detail {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .build-flow-grid,
  .enterprise-products,
  .proof-grid,
  .delivery-grid,
  .conversion-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-page .price-grid,
  .agent-note-grid,
  .decision-grid,
  .method-principles,
  .workspace-routing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .inner-page .nav,
  .inner-page .page {
    width: auto;
    max-width: none;
    margin-left: 14px;
    margin-right: 14px;
  }

  .inner-page .nav {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }

  .inner-page .brand,
  .inner-page .nav-links,
  .inner-page .nav-actions {
    justify-self: start;
  }

  .inner-page .nav-links {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .inner-page .nav-links::-webkit-scrollbar {
    display: none;
  }

  .inner-page .panel,
  .inner-page .case-block {
    padding: 26px 22px;
  }

  .inner-page h1,
  .inner-page h2,
  .inner-page h3,
  .inner-page p,
  .inner-page .lead {
    overflow-wrap: anywhere;
  }

  .inner-page .section-head {
    flex-direction: column;
    align-items: start;
  }

  .inner-page .grid-2,
  .inner-page .grid-3,
  .inner-page .grid-4,
  .inner-page .price-grid,
  .inner-page .process,
  .inner-page .method-flow,
  .inner-page .case-metrics,
  .inner-page .cover-results,
  .inner-page .form-grid,
  .inner-page .workspace-metrics,
  .inner-page .workspace-layout {
    grid-template-columns: 1fr;
  }

  .inner-page .panel,
  .inner-page .card,
  .inner-page .case-block,
  .inner-page .agent-workbench,
  .inner-page .price-card,
  .inner-page .product-row,
  .inner-page .method-step,
  .inner-page .process-step,
  .inner-page .workspace-metric,
  .inner-page .case-metrics div,
  .inner-page .cover-card,
  .inner-page .form-pane,
  .inner-page .result-pane,
  .inner-page .field,
  .inner-page .field input,
  .inner-page .field textarea,
  .inner-page .field select {
    min-width: 0;
    max-width: 100%;
  }

  .inner-page .form-pane {
    border-right: 0;
    border-bottom: 1px solid var(--inner-line);
  }

  .inner-page .side {
    position: static;
  }

  .store-page {
    width: auto;
  }

  .store-page .store-hero {
    padding: 26px 22px;
  }

  .store-signal-grid,
  .store-problem-grid,
  .consumer-product-grid,
  .enterprise-products,
  .build-flow-grid,
  .pricing-lanes,
  .proof-grid,
  .agent-note-grid,
  .pricing-page .price-grid,
  .decision-grid,
  .delivery-grid,
  .method-principles,
  .workspace-routing,
  .system-map,
  .conversion-rail,
  .pricing-proof,
  .tool-upgrade-banner {
    grid-template-columns: 1fr;
  }

  .consumer-product-card footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .enterprise-offer-main,
  .enterprise-offer-detail article {
    padding: 24px 22px;
  }

  .enterprise-price strong {
    font-size: 40px;
  }

  .briefing-tags span {
    flex: 1 1 calc(50% - 10px);
  }
}

.admin-body {
  min-height: 100vh;
  margin: 0;
  background: #f6f7fb;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.admin-body *,
.admin-body *::before,
.admin-body *::after {
  box-sizing: border-box;
}

.admin-body a {
  color: inherit;
}

.admin-body .btn {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid #d8dee8;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
}

.admin-body .btn.secondary {
  background: #fff;
  color: #111827;
}

.admin-body .btn.blue {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.admin-body .btn.danger {
  margin-top: 8px;
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.admin-page {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  display: block;
}

.admin-login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.04), transparent 38%),
    #f6f7fb;
}

.admin-login-panel[hidden],
.admin-dashboard[hidden],
.admin-view[hidden] {
  display: none !important;
}

.admin-login-brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.admin-login-brand {
  position: fixed;
  top: 24px;
  left: 28px;
  color: #111827;
  font-weight: 800;
}

.admin-login-brand span,
.admin-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.admin-login-card {
  width: min(100%, 560px);
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.admin-login-card h1 {
  margin: 10px 0 10px;
  color: #111827;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
}

.admin-login-card p {
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 26px;
}

.admin-login .btn {
  width: 100%;
  justify-content: center;
}

.admin-login .field {
  display: grid;
  gap: 8px;
}

.admin-login label {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.admin-login input,
.admin-filters input,
.admin-filters select,
.admin-config-form input,
.admin-config-form select,
.admin-config-form textarea,
.admin-table select,
.admin-table input,
.admin-table textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 11px 12px;
  font: inherit;
  letter-spacing: 0;
}

.admin-login input:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.admin-config-form input:focus,
.admin-config-form select:focus,
.admin-config-form textarea:focus,
.admin-table select:focus,
.admin-table input:focus,
.admin-table textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  border-color: #2563eb;
}

.admin-error {
  min-height: 22px;
  margin: 14px 0 0;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
}

.admin-dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  background: #f6f7fb;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  border-right: 1px solid #dfe5ef;
  background: #fff;
  padding: 22px 18px;
}

.admin-sidebar-head p {
  margin: 10px 0 0 44px;
  color: #667085;
  font-size: 13px;
}

.admin-brand strong {
  color: #111827;
  font-size: 16px;
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 6px;
}

.admin-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  padding: 0 10px 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.admin-menu-item:hover {
  background: #f5f7fb;
}

.admin-menu-item.is-active {
  border-color: #c7d7fe;
  background: #eef4ff;
  color: #194185;
}

.admin-menu-item strong {
  min-width: 28px;
  border-radius: 999px;
  background: #edf2f7;
  color: #475467;
  padding: 3px 8px;
  font-size: 12px;
  text-align: center;
}

.admin-menu-item.is-active strong {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-sidebar-foot {
  display: grid;
  gap: 8px;
  border-top: 1px solid #eef2f6;
  padding-top: 14px;
}

.admin-sidebar-foot a,
.admin-sidebar-foot button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 36px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-sidebar-foot a:hover,
.admin-sidebar-foot button:hover {
  background: #f5f7fb;
  color: #111827;
}

.admin-workspace {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 24px clamp(22px, 3vw, 38px) 42px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  margin: -24px calc(clamp(22px, 3vw, 38px) * -1) 0;
  padding: 18px clamp(22px, 3vw, 38px);
  border-bottom: 1px solid #dfe5ef;
  background: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admin-topbar h1,
.admin-section-head h2,
.admin-card h3 {
  margin: 0;
  color: #111827;
  letter-spacing: 0;
}

.admin-topbar h1 {
  margin-top: 5px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.admin-topbar p,
.admin-section-head p,
.admin-card-head p {
  margin: 6px 0 0;
  color: #667085;
  line-height: 1.6;
}

.admin-topbar-actions,
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-kicker {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-view {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-section-head h2 {
  margin-top: 5px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.16;
}

.admin-section-head p {
  max-width: 560px;
  text-align: right;
}

.admin-card {
  min-width: 0;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.045);
}

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

.admin-card h3 {
  font-size: 18px;
  line-height: 1.25;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.admin-metric {
  min-width: 0;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.admin-metric span,
.admin-metric small {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.admin-metric strong {
  display: block;
  margin: 12px 0 8px;
  color: #111827;
  font-size: 32px;
  line-height: 1;
}

.admin-health-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-health-list article,
.admin-rule-summary article,
.admin-rule-files article,
.admin-status-card,
.admin-empty-card {
  min-width: 0;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.admin-health-list article {
  display: grid;
  gap: 8px;
  border-left: 4px solid #12b76a;
}

.admin-health-list article.missing {
  border-left-color: #f97316;
  background: #fffbeb;
}

.admin-health-list span,
.admin-status-card span,
.admin-state {
  width: fit-content;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.admin-health-list article.missing span,
.admin-status-card.missing span {
  background: #fff7ed;
  color: #c2410c;
}

.admin-health-list strong,
.admin-rule-files strong,
.admin-status-card strong {
  color: #111827;
  font-weight: 900;
}

.admin-health-list p,
.admin-rule-files p,
.admin-rule-files span,
.admin-status-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-toolbar {
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-filters {
  flex: 1 1 520px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px;
  gap: 10px;
}

.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #111827;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table td span {
  color: #667085;
  font-size: 12px;
}

.admin-table td strong {
  color: #111827;
}

.admin-table textarea {
  min-height: 76px;
  resize: vertical;
}

.admin-empty {
  height: 72px;
  text-align: center;
  color: #667085;
}

.admin-system-grid,
.admin-rule-files {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.admin-config-form {
  display: grid;
  gap: 14px;
}

.admin-config-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f9fafb;
  padding: 14px;
}

.admin-config-group h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.3;
}

.admin-config-group label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.admin-config-group label span {
  width: fit-content;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.admin-config-group label span.ok {
  background: #ecfdf3;
  color: #027a48;
}

.admin-config-group .admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  align-self: end;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
}

.admin-config-group .admin-check input {
  width: auto;
  margin: 0;
}

.admin-model-manager {
  grid-template-columns: 1fr;
}

.admin-model-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-model-toolbar p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

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

.admin-model-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.admin-model-card-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-model-card-head strong {
  display: block;
  color: #111827;
  font-size: 15px;
}

.admin-model-card-head span {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.admin-model-card-head span.ok {
  background: #ecfdf3;
  color: #027a48;
}

.admin-model-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-model-wide {
  grid-column: span 2;
}

.admin-config-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-config-actions p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.admin-config-actions p.ok {
  color: #027a48;
}

.admin-config-actions p.error {
  color: #b91c1c;
}

.admin-rule-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.admin-rule-summary article {
  background: #f9fafb;
  color: #344054;
  font-size: 14px;
  line-height: 1.55;
}

.admin-rule-files article.ok,
.admin-status-card.ok {
  border-left: 4px solid #12b76a;
}

.admin-rule-files article.missing,
.admin-status-card.missing {
  border-left: 4px solid #f97316;
}

.admin-status-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.admin-generations {
  display: grid;
  gap: 10px;
}

.admin-generation {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.admin-generation summary {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 14px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.admin-generation summary::-webkit-details-marker {
  display: none;
}

.admin-generation summary span {
  width: fit-content;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.admin-generation summary strong {
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-generation summary small {
  grid-column: 2;
  color: #667085;
  font-size: 12px;
}

.admin-generations .result-box {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  border-top: 1px solid #eef2f6;
  background: #f9fafb;
  color: #111827;
  padding: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.admin-empty-card h3 {
  margin: 0 0 6px;
  color: #111827;
}

.admin-empty-card p {
  margin: 0;
  color: #667085;
}

@media (max-width: 1080px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto;
    border-right: 0;
    border-bottom: 1px solid #dfe5ef;
  }

  .admin-menu {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

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

@media (max-width: 760px) {
  .admin-login-panel {
    padding: 24px 16px;
  }

  .admin-login-brand {
    position: static;
    justify-self: start;
    margin-bottom: 18px;
  }

  .admin-login {
    grid-template-columns: 1fr;
  }

  .admin-workspace {
    padding: 18px 14px 32px;
  }

  .admin-topbar {
    position: static;
    display: grid;
    min-height: 0;
    margin: -18px -14px 0;
    padding: 16px 14px;
  }

  .admin-topbar-actions,
  .admin-toolbar,
  .admin-section-head {
    display: grid;
    justify-content: stretch;
  }

  .admin-section-head {
    align-items: start;
  }

  .admin-section-head p {
    text-align: left;
  }

  .admin-filters,
  .admin-config-group,
  .admin-model-card,
  .admin-sidebar-foot,
  .admin-generation summary {
    grid-template-columns: 1fr;
  }

  .admin-model-toolbar,
  .admin-model-card-head {
    display: grid;
  }

  .admin-model-wide {
    grid-column: auto;
  }

  .admin-generation summary small {
    grid-column: auto;
  }

  .admin-card {
    padding: 14px;
  }

  .admin-body .btn {
    width: 100%;
    text-align: center;
  }
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.account-actions[hidden],
[data-auth-only][hidden],
[data-guest-only][hidden] {
  display: none !important;
}

.auth-page,
.payment-page {
  min-width: 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.auth-copy,
.auth-panel,
.payment-panel {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  padding: 30px;
  min-width: 0;
}

.auth-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.auth-copy h1,
.auth-panel h2,
.payment-panel h1,
.payment-panel h2 {
  color: #111827;
  margin: 0;
}

.auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-proof span {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.05);
  padding: 9px 12px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.72);
}

.auth-panel {
  display: grid;
  gap: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.auth-tabs button {
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.64);
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.active {
  background: #111827;
  color: #fff;
}

.form-grid.compact {
  grid-template-columns: 1fr;
  gap: 14px;
}

.full-btn {
  width: 100%;
  justify-content: center;
}

.payment-panel {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.payment-panel .button-row {
  margin-top: 4px;
}

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

  .auth-copy,
  .auth-panel,
  .payment-panel {
    padding: 24px 22px;
  }

  .account-actions {
    justify-content: flex-start;
  }
}

/* Product-system redesign for independent subpages */
.product-system.inner-page {
  --system-bg: #050607;
  --system-bg-2: #090d10;
  --system-panel: rgba(255, 255, 255, 0.052);
  --system-panel-strong: rgba(255, 255, 255, 0.078);
  --system-line: rgba(255, 255, 255, 0.12);
  --system-line-soft: rgba(255, 255, 255, 0.075);
  --system-text: #f5f7f8;
  --system-muted: #a9b2b8;
  --system-dim: #778087;
  --system-blue: #2f72ff;
  background:
    linear-gradient(180deg, var(--system-bg) 0%, var(--system-bg-2) 52%, var(--system-bg) 100%);
  color: var(--system-text);
}

.product-system.inner-page::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 70%);
}

.product-system.inner-page .panel::after,
.product-system.inner-page .case-block::after {
  display: none;
}

.product-system.inner-page .site-header {
  background: rgba(5, 6, 7, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.product-system.inner-page .nav {
  min-height: 68px;
}

.product-system.inner-page .nav-links {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-system.inner-page .nav-links::-webkit-scrollbar {
  display: none;
}

.product-system.inner-page .nav-links a.active,
.product-system.inner-page .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.product-system.inner-page .btn {
  border-radius: 8px;
  min-height: 42px;
}

.product-system.inner-page .btn.blue,
.product-system.inner-page .btn.green {
  background: var(--system-blue);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.product-system.inner-page .btn.secondary,
.product-system.inner-page .btn.ghost {
  color: var(--system-text);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--system-line);
}

.system-page,
.workspace-system-page {
  width: min(100% - 72px, 1480px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 0 clamp(58px, 7vw, 92px);
}

.system-hero,
.agent-topbar,
.enterprise-system-panel,
.requirements-panel,
.purchase-panel,
.boundary-panel,
.history-section {
  border: 1px solid var(--system-line-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.032)),
    var(--system-panel);
  box-shadow: none;
}

.system-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.72fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(28px, 4vw, 52px);
}

.compact-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.system-hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.system-kicker,
.system-section-head > span,
.pane-head span,
.plan-label {
  width: fit-content;
  color: #b7c6d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.product-system.inner-page h1,
.product-system.inner-page h2,
.product-system.inner-page h3 {
  color: var(--system-text);
}

.product-system.inner-page h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.08;
}

.product-system.inner-page h2 {
  margin: 0;
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1.18;
}

.product-system.inner-page h3 {
  margin: 0;
  font-size: 19px;
}

.product-system.inner-page p,
.product-system.inner-page .lead,
.product-system.inner-page .list,
.product-system.inner-page .empty-state {
  color: var(--system-muted);
}

.product-system.inner-page .lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.72;
}

.hero-stat-row,
.case-metrics.refined-metrics,
.compare-grid,
.agent-catalog,
.pipeline-grid,
.service-grid,
.evidence-grid,
.media-proof-grid,
.about-grid,
.method-line,
.workspace-metrics {
  display: grid;
  gap: 12px;
}

.hero-stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
}

.hero-stat-row div,
.case-metrics.refined-metrics div,
.compare-grid article,
.pipeline-grid article,
.service-grid article,
.evidence-grid article,
.method-line article,
.about-grid article,
.diagnostic-row,
.logic-list article,
.method-principle-card article,
.system-offer-list article {
  border: 1px solid var(--system-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.036);
  padding: 16px;
}

.hero-stat-row span,
.case-metrics.refined-metrics p,
.diagnostic-row span,
.logic-list span,
.method-principle-card strong,
.pipeline-grid span,
.service-grid span,
.evidence-grid span,
.method-line span,
.about-grid span,
.system-offer-list strong,
.agent-card-top span {
  display: block;
  color: var(--system-dim);
  font-size: 12px;
  font-weight: 800;
}

.hero-stat-row strong,
.case-metrics.refined-metrics strong,
.diagnostic-row strong,
.system-offer-list span,
.agent-card-top strong {
  display: block;
  margin-top: 8px;
  color: var(--system-text);
}

.system-hero-aside,
.diagnostic-board,
.case-proof-card,
.method-principle-card {
  border: 1px solid var(--system-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: clamp(20px, 2.4vw, 28px);
}

.system-hero-aside,
.diagnostic-board,
.method-principle-card {
  display: grid;
  gap: 14px;
}

.logic-list,
.system-offer-list {
  display: grid;
  gap: 10px;
}

.logic-list p,
.pipeline-grid p,
.service-grid p,
.evidence-grid p,
.method-line p,
.about-grid p,
.system-offer-list span,
.media-proof-grid figcaption span {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.68;
}

.system-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.system-section-head.compact {
  max-width: 760px;
}

.system-section-head.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.system-section-head p {
  max-width: 680px;
  margin: 0;
}

.agent-catalog {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.agent-card,
.price-card,
.workspace-routing article {
  border: 1px solid var(--system-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.042);
  padding: clamp(20px, 2.3vw, 28px);
}

.agent-card {
  min-height: 360px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.agent-card.featured-agent {
  background:
    linear-gradient(180deg, rgba(47, 114, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.046);
}

.agent-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-system.inner-page .tag {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

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

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

.enterprise-system-panel,
.requirements-panel,
.purchase-panel,
.boundary-panel,
.history-section {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 38px);
}

.enterprise-system-panel {
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr) auto;
  align-items: center;
}

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

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

.media-proof-grid figure,
.case-proof-card {
  margin: 0;
  overflow: hidden;
}

.media-proof-grid figure {
  border: 1px solid var(--system-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.media-proof-grid img,
.case-proof-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.case-proof-card img {
  border-radius: 8px;
  border: 1px solid var(--system-line-soft);
}

.media-proof-grid figcaption,
.case-proof-card div {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.media-proof-grid figcaption strong,
.case-proof-card strong {
  color: var(--system-text);
}

.case-metrics.refined-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
}

.pricing-page .refined-price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-page .price-card {
  min-height: 390px;
  display: grid;
  gap: 16px;
}

.pricing-page .price-card .btn {
  align-self: end;
  width: fit-content;
}

.pricing-page .price {
  color: #fff;
  font-size: clamp(30px, 3vw, 42px);
}

.pricing-page .price-card.featured {
  border-color: rgba(47, 114, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(47, 114, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
}

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

.purchase-panel .form-grid {
  margin-top: 4px;
}

.diagnostic-board h2,
.system-hero-aside h2,
.workflow-rail h2 {
  font-size: 22px;
}

.diagnostic-row {
  display: grid;
  gap: 4px;
}

.requirements-panel {
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  align-items: center;
}

.product-system.inner-page .briefing-tags span {
  border-color: var(--system-line-soft);
  background: rgba(255, 255, 255, 0.055);
  color: #dce3e6;
}

.method-principle-card article {
  display: grid;
  gap: 8px;
}

.method-principle-card span {
  color: var(--system-muted);
  font-size: 14px;
  line-height: 1.65;
}

.method-line {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
}

.method-line article {
  min-height: 235px;
}

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

.workspace-system-page {
  width: min(100% - 72px, 1560px);
}

.refined-workspace {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
}

.workspace-rail {
  top: 92px;
  border-radius: 8px;
}

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

.workspace-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
}

.workspace-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: stretch;
}

.product-system.inner-page .workspace-metric {
  min-height: 128px;
  padding: 18px;
}

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

.history-section {
  margin-top: 18px;
}

.product-system.inner-page .history-item {
  border-radius: 8px;
  border-color: var(--system-line-soft);
  background: rgba(255, 255, 255, 0.04);
}

.agent-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: clamp(24px, 3vw, 36px);
  margin-bottom: 16px;
}

.agent-topbar h1 {
  margin: 8px 0 12px;
  max-width: 1060px;
  font-size: clamp(32px, 3.15vw, 46px);
}

.agent-console {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  border: 1px solid var(--system-line-soft);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.workflow-rail,
.agent-console .form-pane,
.agent-console .result-pane {
  min-width: 0;
  padding: clamp(22px, 2.5vw, 32px);
}

.workflow-rail {
  border-right: 1px solid var(--system-line-soft);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  align-content: start;
  gap: 20px;
}

.workflow-rail ol {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.workflow-rail li {
  border: 1px solid var(--system-line-soft);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.workflow-rail li.active {
  border-color: rgba(47, 114, 255, 0.52);
  background: rgba(47, 114, 255, 0.12);
}

.workflow-rail span {
  display: block;
  color: var(--system-text);
  font-weight: 800;
}

.workflow-rail small {
  display: block;
  margin-top: 5px;
  color: var(--system-dim);
  line-height: 1.45;
}

.agent-console .form-pane {
  border-right: 1px solid var(--system-line-soft);
}

.pane-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.product-system.inner-page .field label {
  color: #cfd7dc;
}

.product-system.inner-page .field input,
.product-system.inner-page .field textarea,
.product-system.inner-page .field select,
.product-system.inner-page .result-box {
  border-radius: 8px;
  border-color: var(--system-line);
  background: rgba(255, 255, 255, 0.052);
  color: var(--system-text);
}

.product-system.inner-page .field input::placeholder,
.product-system.inner-page .field textarea::placeholder {
  color: rgba(245, 247, 248, 0.42);
}

.context-upload {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--system-line-soft);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(64, 116, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.026)),
    rgba(12, 18, 28, 0.92);
}

.context-upload.full {
  grid-column: 1 / -1;
}

.context-upload-head {
  display: grid;
  gap: 8px;
  align-items: start;
}

.context-upload-head span {
  color: #72a0ff;
  font-size: 13px;
  font-weight: 800;
}

.context-upload-head h3 {
  margin-top: 6px;
  color: var(--system-text);
  font-size: 22px;
  line-height: 1.18;
  word-break: keep-all;
}

.context-upload-head p {
  max-width: 100%;
  color: var(--system-muted);
  font-size: 13px;
  line-height: 1.6;
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.context-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.context-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  flex-wrap: wrap;
}

.context-card-head strong {
  color: var(--system-text);
  font-size: 15px;
  line-height: 1.35;
  word-break: keep-all;
}

.context-card-head span,
.file-drop small {
  color: var(--system-dim);
  font-size: 12px;
  line-height: 1.45;
}

.file-drop {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px dashed rgba(114, 160, 255, 0.48);
  border-radius: 8px;
  background: rgba(47, 114, 255, 0.07);
  cursor: pointer;
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: rgba(114, 160, 255, 0.9);
  background: rgba(47, 114, 255, 0.11);
}

.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop span {
  color: #eaf1ff;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.context-card textarea {
  width: 100%;
  min-height: 92px;
  padding: 11px 12px;
  border: 1px solid var(--system-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.052);
  color: var(--system-text);
  font: inherit;
  line-height: 1.58;
  resize: vertical;
}

.context-card textarea::placeholder {
  color: rgba(245, 247, 248, 0.42);
}

.context-card textarea:focus {
  outline: none;
  border-color: rgba(47, 114, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(47, 114, 255, 0.15);
}

.result-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.result-command-grid .btn,
.result-actions .btn {
  width: 100%;
}

.product-system.inner-page .result-box {
  min-height: 300px;
}

.product-system.inner-page .cover-results {
  gap: 12px;
}

.product-system.inner-page .cover-card {
  border-radius: 8px;
  border-color: var(--system-line-soft);
}

.product-system.inner-page .cover-preview {
  background:
    linear-gradient(135deg, #070809 0%, #171a1e 56%, #263449 100%);
}

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

@media (max-width: 1180px) {
  .system-hero,
  .compact-hero,
  .workspace-hero,
  .enterprise-system-panel,
  .requirements-panel,
  .agent-catalog,
  .agent-console {
    grid-template-columns: 1fr;
  }

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

  .context-upload-head {
    align-items: start;
    flex-direction: column;
  }

  .workflow-rail,
  .agent-console .form-pane {
    border-right: 0;
    border-bottom: 1px solid var(--system-line-soft);
  }

  .pipeline-grid,
  .pipeline-grid.six,
  .service-grid,
  .evidence-grid,
  .method-line,
  .pricing-page .refined-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-line article {
    min-height: 190px;
  }
}

@media (max-width: 860px) {
  .system-page,
  .workspace-system-page {
    width: auto;
    margin-left: 14px;
    margin-right: 14px;
  }

  .product-system.inner-page .nav {
    width: auto;
    margin-left: 14px;
    margin-right: 14px;
  }

  .system-section-head.inline,
  .agent-topbar {
    align-items: start;
    flex-direction: column;
  }

  .hero-stat-row,
  .case-metrics.refined-metrics,
  .compare-grid,
  .media-proof-grid,
  .about-grid,
  .workspace-metrics,
  .workspace-routing,
  .refined-workspace {
    grid-template-columns: 1fr;
  }

  .product-system.inner-page h1,
  .product-system.inner-page h2,
  .product-system.inner-page h3,
  .product-system.inner-page p,
  .product-system.inner-page .lead,
  .product-system.inner-page .btn {
    overflow-wrap: anywhere;
  }

  .system-hero,
  .agent-topbar,
  .enterprise-system-panel,
  .requirements-panel,
  .purchase-panel,
  .boundary-panel,
  .history-section {
    padding: 22px;
  }

  .workflow-rail,
  .agent-console .form-pane,
  .agent-console .result-pane {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .pipeline-grid,
  .pipeline-grid.six,
  .service-grid,
  .evidence-grid,
  .method-line,
  .pricing-page .refined-price-grid,
  .result-command-grid {
    grid-template-columns: 1fr;
  }

  .product-system.inner-page .nav-actions {
    width: 100%;
  }

  .product-system.inner-page .nav-actions .btn {
    flex: 1 1 auto;
  }
}

/* Target reference implementation for the three supplied dashboard mockups */
.reference-page {
  --ref-bg: #070b12;
  --ref-bg-soft: #0b111a;
  --ref-panel: rgba(17, 24, 34, 0.86);
  --ref-panel-strong: rgba(19, 28, 40, 0.94);
  --ref-line: rgba(148, 163, 184, 0.2);
  --ref-line-strong: rgba(148, 163, 184, 0.32);
  --ref-text: #edf4ff;
  --ref-muted: #94a3b8;
  --ref-soft: #c3cedc;
  --ref-blue: #3d7cff;
  --ref-blue-soft: rgba(61, 124, 255, 0.18);
  --ref-green: #82c86a;
  --ref-gold: #c9d268;
  --ref-orange: #d7832d;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ref-text);
  background:
    radial-gradient(circle at 25% 0%, rgba(49, 91, 142, 0.16), transparent 28%),
    linear-gradient(180deg, #090e16 0%, #06090f 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.reference-page *,
.reference-page *::before,
.reference-page *::after {
  box-sizing: border-box;
}

.reference-page a {
  color: inherit;
  text-decoration: none;
}

.reference-page h1,
.reference-page h2,
.reference-page h3,
.reference-page p {
  margin: 0;
}

.reference-page ul,
.reference-page ol,
.reference-page dl {
  margin: 0;
  padding: 0;
}

.reference-page li {
  list-style: none;
}

.reference-page .account-bar {
  display: none !important;
}

.reference-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(6, 10, 16, 0.9);
  backdrop-filter: blur(18px);
}

.reference-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.reference-nav::-webkit-scrollbar {
  display: none;
}

.reference-nav a,
.workbench-nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ref-muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  padding: 12px 14px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.reference-nav a.active,
.workbench-nav a.active {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.ref-main {
  width: min(100%, 1488px);
  margin: 0 auto;
  padding: 26px 28px 22px;
}

.ref-title-block {
  padding: 2px 0 24px;
}

.ref-title-block h1,
.enterprise-hero-ref h1 {
  color: #f6f9ff;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 780;
  line-height: 1.08;
}

.ref-title-block p,
.enterprise-hero-ref p {
  max-width: 780px;
  margin-top: 10px;
  color: var(--ref-muted);
  font-size: 15px;
  line-height: 1.8;
}

.ref-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ref-quick-actions a,
.ref-quick-actions button,
.workbench-user [data-demo-start] {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(72, 123, 255, 0.45);
  border-radius: 6px;
  color: #f6f9ff;
  background: rgba(61, 124, 255, 0.16);
  font: inherit;
  cursor: pointer;
}

.ref-quick-actions a:nth-child(2),
.ref-quick-actions a:nth-child(4) {
  border-color: var(--ref-line-strong);
  color: var(--ref-soft);
  background: rgba(255,255,255,0.035);
}

.store-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 38px;
  margin-bottom: 28px;
}

.store-flow article {
  position: relative;
  min-height: 114px;
  padding: 20px 18px 18px;
  border: 1px solid var(--ref-line-strong);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(22, 31, 44, 0.92), rgba(13, 20, 30, 0.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.store-flow article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -39px;
  width: 39px;
  height: 2px;
  background: rgba(175, 187, 205, 0.75);
}

.store-flow span {
  display: inline-block;
  margin-right: 16px;
  color: #6fa0ff;
  font-size: 22px;
  font-weight: 780;
}

.store-flow strong {
  color: #fff;
  font-size: 18px;
}

.store-flow p {
  margin-top: 12px;
  color: var(--ref-muted);
  font-size: 14px;
  line-height: 1.55;
}

.production-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 18px;
  margin-bottom: 24px;
}

.matrix-panel,
.confirm-panel,
.sample-flow,
.trust-strip,
.enterprise-hero-ref,
.diagnosis-stages,
.fit-table,
.service-prices,
.case-strip-ref,
.reference-lead-panel,
.input-review,
.topic-panel,
.logic-card {
  border: 1px solid var(--ref-line);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(18, 27, 39, 0.88), rgba(9, 15, 24, 0.9)),
    var(--ref-panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.matrix-panel {
  overflow: hidden;
}

.matrix-head {
  display: grid;
  grid-template-columns: 205px 135px minmax(330px, 1fr) minmax(190px, 0.42fr) 118px;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--ref-line);
  color: var(--ref-muted);
  font-size: 13px;
}

.matrix-head h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}

.matrix-row {
  display: grid;
  grid-template-columns: 205px 135px minmax(330px, 1fr) minmax(190px, 0.42fr) 118px;
  min-width: 0;
  align-items: center;
  padding: 12px 10px 12px 18px;
  border-bottom: 1px solid var(--ref-line);
}

.matrix-row:last-child {
  border-bottom: 0;
}

.agent-name {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
}

.agent-name strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
}

.agent-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 10px 26px rgba(0,0,0,0.24);
}

.blue-icon { background: linear-gradient(135deg, #3155a6, #5d85db); }
.green-icon { background: linear-gradient(135deg, #426d2b, #83b959); }
.gold-icon { background: linear-gradient(135deg, #70733c, #a2a85b); }

.matrix-row ul {
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.72;
  padding-left: 16px;
  min-width: 0;
}

.matrix-row li {
  list-style: disc;
}

.matrix-row > ul:last-of-type {
  padding-right: 12px;
}

.workflow-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(52px, 1fr));
  gap: 6px;
  align-items: center;
  padding-right: 8px;
}

.workflow-chain span {
  position: relative;
  min-height: 50px;
  display: grid;
  place-items: center;
  padding: 7px 5px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  color: #cbd5e1;
  background: rgba(255,255,255,0.055);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.workflow-chain span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 7px;
  height: 1px;
  background: rgba(92, 139, 255, 0.7);
}

.workflow-chain span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 1px solid #6c95ff;
  background: #2f65e8;
}

.ref-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  justify-self: end;
  width: 112px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 5px;
  color: #eaf1ff;
  font-size: 13px;
  white-space: nowrap;
}

.ref-action::after {
  content: "→";
  margin-left: 8px;
  color: #b8c8e6;
}

.confirm-panel {
  padding: 22px 18px;
}

.confirm-panel h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

.confirm-panel > p {
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.confirm-panel article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--ref-line);
  border-radius: 4px;
  background: rgba(255,255,255,0.035);
  margin-bottom: 10px;
}

.confirm-panel article span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 135, 255, 0.68);
  border-radius: 4px;
  color: #75a2ff;
  font-weight: 800;
}

.confirm-panel strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}

.confirm-panel article p {
  color: var(--ref-muted);
  font-size: 12px;
  line-height: 1.5;
}

.sample-flow {
  padding: 18px 18px 20px;
  margin-bottom: 14px;
}

.sample-flow h2 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 14px;
}

.sample-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.05fr 1.1fr;
  gap: 48px;
}

.sample-steps article {
  position: relative;
  min-height: 138px;
  padding: 14px 14px 12px;
  border: 1px solid var(--ref-line-strong);
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
}

.sample-steps article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 58px;
  right: -34px;
  color: #9ba8bb;
  font-size: 26px;
}

.sample-steps strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

.sample-steps p {
  color: var(--ref-muted);
  font-size: 12px;
  line-height: 1.55;
}

.video-placeholder {
  float: left;
  width: 50px;
  height: 70px;
  margin: 0 12px 0 0;
  border-radius: 5px;
  background: linear-gradient(135deg, #34323b, #737071);
}

.video-placeholder span {
  display: block;
  width: 22px;
  height: 22px;
  margin: 24px auto 0;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
}

.score-lines {
  display: grid;
  gap: 8px;
}

.score-lines span {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  color: #b8f1bf;
  font-size: 12px;
}

.score-lines span::before {
  content: "";
  height: 8px;
  width: var(--w);
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d5663, #9aa7b5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.selected-sample div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #4d7dff;
  border-radius: 4px;
  background: rgba(61,124,255,0.12);
  color: #95b6ff;
  font-weight: 700;
}

.script-preview {
  display: grid;
  gap: 9px;
  padding-top: 8px;
}

.script-preview span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #4a5463;
}

.asset-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.asset-mini-grid span {
  min-height: 58px;
  display: grid;
  place-items: end center;
  padding-bottom: 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.055);
  color: var(--ref-muted);
  font-size: 11px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}

.trust-strip article {
  padding: 13px 28px;
  border-right: 1px solid var(--ref-line);
}

.trust-strip article:last-child {
  border-right: 0;
}

.trust-strip strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 4px;
}

.trust-strip span {
  color: var(--ref-muted);
  font-size: 12px;
}

.enterprise-hero-ref {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 640px;
  gap: 32px;
  align-items: center;
  min-height: 186px;
  padding: 28px 24px;
  margin-bottom: 0;
}

.enterprise-hero-ref h1 {
  font-size: clamp(34px, 4vw, 42px);
}

.diagnosis-card {
  padding: 10px 14px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.metric-line {
  display: grid;
  grid-template-columns: 94px minmax(150px, 1fr) 76px 70px;
  gap: 16px;
  align-items: center;
  color: var(--ref-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.metric-line i {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  overflow: hidden;
}

.metric-line i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: linear-gradient(90deg, #3d7cff, #5b82ff);
}

.metric-line strong,
.metric-line b {
  color: #dbe6f8;
  font-weight: 650;
}

.diagnosis-card p {
  display: grid;
  grid-template-columns: 86px 1fr 120px;
  gap: 12px;
  color: #b9c5d7;
  font-size: 13px;
}

.diagnosis-card p span {
  color: var(--ref-muted);
}

.diagnosis-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 0;
  overflow: hidden;
  margin-bottom: 14px;
}

.diagnosis-stages article {
  min-height: 282px;
  padding: 26px 24px 22px;
  border-right: 1px solid var(--ref-line);
}

.diagnosis-stages article:last-child {
  border-right: 0;
}

.stage-no {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: radial-gradient(circle at 30% 20%, #6aa0ff, #2469fb);
}

.diagnosis-stages h2 {
  color: #fff;
  font-size: 19px;
  margin-bottom: 10px;
}

.diagnosis-stages p,
.diagnosis-stages li {
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.65;
}

.diagnosis-stages strong {
  display: block;
  color: #b9c5d7;
  font-size: 13px;
  margin: 16px 0 6px;
}

.diagnosis-stages li {
  list-style: disc;
  margin-left: 18px;
}

.diagnosis-stages em {
  display: inline-flex;
  margin-top: 16px;
  padding: 3px 12px;
  border-radius: 999px;
  color: #aebacc;
  background: rgba(255,255,255,0.055);
  font-style: normal;
  font-size: 12px;
}

.enterprise-lower-grid {
  display: grid;
  grid-template-columns: minmax(500px, 1.05fr) minmax(560px, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.fit-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.fit-col:first-child {
  border-right: 1px solid var(--ref-line);
}

.fit-col h2 {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--ref-line);
  color: #fff;
  font-size: 18px;
}

.good-fit h2 {
  color: #5f91ff;
}

.bad-fit h2 {
  color: #9aa5b5;
}

.fit-col p {
  min-height: 52px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--ref-line);
  color: var(--ref-muted);
  font-size: 14px;
  line-height: 1.45;
}

.fit-note {
  grid-column: 1 / -1;
  padding: 14px 24px;
  color: #c7d0dd;
  font-size: 13px;
}

.service-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.service-prices article {
  min-height: 336px;
  padding: 24px 26px 22px;
  border-right: 1px solid var(--ref-line);
}

.service-prices article:last-child {
  border-right: 0;
}

.service-prices h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.service-prices p {
  color: var(--ref-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.service-prices strong {
  display: block;
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
}

.service-prices strong span {
  font-size: 13px;
}

.service-prices li {
  color: #d8e0ed;
  font-size: 13px;
  line-height: 2;
}

.service-prices li::before {
  content: "✓";
  margin-right: 9px;
  color: #f1ce6d;
}

.service-prices a {
  display: grid;
  place-items: center;
  height: 40px;
  margin-top: 24px;
  border: 1px solid var(--ref-line-strong);
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
}

.case-strip-ref {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1.25fr 160px;
  gap: 0;
  align-items: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.case-strip-ref h2,
.case-strip-ref article,
.case-strip-ref a {
  min-height: 104px;
  padding: 22px 24px;
  border-right: 1px solid var(--ref-line);
}

.case-strip-ref h2 {
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
}

.case-strip-ref h2 span {
  color: var(--ref-muted);
  font-weight: 500;
}

.case-strip-ref strong {
  display: block;
  color: #dbe6f8;
  font-size: 14px;
  margin-bottom: 6px;
}

.case-strip-ref p {
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.45;
}

.case-strip-ref a {
  display: grid;
  place-items: center;
  border-right: 0;
  color: #6ea0ff;
  font-weight: 700;
  font-size: 14px;
}

.case-strip-ref a::after {
  content: "→";
  margin-left: 10px;
}

.reference-lead-panel {
  padding: 24px;
  margin-bottom: 10px;
}

.reference-lead-panel h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 16px;
}

.reference-lead-panel .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.reference-lead-panel .field.full {
  grid-column: 1 / -1;
}

.reference-lead-panel label {
  color: #cbd5e1;
}

.reference-lead-panel input,
.reference-lead-panel select,
.reference-lead-panel textarea {
  width: 100%;
  border: 1px solid var(--ref-line-strong);
  border-radius: 6px;
  background: rgba(4, 9, 16, 0.7);
  color: #fff;
}

.reference-page .btn {
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  padding: 0 18px;
  white-space: nowrap;
}

.reference-page .btn.blue {
  color: #fff;
  border: 1px solid rgba(72, 123, 255, 0.75);
  background: linear-gradient(180deg, #3d7cff, #275ee8);
}

.workbench-header {
  height: 70px;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid var(--ref-line);
  background: rgba(6, 10, 16, 0.96);
}

.workbench-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 820;
}

.workbench-brand span {
  width: 26px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 6px;
  background: linear-gradient(135deg, #176fff, #58a2ff);
  font-weight: 900;
}

.workbench-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.workbench-nav::-webkit-scrollbar {
  display: none;
}

.workbench-user {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #d6deea;
  font-size: 14px;
}

.bell-dot {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid #dce7f5;
  border-radius: 50%;
}

.bell-dot::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ref-blue);
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8f98aa;
  color: #fff;
  font-weight: 750;
}

.workbench-user button {
  border: 0;
  color: #dce7f5;
  background: transparent;
  font: inherit;
}

.workbench-shell {
  min-height: calc(100dvh - 70px);
}

.workbench-grid {
  display: grid;
  grid-template-columns: 264px minmax(520px, 1fr) 334px;
  min-height: 766px;
  border-bottom: 1px solid var(--ref-line);
}

.sidebar-collapsed .workbench-grid {
  grid-template-columns: 86px minmax(520px, 1fr) 334px;
}

.sidebar-collapsed .agent-sidebar {
  padding-inline: 14px;
}

.sidebar-collapsed .agent-sidebar h1,
.sidebar-collapsed .agent-sidebar .stepper div {
  display: none;
}

.agent-sidebar {
  padding: 32px 22px 14px;
  border-right: 1px solid var(--ref-line);
  background: linear-gradient(180deg, rgba(13, 21, 32, 0.86), rgba(8, 13, 21, 0.96));
}

.agent-sidebar h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ref-line);
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.agent-sidebar h1 span {
  width: 20px;
  height: 20px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: #2e7bff;
}

.stepper {
  position: relative;
  display: grid;
  gap: 0;
  padding: 28px 0 44px;
}

.stepper li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  min-height: 92px;
  padding: 0 10px 0 0;
  color: var(--ref-soft);
}

.stepper li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: -4px;
  width: 1px;
  background: rgba(148, 163, 184, 0.45);
}

.stepper li:last-child::before {
  display: none;
}

.stepper li > span {
  position: relative;
  z-index: 1;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.62);
  border-radius: 50%;
  color: #fff;
  background: #0b111a;
  font-weight: 700;
}

.stepper li.done > span,
.stepper li.active > span {
  border-color: transparent;
  background: #2f7cff;
}

.stepper strong {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
}

.stepper p {
  color: var(--ref-muted);
  font-size: 12px;
  line-height: 1.5;
}

.stepper li.active {
  margin-left: -10px;
  padding: 14px 12px 14px 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(61,124,255,0.18), rgba(255,255,255,0.045));
}

.collapse-btn {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--ref-line-strong);
  border-radius: 5px;
  color: #dce7f5;
  background: transparent;
}

.agent-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 26px;
}

.input-review {
  padding: 20px 20px 30px;
}

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

.section-toolbar h2 {
  color: #fff;
  font-size: 18px;
}

.section-toolbar p {
  margin-top: 10px;
  color: var(--ref-muted);
  font-size: 13px;
}

.section-toolbar a,
.section-toolbar button {
  color: #4783ff;
  border: 0;
  background: transparent;
  font-size: 14px;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.35fr 1fr 1.15fr;
  gap: 0;
}

.review-grid article {
  min-height: 58px;
  padding: 0 28px;
  border-right: 1px solid var(--ref-line);
}

.review-grid article:first-child {
  padding-left: 0;
}

.review-grid article:last-child {
  border-right: 0;
}

.review-grid span {
  display: block;
  color: var(--ref-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.review-grid strong {
  color: #f5f8ff;
  font-size: 15px;
  line-height: 1.6;
}

.review-grid a {
  margin-left: 16px;
  color: #4381ff;
}

.topic-panel {
  overflow: hidden;
}

.topic-panel .section-toolbar {
  margin: 0;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--ref-line);
}

.topic-table {
  display: grid;
}

.topic-head,
.topic-row {
  display: grid;
  grid-template-columns: 72px minmax(245px, 1.2fr) 116px minmax(290px, 1fr);
  align-items: center;
  gap: 0;
}

.topic-head {
  min-height: 58px;
  padding: 0 24px;
  border-bottom: 1px solid var(--ref-line);
  color: var(--ref-muted);
  font-size: 14px;
}

.topic-row {
  min-height: 82px;
  padding: 0 24px;
  border-bottom: 1px solid var(--ref-line);
  cursor: pointer;
}

.topic-row:last-child {
  border-bottom: 0;
}

.topic-row input {
  width: 22px;
  height: 22px;
  accent-color: #2f7cff;
}

.topic-row strong {
  color: #fff;
  font-size: 16px;
}

.topic-row em,
.recent-static span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  font-style: normal;
  font-size: 12px;
}

.blue-pill {
  color: #75a2ff;
  background: rgba(61,124,255,0.18);
  border: 1px solid rgba(61,124,255,0.26);
}

.green-pill {
  color: #8fd072;
  background: rgba(78, 160, 73, 0.18);
  border: 1px solid rgba(78, 160, 73, 0.26);
}

.orange-pill {
  color: #e09233;
  background: rgba(215, 131, 45, 0.18);
  border: 1px solid rgba(215, 131, 45, 0.28);
}

.topic-row p {
  color: #c1cad8;
  font-size: 13px;
  line-height: 1.65;
}

.logic-card {
  margin: 26px 24px 26px 0;
  padding: 28px 22px 20px;
}

.logic-card h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}

.logic-card h2 span {
  color: var(--ref-muted);
  font-size: 13px;
}

.logic-card > p {
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 34px;
}

.logic-card dl {
  display: grid;
  gap: 28px;
}

.logic-card dt {
  color: var(--ref-muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.logic-card dd {
  color: #dce6f4;
  font-size: 16px;
}

.logic-card button {
  width: 100%;
  min-height: 45px;
  margin-top: 44px;
  border: 1px solid var(--ref-line-strong);
  border-radius: 5px;
  color: #8792a4;
  background: rgba(255,255,255,0.055);
}

.workbench-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1.05fr 0.95fr;
  min-height: 220px;
  border-bottom: 1px solid var(--ref-line);
  background: linear-gradient(180deg, rgba(11, 18, 28, 0.92), rgba(7, 12, 20, 0.96));
}

.workbench-bottom article {
  padding: 30px 28px;
  border-right: 1px solid var(--ref-line);
}

.workbench-bottom article:last-child {
  border-right: 0;
}

.workbench-bottom h2 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 14px;
}

.recent-static p {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto 90px;
  gap: 14px;
  align-items: center;
  color: #e9eff8;
  margin-bottom: 8px;
}

.recent-static strong {
  font-size: 14px;
  font-weight: 520;
  line-height: 1.5;
}

.recent-static time {
  color: var(--ref-muted);
  font-size: 13px;
}

.recent-static a {
  display: inline-flex;
  margin-top: 12px;
  color: #4f8cff;
  font-size: 14px;
}

.recent-live-list {
  max-height: 128px;
  overflow: auto;
  padding-right: 6px;
}

.recent-live-list .history-item {
  padding: 0 0 10px;
  margin: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--ref-line);
  background: transparent;
}

.recent-live-list .history-item h3 {
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 4px;
}

.recent-live-list .history-item p {
  color: var(--ref-muted);
  font-size: 12px;
  margin: 0 0 6px;
}

.recent-live-list .history-item .result-box {
  max-height: 48px;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #94a3b8;
  background: transparent;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.quota-panel > span {
  display: block;
  color: var(--ref-muted);
  font-size: 13px;
}

.quota-panel strong {
  display: block;
  color: #fff;
  font-size: 30px;
  margin: 2px 0 12px;
}

.quota-bar {
  width: min(100%, 420px);
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  overflow: hidden;
}

.quota-bar i {
  display: block;
  width: 34%;
  height: 100%;
  background: #2876ff;
}

.quota-panel p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 420px;
  margin-top: 20px;
  color: var(--ref-muted);
  font-size: 13px;
}

.save-panel p {
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 26px;
}

.save-panel button {
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 5px;
  color: #fff;
  background: rgba(255,255,255,0.04);
  padding: 0 24px;
  font-size: 15px;
}

.logic-card button:not(:disabled) {
  border-color: rgba(72, 123, 255, 0.62);
  color: #fff;
  background: linear-gradient(180deg, rgba(61,124,255,0.32), rgba(61,124,255,0.16));
  cursor: pointer;
}

.reference-hidden-data {
  display: none !important;
}

@media (max-width: 1240px) {
  .store-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .store-flow article:not(:last-child)::after,
  .sample-steps article:not(:last-child)::after {
    display: none;
  }

  .production-grid,
  .enterprise-hero-ref,
  .enterprise-lower-grid,
  .workbench-grid,
  .workbench-bottom {
    grid-template-columns: 1fr;
  }

  .logic-card {
    margin: 0 26px 26px;
  }

  .agent-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--ref-line);
  }

  .stepper {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stepper li {
    min-height: auto;
    padding: 10px;
    border: 1px solid var(--ref-line);
    border-radius: 5px;
  }

  .stepper li::before {
    display: none;
  }
}

@media (max-width: 920px) {
  .ref-main {
    padding: 22px 16px;
  }

  .store-flow,
  .diagnosis-stages,
  .sample-steps,
  .trust-strip,
  .service-prices,
  .case-strip-ref,
  .review-grid,
  .reference-lead-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .matrix-panel {
    overflow-x: auto;
  }

  .confirm-panel,
  .sample-flow,
  .trust-strip article,
  .case-strip-ref h2,
  .case-strip-ref article,
  .case-strip-ref a {
    border-right: 0;
  }

  .diagnosis-stages article,
  .service-prices article,
  .fit-col:first-child,
  .workbench-bottom article {
    border-right: 0;
    border-bottom: 1px solid var(--ref-line);
  }

  .fit-table {
    grid-template-columns: 1fr;
  }

  .workbench-header {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .workbench-user {
    flex-wrap: wrap;
  }

  .agent-stage {
    padding: 16px;
  }

  .topic-head {
    display: none;
  }

  .topic-row {
    grid-template-columns: 34px 1fr;
    gap: 12px;
    min-height: auto;
    padding: 18px;
  }

  .topic-row em,
  .topic-row p {
    grid-column: 2;
  }

  .recent-static p {
    grid-template-columns: 1fr;
  }

  .metric-line,
  .diagnosis-card p {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .reference-nav a,
  .workbench-nav a {
    font-size: 14px;
    padding: 10px 11px;
  }

  .ref-title-block h1,
  .enterprise-hero-ref h1 {
    font-size: 30px;
  }

  .store-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

/* Script Agent 7-step conversational flow */
.script-flow-body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, #070b11 0%, #090e15 50%, #05080d 100%);
  background-size: 64px 64px, 64px 64px, auto;
}

.script-flow-page {
  width: min(100% - 48px, 1520px);
  margin: 0 auto;
  padding: 26px 0 34px;
}

.script-flow-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  min-height: 96px;
  margin: 0 0 22px;
  padding: 10px 14px 0;
  scrollbar-width: none;
}

.script-flow-progress::-webkit-scrollbar {
  display: none;
}

.script-flow-progress::before {
  content: "";
  position: absolute;
  left: calc(7.14% + 32px);
  right: calc(7.14% + 32px);
  top: 31px;
  border-top: 2px dashed rgba(124, 139, 164, 0.34);
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #8793a6;
  cursor: pointer;
}

.flow-step span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 159, 183, 0.18);
  border-radius: 50%;
  color: #8c97a9;
  background: linear-gradient(180deg, #202832, #151b24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 16px;
  font-weight: 850;
}

.flow-step strong {
  color: inherit;
  font-size: 15px;
  line-height: 1;
}

.flow-step.is-active span,
.flow-step.is-done span {
  color: #fff;
  border-color: rgba(97, 151, 255, 0.8);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(180deg, #3d83ff, #125bea);
  box-shadow:
    0 0 0 5px rgba(47, 114, 255, 0.16),
    0 12px 28px rgba(0, 87, 255, 0.3);
}

.flow-step.is-active strong,
.flow-step.is-done strong {
  color: #f3f7ff;
}

.script-flow-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.script-flow-main,
.script-flow-side {
  min-width: 0;
}

.script-flow-main {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 25, 37, 0.92), rgba(9, 14, 22, 0.94)),
    rgba(9, 14, 22, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.step-panel {
  display: none;
  min-height: 520px;
  padding: clamp(24px, 3vw, 42px);
}

.step-panel.is-active {
  display: grid;
  align-content: start;
  gap: 22px;
}

.agent-message {
  max-width: 780px;
}

.agent-message span,
.side-card > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: #6fa0ff;
  font-size: 13px;
  font-weight: 850;
}

.agent-message h1 {
  margin: 10px 0 12px;
  color: #f6f9ff;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

.agent-message p {
  margin: 0;
  max-width: 680px;
  color: #aab5c4;
  font-size: 16px;
  line-height: 1.85;
}

.material-lanes {
  display: grid;
  gap: 14px;
}

.material-lane,
.dialog-card,
.analysis-board article,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.036);
}

.material-lane {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px minmax(260px, 0.95fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.material-lane.optional {
  border-color: rgba(199, 145, 49, 0.26);
  background: rgba(255, 255, 255, 0.032);
}

.material-lane > div:first-child {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 6px 14px;
  align-items: center;
}

.lane-icon {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #eaf1ff;
  background: linear-gradient(135deg, rgba(47, 114, 255, 0.72), rgba(79, 107, 156, 0.72));
  font-size: 13px;
  font-weight: 900;
}

.material-lane strong {
  color: #f4f8ff;
  font-size: 18px;
}

.material-lane p {
  grid-column: 2;
  margin: 0;
  color: #8e9bad;
  font-size: 13px;
  line-height: 1.55;
}

.script-flow-body .file-drop {
  min-height: 54px;
}

.material-lane textarea {
  width: 100%;
  min-height: 78px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #eef3f8;
  background: rgba(255, 255, 255, 0.05);
  resize: vertical;
}

.material-lane textarea::placeholder {
  color: rgba(226, 232, 240, 0.42);
}

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

.analysis-board article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 188px;
  padding: 20px;
}

.analysis-board strong,
.dialog-card strong {
  color: #f5f8ff;
  font-size: 18px;
}

.analysis-board p,
.dialog-card p {
  margin: 0;
  color: #9aa6b7;
  font-size: 14px;
  line-height: 1.75;
}

.soft-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.soft-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f67ff, #67a3ff);
}

.status-chip {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(97, 151, 255, 0.3);
  border-radius: 6px;
  color: #9ebcff;
  background: rgba(47, 114, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.dialog-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.dialog-card.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dialog-card .btn {
  width: fit-content;
}

.dialog-card.split .btn,
.result-actions .btn {
  width: 100%;
}

.dialog-card input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #eef3f8;
  background: rgba(255, 255, 255, 0.052);
}

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

.viral-grid button {
  min-height: 60px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: #dce6f5;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  cursor: pointer;
}

.viral-grid button:hover,
.viral-grid button.is-selected {
  border-color: rgba(97, 151, 255, 0.58);
  color: #fff;
  background: rgba(47, 114, 255, 0.14);
}

.flow-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.script-flow-body .result-box {
  min-height: 260px;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.flow-result-dock {
  padding: 0 clamp(24px, 3vw, 42px) clamp(24px, 3vw, 42px);
}

.script-flow-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.side-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.side-card h2 {
  margin: -6px 0 0;
  color: #f6f9ff;
  font-size: 20px;
}

.side-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.side-card dt,
.side-card label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #9aa6b7;
  font-size: 13px;
  font-weight: 750;
}

.side-card dd {
  margin: 0;
}

.compact-fields {
  display: grid;
  gap: 10px;
}

.side-card input,
.side-card select,
.side-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #eef3f8;
  background: rgba(255, 255, 255, 0.052);
}

.side-card textarea {
  min-height: 82px;
  resize: vertical;
}

.side-card input::placeholder,
.side-card textarea::placeholder,
.dialog-card input::placeholder {
  color: rgba(226, 232, 240, 0.38);
}

.side-card input:focus,
.side-card select:focus,
.side-card textarea:focus,
.material-lane textarea:focus,
.dialog-card input:focus {
  outline: none;
  border-color: rgba(97, 151, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(47, 114, 255, 0.14);
}

.script-flow-body .mini-result-card {
  border-color: rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.script-flow-body .mini-result-card:hover {
  border-color: rgba(97, 151, 255, 0.52);
  background: rgba(47, 114, 255, 0.1);
}

@media (max-width: 1180px) {
  .script-flow-shell {
    grid-template-columns: 1fr;
  }

  .script-flow-side {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .material-lane {
    grid-template-columns: 1fr;
  }

  .material-lane p {
    grid-column: 2;
  }
}

@media (max-width: 920px) {
  .script-flow-page {
    width: min(100% - 28px, 1520px);
    padding-top: 18px;
  }

  .script-flow-progress {
    overflow-x: auto;
    grid-template-columns: repeat(7, 92px);
    padding-bottom: 12px;
  }

  .script-flow-progress::before {
    left: 60px;
    right: auto;
    width: 600px;
  }

  .script-flow-side,
  .analysis-board,
  .viral-grid {
    grid-template-columns: 1fr;
  }

  .step-panel {
    min-height: 0;
    padding: 24px 18px;
  }

  .agent-message h1 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .script-flow-body .nav-actions {
    display: none;
  }

  .dialog-card.split,
  .flow-actions,
  .result-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .flow-actions .btn,
  .result-actions .btn,
  .dialog-card .btn {
    width: 100%;
  }

  .material-lane > div:first-child {
    grid-template-columns: 40px 1fr;
  }

  .lane-icon {
    width: 40px;
    height: 40px;
  }
}

/* 2026 front-stage redesign: intake first, knowledge base second, generation third. */
.intake-home {
  --home-bg: #050607;
  --home-panel: rgba(255, 255, 255, 0.065);
  --home-panel-strong: rgba(255, 255, 255, 0.105);
  --home-line: rgba(255, 255, 255, 0.13);
  --home-muted: #aab4bd;
  --home-accent: #2f72ff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(ellipse at 76% 12%, rgba(47, 114, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #050607 0%, #0a0c0f 54%, #050607 100%);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.intake-home .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 7, 0.88);
}

.intake-home .account-bar,
.knowledge-agent-body .account-bar {
  display: none;
}

.intake-home .nav {
  width: min(100% - 48px, 1500px);
  max-width: none;
}

.intake-home-page {
  width: min(100% - 56px, 1500px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) 0 clamp(58px, 7vw, 90px);
}

.intake-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.72fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  min-height: min(760px, calc(100dvh - 112px));
}

.intake-hero-copy {
  display: grid;
  align-content: center;
  gap: 24px;
  min-width: 0;
}

.kicker {
  margin: 0;
  color: #8fb0ff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intake-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #f8fbff;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intake-hero .lead {
  max-width: 760px;
  margin: 0;
  color: var(--home-muted);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.75;
}

.intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pipeline-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
}

.pipeline-strip article,
.intake-console,
.proof-wall,
.knowledge-grid article,
.studio-panel,
.portrait-card,
.model-preview,
.chat-question,
.readiness-card,
.knowledge-check-grid article {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pipeline-strip article {
  min-height: 132px;
  padding: 18px;
}

.pipeline-strip span,
.knowledge-grid span,
.knowledge-check-grid span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  color: #8fb0ff;
  font-size: 12px;
  font-weight: 900;
}

.pipeline-strip strong,
.knowledge-grid strong,
.knowledge-check-grid strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 19px;
}

.pipeline-strip p,
.knowledge-grid p,
.knowledge-check-grid p {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.62;
}

.intake-console {
  align-self: center;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2vw, 28px);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(47, 114, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.036);
}

.console-head {
  display: grid;
  gap: 6px;
  padding-bottom: 6px;
}

.console-head span {
  color: #8fb0ff;
  font-size: 13px;
  font-weight: 850;
}

.console-head strong {
  color: #fff;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.2;
}

.intake-console label {
  display: grid;
  gap: 8px;
  color: #d7dee8;
  font-size: 14px;
  font-weight: 800;
}

.intake-console textarea,
.intake-console input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(185, 198, 216, 0.22);
  border-radius: 8px;
  color: #f3f7ff;
  background: rgba(255, 255, 255, 0.058);
}

.intake-console textarea {
  min-height: 82px;
  resize: vertical;
}

.intake-console textarea::placeholder,
.intake-console input::placeholder {
  color: rgba(226, 232, 240, 0.44);
}

.intake-console textarea:focus,
.intake-console input:focus {
  outline: none;
  border-color: rgba(95, 147, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(47, 114, 255, 0.14);
}

.console-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.proof-wall,
.studio-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 0.62fr);
  gap: 22px;
  margin-top: clamp(28px, 4vw, 54px);
}

.proof-wall {
  padding: clamp(22px, 3vw, 38px);
}

.proof-copy h2,
.section-title h2,
.studio-panel h2 {
  max-width: 760px;
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.12;
}

.proof-copy p:not(.kicker),
.studio-panel p {
  margin: 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.76;
}

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

.proof-images figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.proof-images img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
}

.proof-images figcaption {
  padding: 12px;
  color: #dbe6f3;
  font-size: 13px;
  font-weight: 800;
}

.knowledge-map {
  margin-top: clamp(34px, 5vw, 76px);
}

.section-title {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
}

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

.knowledge-grid article {
  min-height: 184px;
  padding: 20px;
}

.studio-preview {
  align-items: stretch;
}

.studio-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 22px;
  padding: clamp(22px, 3vw, 38px);
}

.model-preview {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.model-preview span {
  color: #8fb0ff;
  font-size: 13px;
  font-weight: 850;
}

.model-preview strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.055);
  font-size: 14px;
}

.portrait-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.86) contrast(1.04);
}

.portrait-card div {
  padding: 18px;
}

.portrait-card strong {
  color: #fff;
  font-size: 18px;
}

.portrait-card p {
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.62;
}

.knowledge-agent-body {
  --home-line: rgba(255, 255, 255, 0.13);
}

.knowledge-agent-body .script-flow-progress {
  margin-bottom: 16px;
}

.knowledge-shell {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.intake-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: start;
}

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

.chat-question {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(220px, 1fr) 148px;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.chat-question.optional {
  border-color: rgba(143, 176, 255, 0.2);
}

.chat-question div {
  display: grid;
  gap: 6px;
}

.chat-question div span {
  color: #8fb0ff;
  font-size: 12px;
  font-weight: 900;
}

.chat-question strong {
  color: #f7fbff;
  font-size: 17px;
  line-height: 1.32;
}

.chat-question textarea {
  width: 100%;
  min-height: 76px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #eef3f8;
  background: rgba(255, 255, 255, 0.052);
  resize: vertical;
}

.chat-question textarea::placeholder {
  color: rgba(226, 232, 240, 0.4);
}

.chat-question textarea:focus {
  outline: none;
  border-color: rgba(97, 151, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(47, 114, 255, 0.14);
}

.readiness-card {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.readiness-card > span {
  color: #8fb0ff;
  font-size: 13px;
  font-weight: 850;
}

.readiness-card strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.readiness-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.readiness-card li {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  color: #9aa6b7;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 800;
}

.readiness-card li::after {
  content: "待补";
  color: #8b96a8;
  font-size: 12px;
}

.readiness-card li.is-ready {
  border-color: rgba(47, 114, 255, 0.38);
  color: #f2f6ff;
  background: rgba(47, 114, 255, 0.12);
}

.readiness-card li.is-ready::after {
  content: "已填";
  color: #9fbbff;
}

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

.knowledge-check-grid article {
  min-height: 160px;
  padding: 18px;
}

.knowledge-agent-body .analysis-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1320px) {
  .intake-hero,
  .proof-wall,
  .studio-preview,
  .studio-panel,
  .intake-workbench {
    grid-template-columns: 1fr;
  }

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

  .readiness-card {
    position: static;
  }
}

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

  .chat-question {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .intake-home .nav,
  .intake-home-page {
    width: min(100% - 28px, 1500px);
  }

  .intake-hero {
    min-height: auto;
  }

  .intake-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .proof-images,
  .console-footer,
  .knowledge-grid,
  .knowledge-check-grid,
  .knowledge-agent-body .analysis-board {
    grid-template-columns: 1fr;
  }

  .pipeline-strip {
    display: flex;
    overflow-x: auto;
    max-width: calc(100vw - 28px);
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .pipeline-strip::-webkit-scrollbar {
    display: none;
  }

  .pipeline-strip article {
    flex: 0 0 168px;
    min-height: 112px;
    padding: 14px;
  }

  .pipeline-strip strong {
    font-size: 16px;
  }

  .pipeline-strip p {
    font-size: 12px;
    line-height: 1.48;
  }

  .intake-console .btn,
  .console-footer .btn {
    width: 100%;
  }
}
