/* site.css */
@font-face {
  font-family: Inter;
  src: url("inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #111017;
  --surface: #181720;
  --surface-high: #211e2c;
  --text: #f8f7fc;
  --muted: #c9c4d4;
  --accent: #d4baff;
  --line: #8f78be;
  --border: #635676;
  --ink: #151321;
  --light: #f9f8fe;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 67% 5%, #22193252 0%, transparent 33rem),
    repeating-linear-gradient(119deg, transparent 0 43px, #b394f404 52px, transparent 69px 125px),
    var(--background);
  color: var(--text);
  font: 400 1rem/1.52 Inter, system-ui, sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #bd9aff; outline-offset: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, p, ol, ul, dl, dd, pre { margin: 0; }
h1, h2, h3 { font-weight: 750; line-height: 1.03; letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 3.05rem); }
h3 { font-size: 1.12rem; letter-spacing: -.025em; }
p { text-wrap: pretty; }

.wrap { width: min(100% - var(--gutter) * 2, 1220px); margin-inline: auto; }
.section-line { border-top: 1px solid var(--line); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link { position: fixed; z-index: 10; left: 1rem; top: 1rem; transform: translateY(-200%); background: #e5d7ff; color: var(--ink); padding: .6rem 1rem; border-radius: .4rem; }
.skip-link:focus { transform: none; }

.topbar {
  min-height: 4.8rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .65rem; white-space: nowrap; font-size: 1.55rem; line-height: 1; font-weight: 700; letter-spacing: -.05em; }
.brand img { width: 2.05rem; height: auto; }
.main-nav { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.main-nav a { padding-block: .65rem; }
.main-nav a:hover, .footer nav a:hover, .footer nav button:hover { color: var(--accent); }

.button {
  border: 1px solid #c1a3ff;
  border-radius: .48rem;
  color: #110b1c;
  background:
    repeating-linear-gradient(95deg, transparent 0 18px, #fff1 23px, transparent 33px),
    linear-gradient(102deg, #a080fa, #ba9bff 51%, #a180f2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .53rem 1rem;
  font-weight: 680;
  line-height: 1.15;
  box-shadow: inset 0 1px 0 #fff3, 0 3px 10px #08061129;
  transition: filter .18s, transform .18s, box-shadow .18s;
}
.button:hover { filter: brightness(1.14); box-shadow: 0 0 1rem #c193ff38; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .65; cursor: progress; }
.button-top { justify-self: end; min-width: 9.1rem; font-size: .92rem; }
.nav-toggle { display: none; }

.hero { position: relative; overflow: clip; isolation: isolate; }
.hero-grid {
  position: absolute;
  inset: auto -35% -1rem;
  z-index: -1;
  height: 10rem;
  background-image: linear-gradient(#a075eea8 1px, transparent 1px), linear-gradient(90deg, #a075eea8 1px, transparent 1px);
  background-size: 100% 2.7rem, 4.5rem 100%;
  transform: perspective(12rem) rotateX(44deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(transparent, #000 73%);
  opacity: .82;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .99fr) minmax(0, 2.07fr);
  align-items: center;
  gap: clamp(1.25rem, 3.1vw, 2.7rem);
  padding-block: clamp(3rem, 5.8vw, 5.35rem) clamp(3rem, 5.4vw, 4.85rem);
}
.eyebrow { color: var(--accent); font: 400 clamp(.78rem, 1.4vw, 1rem)/1.3 var(--mono); margin-bottom: 1.25rem; }
h1 { font-size: clamp(2.6rem, 4.2vw, 4.2rem); line-height: .99; letter-spacing: -.066em; }
.hero-description { margin-top: 1.15rem; color: var(--muted); }
.button-hero { margin-top: 1.55rem; padding-inline: 1.35rem; min-height: 3rem; }

.workbench {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .28fr) minmax(0, .72fr);
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid #9d86c5;
  border-radius: .8rem;
  overflow: hidden;
  background: #16151dee;
  box-shadow: 0 20px 48px #08050b55, inset 0 1px 0 #fff1;
}
.file-tree { padding: .85rem .55rem; border-right: 1px solid #454051; color: #e4deec; font-family: var(--mono); font-size: clamp(.65rem, 1vw, .84rem); }
.file-tree > div { min-width: 0; min-height: 2rem; padding-inline: .42rem; display: flex; align-items: center; gap: .45rem; border-radius: .25rem; white-space: nowrap; }
.file-tree .icon { inline-size: .96rem; block-size: .96rem; }
.tree-folder { gap: .25rem !important; }
.tree-expander { inline-size: .65rem !important; }
.file-tree .tree-file { padding-inline-start: 1.66rem; }
.tree-file.is-current { background: linear-gradient(110deg, #6952aa, #4f3e82); color: #fff; }
.editor { min-width: 0; }
.editor-tabs { display: flex; align-items: end; gap: .16rem; min-width: 0; min-height: 3.2rem; padding: .55rem .6rem 0; border-bottom: 1px solid #454051; overflow-x: auto; }
.editor-tab { padding: .55rem .7rem .6rem; border: 0; border-radius: .4rem .4rem 0 0; background: transparent; color: #c0b5cf; white-space: nowrap; font: 400 clamp(.66rem, 1.12vw, .87rem)/1.15 var(--mono); }
.editor-tab[aria-selected="true"] { color: #fff; background: linear-gradient(100deg, #665194, #48375f); box-shadow: inset 0 1px 0 #fff2; }
.editor-tab:hover { color: #fff; }
.editor-tab:focus-visible { outline-offset: -3px; }
.editor-body { min-height: 15rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(6.3rem, .49fr); }
.code-example { padding: .95rem .75rem .9rem 1rem; min-width: 0; overflow-x: auto; }
.code-lines { counter-reset: code; list-style: none; padding: 0; font: 400 clamp(.7rem, 1.16vw, .92rem)/1.59 var(--mono); }
.code-lines li { display: flex; white-space: pre; min-height: 1.59em; min-width: max-content; }
.code-lines li::before { counter-increment: code; content: counter(code); color: #a49bae; text-align: right; font-size: .86em; margin-right: 1.05em; flex: 0 0 1.15em; }
.code-lines code { font: inherit; }
.syntax-keyword { color: #f395e8; }
.syntax-call { color: #ffe3a5; }
.syntax-string { color: #ffa7a2; }
.syntax-number { color: #b9e8ac; }
.receipt {
  container-type: inline-size;
  min-width: 0;
  margin: .7rem .7rem .7rem 0;
  padding: clamp(.62rem, 1.05vw, .95rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "mark tag" "amount amount" "state state";
  align-items: center;
  align-content: space-between;
  gap: .65rem .35rem;
  border: 1px solid #775ca2;
  border-radius: .65rem;
  background:
    repeating-radial-gradient(circle at 108% -8%, transparent 0 18px, #dbc3ff14 18px 19px, transparent 19px 32px),
    radial-gradient(ellipse at 100% 0%, #694597a8, transparent 78%),
    linear-gradient(150deg, #2d2044, #21192f 72%);
  box-shadow: inset 0 1px 0 #e2c9ff26, 0 6px 18px #09051138;
  color: #fbf6ff;
}
.receipt-mark {
  grid-area: mark;
  inline-size: 2.1rem;
  block-size: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid #cdb5fa9e;
  border-radius: .64rem;
  background: linear-gradient(135deg, #f0e3ff, #be9bed);
  color: #342050;
  box-shadow: 0 0 1.15rem #b48bf254;
}
.receipt-mark .icon { inline-size: 1.29rem; block-size: 1.29rem; stroke-width: 2.35; }
.receipt-tag {
  grid-area: tag;
  justify-self: end;
  padding: .17rem .36rem;
  border: 1px solid #bda2e65c;
  border-radius: .3rem;
  background: #332447a1;
  color: #efe0ff;
  font: 400 .64rem/1.25 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.receipt-amount {
  grid-area: amount;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .38rem;
  color: #f2e4ff;
  font-weight: 760;
  font-size: clamp(1.28rem, 23cqw, 2.55rem);
  line-height: .97;
  letter-spacing: -.068em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.receipt-currency { color: #d1b8ea; font: 400 .65rem/1 var(--mono); letter-spacing: .04em; }
.receipt-state {
  grid-area: state;
  width: 100%;
  border-top: 1px solid #9a77c166;
  padding-top: .6rem;
  color: #f2e7fb;
  font-size: clamp(.71rem, 1vw, .86rem);
  font-weight: 630;
  line-height: 1.28;
  letter-spacing: -.022em;
}
.editor-status { grid-column: 1/-1; min-width: 0; display: flex; align-items: center; padding: .6rem .9rem; color: #dcd3e7; border-top: 1px solid #454051; font: 400 clamp(.61rem, 1.1vw, .8rem)/1.2 var(--mono); }
.editor-status span { display: inline-flex; align-items: center; gap: .5rem; padding-inline: .85rem; border-left: 1px solid #5b5069; white-space: nowrap; }
.editor-status span:first-child { padding-left: 0; border-left: 0; }
.editor-status i { inline-size: .65rem; block-size: .65rem; border-radius: 50%; background: #a47df6; }

.stages { padding: 2rem 0 2.25rem; }
.stage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin-top: 1.45rem; }
.stage-grid li { position: relative; padding-inline: clamp(.8rem, 2.25vw, 1.75rem); border-left: 1px solid #51435f; }
.stage-grid li:first-child { border: 0; padding-left: .4rem; }
.stage-grid li:last-child { padding-right: 0; }
.stage-heading { display: flex; gap: .7rem; align-items: center; }
.stage-heading .icon { color: var(--accent); inline-size: 2rem; block-size: 2rem; }
.stage-grid p { margin-top: .45rem; color: var(--muted); font-size: .94rem; max-width: 15rem; }
.stage-grid li:not(:last-child) p { padding-right: 1.2rem; }
.stage-arrow { position: absolute; right: .6rem; top: 45%; color: var(--accent); inline-size: 1.1rem; block-size: 1.1rem; }

.light-panel { color-scheme: light; background: linear-gradient(110deg, #fff, #f6f4fb 92%); color: var(--ink); border: 1px solid #fff; border-radius: .85rem; box-shadow: 0 3px 18px #0806112e; }
.policy-panel { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1fr) minmax(0, .82fr); gap: clamp(.85rem, 2.25vw, 2rem); padding: clamp(1.05rem, 2.7vw, 2.05rem); margin-bottom: 1.55rem; align-items: stretch; }
.policy-copy { padding: .35rem 1rem .4rem 0; border-right: 1px solid #cdc5df; }
.policy-copy h2 { font-size: clamp(1.85rem, 3.15vw, 2.8rem); }
.policy-copy p { margin-top: .8rem; max-width: 17.5rem; color: #333043; }
.policy-json { min-width: 0; border: 1px solid #c6bfdd; border-radius: .55rem; background: #f8f7fc; padding: .7rem .55rem; overflow-x: auto; }
.policy-json .code-lines { font-size: clamp(.72rem, 1.27vw, .96rem); line-height: 1.46; }
.policy-json li::before { color: #635c77; }
.json-key { color: #a62b4a; }
.json-number { color: #1c6847; }
.json-bool { color: #6541bb; }
.policy-summary { padding: .95rem; border-radius: .6rem; background: linear-gradient(135deg, #e8ddfd, #e0d5f8); }
.policy-summary h3, .settlement-card h3 { font-size: clamp(1.18rem, 1.9vw, 1.55rem); font-weight: 800; }
.policy-summary h3 { padding-bottom: .55rem; border-bottom: 1px solid #bcb0d7; }
.policy-summary ul { margin-top: .55rem; padding: 0; list-style: none; display: grid; gap: .5rem; }
.policy-summary li { display: flex; align-items: start; gap: .55rem; font-size: .91rem; }
.policy-summary .icon { stroke-width: 2; }

.split-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.68fr); gap: clamp(1.15rem, 3.2vw, 3rem); align-items: start; padding-block: 1.85rem; }
.section-copy { padding-top: .22rem; }
.section-copy h2 { font-size: clamp(1.9rem, 3.1vw, 2.75rem); }
.settlement, .exceptions { grid-template-columns: minmax(0, .93fr) minmax(0, 1.57fr); }
.section-copy p { margin-top: .8rem; max-width: 26ch; color: var(--muted); }
.task-card, .control-card, .resource-card, .exception-table, .log-window { background: linear-gradient(120deg, #1d1b26, #16151e); border: 1px solid var(--border); border-radius: .72rem; }
.task-card { min-width: 0; padding: .9rem 1.05rem; }
.task-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .85rem; padding-bottom: .9rem; }
.task-icon { inline-size: 2.75rem; block-size: 2.75rem; display: grid; place-items: center; color: var(--accent); background: #30283d; border-radius: .45rem; }
.task-icon .icon { inline-size: 1.45rem; block-size: 1.45rem; }
.task-copy p { margin-top: .23rem; color: var(--muted); font-size: .85rem; }
.run-button { min-width: 7.5rem; font-size: .88rem; }
.run-button .icon { inline-size: 1rem; block-size: 1rem; }
.expense-table { width: 100%; font-size: .9rem; border-spacing: 0; }
.expense-table :is(th, td) { padding: .59rem .6rem; text-align: left; }
.expense-table thead th { color: #ddd6e8; font-size: .8rem; font-weight: 500; border-top: 1px solid #625671; }
.expense-table :is(th, td):last-child { text-align: right; white-space: nowrap; }
.expense-table tbody th { font-weight: 600; text-align: left; }
.expense-table tbody th span { display: inline-flex; align-items: center; gap: .65rem; }
.expense-table tbody :is(td, th) { border-top: 1px solid #413a4c; }
.expense-table tbody td { color: #d5cfe0; }
.expense-table tbody td:last-child { font-family: var(--mono); color: var(--text); }
.expense-table .icon { color: var(--accent); }
.expense-table tfoot :is(th, td) { background: #353047; border-block: 1px solid #584d6d; font-weight: 700; }
.expense-table tfoot th { border-left: 1px solid #584d6d; border-radius: .35rem 0 0 .35rem; }
.expense-table tfoot td { border-right: 1px solid #584d6d; border-radius: 0 .35rem .35rem 0; font-size: 1rem; }
.task-message { padding: .65rem .15rem .1rem; font-size: .89rem; color: #d2befa; }
.task-message[data-tone="hold"] { color: #ffdbad; }

.controls { padding-block: 1.75rem; }
.controls-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, .88fr) minmax(0, 1.19fr) minmax(0, .8fr); gap: .85rem; margin-top: 1rem; align-items: start; }
.controls-grid > p { color: var(--muted); max-width: 25ch; padding-right: .3rem; }
.control-card { min-width: 0; padding: .85rem; min-height: 6rem; }
.control-card > label, .control-label { display: block; font-size: .9rem; line-height: 1.2; font-weight: 650; margin-bottom: .66rem; }
.currency-input, .allowlist summary { display: flex; align-items: center; gap: .45rem; min-width: 0; min-height: 2.5rem; padding: .2rem .62rem; border: 1px solid #887b9b; border-radius: .4rem; color: var(--text); background: #2a2634; }
.currency-input:focus-within { outline: 2px solid #b590f2; outline-offset: 2px; }
.currency-input input { width: 100%; min-height: 2rem; color: inherit; padding: 0; outline: 0; border: 0; background: transparent; appearance: textfield; }
.currency-input input::-webkit-inner-spin-button, .currency-input input::-webkit-outer-spin-button { appearance: none; }
.field-error { color: #ffc8b8; font-size: .82rem; margin-top: .45rem; }
.allowlist { position: relative; }
.allowlist summary { list-style: none; cursor: pointer; justify-content: space-between; font-size: .85rem; }
.allowlist summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.allowlist summary .icon { inline-size: .9rem; block-size: .9rem; }
.allowlist[open] summary .icon { transform: rotate(180deg); }
.allowlist-options { position: absolute; z-index: 2; right: 0; left: 0; top: calc(100% + .35rem); padding: .4rem; border: 1px solid #887b9b; background: #211d2d; border-radius: .42rem; box-shadow: 0 .65rem 1.75rem #080611b3; }
.allowlist-options label { min-height: 2.45rem; display: flex; align-items: center; gap: .55rem; padding-inline: .35rem; cursor: pointer; border-radius: .25rem; font-size: .88rem; }
.allowlist-options label:hover { background: #342a47; }
.allowlist-options input { accent-color: #b498f7; inline-size: 1rem; block-size: 1rem; }
.switch-row { display: flex; align-items: center; gap: .65rem; min-height: 2.5rem; font-size: .88rem; }
.switch { display: flex; align-items: center; border: 1px solid #876ab2; border-radius: 2rem; background: #31253f; inline-size: 3.15rem; block-size: 1.6rem; padding: .14rem; transition: background .18s; }
.switch span { inline-size: 1.2rem; block-size: 1.2rem; border-radius: 50%; background: #fff; transition: transform .18s; }
.switch[aria-checked="true"] { background: #ad83f4; }
.switch[aria-checked="true"] span { transform: translateX(1.48rem); }

.settlement-card { padding: 1rem 1.3rem; }
.settlement-card h3 { padding-bottom: .7rem; border-bottom: 1px solid #d1c8e0; }
.settlement-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: .95rem; border-bottom: 1px solid #d1c8e0; }
.settlement-metrics div { display: flex; flex-direction: column-reverse; min-width: 0; padding-left: clamp(.6rem, 2vw, 1.35rem); border-left: 1px solid #c1b5d5; }
.settlement-metrics div:first-child { border: 0; padding-left: .2rem; }
.settlement-metrics dd { color: #623dd2; font-size: clamp(1.55rem, 3.4vw, 2.65rem); line-height: 1; font-weight: 790; letter-spacing: -.05em; }
.settlement-metrics dt { font-weight: 650; line-height: 1.2; margin-top: .2rem; }
.settlement-card > p { color: #60566e; margin-top: .65rem; font-size: .87rem; }
.exception-table { overflow: hidden; }
.exception-table div { display: grid; grid-template-columns: 1fr 1fr; }
.exception-table div + div { border-top: 1px solid #645673; }
.exception-table :is(dt,dd) { padding: .62rem 1rem; }
.exception-table dt { display: flex; align-items: center; gap: .7rem; font-weight: 650; }
.exception-table dt .icon { color: var(--accent); inline-size: 1.5rem; block-size: 1.5rem; }
.exception-table dd { border-left: 1px solid #645673; color: var(--muted); font-size: .92rem; }

.developer-band {
  color: #171022;
  background:
    repeating-linear-gradient(104deg, transparent 0 68px, #d9ccfc32 72px, transparent 103px),
    linear-gradient(90deg, #b696f4, #c6adff 44%, #b49af0);
}
.developer-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.85rem; padding-block: 1.05rem; }
.developer-heading p { border-left: 1px solid #675483; padding: .35rem 0 .35rem 1.85rem; font-weight: 550; }
.resource-grid { gap: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 1.35rem; }
.resource-card { padding: 1rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .85rem; min-height: 7rem; color: var(--text); text-align: left; transition: background .18s, border-color .18s; }
.resource-card:hover { background: #282035; border-color: #b69be0; }
.resource-card .icon { color: var(--accent); inline-size: 2rem; block-size: 2rem; }
.resource-card strong { display: block; font-size: 1.02rem; font-weight: 690; }
.resource-card small { display: block; margin-top: .35rem; color: var(--muted); font-size: .87rem; line-height: 1.4; }
.log-section { padding-block: 1.3rem 1.5rem; }
.log-window { margin-top: .9rem; padding: .7rem .8rem; max-height: 12.5rem; overflow: auto; scrollbar-color: #aa79ef #2b2338; }
.event-log { counter-reset: events; padding: 0; list-style: none; font: 400 .83rem/1.55 var(--mono); }
.event-log li { display: grid; grid-template-columns: 1.65rem 5.4rem minmax(10rem, .64fr) minmax(0, 1fr); gap: .65rem; padding: .15rem .3rem; color: #e6deee; }
.event-log li::before { content: counter(events, decimal-leading-zero); counter-increment: events; color: #a59bb7; }
.event-log time { color: var(--accent); }
.event-log strong { font-weight: 400; }
.event-log span { border-left: 1px solid #625671; padding-left: .75rem; color: #d6c9e6; overflow-wrap: anywhere; }

.faq { padding-block: 1.25rem 1.75rem; }
.faq h2 { margin-bottom: .8rem; }
.faq details { border: 1px solid #79698c; border-radius: .52rem; background: linear-gradient(100deg, #1d1a27, #17151e); }
.faq details + details { margin-top: .48rem; }
.faq summary { min-height: 2.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: .5rem .92rem; font-weight: 650; }
.faq summary:hover { color: var(--accent); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding: .05rem .92rem .85rem; max-width: 73ch; }
.footer { padding-block: 1.5rem 1.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer .brand { font-size: 1.28rem; }
.footer .brand img { width: 1.7rem; }
.footer nav { display: flex; gap: 1rem; align-items: center; }
.footer nav > * { padding: .15rem 0; border: 0; background: transparent; color: var(--muted); font-size: .88rem; }
.footer nav > * + * { padding-left: 1rem; border-left: 1px solid #7d6e91; }

.doc-dialog { background: #1e192b; color: var(--text); border: 1px solid #a38ac7; border-radius: .85rem; padding: 0; width: min(36rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); box-shadow: 0 24px 80px #08050dd9; }
.doc-dialog::backdrop { background: #0b0813bd; backdrop-filter: blur(4px); }
.dialog-inner { padding: clamp(1.1rem, 4vw, 1.85rem); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-header h2 { font-size: clamp(1.65rem, 5vw, 2.4rem); }
.close-dialog { display: grid; place-items: center; border-radius: .4rem; border: 1px solid #756290; color: var(--text); background: #302542; inline-size: 2.75rem; block-size: 2.75rem; }
#dialog-content { color: var(--muted); }
#dialog-content > * + * { margin-top: .9rem; }
#dialog-content pre { font: 400 .82rem/1.55 var(--mono); color: #e9d8ff; background: #130f1d; border: 1px solid #625171; border-radius: .55rem; padding: .8rem; overflow: auto; }
#dialog-content code { font: inherit; }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.85fr); }
  .workbench { grid-template-columns: minmax(0, .26fr) minmax(0, .74fr); }
  .file-tree .tree-file { padding-inline-start: 1.2rem; }
  .editor-body { min-height: 13.9rem; }
  .stage-grid li { padding-inline: .95rem; }
  .stage-arrow { right: .35rem; }
}

@media (max-width: 850px) {
  .hero-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.55fr); }
  .desktop-break { display: none; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .file-tree { display: none; }
  .code-example { padding-inline: .7rem .45rem; }
  .policy-panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: stretch; }
  .policy-summary { grid-column: 1/-1; }
  .policy-summary ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .controls-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr) minmax(0, .85fr); }
  .controls-grid > p { grid-column: 1/-1; max-width: none; }
  .section-copy h2, .developer-heading h2 { font-size: clamp(1.82rem, 4vw, 2.4rem); }
}

@media (max-width: 640px) {
  :root { --gutter: clamp(1rem, 4.6vw, 1.5rem); }
  .topbar { min-height: 4.2rem; grid-template-columns: 1fr auto auto; gap: .6rem; }
  .brand { font-size: 1.25rem; gap: .42rem; }
  .brand img { width: 1.65rem; }
  .button-top { font-size: .77rem; min-width: 0; min-height: 2.5rem; padding-inline: .72rem; }
  .nav-toggle { display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; border: 1px solid var(--border); border-radius: .45rem; color: var(--text); background: #201a2a; }
  .main-nav { display: none; position: absolute; inset: calc(100% + .4rem) 0 auto; padding: .35rem; background: #201a2b; border: 1px solid #8e70b6; border-radius: .55rem; box-shadow: 0 8px 24px #08051196; }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: .62rem .75rem; border-radius: .25rem; }
  .main-nav a:hover { background: #37274b; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; padding-block: 2.65rem 2.1rem; }
  h1 { font-size: clamp(2.65rem, 10.2vw, 4.15rem); max-width: 10ch; }
  .desktop-break { display: none; }
  .eyebrow { margin-bottom: .78rem; font-size: .78rem; }
  .hero-description { margin-top: .8rem; }
  .button-hero { margin-top: 1.1rem; }
  .hero-grid { bottom: -1.4rem; transform: perspective(11rem) rotateX(40deg); }
  .editor-tabs { min-height: 2.75rem; gap: .12rem; padding-top: .35rem; }
  .editor-tab { font-size: .76rem; padding-inline: .55rem; min-height: 2.3rem; }
  .editor-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .code-example { min-height: 11.15rem; padding: .7rem .65rem; }
  .code-lines { font-size: .8rem; }
  .receipt {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "mark state amount" "mark tag amount";
    gap: .27rem .64rem;
    margin: 0 .6rem .6rem;
    padding: .56rem .68rem;
    min-height: 3.55rem;
  }
  .receipt-mark { inline-size: 1.97rem; block-size: 1.97rem; border-radius: .56rem; }
  .receipt-mark .icon { inline-size: 1.13rem; block-size: 1.13rem; }
  .receipt-state { padding: 0; border: 0; font-size: .81rem; align-self: end; }
  .receipt-tag { justify-self: start; align-self: start; font-size: .58rem; padding: .08rem .26rem; }
  .receipt-amount { justify-content: end; gap: .2rem; font-size: clamp(1.12rem, 5.65vw, 1.62rem); }
  .receipt-currency { font-size: .55rem; }
  .editor-status { padding: .54rem .68rem; }
  .editor-status span { padding-inline: .57rem; }

  .stages { padding-block: 1.4rem 1.6rem; }
  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .95rem; margin-top: .95rem; }
  .stage-grid li { padding: .12rem .85rem; }
  .stage-grid li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stage-grid li:nth-child(even) { padding-right: 0; }
  .stage-grid li:not(:last-child) p { padding-right: 0; }
  .stage-grid p { font-size: .87rem; }
  .stage-arrow { display: none; }
  .stage-heading .icon { inline-size: 1.55rem; block-size: 1.55rem; }
  .stage-heading { gap: .45rem; }
  .stage-heading h3 { font-size: 1.02rem; }

  .policy-panel { grid-template-columns: minmax(0,1fr); padding: .95rem; gap: .8rem; margin-bottom: 1.2rem; }
  .policy-copy { border: 0; padding: .05rem .1rem .15rem; }
  .policy-copy h2 { max-width: 13ch; }
  .policy-copy p { margin-top: .5rem; }
  .policy-summary ul { grid-template-columns: minmax(0, 1fr); gap: .34rem; }
  .policy-json .code-lines { font-size: .82rem; }

  .split-section { grid-template-columns: minmax(0,1fr); gap: .9rem; padding-block: 1.25rem; }
  .section-copy p { max-width: 37ch; margin-top: .48rem; }
  .task-card { padding: .68rem .7rem; }
  .task-header { gap: .55rem; padding-bottom: .6rem; }
  .task-icon { width: 2.25rem; height: 2.25rem; }
  .task-copy h3 { font-size: 1rem; }
  .task-copy p { font-size: .75rem; }
  .run-button { min-width: 0; min-height: 2.7rem; padding-inline: .55rem; font-size: .76rem; gap: .22rem; }
  .run-button .icon { inline-size: .8rem; block-size: .8rem; }
  .expense-table { font-size: .82rem; }
  .expense-table :is(td,th) { padding: .46rem .25rem; }
  .expense-table thead th { font-size: .73rem; }
  .expense-table tbody th span { gap: .24rem; }
  .expense-table .icon { inline-size: .85rem; block-size: .85rem; }
  .expense-table tfoot th { padding-left: .45rem; }
  .expense-table tfoot td { padding-right: .45rem; }

  .controls { padding-block: 1.25rem; }
  .controls-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; margin-top: .6rem; }
  .control-card { padding: .68rem; min-height: 5.5rem; }
  .allowlist-card { grid-row: 3; grid-column: 1/-1; }
  .allowlist-options { position: static; margin-top: .35rem; box-shadow: none; }
  .settlement-card { padding: .85rem; }
  .settlement-metrics dt { font-size: .85rem; }
  .exception-table :is(dt,dd) { padding: .57rem .62rem; font-size: .84rem; }
  .exception-table dt { gap: .38rem; }
  .exception-table dt .icon { inline-size: 1.15rem; block-size: 1.15rem; }

  .developer-heading { grid-template-columns: minmax(0,1fr); gap: .4rem; padding-block: .85rem; }
  .developer-heading p { border: 0; padding: 0; font-size: .9rem; }
  .resource-grid { grid-template-columns: minmax(0,1fr); gap: .55rem; padding-block: .85rem; }
  .resource-card { min-height: auto; padding: .78rem; gap: .65rem; }
  .resource-card .icon { inline-size: 1.6rem; block-size: 1.6rem; }
  .resource-card small { margin-top: .18rem; }
  .log-section { padding-block: 1rem 1.15rem; }
  .log-window { padding: .45rem; max-height: 13rem; }
  .event-log { font-size: .74rem; }
  .event-log li { grid-template-columns: minmax(3.9rem, auto) minmax(0, 1fr); gap: .03rem .42rem; padding: .28rem .32rem; }
  .event-log li + li { border-top: 1px solid #3e344a; }
  .event-log li::before { display: none; }
  .event-log span { grid-column: 2; padding-left: 0; border: 0; }
  .faq { padding-block: 1rem 1.2rem; }
  .faq summary { min-height: 2.85rem; font-size: .91rem; padding-inline: .72rem; }
  .faq details p { font-size: .9rem; padding-inline: .72rem; }
  .footer { flex-direction: column; align-items: start; gap: .7rem; padding-block: 1rem 1.25rem; }
  .footer nav { flex-wrap: wrap; gap: .55rem; }
  .footer nav > * { font-size: .8rem; }
  .footer nav > * + * { padding-left: .55rem; }
}

@media (max-width: 365px) {
  .topbar { gap: .45rem; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 1.45rem; }
  .editor-status span { padding-inline: .42rem; }
  .expense-table thead th:last-child span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* infrastructure.css */
.infrastructure-page .hero-inner { grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.65rem); padding-block: clamp(3.1rem, 7.1vw, 6.65rem); }
.infrastructure-page .hero-grid { opacity: .48; }
.infrastructure-page .hero h1 { max-width: 14ch; font-size: clamp(2.7rem, 5.05vw, 4.6rem); line-height: 1.01; text-wrap: balance; }
.infrastructure-page .hero h1 span { color: #d7bcff; }
.infrastructure-page .hero-description { max-width: 43ch; }
.infrastructure-page .button-hero { gap: .65rem; }
.infrastructure-page .workbench { grid-template-columns: 1fr; }
.infrastructure-page .file-tree { display: none; }
.infrastructure-page .editor-body { min-height: 14.6rem; }
.ecosystem-references { display: grid; gap: .44rem; margin-top: 1.6rem; }
.ecosystem-references > p, .ecosystem-references > small { color: var(--muted); font: 400 .71rem/1.45 var(--mono); }
.ecosystem-references > p { letter-spacing: .075em; text-transform: uppercase; }
.ecosystem-references > div { display: flex; align-items: center; flex-wrap: wrap; gap: .22rem 1.32rem; }
.ecosystem-references a { padding-block: .18rem; color: #ede8f5; font-weight: 700; letter-spacing: -.025em; }
.ecosystem-references a:hover { text-decoration: underline; text-underline-offset: .21em; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.process-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .7rem; padding: .9rem; border: 1px solid #493d5e; border-radius: .65rem; background: #191520; }
.process-icon { display: grid; place-items: center; width: 2.28rem; height: 2.28rem; border-radius: .47rem; border: 1px solid #6a5488; background: #2a1e3b; color: #e0c5ff; }
.process-grid h3 { margin-top: .1rem; font-size: 1.03rem; }
.process-grid p { margin-top: .38rem; font-size: .87rem; color: var(--muted); line-height: 1.45; }
.capacity-section { padding-block: clamp(1.5rem, 4vw, 3.25rem); }
.capacity-heading { display: flex; align-items: end; justify-content: space-between; gap: .75rem; margin-bottom: 1.15rem; }
.capacity-heading p, .capacity-note, .footer-brand p { color: var(--muted); font-size: .89rem; margin-top: .45rem; }
.capacity-heading a { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-size: .86rem; }
.capacity-heading a:hover { text-decoration: underline; text-underline-offset: .25em; }
.capacity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.capacity-card { min-width: 0; border: 1px solid #59486e; border-radius: .77rem; background: linear-gradient(145deg, #251c34, #18151f 67%); padding: clamp(.8rem, 2vw, 1.28rem); }
.capacity-level { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .4rem; margin-bottom: .8rem; }
.capacity-level h3 { font-size: 1.13rem; margin-top: .12rem; }
.tier-status { padding: .13rem .42rem; border: 1px solid #625475; border-radius: .32rem; font: 400 .69rem/1.4 var(--mono); }
.tier-open { color: #b1f4d6; }
.tier-limited { color: #f5dca2; }
.tier-closed { color: #e0c6f3; }
.capacity-card > strong { display: block; font: 500 clamp(.9rem, 1.6vw, 1.12rem)/1.35 var(--mono); }
.capacity-card > strong small { color: var(--muted); font-size: .72rem; }
.capacity-card dl { display: grid; gap: .55rem; margin-block: .75rem; }
.capacity-card dl div { border-top: 1px solid #4a3b5e; padding-top: .47rem; }
.capacity-card dt { color: var(--muted); font-size: .76rem; }
.capacity-card dd { font-size: .87rem; margin-top: .12rem; }
.capacity-card code { display: block; border: 1px solid #483b58; border-radius: .38rem; background: #13101a; color: #e3c6f8; padding: .43rem .52rem; font: 400 .72rem/1.45 var(--mono); overflow-wrap: anywhere; }
.capacity-note { font-size: .8rem; margin-top: .7rem; }
.data-terminal { margin: .35rem 0 clamp(1.5rem, 4vw, 3rem); min-height: 13.6rem; overflow: clip; border: 1px solid #3d354a; border-radius: .79rem; background: #07080b; color: #e9ebef; }
.terminal-heading, .terminal-heading > div { display: flex; align-items: center; gap: .55rem; }
.terminal-heading { justify-content: space-between; flex-wrap: wrap; padding: .73rem 1rem; border-bottom: 1px solid #2d2937; background: #111016; }
.terminal-heading h2 { font-size: clamp(.99rem, 2vw, 1.28rem); }
.terminal-heading .icon { color: #c3a4f6; }
.terminal-indicator { color: #b3e9d4; font: 400 .68rem/1.4 var(--mono); }
#terminal-toggle { min-height: 2rem; border: 1px solid #594c68; color: #ece2f5; background: #201827; border-radius: .32rem; padding: .25rem .52rem; font-size: .76rem; }
#terminal-events { list-style: none; display: grid; gap: .29rem; padding: .68rem 1rem; color: #e1ebeb; font: 400 .81rem/1.55 var(--mono); }
#terminal-events time { color: #ad9ac7; margin-right: .62rem; }
.infrastructure-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.23fr) auto; align-items: start; gap: 1.2rem 2rem; padding-block: 1.55rem 2rem; }
.infrastructure-footer section h2 { margin-bottom: .64rem; font-size: .99rem; letter-spacing: -.015em; }
.infrastructure-footer section ul { list-style: none; padding: 0; display: grid; gap: .48rem; }
.infrastructure-footer section a { display: flex; gap: .43rem; align-items: center; color: var(--muted); font-size: .83rem; }
.infrastructure-footer section a:hover { color: var(--accent); }
.infrastructure-footer small { margin-left: .08rem; color: var(--accent); font: 400 .65rem var(--mono); }
.infrastructure-footer section .icon { width: .93rem; height: .93rem; color: var(--accent); }
.infrastructure-footer nav { display: grid; justify-items: start; gap: .34rem; }
.infrastructure-footer nav > * + * { padding-left: 0; border-left: 0; }

@media (max-width: 850px) { .infrastructure-page .hero h1 { font-size: clamp(2.65rem, 5.55vw, 4.15rem); } }
@media (max-width: 710px) {
  .infrastructure-page .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 2.65rem 2rem; gap: 1.5rem; }
  .infrastructure-page .hero h1 { max-width: 17ch; text-wrap: wrap; font-size: clamp(2.5rem, 8.9vw, 4.12rem); }
  .process-grid, .capacity-grid { grid-template-columns: 1fr; margin-top: .85rem; }
  .capacity-heading { align-items: start; flex-direction: column; margin-bottom: .55rem; }
  .capacity-card dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); margin-block: .58rem; gap: .7rem; }
  .capacity-card code { font-size: .76rem; }
  .infrastructure-footer { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .infrastructure-footer nav { display: flex; flex-wrap: wrap; gap: .5rem .95rem; }
}
@media (max-width: 640px) { .infrastructure-page .editor-body { min-height: 0; } }
@media (max-width: 365px) {
  .infrastructure-page .topbar .button-top { padding-inline: .48rem; font-size: .7rem; }
  .infrastructure-page .hero h1 { font-size: 2.36rem; }
  .terminal-heading { padding-inline: .75rem; }
  #terminal-events { padding-inline: .75rem; font-size: .73rem; }
}
@media (min-width: 711px) {
  .process-grid { gap: 1.45rem; }
  .process-grid li { position: relative; }
  .process-grid li + li::before { content: "→"; position: absolute; top: 50%; left: -1.34rem; transform: translateY(-50%); color: var(--accent); font-size: .95rem; }
}

.ecosystem-references .technology-brand{display:inline-flex;align-items:center;gap:.42rem;color:#e8e4ee;font-weight:600;font-size:.83rem;white-space:nowrap}
.ecosystem-references .technology-brand img{object-fit:contain;filter:brightness(0) invert(.88)}
.ecosystem-references .technology-brand img[src$=".png"]{filter:grayscale(1);border-radius:4px}
.ecosystem-references>div{gap:.68rem 1rem}
.pool-terms{margin:1rem 0 0;display:flex;align-items:center;justify-content:space-between;gap:2rem;border-left:3px solid #c6a3ef;background:#211c2a;padding:1rem 1.25rem}
.pool-terms h3{font-size:1rem}
.pool-terms p{max-width:78ch;margin-top:.35rem;color:var(--muted);font-size:.89rem}
.pool-terms a{color:var(--accent);flex:none;text-decoration:underline;text-underline-offset:.2em}
@media(max-width:680px){.pool-terms{align-items:start;flex-direction:column;gap:.75rem}}
.infrastructure-page .hero-inner{align-items:center;gap:clamp(1.8rem,5vw,5rem)}
.hero-secondary{display:inline-block;color:#f5effa;margin:.7rem 0 .5rem .85rem;text-underline-offset:.25em}
.hero-secondary:hover{text-decoration:underline}
.company-invite{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:clamp(1.4rem,4vw,3rem);background:#231d2b;border:1px solid #473b51;border-radius:.85rem}
.company-invite p{max-width:66ch;color:var(--muted);margin-top:.55rem}
.company-invite a{flex:none}
.technical-lab{margin-block:1.5rem;border-block:1px solid #453b51}
.technical-lab>summary{padding:1.15rem .35rem;cursor:pointer;color:#e4d5f4;font-weight:600}
.technical-lab>.workbench{max-width:48rem;margin:1rem auto}
@media(max-width:710px){.company-invite{align-items:start;flex-direction:column;gap:1rem}.hero-secondary{margin-left:.5rem}}
@media(max-width:400px){.hero-secondary{display:block;margin:.8rem 0 .4rem}}

.participant-panel {
  --pool-edge: #d9cde3;
  --pool-muted: #5e516b;
  display: grid;
  gap: clamp(.75rem, 1.8vw, 1.15rem);
  scroll-margin-top: 1rem;
  margin-block: clamp(1.6rem,4vw,3.5rem);
  padding: clamp(.85rem, 2.3vw, 1.75rem);
  border: 1px solid #e9e0f2;
  border-radius: 1.05rem;
  background: radial-gradient(ellipse at 0 0,#f8f4fc,transparent 78%), #eee8f4;
  color: #2e2536;
}
.pool-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(.7rem,2.65vw,2.4rem); align-items: center; }
.pool-intro { display: grid; align-content: start; justify-items: start; gap: .55rem; }
.pool-intro h2 { font-size: clamp(1.75rem,3.1vw,2.85rem); letter-spacing: -.052em; line-height: 1.07; }
.pool-intro p { max-width: 50ch; color: var(--pool-muted); font-size: .91rem; line-height: 1.48; }
.pool-intro a, .pool-breakdown summary, .member-invite>a { color: #51346c; font-weight: 620; text-underline-offset: .25em; }
.pool-intro a, .pool-breakdown summary { font-size: .84rem; }
.pool-intro a:hover, .pool-breakdown summary:hover { text-decoration: underline; }
.pool-scenario {
  display: grid;
  gap: .62rem;
  min-width: 0;
  padding: clamp(.74rem,1.9vw,1.12rem);
  border: 1px solid #5a456c;
  border-radius: .77rem;
  background: radial-gradient(ellipse at 100% 0,#4b335e,transparent 75%), #282032;
  color: #fbf4ff;
}
.pool-scenario-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .22rem .6rem; }
.pool-scenario-heading h3 { font-size: 1rem; letter-spacing: -.022em; line-height: 1.15; }
.pool-scenario-heading span { color: #e1cee9; font: .7rem/1.3 var(--mono); }
.pool-scenario-values { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: .6rem 1rem; }
.pool-scenario-control, .pool-scenario-total { display: grid; gap: .25rem; min-width: 0; }
.pool-scenario label, .pool-scenario-total > span, .pool-scenario p { color: #e0d2e8; font-size: .75rem; line-height: 1.25; }
.pool-scenario select { width: 100%; min-width: 0; min-height: 2.32rem; padding: .31rem .47rem; border-radius: .4rem; border: 1px solid #a18bb3; background: #392d48; color: #fbf2ff; font: 600 .9rem Inter,Arial,sans-serif; }
.pool-scenario-total { padding-inline-start: .8rem; border-inline-start: 1px solid #9f7db852; }
.pool-scenario-total strong { font: 400 clamp(1.42rem, 2.6vw, 1.9rem)/1.12 var(--mono); letter-spacing: -.07em; color: #ead2ff; overflow-wrap: anywhere; }
.pool-scenario-total small { font-size: .69rem; letter-spacing: 0; }
.pool-scenario p { color: #cdbdd9; }
.pool-opening { display: grid; gap: .75rem; scroll-margin-top: 5.5rem; }
.pool-opening header, .pool-opening-guide > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; }
.pool-opening h3, .pool-opening-guide h4 { margin: 0; font-size: 1.04rem; letter-spacing: -.026em; }
.pool-opening a { color: #54316e; font-weight: 650; font-size: .8rem; text-decoration: underline; text-underline-offset: .19em; }
.pool-opening a:hover { color: #2b1244; }
.pool-plans { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.pool-plan { display: grid; grid-template-rows: auto auto auto 1fr auto; justify-items: start; gap: .35rem; min-width: 0; padding: clamp(.75rem,1.6vw,1.05rem); border: 1px solid var(--pool-edge); border-radius: .72rem; background: #fbf7fd; }
.pool-plan h4 { margin: 0; font-size: 1rem; letter-spacing: -.022em; line-height: 1.18; }
.pool-plan-amount { font: 600 clamp(.9rem,1.45vw,1.03rem)/1.3 var(--mono); letter-spacing: -.04em; }
.pool-plan-kind { color: #674586; font: .72rem/1.25 var(--mono); }
.pool-plan p { color: var(--pool-muted); font-size: .81rem; line-height: 1.37; }
.pool-plan-access { display: grid; gap: .32rem; width: 100%; padding-top: .52rem; margin-top: .18rem; border-top: 1px solid var(--pool-edge); }
.pool-plan-access > span { display: flex; align-items: baseline; gap: .36rem; color: var(--pool-muted); font-size: .75rem; line-height: 1.3; font-weight: 650; }
.pool-plan-access > span::before { content: ""; flex: 0 0 .36rem; height: .36rem; align-self: center; border-radius: 50%; background: currentColor; }
[data-opening-state="open"] .pool-plan-access > span { color: #27634d; }
[data-opening-state="scheduled"] .pool-plan-access > span { color: #795218; }
.pool-plan-access time { color: var(--pool-muted); font: .72rem/1.35 var(--mono); }
.pool-opening-guide { display: grid; gap: .55rem; padding: .82rem .95rem; border: 1px solid var(--pool-edge); border-radius: .72rem; background: #f8f3fb; }
.pool-opening-guide ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem 1rem; padding: 0; list-style: none; counter-reset: pool-step; }
.pool-opening-guide li { position: relative; display: grid; align-content: start; gap: .2rem; padding-left: 1.6rem; counter-increment: pool-step; }
.pool-opening-guide li::before { content: counter(pool-step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 1.18rem; height: 1.18rem; border-radius: .32rem; color: #54316e; background: #e9dcef; font: 650 .72rem/1 var(--mono); }
.pool-opening-guide li strong { font-size: .81rem; }
.pool-opening-guide li span { color: var(--pool-muted); font-size: .77rem; line-height: 1.35; }
.pool-footer { padding-top: .25rem; border-top: 1px solid var(--pool-edge); }
.pool-breakdown summary { display: flex; align-items: center; gap: .3rem; min-height: 2.1rem; cursor: pointer; list-style: none; }
.pool-breakdown summary::-webkit-details-marker { display: none; }
.pool-breakdown summary .icon { width: .93rem; height: .93rem; }
.pool-breakdown[open] summary .icon { transform: rotate(180deg); }
.pool-breakdown-body { display: grid; gap: .55rem; padding: .65rem .7rem; border: 1px solid var(--pool-edge); border-radius: .6rem; background: #f8f3fb; color: var(--pool-muted); font-size: .82rem; line-height: 1.45; }
.pool-examples { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .42rem; }
.pool-examples > div { display: grid; gap: .13rem; padding: .4rem .45rem; border: 1px solid var(--pool-edge); border-radius: .38rem; overflow-wrap: anywhere; }
.pool-examples dd { font-weight: 650; color: #51346c; }
.connection-grid{display:grid;grid-template-columns:1.32fr 1fr;gap:1rem;margin:1.75rem 0}
.connection-grid>section{display:flex;flex-direction:column;align-items:start;justify-content:space-between;gap:1.3rem;padding:clamp(1.4rem,3.5vw,2.7rem);border-radius:1rem;margin:0}
.connection-grid .company-invite{background:linear-gradient(145deg,#e4d3f2,#d0bee8);color:#30203e;border:1px solid #e1d4ed}
.connection-grid .company-invite h2,.member-invite h2{font-size:clamp(1.55rem,2.8vw,2.4rem);letter-spacing:-.05em;line-height:1.1;color:#34253f}
.connection-grid .company-invite p,.member-invite p{color:#574960;line-height:1.55;margin-top:.6rem}
.connection-grid .company-invite a{background:#392b46;color:#fff}
.member-invite{background:linear-gradient(145deg,#e9e7f0,#d8dbea);border:1px solid #e4def2;color:#302a34}.invite-symbol{display:grid;place-items:center;color:#694e78;background:#e6dfea;border-radius:.6rem;width:2.4rem;height:2.4rem}
@media (max-width: 800px) {
  .pool-overview, .connection-grid { grid-template-columns: minmax(0, 1fr); }
  .pool-plans { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pool-breakdown summary { min-height: 2.5rem; }
}
@media (max-width: 480px) {
  .pool-opening-guide ol { grid-template-columns: minmax(0,1fr); }
  .pool-plans { grid-template-columns: repeat(auto-fit, minmax(min(8.65rem, 100%), 1fr)); }
  .pool-plan { padding: .65rem; }
  .pool-plan-access a span { display: none; }
  .pool-examples { grid-template-columns: minmax(0,1fr); }
  .pool-examples > div { grid-template-columns: 1fr auto; }
}

.settlement-console {
  --console-border: #453750;
  --console-muted: #bfb1cc;
  --console-accent: #d5b4ff;
  --console-result: #b47cf8;
  width: 100%;
  min-width: 0;
  max-width: 35rem;
  justify-self: end;
  border: 1px solid #6a507b;
  border-radius: 1rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 100% 0%, #2d1d40, transparent 76%), #15121d;
  box-shadow: 0 1.5rem 4rem #07050b80, 0 0 3rem #a56df213;
  color: #f4edf9;
}

.console-titlebar {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  align-items: center;
  gap: .6rem;
  padding: .8rem clamp(.9rem, 3vw, 1.55rem);
  border-bottom: 1px solid var(--console-border);
  background: #211a2d;
  font: 400 .75rem/1.4 var(--mono);
  color: var(--console-muted);
}

.console-titlebar > :last-child { justify-self: end; }
.console-lights { display: flex; gap: .35rem; }
.console-lights i {
  width: .57rem;
  height: .57rem;
  border-radius: 50%;
  background: #ff827c;
}
.console-lights i:nth-child(2) { background: #f2c76b; }
.console-lights i:nth-child(3) { background: #78d2ac; }

.console-body { padding: clamp(1rem, 2.7vw, 1.65rem); }
.console-caption {
  color: var(--console-accent);
  font: 400 .75rem/1.4 var(--mono);
}
.console-body h2 {
  margin: .36rem 0 1.15rem;
  font-size: clamp(1.38rem, 2.5vw, 2rem);
  line-height: 1.1;
  text-wrap: balance;
}

.console-prompt {
  display: flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid var(--console-border);
  border-radius: .42rem;
  background: #130e1c;
  padding: .54rem .7rem;
  font: 400 .8rem/1.45 var(--mono);
}
.console-prompt > span { color: #99e4c7; }
.console-command { color: #e5daf0; white-space: nowrap; font: inherit; }
.console-command b { font-weight: inherit; color: #a8e9ce; }
.console-command em { font-style: normal; color: var(--console-accent); }
.console-command::after {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .86em;
  margin-left: .6ch;
  background: #b599df;
  vertical-align: -.08em;
  opacity: .65;
}

.console-ledger { margin: .72rem 0 .9rem; }
.console-ledger > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: .7rem;
  padding: .36rem .12rem;
}
.console-ledger dt {
  display: flex;
  align-items: baseline;
  gap: .62rem;
  color: var(--console-muted);
  font-size: .84rem;
  line-height: 1.36;
}
.console-ledger dt::before {
  content: "";
  width: .36rem;
  height: .36rem;
  flex: 0 0 auto;
  border-radius: 1px;
  background: var(--console-slice);
  transform: translateY(-.07em);
}
.console-ledger dd {
  font: 400 .87rem/1.35 var(--mono);
  color: #e9deee;
  white-space: nowrap;
}
.console-income { --console-slice: #90dbbe; }
.console-ledger .console-income {
  border-bottom: 1px solid #453750;
  margin-bottom: .3rem;
  padding-bottom: .62rem;
}
.console-income dt { color: #f2e8f7; }
.console-income dd { color: #a0e3c9; }
.console-infra { --console-slice: #79738f; }
.console-review { --console-slice: #9a88b1; }
.console-fees { --console-slice: #bf99be; }
.console-reserve { --console-slice: #d3ad8b; }

.console-result {
  padding: .73rem .83rem .82rem;
  border: 1px solid #60477d;
  border-radius: .55rem;
  background: linear-gradient(115deg, #322743, #251b36);
}
.console-result p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .7rem;
  font-size: .83rem;
  color: #e9d9f9;
}
.console-result strong {
  color: #e8d3ff;
  font: 400 clamp(1.55rem, 3vw, 2.15rem)/1.15 var(--mono);
  letter-spacing: -.05em;
  white-space: nowrap;
}
.console-bar {
  display: grid;
  grid-template-columns: 42fr 18fr 10fr 6fr 24fr;
  gap: .15rem;
  height: .43rem;
  margin-top: .63rem;
}
.console-bar i {
  background: var(--console-slice, var(--console-result));
  border-radius: .08rem;
  transform-origin: left;
}
.console-bar i:last-child { box-shadow: 0 0 .7rem #b47cf85c; }

.console-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .72rem;
  margin-top: .65rem;
}
.console-actions a {
  display: inline-flex;
  align-items: baseline;
  gap: .32rem;
  justify-self: start;
  color: var(--console-accent);
  padding: .45rem 0;
  font-size: .8rem;
  text-underline-offset: .22em;
}
.console-actions a:hover { text-decoration: underline; }
.console-replay {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  padding: 0 .52rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  color: #ddcce9;
  background: transparent;
  font-size: .77rem;
}
.console-replay:hover { background: #2c213b; border-color: var(--console-border); }
.console-replay .icon { inline-size: .9rem; block-size: .9rem; }

@media (prefers-reduced-motion: no-preference) {
  .settlement-console.is-playing .console-command {
    animation: console-type .48s steps(23, end) both;
  }
  .settlement-console.is-playing .console-command::after {
    animation: console-cursor .48s steps(2, jump-none) 3 .48s;
  }
  .settlement-console.is-playing .console-ledger > div {
    animation: console-reveal .24s ease-out both;
    animation-delay: calc(.53s + var(--console-step, 0) * .145s);
  }
  .console-ledger > :nth-child(2), .console-bar > :nth-child(2) { --console-step: 1; }
  .console-ledger > :nth-child(3), .console-bar > :nth-child(3) { --console-step: 2; }
  .console-ledger > :nth-child(4), .console-bar > :nth-child(4) { --console-step: 3; }
  .console-ledger > :nth-child(5), .console-bar > :nth-child(5) { --console-step: 4; }
  .settlement-console.is-playing .console-result {
    animation: console-reveal .31s ease-out 1.34s both;
  }
  .settlement-console.is-playing .console-bar i {
    animation: console-fill .25s ease-out both;
    animation-delay: calc(1.49s + var(--console-step, 0) * .085s);
  }

  @keyframes console-type {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
  }
  @keyframes console-cursor {
    from { opacity: .65; }
    to { opacity: .15; }
  }
  @keyframes console-reveal {
    from { opacity: 0; transform: translateY(.25rem); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes console-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

@media (min-width: 711px) and (max-width: 900px) {
  .infrastructure-page .hero-inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 1.6rem;
  }
}
@media (max-width: 710px) {
  .settlement-console { max-width: none; }
}
@media (max-width: 480px) {
  .console-replay {
    position: relative;
    justify-content: center;
    width: 2.75rem;
    border-color: var(--console-border);
  }
  .console-replay > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}


/* home-platform.css */
/* Product landing sections share the spacing and typography of the hero. */
.infrastructure-page {
  --landing-border: #483954;
  --landing-soft: #bfb4ce;
  --landing-ink: #282034;
  --landing-paper: #e9e1f2;
}
.infrastructure-page .main-nav { gap: clamp(.85rem, 2.4vw, 2.45rem); }
.infrastructure-page .topbar {
  min-height: 4.9rem;
  border-color: #6a547773;
}
.hero-halo {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 82% 45%, #7a4aa82b, transparent 52%),
    radial-gradient(ellipse at 13% 15%, #9a61d517, transparent 42%);
}
.infrastructure-page .hero-inner { padding-block: clamp(2.6rem, 6.7vw, 5.75rem); }
.infrastructure-page .settlement-console { box-shadow: 0 1.65rem 5rem #08050bb0, 0 0 4rem #9160c626; }
.infrastructure-page .hero #headline { max-width: none; font-size: clamp(2.25rem,3.64vw,3.8rem); line-height: 1.035; }
.infrastructure-page .hero #headline span { display: block; margin-top: .15em; text-wrap: balance; }
.infrastructure-page .hero #headline .hero-title-main { color: inherit; margin-top: 0; }
.infrastructure-page .hero-description { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.05rem; margin-top: 1.25rem; }
.hero-actions .button-hero, .hero-actions .hero-secondary { margin: 0; }
.hero-actions .hero-secondary { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.65rem; font-size: .9rem; }
.hero-settlement-flow { display: flex; flex-wrap: wrap; gap: .25rem .65rem; margin-top: 1.25rem; padding: 0; list-style: none; color: #d3c5e1; font-size: .83rem; }
.hero-settlement-flow li { display: flex; align-items: center; gap: .65rem; }
.hero-settlement-flow span { color: var(--accent); }
.landing-ecosystem { margin-top: 1.35rem; }

.operations-strip {
  min-width: 0;
  margin-top: clamp(1.4rem, 3.6vw, 2.65rem);
  padding: clamp(.8rem,1.7vw,1.35rem);
  border: 1px solid #493c55;
  border-radius: 1.05rem;
  background: radial-gradient(ellipse at 0 0,#9160c61c,transparent 59%), #191521;
  box-shadow: inset 0 1px #c8a2ee16;
}
.operations-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1rem; margin-bottom: .85rem; }
.operations-heading { display: flex; align-items: center; gap: .65rem; }
.operations-heading-mark { display: grid; place-items: center; width: 2.05rem; height: 2.05rem; flex-shrink: 0; border: 1px solid #6e5387; border-radius: .58rem; background: #342645; color: #d4b7f3; }
.operations-heading-mark .icon { width: 1.03rem; height: 1.03rem; }
.operations-heading h2 { font-size: clamp(1.03rem,2vw,1.31rem); letter-spacing: -.025em; }
.operations-status { display: flex; align-items: center; gap: .45rem; padding: .25rem .56rem; border: 1px solid #493d55; border-radius: .43rem; background: #211929; color: #d0c1db; font-size: .75rem; line-height: 1.4; }
.operations-status::before { content: ""; display: block; width: .37rem; height: .37rem; flex-shrink: 0; border-radius: 50%; background: #a894b5; }
.operations-strip[data-report-state="reported"] .operations-status::before { background: #9ad9bd; }
.operations-strip[data-report-state="unavailable"] .operations-status::before { background: #d7ad87; }
.operations-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.44rem,1.05vw,.76rem); }
.operations-metric { display: grid; grid-template-rows: auto 1fr; gap: .42rem; min-width: 0; padding: .82rem .9rem; border: 1px solid #493d55; border-radius: .67rem; background: #241c2e; }
.operations-metric dt { display: flex; align-items: flex-start; gap: .43rem; color: #e9dfef; font-weight: 580; font-size: .84rem; line-height: 1.26; }
.operations-metric dt .icon { width: .96rem; height: .96rem; margin-top: .04rem; color: #c9a9e8; }
.operations-metric dd { display: grid; align-content: start; gap: .28rem; }
.operations-reading { min-height: 2.5rem; display: flex; align-items: baseline; align-content: center; flex-wrap: wrap; gap: .28rem; color: #f2e8fc; overflow-wrap: anywhere; }
.operations-reading strong { min-width: 0; font: 400 clamp(1.43rem,2.42vw,2rem)/1.18 var(--mono); letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.operations-unit { font: .7rem/1.18 var(--mono); color: #d1b8e5; }
.operations-payout[data-metric-state="reported"] { background: linear-gradient(125deg,#352541,#261d31); border-color: #79608b; }
.operations-metric[data-metric-state="empty"] .operations-reading { align-items: center; }
.operations-metric[data-metric-state="empty"] .operations-reading strong { display: inline-grid; place-items: center; min-width: 1.9rem; padding: .14rem .4rem; border: 1px solid #584765; border-radius: .34rem; background: #201829; color: #c8b4d4; font-size: .84rem; letter-spacing: 0; }
.operations-metric small, .operations-rework { color: #cbbbd7; font-size: .76rem; line-height: 1.35; }
.operations-rework { display: flex; align-items: flex-start; gap: .48rem; margin-top: .8rem; padding-top: .68rem; border-top: 1px solid #493d55; }
.operations-rework .icon { width: .9rem; height: .9rem; align-self: center; color: #d4b6ef; }
@media (max-width: 710px) {
  .infrastructure-page .hero #headline { font-size: clamp(1.98rem,7.25vw,3.05rem); }
  .hero-actions { gap: .38rem .75rem; }
  .hero-actions .button { font-size: .87rem; }
  .operations-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .operations-strip { padding: .7rem; }
  .operations-header { gap: .5rem; margin-bottom: .62rem; }
  .operations-heading { gap: .45rem; }
  .operations-heading-mark { width: 1.67rem; height: 1.67rem; }
  .operations-heading-mark .icon { width: .85rem; height: .85rem; }
  .operations-status { font-size: .69rem; padding-inline: .36rem; }
  .operations-metric { padding: .58rem; gap: .3rem; }
  .operations-metric dt { font-size: .8rem; min-height: 2.55em; gap: .32rem; }
  .operations-metric dt .icon { width: .8rem; height: .8rem; }
  .operations-reading { min-height: 1.68rem; }
  .operations-reading strong { font-size: 1.4rem; }
  .operations-metric small, .operations-rework { font-size: .71rem; }
  .operations-rework { margin-top: .64rem; padding-top: .56rem; }
}
@media (max-width: 350px) {
  .operations-metric dt .icon { display: none; }
}

.landing-section {
  margin-block: clamp(2.65rem, 6vw, 5.45rem);
  scroll-margin-top: 1rem;
}
.landing-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .68fr);
  align-items: end;
  gap: .8rem 2rem;
  margin-bottom: 1.55rem;
}
.landing-heading h2 {
  font-size: clamp(2rem, 4.3vw, 3.85rem);
  letter-spacing: -.062em;
  text-wrap: balance;
}
.landing-heading p { max-width: 46ch; color: var(--landing-soft); }
.product-grid, .architecture-grid, .simulation-layout, .docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  gap: clamp(.85rem, 2vw, 1.4rem);
}
.product-grid article {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 14.5rem;
  padding: clamp(1.35rem, 3.5vw, 2.7rem);
  border: 1px solid var(--landing-border);
  border-radius: .95rem;
}
.product-gateway {
  background:
    repeating-linear-gradient(90deg, transparent 0 35px, #ac89dd10 36px, transparent 37px),
    linear-gradient(130deg, #282034, #18131f 78%);
}
.product-grid .product-workflows {
  color: var(--landing-ink);
  background: radial-gradient(ellipse at 98% 0%, #cab3ee 0, transparent 64%), var(--landing-paper);
  border-color: #e3cefc;
}
.product-grid .icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.15rem;
  color: var(--accent);
}
.product-workflows .icon { color: #5b367e; }
.product-grid h3 {
  font-size: clamp(1.45rem, 2.7vw, 2.5rem);
  letter-spacing: -.05em;
  line-height: 1.08;
}
.product-grid p { max-width: 43ch; margin: .65rem 0 1.35rem; color: var(--landing-soft); }
.product-workflows p { color: #52435f; }
.product-grid a, .architecture-grid a, .team-grid a, .quickstart-actions a {
  font-size: .88rem;
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.product-grid a { margin-top: auto; }
.product-workflows a { color: #50336b; font-weight: 660; }
:is(.product-grid, .architecture-grid, .team-grid, .quickstart-actions) a:hover { text-decoration-line: underline; }

.workflow-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.workflow-grid { margin-top: 1.35rem; }
.workflow-grid article {
  padding: .6rem .95rem .7rem;
  border-left: 2px solid #75548f;
}
:is(.workflow-grid, .architecture-notes, .team-grid) h3 { font-size: 1.18rem; line-height: 1.22; }
:is(.workflow-grid, .architecture-notes, .team-grid) p {
  margin: .45rem 0 0;
  color: var(--landing-soft);
  font-size: .91rem;
}
.infrastructure-page .stages { padding-bottom: 1rem; }

.architecture-window, .quickstart-window {
  min-width: 0;
  border: 1px solid var(--landing-border);
  border-radius: .95rem;
  overflow: hidden;
  background: linear-gradient(135deg, #22192e, #17121e 76%);
}
:is(.architecture-window, .quickstart-window) .console-titlebar {
  --console-border: #483954;
  --console-muted: #c5b8d4;
}
.architecture-body, .quickstart-body { padding: clamp(1.1rem, 3vw, 2rem); }
.architecture-body h3, .quickstart-body h3 { font-size: 1.4rem; line-height: 1.15; }
.architecture-trace { padding: 0; margin: 1.05rem 0; list-style: none; }
.architecture-trace li {
  display: grid;
  grid-template-columns: 3.9rem minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
  padding: .65rem 0;
  border-bottom: 1px solid #44354e;
}
.architecture-trace code { font: .8rem var(--mono); color: #a0dfc6; }
.architecture-trace strong { font-size: .9rem; }
.architecture-trace p { margin-top: .15rem; font-size: .85rem; color: var(--landing-soft); }
.architecture-notes {
  display: grid;
  gap: .65rem;
}
.architecture-notes article {
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--landing-border);
  border-radius: .7rem;
  background: #1d1825;
}
.architecture-notes p { margin-bottom: .45rem; }

.simulation-section {
  padding: clamp(1.1rem, 3.75vw, 3rem);
  color: var(--landing-ink);
  background: radial-gradient(ellipse at right top, #c2c7e7, transparent 65%), #e3e3f0;
  border: 1px solid #e8e7f6;
  border-radius: 1.2rem;
}
.simulation-section .landing-heading p,
.simulation-method p { color: #52435d; }
.simulation-layout { align-items: stretch; }
#batch-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#batch-form fieldset legend { padding: 0; margin-bottom: .9rem; font-size: 1.18rem; font-weight: 700; }
.simulation-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.simulation-fields label { display: grid; align-content: end; gap: .25rem; font-size: .82rem; font-weight: 620; }
.simulation-fields :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 2.6rem;
  padding: .4rem .65rem;
  background: #fbf8ff;
  color: #251d32;
  border: 1px solid #aa94be;
  border-radius: .45rem;
  color-scheme: light;
  font: 600 .91rem Inter, system-ui, sans-serif;
}
.simulation-fields select { padding-right: 1.1rem; }
.simulation-fields :focus-visible, .simulation-method :focus-visible { outline-color: #58318f; }
.simulation-fields [aria-invalid="true"] { border-color: #994267; }
.simulation-preset, .simulation-full { grid-column: 1 / -1; }
.simulation-note { margin-top: .85rem; color: #574768; font-size: .81rem; }
.simulation-error { color: #82244b; font-size: .82rem; margin-top: .45rem; }
.simulation-output {
  color: #f1e8fb;
  background: linear-gradient(135deg, #342345, #221a2e 74%);
  border: 1px solid #654d7d;
  border-radius: .82rem;
  padding: clamp(1rem, 2.7vw, 1.65rem);
  min-width: 0;
}
.simulation-output h3 { color: #e9d8f8; font-size: 1.13rem; margin-bottom: .95rem; }
.batch-margin { display: grid; gap: .16rem; }
.batch-margin span { font-size: .9rem; color: #dec9ee; }
.batch-margin output {
  color: #b5efd2;
  font: 400 clamp(1.55rem, 4.1vw, 2.7rem)/1.12 var(--mono);
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}
.batch-margin output.is-loss { color: #ffb1be; }
.simulation-output dl { margin-top: 1rem; }
.simulation-output dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: baseline;
  gap: .6rem;
  border-top: 1px solid #59446d;
  padding: .53rem 0;
  font-size: .83rem;
}
.simulation-output dd { text-align: right; overflow-wrap: anywhere; font-family: var(--mono); }
.simulation-output .simulation-note { color: #cec0da; }
.batch-meter {
  position: relative;
  height: .52rem;
  margin: .72rem .1rem 0;
  border-radius: .2rem;
  background: #4b3b5a;
}
.batch-meter span { display: block; width: 80%; height: 100%; background: #a5d6c8; border-radius: inherit; }
.batch-meter i {
  position: absolute;
  top: -.17rem;
  left: 60%;
  width: 2px;
  height: .86rem;
  background: #ead7ff;
  transform: translateX(-50%);
}
@media (prefers-reduced-motion: no-preference) {
  .batch-meter span { transition: width .18s ease-out; }
}
.simulation-method {
  margin-top: 1.3rem;
  border-top: 1px solid #b19fc7;
  padding-top: .75rem;
}
.simulation-method summary { cursor: pointer; font-size: .89rem; font-weight: 690; }
.simulation-method p { margin-top: .4rem; font-size: .86rem; }
.simulation-method a { color: #493067; text-decoration: underline; text-underline-offset: .18em; }

.quickstart-body > p:not([role="status"]) { color: var(--landing-soft); margin: .6rem 0 .95rem; font-size: .9rem; }
.quickstart-body code { font-family: var(--mono); color: #d5b4ff; }
.quickstart-body pre {
  background: #100c18;
  border: 1px solid #433252;
  border-radius: .55rem;
  padding: .85rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: clamp(.74rem, 1.6vw, .9rem);
}
.quickstart-body pre code { color: #c2ead7; }
.quickstart-actions { margin-top: .72rem; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; }
.quickstart-actions button {
  min-height: 2.75rem;
  border-radius: .45rem;
  border: 1px solid #67507f;
  padding: .35rem .7rem;
  color: #ebdafa;
  background: #30213e;
  font-size: .83rem;
}
.quickstart-actions button:hover { background: #3e2b51; }
#copy-model-status:not(:empty) { margin-top: .4rem; font-size: .78rem; color: #c6e8d8; }
.docs-links { list-style: none; padding: 0; display: grid; gap: .55rem; }
.docs-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .73rem .92rem;
  border: 1px solid var(--landing-border);
  background: #1b1523;
  border-radius: .58rem;
}
.docs-links a:hover { border-color: #8e6caf; background: #281e34; }
.docs-links a > :is(svg, :last-child) { color: var(--accent); }
.docs-links strong { display: block; line-height: 1.3; font-size: .94rem; }
.docs-links small { display: block; margin-top: .15rem; font-size: .82rem; color: var(--landing-soft); }
.docs-library {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  align-items: center;
  margin-top: 1.1rem;
  padding-block: .7rem;
  border-block: 1px solid var(--landing-border);
}
.docs-library a {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  font-size: .84rem;
}
.docs-library a:hover { text-decoration: underline; }
.docs-library small {
  white-space: nowrap;
  border: 1px solid var(--landing-border);
  border-radius: .28rem;
  padding: .15rem .32rem;
  color: var(--landing-soft);
  font: .68rem var(--mono);
}
.docs-library a:last-child { margin-left: auto; }

.team-grid article {
  display: flex;
  flex-direction: column;
  align-items: start;
  border-top: 2px solid #8c62ad;
  background: #1e1827;
  border-radius: .3rem .3rem .7rem .7rem;
  padding: 1.15rem 1.2rem;
}
.team-grid .icon { margin-bottom: .65rem; color: var(--accent); }
.team-grid p { margin-bottom: .9rem; }
.team-grid a { margin-top: auto; }

@media (max-width: 950px) {
  .infrastructure-page .topbar { grid-template-columns: 1fr auto; min-height: 4.35rem; }
  .infrastructure-page .nav-toggle { display: grid; place-items: center; inline-size: 2.6rem; block-size: 2.6rem; border: 1px solid var(--border); border-radius: .45rem; color: var(--text); background: #201a2a; }
  .infrastructure-page .main-nav { display: none; position: absolute; inset: calc(100% + .4rem) 0 auto; padding: .35rem; background: #201a2b; border: 1px solid #8e70b6; border-radius: .55rem; box-shadow: 0 8px 24px #08051196; }
  .infrastructure-page .main-nav.is-open { display: grid; gap: 0; }
  .infrastructure-page .main-nav a { padding: .62rem .75rem; border-radius: .25rem; }
  .infrastructure-page .main-nav a:hover { background: #37274b; }
}
@media (max-width: 740px) {
  .landing-heading, .product-grid, .architecture-grid, .simulation-layout, .docs-layout { grid-template-columns: 1fr; }
  .landing-heading h2 { text-wrap: pretty; }
  .simulation-output { margin-top: .25rem; }
  .product-grid article { min-height: 0; }
  .workflow-grid, .team-grid { grid-template-columns: 1fr; gap: .7rem; }
}

/* company-directory.css */
.directory-footer{background:#17131d;color:#f3edf9;padding:clamp(2rem,5vw,4rem) 0 1.3rem;border-top:1px solid #433949;font:400 .9rem/1.55 Inter,Arial,sans-serif}
.directory-inner{width:min(1180px,calc(100% - 2.5rem));margin:auto}
.directory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1.8rem}
.directory-group h2{font:650 .96rem/1.25 Inter,Arial,sans-serif;margin:0 0 .8rem;color:#f7f2fa}
.directory-group ul{list-style:none;margin:0;padding:0}
.directory-group li{margin:0 0 .32rem}
.directory-footer a{color:#cfc5d7;text-decoration:none;overflow-wrap:anywhere}
.directory-group a{display:inline-block;padding:.13rem 0}
.directory-group a:hover,.directory-floor a:hover{text-decoration:underline;text-underline-offset:.22em;color:white}
.directory-group small{display:block;font-size:.7rem;color:#bda8d6}
.directory-floor{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;border-top:1px solid #433949;margin-top:2rem;padding-top:1rem}
.directory-floor p{margin:0;font-size:.82rem}
.directory-floor>a:last-child{margin-left:auto}
.directory-brand{font-weight:680;display:inline-flex;align-items:center;gap:.45rem}
.company-overview .editorial-hero{max-width:56rem;border-left:3px solid #b79be5;padding:1rem 0 1.4rem clamp(1.15rem,3vw,2.5rem)}
.company-overview .editorial-body{max-width:none;margin-top:2.2rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;border:0}
.company-overview .editorial-section{padding:clamp(1.2rem,3vw,2.1rem);background:#1b1723;border:1px solid #443a4e;border-radius:.65rem}
.company-overview .editorial-section p{line-height:1.65;margin-top:.65rem}
.company-intake{background:#f7f6f9;color:#221e2c;min-height:100vh}
.company-intake .auth-top{border-color:#d5cedb}
.company-intake .brand,.company-intake h1,.company-intake h2{color:#251e30}
.company-intake .language-switch,.company-intake .company-back,.company-intake small a{color:#584071}
.company-intake .auth-layout{align-items:start;padding-block:clamp(2.2rem,6vw,5rem)}
.company-intake .auth-intro h1{margin-top:1.1rem;font-size:clamp(2.35rem,5vw,4rem);letter-spacing:-.055em;line-height:1.06}
.company-intake .auth-intro>p,.company-intake .auth-card p{color:#534c5b;line-height:1.6}
.company-intake .auth-card{background:#fff;color:#251e30;border:1px solid #d7cfde;border-top:3px solid #77608d;box-shadow:0 14px 40px #35283f0a;padding:clamp(1.25rem,3vw,2.2rem);border-radius:.55rem;min-width:0}
.company-intake .auth-card h2{font-size:1.5rem;letter-spacing:-.03em}
.company-intake .auth-form :is(input,select,textarea){color:#251e30;background:#fcfbfd;border-color:#bdb2c7}
.company-intake .auth-form :focus-visible,.company-back:focus-visible{outline:2px solid #74539b;outline-offset:2px}
.company-intake .auth-form small{color:#655c6c}
.company-intake .auth-form button{background:#34283f;color:white;min-height:3rem;border:0;margin-top:.65rem}
.company-process{margin-top:1.7rem;border-top:1px solid #cdc5d4;padding-top:1.2rem}
.company-process h2{font-size:1.1rem}
.company-process ol{padding-left:1.2rem;color:#534c5b;max-width:45ch}
.company-process li{margin:.5rem 0}
.company-intake .auth-form .error{color:#732137;background:#fff5f5;border-color:#bd8692}
@media(max-width:800px){.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-floor>a:last-child{margin-left:0}.directory-group a{padding:.3rem 0}.company-overview .editorial-body{grid-template-columns:1fr}.company-intake .auth-layout{display:flex;flex-direction:column;gap:1.5rem}.company-intake .auth-card{width:100%}.company-process{margin-top:1rem}}

.directory-legal {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: .65rem 1.4rem;
  margin-top: clamp(1.35rem, 3vw, 2rem);
  padding: clamp(.85rem, 2vw, 1.25rem);
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: .7rem;
  background: color-mix(in srgb, currentColor 4%, transparent);
  scroll-margin-top: 4.5rem;
}
.directory-legal h2 {
  margin: 0 0 .3rem;
  font: 680 .93rem/1.3 Inter, Arial, sans-serif;
}
.directory-legal p {
  margin: 0;
  max-width: 72ch;
  font-size: .85rem;
  line-height: 1.5;
}
.directory-legal > a {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  width: fit-content;
  min-height: 2.5rem;
  font-size: .84rem;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.directory-legal > a span { flex: none; }
@media (max-width: 760px) {
  .directory-legal { grid-template-columns: minmax(0,1fr); gap: .35rem; }
}

/* company-pages.css */
.company-platform {
  --public-muted: var(--landing-soft);
  --public-line: var(--landing-border);
  --public-accent: var(--accent);
  --company-panel: linear-gradient(140deg, #251e31, #1a1522 72%);
  --company-icon-bg: #2d223d;
  --company-icon-line: #624d79;
  --company-radius: .95rem;
}
.company-platform .main-nav .is-current { color: var(--accent); }
.company-platform #main {
  background: radial-gradient(ellipse 63rem 34rem at 71% 12rem, #6b488322, transparent 85%);
}
.company-width { width: min(100% - var(--gutter) * 2, 1220px); margin-inline: auto; }
.company-nav-bar { background: #18141f; border-bottom: 1px solid var(--public-line); }
.company-nav { display: flex; flex-wrap: wrap; gap: .22rem clamp(.35rem, 1.2vw, .9rem); padding-block: .36rem; }
.company-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .7rem;
  border: 1px solid transparent;
  border-radius: .43rem;
  color: var(--public-muted);
  font-size: .86rem;
  font-weight: 600;
}
.company-nav a:hover, .company-nav a.is-active { color: var(--public-accent); }
.company-nav a.is-active { border-color: #635076; background: #2c2038; }

.company-content { padding-block: clamp(2.15rem, 5.1vw, 4.65rem) clamp(3.15rem, 6vw, 6rem); }
.company-heading h1 {
  max-width: 19ch;
  font-size: clamp(2.5rem, 4.25vw, 4rem);
  line-height: 1.035;
  letter-spacing: -.056em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.company-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--public-accent);
  font-family: var(--mono);
  font-size: .78rem;
  margin-bottom: .85rem;
}
.company-kicker::before { content: ""; width: .36rem; height: .36rem; background: #ad86e8; border-radius: .12rem; }
.company-lead { color: var(--muted); max-width: 55ch; font-size: clamp(.98rem, 1.4vw, 1.09rem); margin-top: 1rem; }
.company-content h2 { font-size: clamp(1.55rem, 3.25vw, 2.9rem); line-height: 1.08; text-wrap: balance; }
.company-content h3 { font-size: clamp(1.17rem, 2.1vw, 1.49rem); line-height: 1.18; letter-spacing: -.035em; }
.company-content :is(h2, h3) + p { margin-top: .65rem; }
.company-content section[id] { scroll-margin-top: 1.5rem; }

.company-about-hero, .company-work-hero, .company-contact-hero, .company-legal-hero, .company-history {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.35rem, 4.4vw, 4.5rem);
}
.company-window {
  --console-border: #4c3c5a;
  --console-muted: #bfb1cc;
  overflow: hidden;
  border: 1px solid #665076;
  border-radius: var(--company-radius);
  background: #15121d;
  box-shadow: 0 1.5rem 3.4rem #09060c91, 0 0 3rem #9160c619;
}
.company-window .console-titlebar { display: flex; padding: .7rem 1rem; }
.company-photo { aspect-ratio: 1.59; }
.company-photo img { width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(115deg) saturate(.66) brightness(.91); }
.company-optics img { object-position: 58% 50%; }

.company-section { margin-top: clamp(2.8rem, 7vw, 6.1rem); }
.company-section > h2 { margin-bottom: clamp(1rem, 2.5vw, 1.85rem); }
.company-cards { display: grid; gap: .9rem; }
.company-cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.company-cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(1.15rem, 3vw, 2.15rem);
  min-width: 0;
  background: var(--company-panel);
  border: 1px solid var(--public-line);
  border-radius: var(--company-radius);
}
.company-cards-two .company-card:last-child, .company-work-tracks section:last-child {
  --public-muted: #56465f;
  --public-accent: #593a76;
  --public-line: #e3cefc;
  --company-icon-bg: #e2d2ef;
  --company-icon-line: #b9a3cb;
  --company-panel: radial-gradient(ellipse at 98% 0%, #cab3ee, transparent 68%), var(--landing-paper);
  color: var(--landing-ink);
}
.company-card > h2 { font-size: clamp(1.2rem, 2.3vw, 1.57rem); text-wrap: pretty; }
.company-card > p, .company-steps p, .company-work-tracks p,
.company-milestones p, .company-next p, .company-working-capital p { color: var(--public-muted); }
.company-card > p { flex: 1; max-width: 51ch; }

.company-icon-box {
  display: inline-grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: none;
  color: var(--public-accent);
  border: 1px solid var(--company-icon-line);
  background: var(--company-icon-bg);
  border-radius: .58rem;
}
.company-icon { flex: none; }
.company-card .company-icon-box, .company-work-tracks .company-icon-box { margin-bottom: 1rem; }
.company-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.3rem; margin-top: 1.35rem; }
.company-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  max-width: 100%;
  min-height: 2.75rem;
  color: var(--public-accent);
  font-size: .91rem;
  font-weight: 690;
}
.company-link span { overflow-wrap: anywhere; }
.company-link .company-icon, .company-cta .company-icon { width: 1.1rem; height: 1.1rem; transition: transform .2s ease; }
.company-link:hover span { text-decoration: underline; text-underline-offset: .22em; }
.company-link:hover .company-icon, .company-cta:hover .company-icon { transform: translateX(3px); }
.company-card .company-link, .company-work-tracks .company-link { margin-top: .85rem; }
.company-cta { font-size: .91rem; }

.company-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(1rem, 3vw, 1.7rem);
  padding: clamp(1.3rem, 4.5vw, 3.35rem);
  border: 1px solid var(--public-line);
  border-radius: var(--company-radius);
  background: radial-gradient(ellipse at 95% 125%, #6545806e 0%, transparent 58%), #211929;
}
.company-story p { max-width: 65ch; color: var(--public-muted); }
.company-story .company-link { margin-top: .55rem; }
.company-story img { width: clamp(4.5rem, 12vw, 9.4rem); height: auto; opacity: .91; }
.company-working-capital {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--public-line);
}
.company-working-capital h2 { font-size: clamp(1.12rem, 2.3vw, 1.47rem); }
.company-working-capital p { max-width: 67ch; }
.company-capital-links { display: grid; gap: .15rem; }

.company-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0;
  list-style: none;
}
.company-steps li { position: relative; border-top: 1px solid var(--public-line); padding-top: 1.1rem; }
.company-steps li::before {
  position: absolute;
  content: "";
  top: -1px;
  left: 0;
  width: 2.8rem;
  height: 1px;
  background: #a884d1;
}
.company-steps h3 { margin-top: .9rem; }
.company-steps p { font-size: .94rem; }
.company-work-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.8rem, 7vw, 5.5rem);
  border: 1px solid var(--public-line);
  border-radius: var(--company-radius);
  background: var(--public-line);
  overflow: hidden;
}
.company-work-tracks section { padding: clamp(1.15rem, 4vw, 2.4rem); background: var(--company-panel); }
.company-work-tracks h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.company-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem 2.15rem;
  margin-top: clamp(1.2rem, 4.5vw, 3rem);
  padding: clamp(1.15rem, 4vw, 2.45rem);
  background: radial-gradient(ellipse at 90% 0, #6343784f, transparent 68%), #251d2e;
  border: 1px solid #604c71;
  border-radius: var(--company-radius);
}
.company-next h2 { font-size: clamp(1.45rem, 2.8vw, 2.15rem); }
.company-next p { max-width: 58ch; }
.company-next .company-cta { flex-shrink: 0; }

.company-history { align-items: start; min-height: min(55vh, 37rem); }
.company-history .company-link { margin-top: .9rem; }
.company-milestones {
  position: relative;
  padding: clamp(1.15rem, 4vw, 2.25rem);
  border-radius: var(--company-radius);
  border: 1px solid var(--public-line);
  background: var(--company-panel);
  list-style: none;
}
.company-milestones li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .95rem; }
.company-milestones li + li { margin-top: 1.8rem; }
.company-milestones li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.85rem;
  bottom: -1.8rem;
  left: 1.42rem;
  border-left: 1px solid #705784;
}
.company-milestones h2 { font-size: clamp(1.35rem, 2.75vw, 2rem); }

.company-contact-hero, .company-legal-hero { margin-bottom: clamp(1.65rem, 5vw, 3.75rem); }
.company-contact-hero .company-heading h1, .company-legal-hero .company-heading h1 { max-width: 18ch; }
.company-contact-art, .company-legal-art {
  display: grid;
  place-items: center;
  min-height: clamp(9.25rem, 18vw, 15rem);
}
.company-contact-art {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #473159 0%, #1b1525 70%);
}
.company-contact-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #a384c839 1px, transparent 1px), linear-gradient(#a384c839 1px, transparent 1px);
  background-size: 1.55rem 1.55rem;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 78%);
}
.company-contact-art .company-icon-box {
  z-index: 1;
  width: 5.85rem;
  height: 5.85rem;
  border-radius: 1.05rem;
  color: #e7d1ff;
  background: #352447;
  box-shadow: 0 1rem 2rem #0c0717b3;
  animation: company-icon-in .65s ease-out both;
}
.company-contact-art .company-icon { width: 2.85rem; height: 2.85rem; }
.company-contact-help .company-actions { margin: 0; }
.company-legal-art {
  grid-template-columns: repeat(2, auto);
  align-content: center;
  justify-content: center;
  gap: 1rem;
  background: radial-gradient(ellipse at 90% 0, #57387959, transparent 72%), #1d1628;
  color: #dcc1fa;
}
.company-legal-art .company-icon {
  width: clamp(3.9rem, 8vw, 6rem);
  height: auto;
  padding: .95rem;
  border: 1px solid #654b7d;
  border-radius: .8rem;
  background: #2e223d;
  box-shadow: 0 .55rem 1.4rem #0d081660;
  animation: company-icon-in .65s ease-out both;
}
.company-legal-art .company-icon + .company-icon { animation-delay: .1s; }
.company-legal-structure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.75rem, 3vw, 1.45rem);
  margin-top: 1rem;
  padding: clamp(1.15rem, 3.5vw, 2.1rem);
  border: 1px solid var(--public-line);
  border-radius: var(--company-radius);
  background: var(--company-panel);
}
.company-legal-structure h2 { font-size: clamp(1.36rem, 2.75vw, 2rem); text-wrap: pretty; }
.company-legal-structure p { color: var(--public-muted); max-width: 70ch; }
.company-legal-structure p + p { margin-top: .65rem; }
.company-legal-structure .company-actions { margin-top: .55rem; }
.company-related { border-top: 1px solid var(--public-line); padding-top: 1.6rem; }
.company-related > h2 { font-size: 1.22rem; margin-bottom: .6rem; }
.company-related .company-link { margin-right: 1.35rem; }

.company-document .company-heading { margin-bottom: clamp(1.45rem, 4vw, 3rem); }
.company-document .company-heading h1 { max-width: none; font-size: clamp(2.25rem, 4.35vw, 3.95rem); overflow-wrap: anywhere; }
.company-document .company-kicker:hover { text-decoration: underline; }
.company-doc-layout { display: grid; grid-template-columns: minmax(12rem, .74fr) minmax(0, 2fr); align-items: start; gap: clamp(.95rem, 4vw, 3rem); }
.company-doc-nav, .company-doc-body { border: 1px solid var(--public-line); border-radius: var(--company-radius); }
.company-doc-nav { position: sticky; top: 1rem; padding: 1.2rem; background: var(--company-panel); }
.company-doc-nav h2 { font-size: 1.05rem; margin-bottom: .65rem; }
.company-doc-nav ol { padding-left: 1.2rem; color: var(--public-accent); }
.company-doc-nav li { font-size: .9rem; }
.company-doc-nav a { display: block; min-height: 2rem; padding-block: .35rem; }
.company-doc-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.company-doc-body {
  --public-line: #d7cbe2;
  --public-muted: #4f4358;
  --public-accent: #613f80;
  padding: 0 clamp(1.05rem, 4vw, 2.8rem);
  color: var(--landing-ink);
  background: #fbf7fd;
}
.company-doc-body a:focus-visible, .company-cards-two .company-card:last-child a:focus-visible,
.company-work-tracks section:last-child a:focus-visible { outline-color: #613f80; }
.company-doc-section { padding-block: clamp(1.15rem, 3vw, 1.9rem); border-bottom: 1px solid var(--public-line); }
.company-doc-section h2 { font-size: clamp(1.24rem, 2.4vw, 1.85rem); text-wrap: pretty; }
.company-doc-section p { color: var(--public-muted); max-width: 68ch; }
.company-doc-section a { text-decoration: underline; text-underline-offset: .2em; color: var(--public-accent); overflow-wrap: anywhere; }
.company-doc-related { display: flex; flex-wrap: wrap; padding-block: .55rem; gap: .25rem 1.1rem; }

@keyframes company-icon-in {
  from { opacity: 0; transform: translateY(.65rem) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 940px) {
  .company-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-contact-hero, .company-legal-hero { grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr); }
  .company-platform .directory-grid { row-gap: 1.65rem; }
}
@media (max-width: 760px) {
  .company-about-hero, .company-work-hero, .company-history, .company-doc-layout { grid-template-columns: 1fr; }
  .company-heading h1 { max-width: 19ch; font-size: clamp(2.35rem, 7.55vw, 3.85rem); }
  .company-photo { aspect-ratio: 1.82; }
  .company-story { gap: .85rem; }
  .company-working-capital { grid-template-columns: auto minmax(0, 1fr); }
  .company-capital-links { grid-column: 2; }
  .company-cards-three { grid-template-columns: 1fr; }
  .company-doc-nav { position: static; }
  .company-next { align-items: flex-start; flex-direction: column; }
  .company-history { min-height: 0; }
}
@media (max-width: 530px) {
  .company-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: .29rem; }
  .company-nav a { min-height: 2.75rem; padding: .35rem .38rem; font-size: .77rem; line-height: 1.18; overflow-wrap: anywhere; }
  .company-heading h1 { font-size: clamp(2.25rem, 8.9vw, 3.06rem); }
  .company-lead { margin-top: .86rem; }
  .company-cards-two, .company-work-tracks, .company-steps { grid-template-columns: 1fr; }
  .company-story img { display: none; }
  .company-story, .company-contact-hero, .company-legal-hero { grid-template-columns: 1fr; }
  .company-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .85rem; }
  .company-steps h3 { margin-top: .13rem; align-self: center; }
  .company-steps p { grid-column: 2; margin-top: .3rem; }
  .company-contact-art, .company-legal-art { min-height: 8rem; }
  .company-contact-art .company-icon-box { width: 4.75rem; height: 4.75rem; }
  html[lang="ru"] .company-document .company-heading h1 { font-size: clamp(1.375rem, 7.12vw, 2.3rem); }
  .company-legal-structure { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .company-contact-art .company-icon-box, .company-legal-art .company-icon { animation: none; }
  .company-link .company-icon, .company-cta, .company-cta .company-icon { transition: none; }
}

/* site-navigation.css */
.site-header {
  --site-header-height: 4.5rem;
  position: relative;
  z-index: 8;
  color: #f8f4ff;
  background: #15121c;
  border-bottom: 1px solid #372d43;
  font: 400 .9rem/1.4 Inter, system-ui, sans-serif;
}

.site-header.doc-header {
  --site-header-height: var(--doc-header);
  position: sticky;
  top: 0;
}

.site-header-inner {
  width: min(calc(100% - 2 * clamp(1rem, 4vw, 3.5rem)), 1220px);
  min-height: calc(var(--site-header-height) - 1px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
}

.site-header a { color: inherit; text-decoration: none; }
.site-header :focus-visible { outline: 2px solid #caa6ff; outline-offset: 3px; }

.site-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .58rem;
  white-space: nowrap;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -.055em;
}

.site-brand img { width: 2.05rem; height: auto; display: block; }
.site-menu { display: flex; align-items: center; gap: clamp(.15rem, 1.5vw, 1rem); }
.site-menu-group { position: relative; }
.site-menu-group > summary {
  display: flex;
  align-items: center;
  gap: .42rem;
  list-style: none;
  border-radius: .48rem;
  color: #e5daee;
  font-weight: 620;
  padding: .7rem .8rem;
  cursor: pointer;
}

.site-menu-group > summary::-webkit-details-marker { display: none; }
.site-menu-group > summary svg { color: #c7a8e3; transition: transform .18s ease; }
.site-menu-group[open] > summary svg { transform: rotate(180deg); }
.site-menu-group.is-current > summary { color: #e4c5ff; }
.site-menu-group[open] > summary, .site-menu-group > summary:hover { background: #2a2035; color: #fbf6ff; }

.site-menu-panel {
  position: absolute;
  inset: calc(100% + .5rem) auto auto 50%;
  transform: translateX(-50%);
  width: 20rem;
  padding: .45rem;
  margin: 0;
  border-radius: .8rem;
  border: 1px solid #51415f;
  background: linear-gradient(140deg, #251c30, #1a1521 72%);
  box-shadow: 0 18px 34px #0c0814a1;
  list-style: none;
}

.site-menu-panel a {
  display: grid;
  gap: .2rem;
  padding: .63rem .75rem;
  border-radius: .5rem;
  color: #f3eaf8;
  font-weight: 630;
}

.site-menu-panel a:hover, .site-menu-panel a[aria-current="page"] { background: #382848; }
.site-menu-panel small { font-size: .76rem; line-height: 1.4; font-weight: 400; color: #cec0db; }
.site-header-actions { display: flex; justify-self: end; align-items: center; gap: .55rem; }
.site-header-actions .language-switch { --language-line: #655371; color: #f6eeff; }
.site-header .site-workspace {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .42rem .85rem;
  border-radius: .49rem;
  background: linear-gradient(105deg, #caadff, #ab89ec);
  color: #1a1126;
  white-space: nowrap;
  font-weight: 720;
}
.site-header .site-workspace:hover { background: #dbbfff; }
.site-menu-toggle, .site-menu-cross, .site-header .site-doc-jump { display: none; }

@media (max-width: 960px) {
  .site-header { --site-header-height: 3.85rem; }
  .site-header-inner { grid-template-columns: minmax(0,1fr) auto; }
  .site-brand { font-size: 1.18rem; gap: .38rem; }
  .site-brand img { width: 1.65rem; }
  .site-header .site-workspace { min-height: 2.3rem; padding-inline: .6rem; font-size: .82rem; }
  .site-header-actions { gap: .4rem; }
  .site-menu { grid-row: 2; grid-column: 1/-1; display: grid; gap: .24rem; }
  .site-header[data-menu-ready] .site-menu {
    display: none;
    position: absolute;
    inset: calc(100% + .35rem) max(1rem,4vw) auto;
    max-height: calc(100dvh - var(--site-header-height) - 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .45rem;
    border: 1px solid #51415f;
    border-radius: .8rem;
    background: #1d1727;
    box-shadow: 0 16px 30px #0c0814bb;
  }
  .site-header[data-menu-ready] .site-menu.is-open { display: grid; }
  .site-header[data-menu-ready] .site-menu-toggle {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    color: #f2eaff;
    background: #261c31;
    border: 1px solid #634e73;
    border-radius: .48rem;
    cursor: pointer;
  }
  .site-menu-toggle[aria-expanded="true"] .site-menu-bars { display: none; }
  .site-menu-toggle[aria-expanded="true"] .site-menu-cross { display: inline; }
  .site-menu-group > summary { justify-content: space-between; min-height: 2.7rem; padding: .5rem .7rem; }
  .site-menu-panel { position: static; transform: none; width: auto; border: 0; box-shadow: none; background: transparent; padding: .15rem 0 .35rem .35rem; }
  .site-menu-panel a { padding: .5rem .65rem; }
}

@media (max-width: 780px) {
  .site-header .site-doc-jump { display: block; padding: .65rem .7rem; color: #e3c9fd; }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-group > summary svg { transition: none; }
}

/* protocol-disclosure.css */
.protocol-hero-notice { margin:1.15rem 0; padding:.9rem 1rem; border:1px solid var(--theme-line,#483950); border-radius:.65rem; background:color-mix(in srgb,var(--theme-panel,#1d1727) 80%,transparent); max-width:55ch; }
.protocol-hero-notice strong { color:var(--theme-text,#f8f4ff); font-size:.95rem; }
.protocol-hero-notice p { margin:.4rem 0 .55rem; color:var(--theme-muted,#c7bbd4); font-size:.9rem; line-height:1.6; }
.protocol-hero-notice a { color:var(--theme-accent,#d7b7fb); font-size:.9rem; font-weight:600; text-decoration:underline; text-underline-offset:.2em; }
.protocol-technology-note { margin:.65rem 0 1.3rem; color:var(--theme-muted,#c7bbd4); font-size:.86rem; line-height:1.6; max-width:80ch; }
.protocol-footer-links { display:flex; flex-direction:column; gap:.55rem; font-size:.9rem; }
.protocol-footer-links a { text-decoration:underline; text-underline-offset:.2em; }
.protocol-notice { padding:1.2rem; margin:1rem 0 1.6rem; border:1px solid var(--theme-line,#483950); border-radius:.7rem; background:var(--theme-panel,#1d1727); color:var(--theme-text,#f8f4ff); }
.protocol-notice p { margin:.5rem 0 .8rem; line-height:1.65; color:var(--theme-muted,#c7bbd4); }
.protocol-notice nav { display:flex; flex-wrap:wrap; gap:.7rem 1.5rem; }
.protocol-notice a { color:var(--theme-accent,#d7b7fb); text-decoration:underline; text-underline-offset:.2em; }
.protocol-page { padding-block:clamp(2rem,6vw,5rem); color:var(--theme-text); }
.protocol-heading { max-width:57rem; padding-bottom:2rem; }
.protocol-heading h1 { max-width:none; overflow-wrap:normal; word-break:normal; margin:.6rem 0 1.4rem; font-size:clamp(1.95rem,5vw,4.2rem); line-height:1.08; letter-spacing:-.045em; text-wrap:balance; }
.protocol-manifest { padding:1.2rem 1.4rem; border-inline-start:3px solid var(--theme-accent); border-radius:0 .65rem .65rem 0; background:var(--theme-panel); font-size:clamp(1rem,2vw,1.22rem); line-height:1.7; margin:0 0 1.2rem; }
.protocol-shortcuts { display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; margin-top:1rem; }
.protocol-shortcuts a { color:var(--theme-accent); text-decoration:underline; text-underline-offset:.2em; line-height:1.6; }
.protocol-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem; }
.protocol-grid article { padding:clamp(1.2rem,3vw,2rem); border:1px solid var(--theme-line); border-radius:.75rem; background:var(--theme-panel); }
.protocol-caption { display:block; color:var(--theme-accent); font:550 .8rem/1.5 var(--mono,monospace); margin:0 0 .75rem; }
.protocol-page h2 { font-size:clamp(1.4rem,3vw,2rem); line-height:1.25; margin:.3rem 0 1rem; letter-spacing:-.025em; }
.protocol-page h3 { font-size:1.1rem; line-height:1.4; margin:0 0 .5rem; }
.protocol-page p { line-height:1.7; }
.protocol-grid p,.protocol-section>p,.protocol-section header>p:not(.protocol-caption),.protocol-exit-list p { color:var(--theme-muted); margin:0; }
.protocol-section { margin-top:clamp(2rem,5vw,4rem); padding-top:clamp(1.5rem,3vw,2.5rem); border-top:1px solid var(--theme-line); scroll-margin-top:6rem; }
.protocol-identity { display:flex; gap:1rem; padding:1.3rem; border:1px solid var(--theme-line); border-radius:.75rem; background:var(--theme-panel); }
.protocol-identity p { color:var(--theme-muted); margin:0; }
.protocol-identity a { color:var(--theme-accent); }
.protocol-account-mark { flex:0 0 3rem; height:3rem; display:grid; place-items:center; background:var(--theme-raised); border:1px solid var(--theme-line); border-radius:.65rem; color:var(--theme-accent); font:600 1.6rem var(--mono,monospace); }
.protocol-link-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin:1rem 0; }
.protocol-link-grid a { display:grid; gap:.45rem; padding:1.1rem; border:1px solid var(--theme-line); border-radius:.65rem; background:var(--theme-panel); }
.protocol-link-grid strong { color:var(--theme-accent); }
.protocol-link-grid span { font-size:.9rem; color:var(--theme-muted); line-height:1.6; }
.protocol-limit { padding:1.1rem; border-inline-start:2px solid var(--theme-line); font-size:.95rem; }
.protocol-section>p+p { margin-top:1rem; }
.protocol-exit-list { display:grid; gap:.9rem; margin-top:1.3rem; }
.protocol-exit-list article { display:grid; grid-template-columns:minmax(12rem,.8fr) minmax(0,2fr); gap:1.3rem; padding:1.3rem; border:1px solid var(--theme-line); border-radius:.65rem; background:var(--theme-panel); }
@media(max-width:760px) { .protocol-grid,.protocol-link-grid { grid-template-columns:minmax(0,1fr); } .protocol-exit-list article { grid-template-columns:minmax(0,1fr); gap:.3rem; } .protocol-identity { align-items:start; } }

@media (max-width: 760px) { .directory-grid .directory-group:last-child { grid-column:1/-1; } .directory-grid .directory-group:last-child ul { display:flex; flex-wrap:wrap; gap:.4rem 1.35rem; } }

/* company-identity.css */
.company-founders,.company-registration { color:var(--theme-text); }
.identity-eyebrow { color:var(--theme-accent); font:550 .75rem/1.6 var(--mono,monospace); letter-spacing:.08em; text-transform:uppercase; margin:0 0 .8rem; }
.company-founders { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.7fr); gap:2rem; padding-block:clamp(2rem,5vw,4rem); scroll-margin-top:6rem; }
.company-founders-intro h2 { font-size:clamp(1.9rem,3.1vw,3rem); line-height:1.12; letter-spacing:-.04em; margin:0 0 1.1rem; }
.company-founders-intro>p:not(.identity-eyebrow) { color:var(--theme-muted); line-height:1.75; font-size:.98rem; margin:0 0 1.15rem; }
.company-founders-story,.company-founders-company a,.company-registration-source a { color:var(--theme-accent); font-weight:600; font-size:.9rem; text-decoration:underline; text-underline-offset:.24em; }
.company-founders-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem; min-width:0; }
.founder-card { min-width:0; overflow:hidden; border:1px solid var(--theme-line); background:var(--theme-panel); border-radius:1rem; }
.founder-portrait { aspect-ratio:1/1.12; overflow:hidden; background:var(--theme-raised); }
.founder-portrait img { width:100%; height:100%; display:block; object-fit:cover; object-position:center 35%; transition:transform .45s ease; }
@media(hover:hover) { .founder-card:hover .founder-portrait img { transform:scale(1.025); } }
.founder-details { padding:1.25rem; }
.founder-role { color:var(--theme-muted); font-size:.75rem; line-height:1.55; margin:0 0 .55rem; }
.founder-details h3 { color:var(--theme-text); font-size:clamp(1.1rem,1.5vw,1.4rem); line-height:1.25; letter-spacing:-.025em; margin:0 0 .7rem; }
.founder-experience { color:var(--theme-accent); font-size:.82rem; line-height:1.6; margin:0 0 .5rem; font-weight:600; }
.founder-summary,.founder-detail { color:var(--theme-muted); font-size:.88rem; line-height:1.75; margin:0; }
.founder-detail { margin-top:.85rem; }
.founder-skills { display:flex; flex-wrap:wrap; gap:.45rem; list-style:none; padding:0; margin:1rem 0 0; }
.founder-skills li { color:var(--theme-accent); background:var(--theme-raised); border:1px solid var(--theme-line); border-radius:.4rem; font-size:.7rem; line-height:1.5; padding:.3rem .5rem; }
.company-founders-company { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1.5rem; color:var(--theme-muted); font-size:.8rem; padding-top:1.1rem; border-top:1px solid var(--theme-line); }
.company-founders-company a { margin-left:auto; font-size:.8rem; }
.company-founders-detailed { grid-template-columns:minmax(0,1fr); }
.company-founders-detailed .company-founders-intro { max-width:48rem; }
.company-founders-detailed .founder-portrait { aspect-ratio:1.35/1; }
.company-founders-detailed .founder-details { padding:clamp(1.2rem,3vw,1.8rem); }
.company-founders-detailed .founder-details h3 { font-size:1.6rem; }
.company-registration { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:1.5rem 2rem; padding:clamp(1.2rem,3vw,2.25rem); margin:2rem 0; border:1px solid var(--theme-line); border-radius:1rem; background:var(--theme-panel); scroll-margin-top:6rem; }
.company-registration-heading h2 { font-size:clamp(1.5rem,3vw,2.2rem); line-height:1.2; letter-spacing:-.03em; margin:0 0 1rem; }
.company-registration-heading>p:not(.identity-eyebrow) { color:var(--theme-muted); line-height:1.75; font-size:.95rem; }
.company-registration-facts { display:grid; gap:.85rem; margin:0; }
.company-registration-facts>div { border-bottom:1px solid var(--theme-line); padding-bottom:.85rem; min-width:0; }
.company-registration-facts dt { color:var(--theme-muted); font-size:.75rem; margin-bottom:.35rem; }
.company-registration-facts dd { margin:0; color:var(--theme-text); font-size:.92rem; line-height:1.6; overflow-wrap:anywhere; }
.company-registration-source { grid-column:1/-1; padding-top:1rem; border-top:1px solid var(--theme-line); }
.company-registration-source p { color:var(--theme-muted); font-size:.78rem; line-height:1.6; margin:.55rem 0 0; }
.directory-legal .company-footer-address { display:block; color:var(--theme-muted); font-size:.77rem; line-height:1.6; margin-top:.55rem; }
.company-inline-registration { color:var(--theme-muted); line-height:1.7; font-size:.9rem; margin-top:1rem; }
.company-inline-registration a { color:var(--theme-accent); text-decoration:underline; text-underline-offset:.2em; }
@media(max-width:1000px) { .company-founders { grid-template-columns:minmax(0,1fr); } .company-founders-intro { max-width:45rem; } }
@media(max-width:640px) { .company-founders-grid,.company-registration { grid-template-columns:minmax(0,1fr); } .company-founders { gap:1.35rem; } .company-founders-company { gap:.5rem 1rem; } .company-founders-company a { margin-left:0; width:100%; } .founder-portrait,.company-founders-detailed .founder-portrait { aspect-ratio:1.2/1; } .founder-details h3 { font-size:1.45rem; } .company-registration { gap:1.35rem; } }
@media(prefers-reduced-motion:reduce) { .founder-portrait img { transition:none; } .founder-card:hover .founder-portrait img { transform:none; } }
.company-story-page { padding-bottom:2rem; }
.company-story-page>.company-heading { max-width:58rem; }
.company-story-chapters { margin-top:2rem; }
.company-story-chapter { display:grid; grid-template-columns:minmax(8rem,.45fr) minmax(0,2fr); gap:1.25rem 3rem; padding:2rem 0; border-top:1px solid var(--theme-line); }
.company-story-chapter h2 { font-size:clamp(1.45rem,2.8vw,2.2rem); line-height:1.25; letter-spacing:-.025em; margin:0 0 1.1rem; }
.company-story-chapter p { color:var(--theme-muted); max-width:76ch; line-height:1.8; margin:0 0 .9rem; }
.company-story-chapter p:last-child { margin-bottom:0; }
.company-published-record { padding:clamp(1.2rem,3vw,2rem); border:1px solid var(--theme-line); background:var(--theme-panel); border-radius:1rem; margin:1.5rem 0; scroll-margin-top:6rem; }
.company-published-record h2 { font-size:clamp(1.35rem,2.8vw,1.9rem); line-height:1.3; margin-bottom:1.5rem; }
.company-published-record dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:0 0 1.25rem; }
.company-published-record dt { color:var(--theme-muted); font-size:.8rem; line-height:1.5; margin-bottom:.5rem; }
.company-published-record dd { margin:0; font:650 clamp(1.8rem,4vw,2.6rem)/1.2 var(--mono,monospace); color:var(--theme-accent); }
.company-published-record>p { font-size:.88rem; line-height:1.75; color:var(--theme-muted); }
.company-roadmap { padding-block:clamp(2rem,5vw,4rem); scroll-margin-top:6rem; }
.company-roadmap header { max-width:53rem; margin-bottom:1.5rem; }
.company-roadmap h2 { font-size:clamp(1.65rem,3vw,2.5rem); line-height:1.2; margin:0 0 1rem; letter-spacing:-.03em; }
.company-roadmap header>p:not(.identity-eyebrow) { color:var(--theme-muted); font-size:.95rem; line-height:1.75; }
.company-roadmap ol { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.company-roadmap li { padding:1.25rem; border:1px solid var(--theme-line); background:var(--theme-panel); border-radius:.85rem; }
.roadmap-status { display:inline-block; color:var(--theme-accent); font:500 .7rem/1.6 var(--mono,monospace); margin-bottom:1.1rem; }
.roadmap-status.is-live { color:var(--theme-success); }
.company-roadmap h3 { font-size:1.08rem; line-height:1.4; margin:0 0 .8rem; letter-spacing:-.02em; }
.company-roadmap li>p { font-size:.85rem; line-height:1.75; color:var(--theme-muted); margin:0; }
@media(max-width:1000px) { .company-roadmap ol { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .company-story-chapter,.company-roadmap ol { grid-template-columns:minmax(0,1fr); } .company-story-chapter { gap:.4rem; padding:1.5rem 0; } .company-published-record dl { grid-template-columns:minmax(0,1fr); } .company-published-record dl>div { padding-bottom:.8rem; border-bottom:1px solid var(--theme-line); } }

/* site-theme.css */
/* Shared palette for public pages, documentation and the integration form. */
:root {
  color-scheme: dark;
  --theme-canvas: #111017;
  --theme-header: #15121c;
  --theme-panel: #1d1727;
  --theme-raised: #291f36;
  --theme-text: #f8f4ff;
  --theme-muted: #c7bbd4;
  --theme-line: #483950;
  --theme-accent: #d7b7fb;
  --theme-hover: #352745;
  --theme-success: #abdfc3;
  --theme-danger: #ffb5c7;
  --theme-warning: #f6cb97;
  --theme-focus: #d1adff;
}

html[data-theme="light"] {
  color-scheme: light;
  --theme-canvas: #f6f5fa;
  --theme-header: #fff;
  --theme-panel: #fff;
  --theme-raised: #f3edf9;
  --theme-text: #272034;
  --theme-muted: #574b65;
  --theme-line: #dcd3e6;
  --theme-accent: #613b8d;
  --theme-hover: #ede3f6;
  --theme-success: #236047;
  --theme-danger: #922d51;
  --theme-warning: #784a1b;
  --theme-focus: #7751ad;
  --background: var(--theme-canvas);
  --surface: var(--theme-panel);
  --surface-high: var(--theme-raised);
  --text: var(--theme-text);
  --muted: var(--theme-muted);
  --accent: var(--theme-accent);
  --line: var(--theme-line);
  --border: var(--theme-line);
}

.site-header { color: var(--theme-text); background: var(--theme-header); border-color: var(--theme-line); }
.site-header .language-switch { color: var(--theme-text); --language-line: var(--theme-line); }
.site-header :focus-visible, html[data-theme="light"] :focus-visible { outline-color: var(--theme-focus); }
.site-menu-group > summary, .site-menu-panel small { color: var(--theme-muted); }
.site-menu-group.is-current > summary, .site-menu-group > summary svg, .site-header .site-doc-jump { color: var(--theme-accent); }
.site-menu-group[open] > summary, .site-menu-group > summary:hover,
.site-menu-panel a:hover, .site-menu-panel a[aria-current="page"] { background: var(--theme-hover); color: var(--theme-text); }
.site-header .site-menu-panel {
  color: var(--theme-text);
  border-color: var(--theme-line);
  background: var(--theme-panel);
  box-shadow: 0 15px 28px #1e10252e;
}

.site-header[data-menu-ready] .site-menu-toggle, .site-header .site-theme-toggle {
  color: var(--theme-text);
  background: var(--theme-raised);
  border: 1px solid var(--theme-line);
}
.site-theme-toggle:not([hidden]) { display: grid; place-items: center; }
.site-theme-toggle {
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border-radius: .48rem;
  cursor: pointer;
}
.site-header .site-theme-toggle:hover, .site-header .site-menu-toggle:hover { background: var(--theme-hover); }
.site-theme-toggle .site-theme-moon, .site-theme-toggle[aria-checked="true"] .site-theme-sun { display: none; }
.site-theme-toggle[aria-checked="true"] .site-theme-moon { display: block; }
html[data-theme="light"] .site-header .site-workspace {
  color: #fff;
  background: #603b90;
}
html[data-theme="light"] .site-header .site-workspace:hover { background: #7047a2; }

@media (max-width: 960px) {
  .site-theme-toggle { width: 2.3rem; height: 2.3rem; }
  .site-header[data-menu-ready] .site-menu { background: var(--theme-panel); border-color: var(--theme-line); }
  .site-header .site-menu-panel { background: transparent; box-shadow: none; }
}
@media (max-width: 390px) {
  .site-header-inner { width: calc(100% - 1.5rem); gap: .4rem; }
  .site-header .site-brand { font-size: 1.06rem; }
  .site-header .site-brand img { width: 1.4rem; }
  .site-header-actions { gap: .28rem; }
  .site-header-actions .language-switch, .site-header[data-menu-ready] .site-menu-toggle, .site-header .site-theme-toggle {
    width: 2rem;
    min-width: 2rem;
    height: 2.15rem;
    min-height: 2.15rem;
    padding: 0;
  }
  .site-header .site-workspace { min-height: 2.15rem; padding-inline: .5rem; font-size: .75rem; }
}

:root .directory-footer {
  background: var(--theme-header);
  color: var(--theme-text);
  border-color: var(--theme-line);
}
:root .directory-footer h2 { color: var(--theme-text); }
:root .directory-footer a, :root .directory-footer small { color: var(--theme-muted); }
:root .directory-footer a:hover { color: var(--theme-accent); }
:root .directory-floor { border-color: var(--theme-line); }

/* Product pages share the same surfaces as the rest of the site. */
.public-platform {
  color-scheme: inherit;
  --public-bg: var(--theme-canvas);
  --public-panel: var(--theme-panel);
  --public-raised: var(--theme-raised);
  --public-line: var(--theme-line);
  --public-text: var(--theme-text);
  --public-muted: var(--theme-muted);
  --public-accent: var(--theme-accent);
}
.product-platform { color-scheme: inherit; }
.product-platform :is(.product-sidebar,.product-intro,.product-cards article,.product-steps,.product-table,.product-ledger,.pool-model-card,.pool-sim) {
  background: var(--theme-panel);
  border-color: var(--theme-line);
}
.product-platform :is(.product-sidebar-label,#calculator-scenarios) { color: var(--theme-muted); }
.product-sidebar a:hover, .product-platform .public-button.secondary:hover { background: var(--theme-hover); }
.product-sidebar a[aria-current="page"], .product-platform :is(.product-steps li > span,.product-table thead th,.product-ledger dl > .product-ledger-total,.pool-sim-results > div:last-child) {
  background: var(--theme-raised);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}
.product-platform .public-button.secondary, html[data-theme="light"] .public-button.secondary {
  background: var(--theme-panel);
  color: var(--theme-accent);
}
.product-platform .public-button.primary, html[data-theme="light"] .public-button.primary {
  background: #603b90;
  border-color: #603b90;
  color: #fff;
}
.product-platform .public-button.primary:hover, html[data-theme="light"] .public-button.primary:hover {
  background: #7047a2;
  border-color: #7047a2;
}
.product-platform :is(.pool-sim-fields input,.pool-sim-fields select,.calculation-input input,#calculator-example) {
  color: var(--theme-text);
  background: var(--theme-panel);
  border-color: var(--theme-line);
}
.product-platform .product-report-status { background: var(--theme-raised); border-color: var(--theme-line); }
.product-platform :is(.pool-sim-error,#pool-calendar-error,#calculator-error) { color: var(--theme-danger); }
html[data-theme="light"] .product-platform .calculation-output {
  background: var(--theme-raised);
  color: var(--theme-text);
  border-color: var(--theme-line);
}
html[data-theme="light"] .product-platform .calculation-output p { color: var(--theme-muted); }
html[data-theme="light"] .product-platform .calculation-output dl > div { border-color: var(--theme-line); }
html[data-theme="light"] .product-platform #margin-result { color: var(--theme-success); }
html[data-theme="light"] .product-platform #margin-result.is-loss { color: var(--theme-danger); }

/* Keep the reference text and controls legible in either palette. */
.documentation-page {
  --doc-bg: var(--theme-canvas);
  --doc-paper: var(--theme-panel);
  --doc-ink: var(--theme-text);
  --doc-text: var(--theme-muted);
  --doc-muted: var(--theme-muted);
  --doc-line: var(--theme-line);
  --doc-link: var(--theme-accent);
  --doc-soft: var(--theme-hover);
}
.documentation-page a:hover { color: var(--theme-accent); }
.documentation-page :focus-visible { outline-color: var(--theme-focus); }
.documentation-page .site-header a:hover { color: var(--theme-text); }
.documentation-page .site-header .site-workspace:hover { color: #1a1126; }
html[data-theme="light"] .documentation-page .site-header .site-workspace:hover { color: #fff; }
.documentation-page .doc-hero {
  background: linear-gradient(125deg, var(--theme-raised), var(--theme-panel) 80%);
}
.documentation-page :is(.doc-skip,.doc-search-field,.doc-search-panel,.doc-hero-links a,.doc-code-heading button) {
  background: var(--theme-panel);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}
.documentation-page :is(.doc-sidebar,.doc-right) a:hover, .documentation-page .doc-downloads a:hover {
  background: var(--theme-hover);
}
.documentation-page .doc-hero-links a:first-child { background: #603b90; border-color: #603b90; color: #fff; }
.documentation-page :is(.doc-search kbd,.doc-table thead th,.doc-section code,.doc-section pre,.doc-code,.doc-note) {
  background: var(--theme-raised);
  border-color: var(--theme-line);
}
.documentation-page .doc-note { border-left-color: var(--theme-accent); }
.documentation-page .doc-section code { color: var(--theme-accent); }
.documentation-page .doc-section pre code { background: transparent; color: var(--theme-text); }

/* Landing and company pages use the light palette across reading and form surfaces. */
html[data-theme="light"] .infrastructure-page {
  color: var(--theme-text);
  background: radial-gradient(ellipse at 74% 0, #fcfaff, transparent 42rem), var(--theme-canvas);
  --landing-border: var(--theme-line);
  --landing-soft: var(--theme-muted);
}
html[data-theme="light"] .infrastructure-page #headline span { color: var(--theme-accent); }
html[data-theme="light"] .infrastructure-page #headline .hero-title-main { color: var(--theme-text); }
html[data-theme="light"] :is(.hero-secondary,.hero-settlement-flow) { color: var(--theme-muted); }
html[data-theme="light"] .hero-halo { background: radial-gradient(ellipse at 68% 30%, #ede4f666, transparent 70%); }
html[data-theme="light"] .infrastructure-page .hero-grid { opacity: .2; }
html[data-theme="light"] .ecosystem-references .technology-brand { color: var(--theme-text); }
html[data-theme="light"] .ecosystem-references .technology-brand img[src$=".svg"] { filter: brightness(0) saturate(100%) opacity(.8); }
html[data-theme="light"] :is(.process-grid li,.capacity-card,.stage,.task-card,.control-card,.resource-card,.exception-table,.faq details,.pool-terms) {
  background: var(--theme-panel);
  border-color: var(--theme-line);
}
html[data-theme="light"] :is(.pool-terms,.resource-card,.task-card,.exception-table,.faq details) { color: var(--theme-text); }
html[data-theme="light"] :is(.task-icon,.process-icon,.currency-input,.allowlist summary,.allowlist-options) {
  background: var(--theme-raised);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}
html[data-theme="light"] .allowlist-options label:hover, html[data-theme="light"] .resource-card:hover { background: var(--theme-hover); }
html[data-theme="light"] :is(.expense-table thead th,.expense-table tbody td) { color: var(--theme-muted); border-color: var(--theme-line); }
html[data-theme="light"] .expense-table tfoot :is(th, td) { background: var(--theme-raised); border-color: var(--theme-line); }
html[data-theme="light"] :is(.task-message,.task-message[data-tone="hold"]) { color: var(--theme-accent); }
html[data-theme="light"] :is(.product-gateway,.architecture-notes article,.docs-links a,.team-grid article) {
  background: var(--theme-panel);
  border-color: var(--theme-line);
}
html[data-theme="light"] .docs-links a:hover { background: var(--theme-hover); }

html[data-theme="light"] .operations-strip { background: var(--theme-raised); border-color: var(--theme-line); }
html[data-theme="light"] :is(.operations-metric,.operations-status) {
  background: var(--theme-panel);
  border-color: var(--theme-line);
  color: var(--theme-text);
}
html[data-theme="light"] .operations-payout[data-metric-state="reported"] { background: #f0e7fa; border-color: #c8b4e0; }
html[data-theme="light"] :is(.operations-heading-mark,.operations-metric[data-metric-state="empty"] .operations-reading strong) {
  background: var(--theme-raised);
  border-color: var(--theme-line);
  color: var(--theme-accent);
}
html[data-theme="light"] :is(.operations-metric dt,.operations-reading) { color: var(--theme-text); }
html[data-theme="light"] :is(.operations-unit,.operations-metric small,.operations-rework) {
  color: var(--theme-muted);
  border-color: var(--theme-line);
}
html[data-theme="light"] :is(.operations-metric dt .icon,.operations-rework .icon) { color: var(--theme-accent); }

/* Code windows retain a dark editor palette inside the light site. */
html[data-theme="light"] :is(.architecture-window,.quickstart-window,.technical-lab .workbench,.company-window) {
  color: #f3e9ff;
  --landing-soft: #d1c1df;
  --accent: #dab9f9;
  --muted: #d1c1df;
}
html[data-theme="light"] .infrastructure-page .settlement-console {
  box-shadow: 0 1.5rem 3.25rem #311d4526;
}
html[data-theme="light"] .company-platform {
  --company-panel: var(--theme-panel);
  --company-icon-bg: var(--theme-raised);
  --company-icon-line: #d8c8e7;
}
html[data-theme="light"] .company-platform #main { background: radial-gradient(ellipse at 75% 0, #eee6f7, transparent 43rem); }
html[data-theme="light"] .company-window { box-shadow: 0 1.2rem 2.8rem #311d4526; }
html[data-theme="light"] .infrastructure-page .button { background: #603b90; border-color: #603b90; color: #fff; }
html[data-theme="light"] .infrastructure-page .button:hover { background: #7047a2; }
html[data-theme="light"] .company-nav-bar { background: var(--theme-panel); }
html[data-theme="light"] .company-nav a.is-active { background: var(--theme-hover); border-color: var(--theme-line); }
html[data-theme="light"] :is(.company-story,.company-next) {
  background: var(--theme-raised);
  border-color: var(--theme-line);
}
html[data-theme="light"] .company-window .support-map {
  --public-accent: #dfc4ff;
  --company-icon-line: #624d79;
}
html:not([data-theme="light"]) .company-doc-body {
  --public-line: var(--theme-line);
  --public-muted: var(--theme-muted);
  --public-accent: var(--theme-accent);
  background: var(--theme-panel);
  color: var(--theme-text);
}

html[data-theme="light"] .package-board {
  background: var(--theme-panel);
  color: var(--theme-text);
  border-color: var(--theme-line);
}
html[data-theme="light"] :is(.package-titlebar,.package-icon) {
  background: var(--theme-raised);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}
html[data-theme="light"] .package-grid { background: var(--theme-line); }
html[data-theme="light"] .package-card { background: var(--theme-panel); }
html[data-theme="light"] .package-board :is(h2,h3,.package-metrics dd) { color: var(--theme-text); }
html[data-theme="light"] .package-board :is(code,.package-volume,.package-acceptance strong) { color: var(--theme-accent); }
html[data-theme="light"] .package-board :is(.package-metrics dt,.package-status,.package-entry-period,.package-acceptance label) { color: var(--theme-muted); }
html[data-theme="light"] .package-board [data-state="active"] .package-status { color: var(--theme-success); }
html[data-theme="light"] .package-board [data-state="dispute"] .package-status { color: var(--theme-warning); }
html[data-theme="light"] :is(.package-metrics,.package-entry + .package-entry) { border-color: var(--theme-line); }
html[data-theme="light"] :is(.package-entry summary:hover,.package-entry[open] summary) { background: var(--theme-hover); }
html[data-theme="light"] .package-entry summary::after { color: var(--theme-accent); }
html[data-theme="light"] .package-acceptance meter::-webkit-meter-bar { background: var(--theme-hover); }

html:not([data-theme="light"]) .company-intake { background: var(--theme-canvas); color: var(--theme-text); }
html:not([data-theme="light"]) .company-intake :is(.auth-top,.auth-card,.company-process) { border-color: var(--theme-line); }
html:not([data-theme="light"]) .company-intake :is(.brand,h1,h2,.auth-card) { color: var(--theme-text); }
html:not([data-theme="light"]) .company-intake :is(.language-switch,.company-back,small a) { color: var(--theme-accent); }
html:not([data-theme="light"]) .company-intake :is(.auth-intro > p,.auth-card p,.company-process ol,.auth-form small) { color: var(--theme-muted); }
html:not([data-theme="light"]) .company-intake .auth-card { background: var(--theme-panel); }
html:not([data-theme="light"]) .company-intake .auth-form :is(input,select,textarea) {
  background: var(--theme-raised);
  color: var(--theme-text);
  border-color: var(--theme-line);
}
html:not([data-theme="light"]) .company-intake .auth-form .error {
  background: var(--theme-raised);
  color: var(--theme-danger);
  border-color: var(--theme-line);
}
html[data-theme="light"] .company-intake .theme-toggle {
  background: var(--theme-panel);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}

@media (max-width: 530px) {
  .company-nav:has(> a[href$="/help"]) { display: flex; }
  .company-nav:has(> a[href$="/help"]) a {
    flex: 1 0 auto;
    justify-content: center;
    font-size: .73rem;
    white-space: nowrap;
  }
}

/* language.css */
.language-switch {
  --language-line: #8c78aa;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: none;
  min-width: 2.45rem;
  min-height: 2.35rem;
  padding: .25rem .48rem;
  border: 1px solid var(--language-line);
  border-radius: .45rem;
  color: inherit;
  font: 720 .72rem/1.15 Inter, system-ui, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
}
.language-switch:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.language-switch:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.home-header-actions { display:flex; align-items:center; justify-self:end; gap:.65rem; }
.home-header-actions .button-top { white-space:nowrap; }
.doc-header .language-switch { --language-line:#c2c8db; }
html[lang=ru] :is(.doc-hero h1,.infrastructure-page .hero h1) { letter-spacing:-.045em; }
html[lang=ru] .infrastructure-page .hero h1 { max-width:16ch; font-size:clamp(2.5rem,4.45vw,4.25rem); }
html[lang=ru] .main-nav { gap:clamp(.68rem,2.5vw,2.3rem); }
html[lang=ru] .doc-hero h1 { font-size:clamp(2rem,5.1vw,4.1rem); overflow-wrap:anywhere; }
html[lang=ru] .doc-header-links { gap:clamp(.45rem,1.4vw,1.3rem); }
html[lang=ru] .code-lines { font-variant-ligatures:none; }
@media(max-width:900px) { .public-header .header-layout { gap:.6rem; } }
@media(max-width:780px) {
  .doc-header .doc-header-links > a.language-switch { display:inline-flex; }
  .doc-header .language-switch { min-width:2rem; min-height:2rem; }
  html[lang=ru] .doc-header .doc-label { display:none; }
}
@media(max-width:640px) {
  .home-header-actions { gap:.45rem; justify-self:end; grid-column:2 / -1; }
  html[lang=ru] .infrastructure-page .hero h1 { max-width:17ch; font-size:clamp(2.35rem,7.5vw,3.7rem); }
}
@media(max-width:380px) {
  .language-switch { min-width:2.1rem; min-height:2.1rem; }
  .doc-header-links .doc-workspace { padding-inline:.38rem; }
}

html[lang=ru] .workbench-nav { gap:.2rem; }
html[lang=ru] .workbench-nav a { padding-inline:.48rem; }
html[lang=ru] .auth-intro h1 { letter-spacing:-.035em; }
@media(max-width:1100px) { html[lang=ru] .workbench-profile .env-pill { display:none; } }
@media(max-width:420px) { .public-header .header-actions { gap:.4rem; } .public-header .header-actions .public-button { padding-inline:.46rem; } }
@media (641px <= width <= 840px) {
  .infrastructure-page .topbar { grid-template-columns:1fr auto; gap:.6rem; }
  .infrastructure-page .home-header-actions { grid-column:2; }
  .infrastructure-page .nav-toggle { display:grid; place-items:center; width:2.5rem; height:2.5rem; border:1px solid var(--border); border-radius:.45rem; color:var(--text); background:#201a2a; }
  .infrastructure-page .main-nav { display:none; position:absolute; inset:calc(100% + .4rem) 0 auto; padding:.35rem; background:#201a2b; border:1px solid #8e70b6; border-radius:.55rem; box-shadow:0 8px 24px #08051196; }
  .infrastructure-page .main-nav.is-open { display:grid; gap:0; }
  .infrastructure-page .main-nav a { padding:.62rem .75rem; border-radius:.25rem; }
  .infrastructure-page .main-nav a:hover { background:#37274b; }
}
html[lang=ru] .doc-footer nav { flex-wrap:wrap; gap:.5rem .85rem; }
html[lang=ru] .doc-table :is(td,th) { overflow-wrap:anywhere; }
html[lang=ru] .home-header-actions .button-top { min-width:0; }
html[lang=ru] .hero h1 { overflow-wrap:anywhere; }
@media(max-width:475px) {
  html[lang=ru] .expense-table { table-layout:fixed; }
  html[lang=ru] .expense-table :is(td,th) { white-space:normal; overflow-wrap:anywhere; }
  html[lang=ru] .expense-table :is(td,th):last-child { width:23%; }
  html[lang=ru] .expense-table tbody th span { display:block; }
  html[lang=ru] .expense-table tbody th .icon { margin-right:.24rem; vertical-align:-.12em; }
}
html[lang=ru] .infrastructure-page :is(.capacity-card,.settlement-card,.resource-card,.policy-summary,.receipt,.developer-heading) { overflow-wrap:anywhere; }
html[lang=ru] .infrastructure-page .expense-table :is(th,td) { overflow-wrap:anywhere; }
html[lang=ru] .infrastructure-page .receipt-state { white-space:normal; }
@media(min-width:641px) {
  html[lang=ru] .infrastructure-page .developer-heading { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:1.1rem; }
  html[lang=ru] .infrastructure-page .developer-heading p { padding-inline-start:1.1rem; }
}
@media (761px <= width <= 880px) {
  html[lang=ru] .workbench-top { gap:.55rem; }
  html[lang=ru] .workbench-brand { padding-inline-end:.55rem; }
  html[lang=ru] .workbench-nav a { padding-inline:.36rem; font-size:.8rem; }
}
@media(max-width:390px) {
  html[lang=ru] .paid-header { flex-wrap:wrap; }
  html[lang=ru] .paid-balance { text-align:start; }
}

/* support-chat.css */
.support-launcher {
  position: fixed;
  z-index: 20;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  padding: .68rem .94rem;
  min-height: 2.75rem;
  border: 1px solid #ad8bd5;
  border-radius: .8rem;
  background: #7049a3;
  box-shadow: 0 .6rem 1.75rem #100b214d;
  color: #fff;
  font-size: .87rem;
  font-weight: 690;
}
.support-launcher:hover, .support-button:not(.secondary):hover { background: #5e3a91; }
.support-launcher:focus-visible, .support-widget-dialog :focus-visible, .support-page :focus-visible {
  outline: 2px solid var(--theme-focus);
  outline-offset: 3px;
}
.support-widget-dialog {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(4.65rem, env(safe-area-inset-bottom)) auto;
  width: min(26.5rem, calc(100% - 2rem));
  height: min(34rem, calc(100dvh - 6rem));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  border-radius: 1rem;
  background: var(--theme-canvas);
  color: var(--theme-text);
  box-shadow: 0 1.35rem 4rem #160f254d;
}
.support-widget-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.support-widget-dialog::backdrop { background: #100b2040; }
.support-widget-header, .support-page-header, .support-inbox-heading, .support-ticket-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.support-widget-header {
  padding: .7rem .85rem .7rem 1rem;
  background: var(--theme-panel);
  border-bottom: 1px solid var(--theme-line);
}
.support-widget-header h2 { font-size: 1rem; }
.support-widget-close, .support-header-actions .theme-toggle {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid var(--theme-line);
  border-radius: .5rem;
  color: var(--theme-text);
  background: var(--theme-raised);
  cursor: pointer;
}
.support-widget-close:hover, .support-header-actions .theme-toggle:hover { background: var(--theme-hover); }
.support-widget-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.support-page { color: var(--theme-text); background: var(--theme-canvas); }
.support-page-header {
  min-height: 4.2rem;
  padding: .65rem clamp(1rem, 3vw, 2.1rem);
  border-bottom: 1px solid var(--theme-line);
  background: var(--theme-header);
}
.support-brand, .support-header-actions { display: flex; gap: .6rem; align-items: center; }
.support-brand { min-width: 0; color: var(--theme-text); font-weight: 720; }
.support-brand img, .support-header-actions { flex: none; }
.support-brand span { font-size: .78rem; font-weight: 510; color: var(--theme-muted); }
.support-header-actions .icon { width: 1.05rem; height: 1.05rem; }
.support-page-main { width: min(100% - 2rem, 43rem); margin: 0 auto; padding: clamp(1.3rem, 5vw, 3.2rem) 0; }
.support-page-main > h1 { margin: 0 0 1rem; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.support-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: min(35rem, 74dvh);
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  border-radius: .8rem;
  background: var(--theme-panel);
}
.support-embedded .support-page-main { width: 100%; padding: 0; }
.support-embedded .support-thread { height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
.support-thread-info { display: flex; justify-content: space-between; align-items: center; padding: .45rem .85rem; }
.support-thread-info, .support-ticket-reference { color: var(--theme-muted); font-size: .8rem; }
.support-state { padding: .2rem .5rem; border-radius: .4rem; background: var(--theme-raised); color: var(--theme-muted); font-size: .73rem; }
.support-state[data-state="open"] { color: var(--theme-warning); }
.support-state[data-state="answered"] { color: var(--theme-success); }
.support-transcript { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--theme-canvas); scrollbar-width: thin; }
.support-transcript:focus-visible { outline-offset: -2px; }
.support-welcome { padding: 1.55rem 1rem; text-align: center; }
.support-welcome-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin: 0 auto .7rem; border-radius: .8rem; color: var(--theme-accent); background: var(--theme-raised); }
.support-welcome h2 { font-size: 1.16rem; }
.support-welcome p { margin: .4rem auto 0; max-width: 28ch; font-size: .87rem; color: var(--theme-muted); }
.support-messages { display: grid; gap: .7rem; list-style: none; padding: .85rem; margin: 0; }
.support-messages:empty { display: none; }
.support-message { justify-self: start; max-width: min(100%, 32rem); padding: .55rem .7rem; border: 1px solid var(--theme-line); border-radius: .62rem; background: var(--theme-panel); }
.support-page:not(.support-admin) .support-message[data-sender="visitor"], .support-admin .support-message[data-sender="admin"] { justify-self: end; background: var(--theme-raised); }
.support-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin-bottom: .25rem; }
.support-message-meta strong { font-size: .8rem; color: var(--theme-accent); }
.support-message-meta time { color: var(--theme-muted); font-size: .69rem; }
.support-message p { font-size: .9rem; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-composer { flex: none; padding: .65rem .85rem .75rem; border-top: 1px solid var(--theme-line); }
.support-input-label { display: block; margin: 0 0 .35rem; font-size: .78rem; color: var(--theme-muted); }
.support-input-row { display: flex; align-items: flex-end; gap: .55rem; }
.support-input-row textarea { min-width: 0; width: 100%; min-height: 2.65rem; max-height: 9rem; resize: vertical; border: 1px solid var(--theme-line); padding: .48rem .55rem; border-radius: .48rem; color: var(--theme-text); background: var(--theme-canvas); font: inherit; font-size: .88rem; }
.support-input-row textarea::placeholder { color: var(--theme-muted); opacity: 1; }
.support-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.55rem; padding: .48rem .7rem; border: 1px solid #7651a7; border-radius: .48rem; background: #7049a3; color: #fff; font: inherit; font-size: .83rem; font-weight: 670; cursor: pointer; }
.support-button.secondary { background: var(--theme-panel); color: var(--theme-accent); border-color: var(--theme-line); }
.support-button.secondary:hover { background: var(--theme-hover); }
.support-button:disabled { opacity: .65; cursor: wait; }
.support-composer-note, .support-error { margin-top: .38rem; color: var(--theme-muted); font-size: .75rem; }
.support-error { color: var(--theme-danger); margin: 0 0 .4rem; }

.support-inbox-filters a { display: block; color: var(--theme-muted); border-radius: .44rem; }
.support-inbox-filters a[aria-current], .support-inbox-list a[aria-current] { color: var(--theme-accent); background: var(--theme-raised); }
.support-inbox-filters a:hover, .support-inbox-list a:hover { color: var(--theme-text); background: var(--theme-hover); }
.support-inbox-heading { align-items: end; margin-bottom: 1rem; }
.support-inbox-heading h1 { font-size: clamp(1.55rem, 4vw, 2.5rem); }
.support-inbox-placeholder p { color: var(--theme-muted); font-size: .88rem; margin-top: .35rem; }
.support-inbox-columns { display: grid; grid-template-columns: minmax(14rem, .72fr) minmax(0,1.28fr); gap: .9rem; align-items: start; }
.support-inbox-queue, .support-inbox-placeholder { min-width: 0; border: 1px solid var(--theme-line); border-radius: .8rem; background: var(--theme-panel); }
.support-inbox-filters { display: flex; flex-wrap: wrap; gap: .2rem; padding: .5rem; border-bottom: 1px solid var(--theme-line); }
.support-inbox-filters a { font-size: .78rem; padding: .32rem .42rem; }
.support-inbox-list { list-style: none; margin: 0; padding: 0; max-height: 60dvh; overflow-y: auto; }
.support-inbox-list li + li { border-top: 1px solid var(--theme-line); }
.support-inbox-list a { display: grid; gap: .24rem; padding: .58rem .72rem; color: var(--theme-text); }
.support-inbox-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem .35rem; font-size: .77rem; }
.support-inbox-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.support-inbox-list small, .support-inbox-empty { color: var(--theme-muted); font-size: .8rem; }
.support-inbox-empty, .support-inbox-placeholder { padding: 1rem; }
.support-inbox-placeholder h2 { font-size: 1.2rem; }
.support-inbox-pagination { display: flex; gap: .8rem; padding: .65rem; }
.support-inbox-pagination a { color: var(--theme-accent); font-size: .83rem; }
.support-ticket-heading { align-items: flex-start; padding: .7rem .85rem; }
.support-ticket-heading h2 { font-size: 1rem; overflow-wrap: anywhere; }
.support-ticket-heading p { margin-top: .22rem; color: var(--theme-muted); font-size: .8rem; overflow-wrap: anywhere; }
.support-ticket-heading .support-state { flex-shrink: 0; }
.support-inbox-thread { height: min(47rem, 77dvh); min-height: 23rem; }
.support-ticket-actions { padding: 0 .85rem .7rem; }
.support-ticket-actions .support-button { min-height: 2rem; }

@media (max-width: 800px) {
  .support-inbox-columns { grid-template-columns: minmax(0,1fr); }
  .support-inbox-list { max-height: 16rem; }
}
@media (max-width: 530px) {
  .support-launcher span { display: none; }
  .support-launcher { justify-content: center; padding: 0; width: 2.95rem; height: 2.95rem; }
  .support-widget-dialog { inset: auto .6rem max(.6rem, env(safe-area-inset-bottom)) .6rem; width: calc(100% - 1.2rem); height: min(34rem, calc(100dvh - 1.2rem)); }
  .support-brand span { display: none; }
  .support-inbox-heading { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .support-ticket-heading { gap: .45rem; flex-wrap: wrap; }
  .support-input-row { gap: .4rem; }
  .support-input-row .support-button { max-width: 7rem; white-space: normal; }
}

