:root {
  --paper: #f7f8f6;
  --paper-deep: #eef0ec;
  --paper-light: #ffffff;
  --ink: #19251f;
  --ink-soft: #526159;
  --forest: #173d33;
  --forest-light: #2d5b4d;
  --forest-wash: #dce6df;
  --vermilion: #df573e;
  --vermilion-dark: #ba412e;
  --line: #c9c2b5;
  --line-dark: #9d9a8e;
  --warning: #a45b14;
  --success: #20664d;
  --body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --display: var(--body);
  --rail-width: 268px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  display: none;
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--forest);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--vermilion) 70%, transparent);
  outline-offset: 3px;
}

.side-rail {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--rail-width);
  padding: 28px 20px 24px;
  color: #f2efe7;
  background: var(--forest);
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.side-rail::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 92px;
  height: 92px;
  border-top: 1px solid rgba(242, 239, 231, .22);
  border-left: 1px solid rgba(242, 239, 231, .22);
  content: "";
  pointer-events: none;
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  width: fit-content;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .14em;
}

.brand small {
  margin-top: 7px;
  color: #bfcfc6;
  font-size: 10px;
  letter-spacing: .12em;
}

.brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  transform: rotate(45deg);
}

.brand-mark i {
  position: absolute;
  border: 1px solid currentColor;
  inset: 0;
}

.brand-mark i:nth-child(2) {
  inset: 7px;
}

.brand-mark i:nth-child(3) {
  inset: 14px;
  background: var(--vermilion);
  border-color: var(--vermilion);
}

.primary-nav {
  margin-top: clamp(44px, 9vh, 90px);
}

.nav-label,
.eyebrow {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-label {
  margin: 0 14px 12px;
  color: #91aa9f;
}

.nav-label--secondary {
  margin-top: 28px;
}

.nav-item {
  position: relative;
  display: grid;
  min-height: 49px;
  padding: 0 13px;
  color: #b9c9c1;
  border-bottom: 1px solid rgba(242, 239, 231, .1);
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  transition: color .25s ease, transform .25s var(--ease-out);
}

.nav-item:first-of-type {
  border-top: 1px solid rgba(242, 239, 231, .1);
}

.nav-item::before {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 4px;
  height: 0;
  background: var(--vermilion);
  transform: translateY(-50%);
  transition: height .25s var(--ease-out);
  content: "";
}

.nav-item svg {
  font-size: 19px;
}

.nav-item span {
  font-size: 14px;
}

.nav-item em {
  color: #789388;
  font-family: var(--display);
  font-size: 11px;
  font-style: normal;
}

.nav-item:hover,
.nav-item.is-active {
  color: #fff9ec;
  transform: translateX(3px);
}

.nav-item.is-active::before {
  height: 24px;
}

.nav-item.is-active em {
  color: var(--vermilion);
}

.rail-foot {
  position: relative;
  z-index: 1;
  padding-right: 8px;
}

.rail-foot p {
  max-width: 195px;
  margin: 10px 0 0;
  color: #8fa69c;
  font-size: 11px;
  line-height: 1.6;
}

.system-state {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #d9e5df;
  font-size: 11px;
  letter-spacing: .06em;
}

.system-state span,
.generated-state i,
.recovered-account dd i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #77c49d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(119, 196, 157, .12);
}

.mobile-header,
.rail-scrim {
  display: none;
}

.workspace {
  min-height: 100vh;
  margin-left: var(--rail-width);
}

.context-bar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 82px;
  padding: 0 clamp(28px, 5vw, 76px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  justify-content: space-between;
  align-items: center;
}

.context-bar > div:first-child {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.context-index {
  color: var(--vermilion);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.context-bar h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.context-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.context-meta time {
  min-width: 44px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.status-chip {
  padding: 5px 8px;
  color: var(--vermilion-dark);
  border: 1px solid color-mix(in srgb, var(--vermilion) 45%, var(--line));
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.view-stack {
  width: min(100%, 1500px);
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 96px) clamp(28px, 5vw, 76px) 84px;
}

.view {
  animation: view-in .55s var(--ease-out) both;
}

.view.is-leaving {
  animation: view-out .18s ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes view-out {
  to { opacity: 0; transform: translateY(-8px); }
}

.home-lead {
  display: grid;
  min-height: min(610px, calc(100vh - 170px));
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .65fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: center;
}

.lead-copy {
  padding: 40px 0 80px;
}

.lead-copy h1,
.page-heading h1 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(42px, 5.8vw, 86px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.045em;
}

.lead-text {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 19px);
}

.lead-actions {
  display: flex;
  margin-top: 42px;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

[data-view="home"][data-setup-state="pending"] #returning-home-eyebrow {
  color: var(--vermilion-dark);
}

[data-view="home"][data-setup-state="pending"] #returning-home-title {
  max-width: 720px;
}

[data-view="home"][data-setup-state="pending"] .balance-ticket {
  box-shadow: 18px 18px 0 color-mix(in srgb, var(--vermilion) 24%, var(--paper-deep));
}

.button,
.text-link,
.sample-button {
  display: inline-flex;
  border: 0;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, transform .25s var(--ease-out);
}

.button svg,
.text-link svg {
  transition: transform .25s var(--ease-out);
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.button:hover svg,
.text-link:hover svg {
  transform: translateX(4px);
}

.button--primary {
  color: #fff8ec;
  background: var(--vermilion);
}

.button--primary:hover {
  background: var(--vermilion-dark);
}

.button--ink {
  color: var(--paper-light);
  background: var(--forest);
}

.button--ink:hover {
  background: var(--forest-light);
}

.text-link {
  min-height: 42px;
  padding: 0;
  gap: 10px;
  color: var(--forest);
  background: transparent;
  border-bottom: 1px solid var(--forest);
  font-size: 13px;
  font-weight: 600;
}

.text-link svg {
  font-size: 15px;
}

.balance-ticket {
  position: relative;
  padding: 24px 24px 30px;
  color: #f7f1e4;
  background: var(--forest);
  box-shadow: 18px 18px 0 var(--paper-deep);
  transform: rotate(1.5deg);
}

.balance-ticket::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(247, 241, 228, .17);
  content: "";
  pointer-events: none;
}

.ticket-head {
  position: relative;
  display: flex;
  padding-bottom: 14px;
  color: #9eb2a8;
  border-bottom: 1px dashed rgba(247, 241, 228, .35);
  justify-content: space-between;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .09em;
}

.ticket-term {
  padding: 3px 7px;
  border: 1px solid rgba(247, 241, 228, .3);
  font-size: 9px;
  letter-spacing: .08em;
}

.ticket-value {
  position: relative;
  padding: 44px 0 35px;
  text-align: center;
}

.ticket-value strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(42px, 4vw, 62px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ticket-value span {
  color: #a9beb4;
  font-size: 11px;
  letter-spacing: .12em;
}

.balance-ticket dl {
  position: relative;
  display: grid;
  margin: 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(247, 241, 228, .35);
  grid-template-columns: repeat(3, 1fr);
}

.balance-ticket dl div {
  text-align: center;
}

.balance-ticket dt {
  color: #91aa9f;
  font-size: 9px;
}

.balance-ticket dd {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 13px;
}

.ticket-cut {
  position: absolute;
  right: -10px;
  bottom: 50px;
  width: 20px;
  height: 20px;
  background: var(--paper);
  border-radius: 50%;
}

.guided-start,
.returning-actions {
  padding: clamp(64px, 8vw, 104px) 0;
  border-bottom: 1px solid var(--line);
}

.guided-start-head {
  display: flex;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--ink);
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.guided-start-head h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.25;
}

.guided-start-head > p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.decision-list {
  border-bottom: 1px solid var(--line);
}

.decision-card {
  display: grid;
  min-height: 116px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 58px minmax(0, 1fr) 36px;
  gap: 20px;
  align-items: center;
  transition: color .25s ease, background-color .25s ease, padding .3s var(--ease-out);
}

.decision-card:last-child {
  border-bottom: 0;
}

.decision-card > span,
.returning-action > span {
  color: var(--vermilion);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.decision-card strong,
.returning-action strong {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 25px);
}

.decision-card p,
.returning-action p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.decision-card > svg,
.returning-action > svg {
  justify-self: end;
  font-size: 23px;
  transition: transform .25s var(--ease-out);
}

.decision-card:hover,
.returning-action:hover {
  padding-right: 20px;
  padding-left: 20px;
  background: var(--paper-light);
}

.decision-card:hover > svg,
.returning-action:hover > svg {
  transform: translateX(6px);
}

.decision-card--primary {
  margin: 18px 0 0;
  padding-right: 22px;
  padding-left: 22px;
  color: var(--paper-light);
  background: var(--forest);
  border-bottom-color: var(--forest);
}

.decision-card--primary p,
.decision-card--primary > span {
  color: #a9beb4;
}

.decision-card--primary:hover {
  color: var(--paper-light);
  background: var(--forest-light);
}

.journey-progress {
  display: grid;
  margin: 42px 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.journey-progress li {
  position: relative;
  display: grid;
  min-height: 92px;
  padding: 18px;
  background: var(--paper-light);
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.journey-progress li > span {
  display: grid;
  width: 31px;
  height: 31px;
  color: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  place-items: center;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
}

.journey-progress strong {
  display: block;
  font-family: var(--display);
  font-size: 13px;
}

.journey-progress p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.journey-progress li.is-complete > span {
  color: var(--paper-light);
  background: var(--forest);
  border-color: var(--forest);
}

.journey-progress li.is-complete > span::before {
  content: "✓";
}

.journey-progress li.is-complete > span {
  font-size: 0;
}

.journey-progress li.is-complete > span::before {
  font-family: var(--body);
  font-size: 13px;
}

.journey-progress li.is-current {
  box-shadow: inset 0 -3px var(--vermilion);
}

.journey-progress li.is-current > span {
  color: var(--paper-light);
  background: var(--vermilion);
  border-color: var(--vermilion);
}

.journey-progress--compact {
  margin: 0 0 clamp(42px, 6vw, 70px);
}

.view[data-view="activate"] .page-heading {
  margin-bottom: 34px;
}

.journey-progress--config {
  margin-top: -30px;
}

.two-minute-guide {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-minute-guide summary {
  display: grid;
  min-height: 90px;
  padding: 16px 8px;
  cursor: pointer;
  grid-template-columns: 42px 1fr auto;
  gap: 16px;
  align-items: center;
  list-style: none;
}

.two-minute-guide summary::-webkit-details-marker {
  display: none;
}

.two-minute-guide summary > span {
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--forest);
  border: 1px solid var(--line-dark);
  place-items: center;
}

.two-minute-guide summary strong {
  font-family: var(--display);
  font-size: 16px;
}

.two-minute-guide summary p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.two-minute-guide summary em {
  color: var(--vermilion-dark);
  font-size: 10px;
  font-style: normal;
}

.two-minute-guide[open] summary em {
  font-size: 0;
}

.two-minute-guide[open] summary em::after {
  content: "收起";
  font-size: 10px;
}

.two-minute-guide > ol {
  display: grid;
  margin: 0;
  padding: 0 8px 28px 66px;
  list-style: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
}

.two-minute-guide li {
  display: grid;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.two-minute-guide li > span {
  color: var(--vermilion);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
}

.two-minute-guide li strong {
  font-family: var(--display);
  font-size: 13px;
}

.two-minute-guide li p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.returning-action-list {
  display: grid;
  margin-top: 18px;
  border: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}

.returning-action {
  display: grid;
  min-height: 150px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  transition: color .25s ease, background-color .25s ease, padding .3s var(--ease-out);
}

.returning-action:nth-child(2n) {
  border-right: 0;
}

.returning-action:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.returning-action--primary {
  color: var(--paper-light);
  background: var(--forest);
}

.returning-action--primary p,
.returning-action--primary > span {
  color: #a9beb4;
}

.returning-action--primary:hover {
  color: var(--paper-light);
  background: var(--forest-light);
}

.workflow {
  display: grid;
  padding: clamp(70px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(230px, .8fr) 2fr;
  gap: clamp(40px, 8vw, 120px);
}

.section-heading h2,
.directory-head h2,
.operation-notes h2,
.result-sheet h2,
.preview-empty h2,
.config-preview h2,
.recovered-account h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.3;
}

.workflow-line {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
}

.workflow-line::before {
  position: absolute;
  top: 19px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: var(--line-dark);
  content: "";
}

.workflow-line li {
  position: relative;
}

.workflow-line li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 39px;
  height: 39px;
  color: var(--paper-light);
  background: var(--forest);
  border-radius: 50%;
  place-items: center;
  font-family: var(--display);
  font-size: 11px;
}

.workflow-line li:nth-child(2) > span {
  background: var(--vermilion);
}

.workflow-line li div {
  margin-top: 22px;
}

.workflow-line strong {
  font-family: var(--display);
  font-size: 18px;
}

.workflow-line p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.service-directory {
  padding: clamp(70px, 9vw, 120px) 0;
}

.directory-head {
  display: flex;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.directory-head > p {
  max-width: 410px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.directory-list a {
  display: grid;
  min-height: 104px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 75px 1fr 40px;
  gap: 20px;
  align-items: center;
  transition: color .25s ease, padding .3s var(--ease-out), background-color .25s ease;
}

.directory-list a:hover {
  padding-right: 18px;
  padding-left: 18px;
  color: var(--forest);
  background: var(--paper-light);
}

.directory-list a > span {
  color: var(--vermilion);
  font-family: var(--display);
  font-size: 12px;
}

.directory-list strong {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 27px);
}

.directory-list p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.directory-list svg {
  justify-self: end;
  font-size: 24px;
  transition: transform .25s var(--ease-out);
}

.directory-list a:hover svg {
  transform: translateX(7px);
}

.client-band {
  display: flex;
  min-height: 90px;
  margin-bottom: 30px;
  padding: 20px 26px;
  color: #dfe9e3;
  background: var(--forest);
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.client-band > span {
  margin-right: auto;
  color: #8fa99d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.client-band strong {
  font-family: var(--display);
  font-size: 13px;
}

.client-band i {
  width: 3px;
  height: 3px;
  background: var(--vermilion);
  border-radius: 50%;
}

.page-heading {
  max-width: 770px;
  margin-bottom: clamp(54px, 7vw, 90px);
}

.page-heading h1 {
  font-size: clamp(44px, 6vw, 82px);
}

.page-heading > p:last-child,
.page-heading--wide > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 18px);
}

.page-heading--wide {
  display: flex;
  max-width: none;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
}

.page-heading--wide > p {
  max-width: 420px;
  margin-bottom: 10px;
}

.operation-grid {
  display: grid;
  border-top: 2px solid var(--ink);
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
}

.operation-form {
  position: relative;
  min-height: 430px;
  padding: clamp(36px, 5vw, 68px) clamp(30px, 5vw, 76px) 56px 0;
  border-right: 1px solid var(--line);
}

.operation-form fieldset {
  max-width: 620px;
  margin: 0;
  padding: 0;
  border: 0;
}

.operation-form legend,
.builder-step h2 {
  padding: 0;
  font-family: var(--display);
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 700;
}

.field-note {
  margin: 10px 0 32px;
  color: var(--ink-soft);
  font-size: 13px;
}

.form-number {
  position: absolute;
  z-index: -1;
  right: 30px;
  bottom: -25px;
  color: color-mix(in srgb, var(--line) 55%, transparent);
  font-family: var(--display);
  font-size: clamp(100px, 15vw, 210px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.field {
  display: block;
  margin-top: 24px;
}

.field > span,
.lookup-bar label > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.field input,
.lookup-bar input {
  width: 100%;
  height: 58px;
  padding: 0 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  outline: 0;
  transition: border-color .2s ease, background-color .2s ease;
}

.field input::placeholder,
.lookup-bar input::placeholder {
  color: #989b92;
}

.field input:focus,
.lookup-bar input:focus {
  background: color-mix(in srgb, var(--paper-light) 65%, transparent);
  border-color: var(--forest);
  box-shadow: 0 2px 0 var(--forest);
}

.field input.is-invalid,
.lookup-bar input.is-invalid {
  border-color: var(--vermilion);
  box-shadow: 0 2px 0 var(--vermilion);
}

.form-error {
  margin: 0;
  color: #a43f35;
  font-size: 12px;
  line-height: 1.6;
}

.button.is-loading {
  cursor: wait;
  opacity: .72;
}

.field small {
  display: block;
  margin-top: 9px;
  color: #757b74;
  font-size: 11px;
}

.submit-button {
  min-width: 210px;
  margin-top: 42px;
}

.agreement-consent {
  max-width: 520px;
  margin: 13px 0 0;
  color: #777b74;
  font-size: 10px;
  line-height: 1.7;
}

.agreement-consent a {
  color: var(--forest-light);
  border-bottom: 1px solid var(--line-dark);
}

.agreement-consent a:hover {
  color: var(--vermilion-dark);
  border-color: var(--vermilion);
}

.submit-button.is-loading {
  cursor: wait;
  opacity: .75;
}

.submit-button.is-loading svg {
  animation: loading-arrow .7s ease-in-out infinite alternate;
}

@keyframes loading-arrow {
  to { transform: translateX(8px); }
}

.operation-notes {
  padding: clamp(36px, 5vw, 68px) 0 56px clamp(30px, 5vw, 76px);
}

.operation-notes > h2 {
  max-width: 380px;
}

.indexed-notes {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.indexed-notes li {
  display: grid;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 38px 1fr;
  gap: 14px;
}

.indexed-notes li:last-child {
  border-bottom: 1px solid var(--line);
}

.indexed-notes span {
  color: var(--vermilion);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

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

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

.result-sheet {
  display: grid;
  margin-top: 40px;
  padding: clamp(28px, 4vw, 48px);
  color: var(--paper-light);
  background: var(--forest);
  grid-template-columns: 56px minmax(220px, 1fr) minmax(260px, .9fr) auto;
  gap: 26px;
  align-items: center;
  animation: result-open .55s var(--ease-out) both;
}

@keyframes result-open {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-mark {
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--paper-light);
  background: var(--success);
  border-radius: 50%;
  place-items: center;
}

.result-sheet .eyebrow {
  color: #8fb2a2;
}

.result-sheet h2 {
  margin-top: 5px;
  font-size: 24px;
}

.package-result-title,
.package-title-line {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.package-duration {
  display: inline-flex;
  min-height: 22px;
  padding: 2px 8px;
  color: var(--forest);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

.package-duration--inverse {
  color: #b9cbc2;
  background: transparent;
  border-color: rgba(242, 239, 231, .28);
}

.package-result-title h2,
.package-title-line strong {
  margin: 0;
}

.result-sheet p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #b9cbc2;
  font-size: 12px;
}

.result-sheet .completion-warning {
  margin-top: 16px;
  padding: 11px 13px;
  color: #fff1df;
  background: rgba(223, 87, 62, .16);
  border-left: 3px solid var(--vermilion);
  line-height: 1.65;
}

.result-sheet .completion-warning strong {
  display: block;
  color: #fff8ec;
}

.result-sheet .button--ink {
  color: var(--forest);
  background: var(--paper-light);
}

.key-output {
  display: flex;
  min-width: 0;
  border-bottom: 1px solid rgba(242, 239, 231, .38);
  align-items: center;
}

.key-output code {
  min-width: 0;
  padding: 16px 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.key-output button {
  display: inline-flex;
  margin-left: auto;
  padding: 10px;
  color: #abc0b6;
  background: transparent;
  border: 0;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
}

.lookup-bar {
  display: grid;
  margin-bottom: 48px;
  padding: 30px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: end;
}

.lookup-bar input {
  height: 48px;
}

.sample-button {
  min-height: 40px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border-bottom: 1px dashed var(--line-dark);
  font-size: 11px;
}

.sample-button:hover {
  color: var(--vermilion-dark);
  border-color: var(--vermilion);
}

.balance-report {
  animation: result-open .55s var(--ease-out) both;
}

.report-main {
  display: grid;
  padding: clamp(34px, 5vw, 62px);
  color: var(--paper-light);
  background: var(--forest);
  grid-template-columns: 180px 1fr;
  gap: 15px 40px;
  align-items: end;
}

.report-main .eyebrow {
  color: #94ab9f;
  align-self: start;
}

.report-total {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.report-total strong {
  font-family: var(--display);
  font-size: clamp(58px, 8vw, 110px);
  line-height: .8;
  font-variant-numeric: tabular-nums;
}

.report-total span {
  color: #a9beb3;
  font-size: 13px;
}

.report-meta {
  grid-column: 2;
  display: flex;
  gap: 22px;
  color: #a8bdb3;
  font-size: 11px;
  flex-wrap: wrap;
}

.report-meta b {
  color: #8ed1ad;
}

.credit-ledger {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.ledger-head,
.ledger-row {
  display: grid;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(190px, 1fr) minmax(150px, 1.1fr) minmax(130px, .6fr);
  gap: 30px;
  align-items: center;
}

.ledger-head {
  grid-template-columns: 1fr auto;
}

.ledger-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
}

.ledger-head span {
  color: var(--ink-soft);
  font-size: 11px;
}

.ledger-row strong,
.ledger-row small {
  display: block;
}

.ledger-row strong {
  font-family: var(--display);
  font-size: 15px;
}

.ledger-row small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.meter {
  height: 4px;
  background: var(--paper-deep);
}

.meter i {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--vermilion);
  transform-origin: left;
  animation: meter-in .8s .2s var(--ease-out) both;
}

@keyframes meter-in {
  from { transform: scaleX(0); }
}

.report-actions {
  display: flex;
  margin-top: 28px;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.service-announcement {
  display: grid;
  min-height: 66px;
  margin: 20px clamp(24px, 6vw, 90px) 0;
  padding: 14px 18px;
  color: #dce8e2;
  background: var(--forest);
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: center;
}

.service-announcement[hidden] { display: none; }
.service-announcement[data-level="warning"] { color: #392d17; background: #ead9a8; }
.service-announcement[data-level="danger"] { color: #f7e8e3; background: #8b342c; }
.service-announcement[data-level="success"] { color: #e2efe8; background: #2f6d50; }
.service-announcement svg { font-size: 18px; }
.service-announcement strong { display: block; font-family: var(--display); font-size: 13px; }
.service-announcement span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.55; }
.service-announcement time { opacity: .64; font-size: 9px; white-space: nowrap; }

.existing-account-notice {
  display: flex;
  margin-bottom: 34px;
  padding: 22px 24px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.existing-account-notice[hidden] { display: none; }
.existing-account-notice strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 19px; }
.existing-account-notice p:last-child { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.existing-account-notice > div:last-child { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.remember-key {
  display: flex;
  height: 48px;
  color: var(--ink-soft);
  gap: 8px;
  align-items: center;
  font-size: 10px;
  white-space: nowrap;
}

.remember-key input { width: 16px; height: 16px; accent-color: var(--forest); }

.text-link--muted { color: var(--ink-soft); }

.pack-history {
  margin-top: 34px;
  border: 1px solid var(--line);
}

.history-heading {
  display: flex;
  min-height: 96px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.history-heading h2,
.faq-heading h2 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 22px;
}

.history-heading > span { color: var(--ink-soft); font-size: 10px; }

.pack-history-row {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.pack-history-row:last-child { border-bottom: 0; }
.pack-history-row--expired { opacity: .56; }
.pack-history-row-head,
.pack-history-values { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.pack-history-row-head strong { display: block; font-family: var(--display); font-size: 15px; }
.pack-history-row-head small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 9px; }
.pack-history-row-head > span { color: #3f755b; font-size: 10px; font-weight: 700; }
.pack-history-row--expired .pack-history-row-head > span { color: var(--ink-soft); }
.pack-history-values { margin-top: 18px; font-size: 10px; }
.pack-history-values strong { font-family: var(--display); font-size: 15px; }
.pack-history-meter { height: 4px; margin-top: 10px; background: var(--paper-deep); }
.pack-history-meter i { display: block; width: var(--value); height: 100%; background: var(--vermilion); }
.pack-history-row > p { margin: 9px 0 0; color: var(--ink-soft); font-size: 9px; }

.client-faq {
  display: grid;
  padding: clamp(70px, 9vw, 110px) 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 8vw, 110px);
}

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--display); font-size: 16px; }
.faq-list summary::after { float: right; color: var(--vermilion); content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -4px 0 22px; color: var(--ink-soft); font-size: 12px; line-height: 1.9; }

.usage-report {
  animation: result-open .55s var(--ease-out) both;
}

.usage-summary {
  display: grid;
  color: var(--paper-light);
  background: var(--forest);
  grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.15fr);
}

.usage-summary-lead {
  padding: clamp(34px, 5vw, 58px);
  border-right: 1px solid rgba(239, 234, 220, .18);
}

.usage-summary-lead .eyebrow {
  color: #93aa9f;
}

.usage-summary-lead strong {
  display: block;
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 92px);
  font-variant-numeric: tabular-nums;
  line-height: .9;
}

.usage-summary-lead > span {
  display: block;
  margin-top: 13px;
  color: #a9beb3;
  font-size: 11px;
  letter-spacing: .08em;
}

.usage-summary dl {
  display: grid;
  margin: 0;
  padding: clamp(34px, 5vw, 58px);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  align-items: stretch;
}

.usage-summary dl div {
  display: flex;
  padding: 10px clamp(18px, 3vw, 38px);
  border-left: 1px solid rgba(239, 234, 220, .18);
  justify-content: center;
  flex-direction: column;
}

.usage-summary dl div:first-child {
  border-left: 0;
}

.usage-summary dt {
  color: #93aa9f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.usage-summary dd {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 38px);
  font-variant-numeric: tabular-nums;
}

.usage-ledger {
  border: 1px solid var(--line);
  border-top: 0;
}

.usage-ledger-head {
  display: flex;
  min-height: 110px;
  padding: 25px 30px;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.usage-ledger-head h2 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: 23px;
}

.usage-ledger-head > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.usage-table-shell {
  width: 100%;
  overflow-x: auto;
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.usage-table th {
  padding: 13px 18px;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.usage-table th:nth-child(1) { width: 18%; }
.usage-table th:nth-child(2) { width: 24%; }
.usage-table th:nth-child(3) { width: 27%; }
.usage-table th:nth-child(4) { width: 14%; }
.usage-table th:nth-child(5) { width: 17%; }

.usage-table td {
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

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

.usage-time time,
.usage-model code,
.usage-tokens strong,
.usage-points strong {
  font-variant-numeric: tabular-nums;
}

.usage-time time {
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.usage-model code {
  display: block;
  color: var(--forest);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.usage-model small,
.usage-tokens small,
.usage-points small,
.usage-state small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
}

.usage-tokens strong,
.usage-points strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
}

.usage-cache-rate {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 3px 7px;
  color: var(--forest);
  background: color-mix(in srgb, var(--forest) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--forest) 18%, transparent);
  border-radius: 2px;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
}

.usage-points strong {
  color: var(--vermilion-dark);
}

.usage-status {
  display: inline-flex;
  color: #35664f;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
}

.usage-status::before {
  width: 6px;
  height: 6px;
  background: #4b956f;
  border-radius: 50%;
  content: "";
}

.usage-empty {
  display: grid;
  min-height: 210px;
  padding: 38px 30px;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: center;
}

.usage-empty[hidden] {
  display: none;
}

.usage-empty > span {
  color: var(--line-dark);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 900;
}

.usage-empty h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
}

.usage-empty p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.usage-pagination {
  display: flex;
  min-height: 64px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.usage-pagination[hidden] {
  display: none;
}

.usage-pagination button {
  min-height: 36px;
  padding: 0 15px;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  font-size: 10px;
}

.usage-pagination button:hover:not(:disabled) {
  color: var(--paper-light);
  background: var(--forest);
  border-color: var(--forest);
}

.usage-pagination button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.usage-pagination span {
  color: var(--ink-soft);
  font-size: 10px;
}

.builder-layout {
  display: grid;
  border-top: 2px solid var(--ink);
  grid-template-columns: minmax(440px, .9fr) minmax(420px, 1.1fr);
  gap: clamp(30px, 6vw, 82px);
}

.builder-controls {
  padding-top: 8px;
}

.builder-step {
  display: grid;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 55px 1fr;
  gap: 24px;
}

.step-index {
  margin-top: 8px;
  color: var(--vermilion);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
}

.builder-step h2 {
  margin: 0 0 16px;
  font-size: 21px;
}

.builder-step .field {
  margin-top: 0;
}

.choice-grid,
.model-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-grid label,
.model-checks label {
  position: relative;
  cursor: pointer;
}

.choice-grid input,
.model-checks input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-grid span,
.model-checks span {
  display: flex;
  min-height: 72px;
  padding: 13px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  flex-direction: column;
  justify-content: center;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.choice-grid label:hover span,
.model-checks label:hover span {
  transform: translateY(-2px);
}

.choice-grid input:checked + span,
.model-checks input:checked + span {
  color: var(--paper-light);
  background: var(--forest);
  border-color: var(--forest);
}

.choice-grid input:focus-visible + span,
.model-checks input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--vermilion) 70%, transparent);
  outline-offset: 2px;
}

.choice-grid strong {
  font-family: var(--display);
  font-size: 12px;
}

.choice-grid small,
.model-checks small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.choice-grid input:checked + span small,
.model-checks input:checked + span small {
  color: #abc0b6;
}

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

.model-checks span {
  min-height: 54px;
  font-family: var(--display);
  font-size: 12px;
}

.config-preview {
  position: sticky;
  top: 115px;
  min-height: 660px;
  margin-top: 30px;
  color: var(--paper-light);
  background: var(--forest);
  align-self: start;
}

.preview-empty {
  display: flex;
  min-height: 660px;
  padding: clamp(30px, 5vw, 64px);
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.preview-empty > span {
  position: absolute;
  top: 24px;
  left: 26px;
  color: #7f9b8e;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: .1em;
}

.preview-glyph {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 40px;
  transform: rotate(45deg);
}

.preview-glyph i {
  position: absolute;
  border: 1px solid #567a6c;
  inset: 0;
  animation: glyph-breathe 3s ease-in-out infinite alternate;
}

.preview-glyph i:nth-child(2) {
  inset: 22px;
  animation-delay: -.8s;
}

.preview-glyph i:nth-child(3) {
  inset: 44px;
  background: var(--vermilion);
  border-color: var(--vermilion);
  animation-delay: -1.6s;
}

@keyframes glyph-breathe {
  to { transform: rotate(8deg) scale(.94); opacity: .7; }
}

.preview-empty h2 {
  color: var(--paper-light);
  font-size: 27px;
}

.preview-empty p {
  max-width: 300px;
  margin: 12px 0 0;
  color: #9fb4aa;
  font-size: 12px;
}

.preview-output {
  min-height: 660px;
  animation: result-open .55s var(--ease-out) both;
}

.preview-head {
  display: flex;
  min-height: 68px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(242, 239, 231, .16);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.output-tabs {
  display: flex;
  height: 68px;
  gap: 22px;
}

.output-tabs button {
  position: relative;
  padding: 0;
  color: #8da69a;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.output-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--vermilion);
  transform: scaleX(0);
  transition: transform .2s ease;
  content: "";
}

.output-tabs button.is-active {
  color: var(--paper-light);
}

.output-tabs button.is-active::after {
  transform: scaleX(1);
}

.generated-state {
  display: inline-flex;
  gap: 8px;
  color: #a8bdb3;
  align-items: center;
  font-size: 10px;
}

.config-preview pre {
  min-height: 500px;
  max-height: 500px;
  margin: 0;
  padding: 28px;
  overflow: auto;
  color: #e8e7dc;
  background: #102e27;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.preview-actions {
  display: flex;
  min-height: 92px;
  padding: 18px 24px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.preview-actions .button--ink {
  color: var(--forest);
  background: var(--paper-light);
}

.preview-actions .text-link {
  color: #c5d2cb;
  border-color: #5d7d70;
}

.config-flow {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.config-flow-head {
  padding: 24px 0 clamp(42px, 6vw, 72px);
  text-align: center;
}

.config-flow-head h1 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.config-flow-head > p:not(.eyebrow) {
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 18px);
}

.supported-clients {
  display: flex;
  margin-top: 20px;
  color: var(--forest);
  gap: 13px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.supported-clients > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.supported-clients strong {
  font-family: var(--display);
  font-weight: 700;
}

.supported-clients i {
  width: 3px;
  height: 3px;
  background: var(--vermilion);
  border-radius: 50%;
}

.config-key-form {
  padding: clamp(30px, 5vw, 58px);
  background: var(--paper-light);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.field--config {
  max-width: 780px;
  margin: 0 auto;
}

.field--config input {
  height: 68px;
  font-family: var(--display);
  font-size: clamp(15px, 1.7vw, 20px);
}

.config-key-actions {
  display: flex;
  max-width: 780px;
  margin: 18px auto 0;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.config-key-actions a {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  color: var(--forest-light);
  border: 1px solid var(--line);
  gap: 7px;
  align-items: center;
  font-size: 10px;
}

.config-key-actions a:hover {
  color: var(--paper-light);
  background: var(--forest);
  border-color: var(--forest);
}

.config-key-actions .sample-button {
  margin-left: auto;
}

.config-generate-button {
  width: min(100%, 780px);
  min-height: 54px;
  margin: 34px auto 0;
}

.config-shortcut {
  margin: 8px 0 0;
  color: #898b84;
  text-align: center;
  font-size: 9px;
}

.config-before-guide {
  margin-top: 28px;
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
}

.config-section-title h2 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.25;
}

.config-section-title > p:last-child:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.config-before-guide ol {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.config-before-guide li {
  display: grid;
  min-height: 125px;
  padding: 20px;
  background: var(--paper);
  grid-template-columns: 30px 1fr;
  gap: 10px;
}

.config-before-guide li > span {
  color: var(--vermilion);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.config-before-guide strong {
  font-family: var(--display);
  font-size: 14px;
}

.config-before-guide p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.config-generated {
  animation: result-open .55s var(--ease-out) both;
}

.config-success-guide {
  display: grid;
  margin-top: clamp(44px, 6vw, 72px);
  padding: clamp(28px, 4vw, 46px);
  color: var(--paper-light);
  background: var(--forest);
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}

.config-success-guide .eyebrow,
.final-checkpoint .eyebrow {
  color: #8fb2a2;
}

.config-success-guide h2,
.final-checkpoint h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.28;
}

.config-success-guide > div > p:last-child,
.final-checkpoint > div > p:last-child {
  margin: 12px 0 0;
  color: #b9cbc2;
  font-size: 12px;
}

.config-success-guide ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.config-success-guide li {
  display: grid;
  padding: 16px 0;
  border-top: 1px solid rgba(242, 239, 231, .2);
  grid-template-columns: 34px 1fr;
  gap: 13px;
}

.config-success-guide li:last-child {
  border-bottom: 1px solid rgba(242, 239, 231, .2);
}

.config-success-guide li > span {
  color: var(--vermilion);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}

.config-success-guide li strong {
  font-family: var(--display);
  font-size: 14px;
}

.config-success-guide li p {
  margin: 4px 0 0;
  color: #9fb4aa;
  font-size: 10px;
}

.config-lines,
.config-method-section,
.config-paths,
.config-full-guide,
.config-model-list {
  margin-top: clamp(52px, 7vw, 86px);
  padding-top: 34px;
  border-top: 2px solid var(--ink);
}

.config-success-guide + .config-lines {
  margin-top: clamp(42px, 6vw, 68px);
}

.final-checkpoint {
  display: flex;
  min-height: 190px;
  margin-top: clamp(52px, 7vw, 86px);
  padding: clamp(30px, 5vw, 52px);
  color: var(--paper-light);
  background: var(--ink);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.final-checkpoint > div {
  max-width: 650px;
}

.final-checkpoint ol {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.final-checkpoint li {
  position: relative;
  padding-left: 30px;
  color: #e5eee9;
  font-size: 13px;
}

.final-checkpoint li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  color: var(--vermilion);
  border: 1px solid rgba(242, 239, 231, .35);
  content: "";
  place-items: center;
}

.final-checkpoint-action {
  display: flex;
  min-width: min(100%, 310px);
  flex: 0 0 auto;
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
}

.final-checkpoint-action label {
  display: flex;
  padding: 14px;
  color: #dbe7e1;
  background: rgba(242, 239, 231, .06);
  border: 1px solid rgba(242, 239, 231, .2);
  cursor: pointer;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}

.final-checkpoint-action input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--vermilion);
}

.final-checkpoint .button {
  flex: 0 0 auto;
}

.final-checkpoint .button:disabled {
  cursor: not-allowed;
  filter: grayscale(.75);
  opacity: .45;
}

.config-section-title--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
}

.config-section-title--row > p {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.config-section-title--row > p strong {
  color: var(--forest);
  font-family: var(--display);
}

.config-route-state {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.config-route-state p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.config-route-state strong {
  color: var(--forest);
  font-family: var(--display);
}

.config-route-state .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.config-route-state .text-link svg {
  width: 14px;
  height: 14px;
}

.config-route-url {
  display: flex;
  min-width: 0;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  gap: 10px;
  align-items: baseline;
}

.config-route-url code {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.line-options {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.line-option {
  position: relative;
  display: grid;
  min-height: 88px;
  padding: 17px 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  transition: background-color .2s ease, color .2s ease;
}

.line-option:hover,
.line-option.is-selected {
  color: var(--paper-light);
  background: var(--forest);
}

.line-option strong {
  font-family: var(--display);
  font-size: 13px;
}

.line-option span {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 9px;
}

.line-option:hover span,
.line-option.is-selected span {
  color: #9fb7ac;
}

.line-option em {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--success);
  align-self: center;
  font-size: 9px;
  font-style: normal;
}

.line-option:hover em,
.line-option.is-selected em {
  color: #87c9a9;
}

.config-route-note,
.config-path-tip {
  display: flex;
  margin: 14px 0 0;
  color: var(--ink-soft);
  gap: 8px;
  align-items: center;
  font-size: 10px;
}

.config-route-note[data-state="testing"] {
  color: var(--forest);
}

.config-route-note[data-state="success"] {
  color: var(--success);
}

.config-route-note[data-state="error"] {
  color: var(--vermilion-dark);
}

.config-method-tabs {
  display: grid;
  margin-top: 26px;
  grid-template-columns: repeat(3, 1fr);
}

.config-method-tabs button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-right: 0;
  cursor: pointer;
  gap: 9px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.config-method-tabs button:last-child {
  border-right: 1px solid var(--line);
}

.config-method-tabs button:hover,
.config-method-tabs button.is-active {
  color: var(--paper-light);
  background: var(--forest);
  border-color: var(--forest);
}

.config-method-panel {
  border: 1px solid var(--line);
  border-top: 0;
}

.config-method-head,
.download-method {
  display: flex;
  min-height: 112px;
  padding: 24px 28px;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.config-method-head h3,
.download-method h3,
.config-path-grid h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
}

.config-method-head p,
.download-method p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.config-code {
  min-height: 420px;
  max-height: 580px;
  margin: 0;
  padding: 26px 30px;
  overflow: auto;
  color: #dfe9e3;
  background: #102e27;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.8;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.config-code--prompt {
  color: #e6e1d5;
}

.download-file-mark {
  display: grid;
  width: 72px;
  height: 86px;
  color: var(--paper-light);
  background: var(--forest);
  place-items: center;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .08em;
}

.download-method > div {
  margin-right: auto;
}

.config-path-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.config-path-grid article {
  padding: 26px;
  background: var(--paper-light);
}

.config-path-grid article > div {
  display: grid;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  grid-template-columns: 90px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
}

.config-path-grid span {
  color: var(--ink-soft);
  font-size: 9px;
}

.config-path-grid code {
  min-width: 0;
  overflow: hidden;
  color: var(--forest);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.config-path-grid button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  place-items: center;
}

.config-full-guide ol {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.config-full-guide li {
  display: grid;
  min-height: 88px;
  padding: 19px 8px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: center;
}

.config-full-guide li > span {
  color: var(--vermilion);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
}

.config-full-guide strong {
  font-family: var(--display);
  font-size: 15px;
}

.config-full-guide p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.config-model-list ul {
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.config-model-list li {
  display: grid;
  min-height: 58px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(120px, .6fr) minmax(180px, 1fr) 70px;
  gap: 18px;
  align-items: center;
}

.config-model-list strong {
  color: var(--forest);
  font-family: var(--display);
  font-size: 12px;
}

.config-model-list span {
  color: var(--ink-soft);
  font-size: 11px;
}

.config-model-list em {
  color: var(--vermilion-dark);
  text-align: right;
  font-size: 10px;
  font-style: normal;
}

.recharge-note > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 13px;
}

.policy-diagram {
  display: flex;
  margin-top: 50px;
  align-items: center;
}

.policy-diagram span {
  display: flex;
  width: 112px;
  height: 112px;
  padding: 18px;
  color: var(--paper-light);
  background: var(--forest);
  border-radius: 50%;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: var(--display);
  font-size: 12px;
}

.policy-diagram span:last-child {
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--line-dark);
}

.policy-diagram b {
  color: var(--vermilion);
  font-size: 10px;
}

.policy-diagram i {
  width: 42px;
  height: 1px;
  background: var(--line-dark);
}

.recover-layout {
  display: grid;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
}

.recover-form {
  position: relative;
  min-height: 420px;
  padding: clamp(55px, 8vw, 110px) clamp(30px, 6vw, 90px) 55px 0;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.field--large,
.recover-form .button,
.recover-form > p {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.field--large input {
  height: 70px;
  font-family: var(--display);
  font-size: 20px;
}

.recover-form .button {
  min-width: 190px;
  margin-top: 35px;
}

.recover-form > p {
  display: flex;
  margin: 30px 0 0;
  color: var(--ink-soft);
  gap: 9px;
  align-items: center;
  font-size: 11px;
}

.oversize-key {
  position: absolute;
  z-index: 0;
  right: -25px;
  bottom: -65px;
  color: color-mix(in srgb, var(--paper-deep) 68%, transparent);
  font-family: var(--display);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 900;
  line-height: .8;
  pointer-events: none;
}

.recovery-index {
  padding: clamp(55px, 7vw, 90px) 0 55px clamp(30px, 6vw, 78px);
}

.recovery-index ol {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.recovery-index li {
  display: grid;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 35px 1fr;
  align-items: center;
  font-family: var(--display);
  font-size: 13px;
}

.recovery-index li span {
  color: var(--vermilion);
  font-size: 11px;
}

.recovered-account {
  margin-top: 40px;
  padding: clamp(32px, 5vw, 58px);
  color: var(--paper-light);
  background: var(--forest);
  animation: result-open .55s var(--ease-out) both;
}

.recovered-account .eyebrow {
  color: #8fa99c;
}

.recovered-account dl {
  display: grid;
  margin: 38px 0 28px;
  padding: 22px 0;
  border-top: 1px solid rgba(242, 239, 231, .18);
  border-bottom: 1px solid rgba(242, 239, 231, .18);
  grid-template-columns: repeat(3, 1fr);
}

.recovered-account dt {
  color: #89a196;
  font-size: 10px;
}

.recovered-account dd {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 14px;
}

.recovered-account dd i {
  margin-right: 8px;
}

.recovered-account .key-output {
  max-width: 680px;
}

.recovered-account .report-actions .button--ink {
  color: var(--forest);
  background: var(--paper-light);
}

.recovered-account .text-link {
  color: #c7d5ce;
  border-color: #69887b;
}

.legal-page {
  max-width: 1240px;
  margin: 0 auto;
}

.legal-hero {
  display: grid;
  min-height: 330px;
  padding-bottom: 55px;
  border-bottom: 2px solid var(--ink);
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
}

.legal-hero h1 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.legal-meta {
  display: flex;
  padding-bottom: 8px;
  color: var(--ink-soft);
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
}

.legal-meta .text-link {
  margin-top: 18px;
}

.legal-notice {
  display: grid;
  margin: 34px 0 0;
  padding: 22px 26px;
  color: var(--paper-light);
  background: var(--forest);
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-notice svg {
  margin-top: 3px;
  color: #9cc1af;
  font-size: 22px;
}

.legal-notice p {
  min-width: 0;
  margin: 0;
  color: #bed0c7;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.legal-notice strong {
  color: var(--paper-light);
}

.legal-layout {
  display: grid;
  margin-top: 62px;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(45px, 8vw, 110px);
  align-items: start;
}

.legal-index {
  position: sticky;
  top: 120px;
  padding-top: 8px;
}

.legal-index ol {
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.legal-index li {
  display: grid;
  padding: 10px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 30px 1fr;
  gap: 8px;
  font-size: 10px;
}

.legal-index li span {
  color: var(--vermilion);
  font-family: var(--display);
  font-weight: 700;
}

.legal-content {
  min-width: 0;
  border-top: 1px solid var(--ink);
}

.legal-section {
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  display: grid;
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.35;
  grid-template-columns: 52px 1fr;
  gap: 10px;
}

.legal-section h2 span {
  padding-top: 6px;
  color: var(--vermilion);
  font-size: 11px;
}

.legal-section p {
  margin: 0 0 16px 62px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
  text-align: justify;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section--highlight {
  margin: 26px -34px;
  padding: 42px 34px 46px;
  color: var(--paper-light);
  background: var(--forest);
  border: 0;
}

.legal-section--highlight h2 {
  color: var(--paper-light);
}

.legal-section--highlight p {
  color: #c1d0c9;
}

.legal-signoff {
  display: flex;
  min-height: 150px;
  padding: 34px 0;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.legal-signoff p {
  max-width: 500px;
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.footer-legal {
  color: var(--forest);
  border-bottom: 1px solid var(--line-dark);
}

.footer-legal:hover {
  color: var(--vermilion-dark);
  border-color: var(--vermilion);
}

.site-footer {
  display: flex;
  min-height: 78px;
  margin-left: var(--rail-width);
  padding: 0 clamp(28px, 5vw, 76px);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  letter-spacing: .05em;
}

.workspace .site-footer {
  margin-left: 0;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 28px;
  bottom: 28px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 18px;
  color: var(--paper-light);
  background: var(--ink);
  border-left: 3px solid var(--vermilion);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity .25s ease, transform .35s var(--ease-out);
  font-size: 12px;
}

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

@media (max-width: 1120px) {
  :root {
    --rail-width: 232px;
  }

  .side-rail {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-lead {
    grid-template-columns: 1.25fr minmax(260px, .75fr);
    gap: 50px;
  }

  .operation-grid,
  .recover-layout {
    grid-template-columns: 1fr .75fr;
  }

  .result-sheet {
    grid-template-columns: 50px 1fr minmax(220px, .8fr);
  }

  .result-sheet > .button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .builder-layout {
    grid-template-columns: minmax(380px, .9fr) minmax(390px, 1.1fr);
    gap: 34px;
  }
}

@media (max-width: 900px) {
  :root {
    --rail-width: 0px;
  }

  .mobile-header {
    position: sticky;
    z-index: 90;
    top: 0;
    display: flex;
    min-height: 68px;
    padding: 0 20px;
    color: var(--paper-light);
    background: var(--forest);
    justify-content: space-between;
    align-items: center;
  }

  .brand--mobile .brand-mark {
    width: 27px;
    height: 27px;
  }

  .brand--mobile .brand-mark i:nth-child(2) {
    inset: 5px;
  }

  .brand--mobile .brand-mark i:nth-child(3) {
    inset: 10px;
  }

  .brand--mobile strong {
    font-size: 17px;
  }

  .brand--mobile small {
    margin-top: 3px;
    font-size: 8px;
  }

  .icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--paper-light);
    background: transparent;
    border: 1px solid rgba(242, 239, 231, .25);
    place-items: center;
  }

  .side-rail {
    z-index: 200;
    width: min(310px, 86vw);
    transform: translateX(-102%);
    transition: transform .4s var(--ease-out);
  }

  .side-rail.is-open {
    transform: translateX(0);
  }

  .rail-scrim {
    position: fixed;
    z-index: 190;
    inset: 0;
    display: block;
    background: rgba(14, 29, 24, .52);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .rail-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .workspace {
    margin-left: 0;
  }

  .context-bar {
    top: 68px;
    min-height: 62px;
  }

  .home-lead {
    min-height: auto;
    padding-bottom: 70px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guided-start-head {
    display: block;
  }

  .guided-start-head > p {
    margin-top: 16px;
  }

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

  .returning-action-list,
  .config-success-guide {
    grid-template-columns: 1fr;
  }

  .returning-action {
    border-right: 0;
  }

  .returning-action:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .returning-action:last-child {
    border-bottom: 0;
  }

  .final-checkpoint {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .lead-copy {
    padding-bottom: 20px;
  }

  .balance-ticket {
    width: min(100%, 420px);
    margin-left: auto;
  }

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

  .operation-grid,
  .recover-layout {
    grid-template-columns: 1fr;
  }

  .operation-form,
  .recover-form {
    padding-right: 0;
    border-right: 0;
  }

  .operation-notes,
  .recovery-index {
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .page-heading--wide {
    display: block;
  }

  .builder-layout {
    grid-template-columns: 1fr;
  }

  .config-preview {
    position: relative;
    top: auto;
    min-height: 580px;
  }

  .preview-empty,
  .preview-output {
    min-height: 580px;
  }

  .config-before-guide ol,
  .line-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
  }

  .legal-index ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-content {
    margin-top: 10px;
  }

  .usage-summary {
    grid-template-columns: 1fr;
  }

  .usage-summary-lead {
    border-right: 0;
    border-bottom: 1px solid rgba(239, 234, 220, .18);
  }

  .service-announcement { margin-right: 24px; margin-left: 24px; }
  .client-faq { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .context-bar {
    padding: 0 20px;
  }

  .context-meta .status-chip {
    display: none;
  }

  .view-stack {
    padding: 48px 20px 68px;
  }

  .lead-copy h1,
  .page-heading h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .lead-copy h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.5vw, 44px);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .lead-copy,
  .lead-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .guided-start,
  .returning-actions {
    padding: 54px 0;
  }

  .decision-card {
    min-height: 106px;
    padding: 18px 4px;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .decision-card--primary,
  .decision-card--primary:hover {
    padding-right: 14px;
    padding-left: 14px;
  }

  .decision-card strong,
  .returning-action strong {
    font-size: 17px;
  }

  .journey-progress li {
    min-height: 94px;
    padding: 14px 12px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .journey-progress li > span {
    width: 28px;
    height: 28px;
  }

  .journey-progress strong {
    font-size: 12px;
  }

  .journey-progress--config {
    margin-top: -18px;
  }

  .two-minute-guide > ol {
    padding-left: 8px;
    grid-template-columns: 1fr;
  }

  .returning-action {
    min-height: 125px;
    padding: 20px 14px;
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  .config-success-guide {
    padding: 28px 22px;
  }

  .final-checkpoint {
    margin-right: -20px;
    margin-left: -20px;
    padding: 34px 20px;
  }

  .final-checkpoint .button {
    width: 100%;
  }

  .lead-copy h1 br {
    display: none;
  }

  .config-flow-head {
    padding-top: 6px;
  }

  .config-flow-head h1 {
    font-size: clamp(39px, 11vw, 52px);
  }

  .config-key-form {
    margin-right: -20px;
    margin-left: -20px;
    padding: 28px 20px 32px;
  }

  .field--config input {
    height: 62px;
    font-family: var(--body);
    font-size: 13px;
  }

  .config-key-actions {
    align-items: stretch;
  }

  .config-key-actions a {
    flex: 1;
  }

  .config-key-actions .sample-button {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .config-before-guide {
    padding: 24px 20px;
  }

  .config-before-guide ol,
  .line-options,
  .config-method-tabs,
  .config-path-grid {
    grid-template-columns: 1fr;
  }

  .config-section-title--row {
    display: block;
  }

  .config-section-title--row > p {
    margin-top: 12px;
  }

  .config-route-state {
    margin-top: 14px;
    align-items: flex-start;
    justify-content: space-between;
  }

  .config-method-tabs button {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .config-method-tabs button:last-child {
    border-bottom: 1px solid var(--line);
  }

  .config-method-head,
  .download-method {
    padding: 22px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .download-method > div {
    margin-right: 0;
  }

  .config-code {
    min-height: 360px;
    padding: 20px;
    font-size: 10px;
  }

  .config-path-grid article {
    padding: 22px 18px;
  }

  .config-path-grid article > div {
    grid-template-columns: 78px minmax(0, 1fr) 32px;
  }

  .config-full-guide li {
    grid-template-columns: 40px 1fr;
  }

  .config-model-list li {
    grid-template-columns: minmax(95px, .7fr) 58px;
  }

  .config-model-list span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .balance-ticket {
    margin-right: 12px;
  }

  .workflow-line {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .workflow-line::before {
    top: 19px;
    bottom: 20px;
    left: 19px;
    width: 1px;
    height: auto;
  }

  .workflow-line li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
  }

  .workflow-line li div {
    margin-top: 5px;
  }

  .directory-head {
    display: block;
  }

  .directory-head > p {
    margin-top: 18px;
  }

  .directory-list a {
    grid-template-columns: 35px 1fr 24px;
    gap: 12px;
  }

  .client-band {
    gap: 14px;
  }

  .client-band > span {
    width: 100%;
  }

  .operation-form {
    min-height: 380px;
  }

  .result-sheet {
    grid-template-columns: 44px 1fr;
  }

  .result-sheet .key-output,
  .result-sheet > .button {
    grid-column: 1 / -1;
  }

  .lookup-bar {
    grid-template-columns: 1fr;
  }

  .lookup-bar .sample-button {
    justify-self: start;
  }

  .report-main {
    grid-template-columns: 1fr;
  }

  .report-total,
  .report-meta {
    grid-column: 1;
  }

  .report-total {
    display: block;
  }

  .report-total span {
    display: block;
    margin-top: 13px;
  }

  .ledger-head,
  .ledger-row {
    padding: 20px;
  }

  .ledger-row {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .ledger-row .meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .usage-summary dl {
    padding: 24px 12px;
  }

  .usage-summary dl div {
    padding: 8px 14px;
  }

  .usage-ledger-head {
    min-height: 96px;
    padding: 22px 20px;
  }

  .usage-table,
  .usage-table tbody,
  .usage-table tr,
  .usage-table td {
    display: block;
    width: 100%;
  }

  .usage-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .usage-table tr {
    display: grid;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr auto;
    gap: 16px 20px;
  }

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

  .usage-table td {
    padding: 0;
    border: 0;
  }

  .usage-table td::before {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
  }

  .usage-time,
  .usage-model {
    grid-column: span 1;
  }

  .usage-tokens {
    grid-column: 1 / -1;
  }

  .usage-points,
  .usage-state {
    grid-column: span 1;
  }

  .usage-empty {
    padding: 30px 20px;
    grid-template-columns: 50px 1fr;
  }

  .usage-empty .text-link {
    grid-column: 2;
    justify-self: start;
  }

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

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

  .config-preview pre {
    min-height: 430px;
    max-height: 430px;
    padding: 20px;
    font-size: 11px;
  }

  .preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-actions .text-link {
    align-self: flex-start;
  }

  .policy-diagram span {
    width: 96px;
    height: 96px;
  }

  .recovered-account dl {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .legal-hero {
    min-height: 260px;
  }

  .legal-hero h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .legal-notice {
    padding: 20px;
  }

  .legal-layout {
    margin-top: 45px;
  }

  .legal-index ol {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 30px 0 34px;
  }

  .legal-section h2 {
    grid-template-columns: 36px 1fr;
    font-size: 21px;
  }

  .legal-section p {
    margin-left: 0;
    font-size: 12px;
    text-align: left;
  }

  .legal-section--highlight {
    margin: 20px -20px;
    padding: 34px 20px 38px;
  }

  .legal-signoff {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding: 22px 20px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

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

  .service-announcement {
    margin: 14px 20px 0;
    grid-template-columns: 22px 1fr;
  }

  .service-announcement time { grid-column: 2; }
  .existing-account-notice { align-items: stretch; flex-direction: column; }
  .existing-account-notice > div:last-child { align-items: stretch; flex-direction: column; }
  .lookup-bar { grid-template-columns: 1fr; }
  .remember-key { height: auto; }
  .history-heading,
  .pack-history-row { padding-right: 20px; padding-left: 20px; }
  .history-heading { display: block; }
  .history-heading > span { display: block; margin-top: 10px; }
}

@media (max-width: 390px) {
  .context-bar h2 {
    display: none;
  }

  .lead-actions,
  .report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-actions .text-link,
  .report-actions .text-link {
    align-self: flex-start;
  }

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

  .builder-step {
    grid-template-columns: 34px 1fr;
    gap: 8px;
  }
}

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

/* Phase 30: practical task-first interface */
.home-simple {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 34px 0 70px;
}

.home-simple-head {
  margin-bottom: 32px;
}

.home-simple-head h1 {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-simple-head p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.home-account-summary {
  display: flex;
  min-height: 92px;
  margin-bottom: 30px;
  padding: 18px 22px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  align-items: center;
  gap: 28px;
}

.home-account-summary > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.home-account-summary > div > span,
.home-account-summary dt {
  color: var(--ink-soft);
  font-size: .875rem;
}

.home-account-summary > div > strong {
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
}

.home-account-summary dl {
  display: flex;
  margin: 0 0 0 auto;
  gap: 28px;
}

.home-account-summary dl div {
  min-width: 76px;
}

.home-account-summary dd {
  margin: 3px 0 0;
  font-size: .9375rem;
  font-weight: 600;
}

.home-task-menu {
  background: var(--paper-light);
  border-top: 1px solid var(--line-dark);
}

.home-task {
  display: grid;
  min-height: 104px;
  padding: 20px 18px;
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  transition: background-color .18s ease;
}

.home-task:hover {
  background: #f2f5f1;
}

.home-task-number {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--forest);
  background: var(--forest-wash);
  border-radius: 50%;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
}

.home-task--primary .home-task-number {
  color: #fff;
  background: var(--vermilion);
}

.home-task strong {
  font-size: 1.1875rem;
  font-weight: 700;
}

.home-task p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.home-task > svg {
  justify-self: end;
}

.operation-grid--single {
  display: block;
  max-width: 760px;
}

.operation-grid--single .operation-form {
  min-height: auto;
  padding-right: 0;
  border-right: 0;
}

.form-number {
  display: none;
}

.result-sheet .eyebrow {
  display: none;
}

.result-sheet h2 {
  font-size: 1.5rem;
}

.result-sheet p:not(.eyebrow),
.result-sheet .completion-warning,
.key-output code {
  font-size: .9375rem;
}

.config-flow-head {
  padding: 20px 0 36px;
  text-align: left;
}

.config-flow-head h1,
.page-heading h1,
.simple-query-page h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
}

.config-flow-head > p:not(.eyebrow),
.page-heading > p:last-child,
.page-heading--wide > p,
.simple-query-page header p {
  max-width: 65ch;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.supported-clients {
  margin-top: 16px;
  justify-content: flex-start;
  font-size: .9375rem;
}

.supported-clients > span {
  font-size: .875rem;
}

.config-auto-state {
  display: flex;
  min-height: 120px;
  padding: 26px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.config-auto-state > div:first-of-type {
  flex: 1;
}

.config-auto-state strong {
  display: block;
  font-size: 1.25rem;
}

.config-auto-state p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.config-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--forest-wash);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: config-spin .8s linear infinite;
}

@keyframes config-spin {
  to { transform: rotate(360deg); }
}

.config-wizard-step {
  scroll-margin-top: 96px;
  padding: 30px 0 0;
  border-top: 1px solid var(--line-dark);
}

.wizard-step-label {
  display: block;
  margin-bottom: 8px;
  color: var(--vermilion-dark);
  font-size: .875rem;
  font-weight: 700;
}

.config-wizard-step h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.3;
}

.config-wizard-step h3 {
  margin: 0;
  font-size: 1.25rem;
}

.config-section-title--row > div:first-child > p,
.wizard-step-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.wizard-step-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.wizard-back {
  min-height: 44px;
  padding: 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--forest);
  cursor: pointer;
  font-size: .9375rem;
}

.config-route-state p,
.config-route-state .text-link,
.config-route-note {
  font-size: .9375rem;
}

.line-options {
  margin-top: 24px;
}

.line-option {
  min-height: 104px;
  padding: 20px;
}

.line-option strong {
  font-size: 1.0625rem;
}

.line-option span,
.line-option em {
  font-size: .875rem;
}

.wizard-actions {
  display: flex;
  margin-top: 28px;
  justify-content: flex-end;
  gap: 14px;
}

.config-method-choices {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.config-method-choices button {
  position: relative;
  min-height: 190px;
  padding: 24px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}

.config-method-choices button:hover,
.config-method-choices button:focus-visible {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.config-method-choices button > svg {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 24px;
  color: var(--forest);
}

.config-method-choices button > strong {
  display: block;
  font-size: 1.1875rem;
}

.config-method-choices button > p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.65;
}

.config-method-choices .is-recommended {
  border-color: var(--vermilion);
}

.config-method-choices .is-recommended > span {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  color: #fff;
  background: var(--vermilion);
  font-size: .8125rem;
  font-weight: 700;
}

.config-delivery-panel {
  margin-top: 28px;
  padding: 28px;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.config-delivery-panel > div:first-child:not(.config-method-head) {
  margin-bottom: 22px;
}

.config-delivery-panel p,
.config-method-head p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: .9375rem;
}

#config-step-delivery .config-paths {
  margin-top: 36px;
  padding-top: 26px;
}

.config-finish {
  padding: 40px;
  background: var(--forest);
  border: 0;
  color: #fff;
}

.config-finish > p {
  max-width: 65ch;
  margin: 14px 0 0;
  color: #d7e2dc;
  font-size: 1rem;
}

.config-finish .button--secondary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .55);
}

.model-prefix-example {
  display: flex;
  margin-top: 24px;
  gap: 12px;
  align-items: center;
}

.model-prefix-example code {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: 1rem;
}

.simple-query-page {
  width: min(100%, 860px);
  margin: 0 auto;
}

.simple-query-page header {
  margin-bottom: 30px;
}

.public-model-list {
  margin-bottom: 24px;
  background: var(--paper-light);
  border-top: 1px solid var(--line-dark);
}

.public-model-list article {
  display: flex;
  min-height: 92px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.public-model-list strong,
.public-model-list code {
  display: block;
}

.public-model-list strong {
  font-size: 1.0625rem;
}

.public-model-list code {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .875rem;
}

.public-model-list article > span {
  color: var(--vermilion-dark);
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.button,
.text-link,
.nav-item span {
  font-size: .9375rem;
}

.field > span,
.lookup-bar label > span,
.field-note,
.agreement-consent,
.service-announcement span,
.service-announcement time,
.report-meta,
.history-heading > span,
.pack-history-row-head small,
.pack-history-values,
.pack-history-row > p,
.config-path-tip,
.usage-range,
small {
  font-size: .875rem !important;
}

.eyebrow,
.nav-label {
  font-size: .8125rem;
}

@media (max-width: 900px) {
  .home-account-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-account-summary dl {
    width: 100%;
    margin-left: 0;
  }

  .config-method-choices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-simple {
    padding-top: 10px;
  }

  .home-simple-head h1,
  .config-flow-head h1,
  .page-heading h1,
  .simple-query-page h1 {
    font-size: 2rem;
  }

  .home-account-summary {
    padding: 18px;
    gap: 16px;
  }

  .home-account-summary dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .home-account-summary dl div {
    min-width: 0;
  }

  .home-task {
    min-height: 96px;
    padding: 16px 12px;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 12px;
  }

  .home-task strong {
    font-size: 1.0625rem;
  }

  .home-task p {
    font-size: .9375rem;
  }

  .config-auto-state,
  .wizard-step-head {
    align-items: stretch;
    flex-direction: column;
  }

  .line-options {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wizard-actions .button {
    width: 100%;
  }

  .config-delivery-panel,
  .config-finish {
    padding: 22px 18px;
  }

  .public-model-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Beginner-first WorkBuddy configuration guidance */
.config-method-intro {
  max-width: 760px;
}

.config-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--vermilion-dark);
  font-size: .875rem;
  font-weight: 800;
}

.config-method-intro h3 {
  font-size: 1.5rem;
}

.config-method-intro p {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.7;
}

.installer-platforms {
  display: grid;
  margin-top: 26px;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  grid-template-columns: minmax(0, 1fr);
}

.installer-platforms article {
  display: flex;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper-light);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  flex-direction: column;
}

.installer-os {
  color: var(--forest);
  font-size: 1rem;
  font-weight: 800;
}

.installer-platforms h4,
.manual-config-download h4,
.beginner-config-guide h4,
.macos-manual-config h4 {
  margin: 6px 0 0;
  font-size: 1.375rem;
  line-height: 1.4;
}

.installer-platforms ol {
  display: grid;
  min-height: 0;
  margin: 22px 0 26px;
  padding-left: 1.4rem;
  gap: 12px;
}

.installer-platforms li {
  padding-left: 5px;
  font-size: 1rem;
  line-height: 1.65;
}

.installer-platforms li::marker {
  color: var(--vermilion-dark);
  font-weight: 800;
}

.installer-platforms code,
.beginner-config-guide code,
.macos-manual-config code,
.final-model-steps code {
  color: var(--forest);
  font-size: .9375em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.installer-download {
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  justify-content: center;
  font-size: 1rem;
}

.installer-scope-warning {
  margin-top: 24px;
  padding: 20px 22px;
  color: #59291f;
  background: #f6e6df;
  border-top: 1px solid #d59b8e;
  border-bottom: 1px solid #d59b8e;
}

.installer-scope-warning strong {
  display: block;
  font-size: 1.125rem;
}

.installer-scope-warning p {
  margin: 6px 0 0;
  color: #744338;
  font-size: 1rem;
}

.macos-manual-config {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
}

.macos-manual-config > p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.macos-manual-paths {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.macos-manual-paths > div {
  min-width: 0;
  padding: 20px;
  background: var(--paper-light);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.macos-manual-paths strong,
.macos-manual-paths code {
  display: block;
}

.macos-manual-paths strong {
  font-size: 1.0625rem;
}

.macos-manual-paths code {
  margin-top: 8px;
  color: var(--forest);
  font-size: .9375rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.manual-config-download {
  display: flex;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.manual-config-download > div {
  min-width: 0;
}

.manual-config-download > div > span {
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 700;
}

.manual-config-download p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.manual-config-download .button {
  min-height: 50px;
  flex: 0 0 auto;
}

.beginner-config-guide {
  margin: 0 28px 28px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-dark);
}

.beginner-config-guide > ol {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  counter-reset: config-step;
  list-style: none;
}

.beginner-config-guide > ol > li {
  position: relative;
  min-height: 82px;
  padding: 17px 16px 17px 66px;
  border-top: 1px solid var(--line);
  counter-increment: config-step;
}

.beginner-config-guide > ol > li:last-child {
  border-bottom: 1px solid var(--line);
}

.beginner-config-guide > ol > li::before {
  position: absolute;
  top: 16px;
  left: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--paper-light);
  background: var(--forest);
  content: counter(config-step);
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
}

.beginner-config-guide li strong {
  display: block;
  font-size: 1.0625rem;
}

.beginner-config-guide li p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.path-shortcut {
  margin: 22px 0 0;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--forest-wash);
  font-size: 1rem;
}

.beginner-config-guide details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.beginner-config-guide summary {
  min-height: 52px;
  padding: 13px 0;
  color: var(--forest);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}

.beginner-config-guide details p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1rem;
}

#config-step-delivery .config-paths .config-section-title h2 {
  font-size: 1.5rem;
}

.config-path-grid article > div {
  min-height: 78px;
  grid-template-columns: minmax(175px, .85fr) minmax(0, 1.15fr) 44px;
  gap: 16px;
}

.config-path-grid span {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.45;
}

.config-path-grid code {
  color: var(--forest);
  font-size: .9375rem;
  font-weight: 700;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.config-path-grid button {
  width: 44px;
  height: 44px;
}

.final-model-steps {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .28);
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.final-model-steps li {
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.final-model-steps li:nth-child(2n) {
  border-right: 0;
}

.final-model-steps strong,
.final-model-steps span {
  display: block;
}

.final-model-steps strong {
  color: var(--paper-light);
  font-size: 1.0625rem;
}

.final-model-steps span {
  margin-top: 7px;
  color: #d7e2dc;
  font-size: .9375rem;
}

.final-o-model-alert {
  margin-top: 24px;
  padding: 20px 22px;
  color: #4f231a;
  background: #ffe2d7;
  font-size: 1.125rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .config-wizard-step {
    scroll-margin-top: 148px;
  }

  .macos-manual-paths,
  .final-model-steps {
    grid-template-columns: 1fr;
  }

  .installer-platforms ol {
    min-height: 0;
  }

  .final-model-steps li {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .config-method-intro h3,
  .installer-platforms h4,
  .manual-config-download h4,
  .beginner-config-guide h4,
  .macos-manual-config h4,
  #config-step-delivery .config-paths .config-section-title h2 {
    font-size: 1.25rem;
  }

  .installer-platforms article {
    padding: 22px 18px;
  }

  .installer-platforms ol {
    margin-bottom: 22px;
  }

  .manual-config-download {
    align-items: stretch;
    flex-direction: column;
  }

  .manual-config-download .button {
    width: 100%;
    justify-content: center;
  }

  .beginner-config-guide {
    margin-right: 0;
    margin-left: 0;
  }

  .beginner-config-guide > ol > li {
    padding-right: 4px;
    padding-left: 58px;
  }

  .beginner-config-guide > ol > li::before {
    left: 4px;
  }

  .config-path-grid article > div {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px 12px;
  }

  .config-path-grid span {
    grid-column: 1 / -1;
    font-size: 1rem;
  }

  .config-path-grid code {
    font-size: .875rem;
  }

  .final-model-steps li {
    min-height: 0;
    padding: 18px 4px;
  }

  .final-o-model-alert {
    padding: 18px;
    font-size: 1rem;
  }
}
