@font-face {
  font-family: Plex;
  src: url(/static/brand/Regular.ttf);
  font-display: swap;
}

@font-face {
  font-family: Plex;
  src: url(/static/brand/Bold.ttf);
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #24282f;
  --surface: #2a3038;
  --surface-raised: #333b46;
  --border: #46515e;
  --text: #f1f4f7;
  --muted: #bdc7d2;
  --accent: #78dfaf;
  --brand-orange: #f8b57e;
  --brand-purple: #c4a7ff;
  --danger: #ffabab;
  --console: #1c2229;
  --control: #a0adba;
  --mono: ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.55 Plex,Arial,sans-serif;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: radial-gradient(ellipse at 92% 14%,#a78bf509,transparent 43%),radial-gradient(ellipse at 3% 70%,#69d3a006,transparent 40%);
}

.ambient-code {
  position: absolute;
  margin: 0;
  color: var(--muted);
  opacity: .085;
  font: .72rem/2 var(--mono);
  letter-spacing: .1em;
  white-space: pre;
}

.ambient-left {
  top: 9rem;
  left: max(.5rem,calc((100vw - 94rem)/2));
  mask-image: linear-gradient(90deg,#000,transparent 95%);
}

.ambient-right {
  top: 9rem;
  right: max(.5rem,calc((100vw - 94rem)/2));
  color: var(--brand-purple);
  mask-image: linear-gradient(270deg,#000,transparent 95%);
}

[hidden],.trap {
  display: none!important;
}

.wrap {
  width: min(78rem,calc(100% - clamp(2rem,9vw,10rem)));
  margin-inline: auto;
}

main.wrap {
  flex: 1;
  min-width: 0;
}

a,.textlink {
  color: var(--accent);
  text-underline-offset: .22em;
}

a:hover {
  color: #a4ebc3;
}

button,input,select {
  font: inherit;
}

button,.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: .68rem 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  background: var(--accent);
  color: #1b2821;
  cursor: pointer;
  text-decoration: none;
}

button:hover,.button:hover {
  background: #8fdab1;
  color: #1b2821;
}

button:disabled {
  cursor: default;
  color: #bdc7d2;
  background: #2d343d;
  border-color: #626f7d;
}

.quiet,.secondary,.demo-link {
  color: var(--text);
  border: 1px solid var(--control);
  background: transparent;
}

.quiet:hover:not(:disabled),.secondary:hover,.demo-link:hover {
  background: var(--surface-raised);
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
}

.mast {
  border-bottom: 1px solid var(--border);
  background: #252a32;
}

.bar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  letter-spacing: .055em;
  font: 700 1.2rem/1.2 var(--mono);
}

.brand b span {
  color: var(--accent);
}

.mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.2rem;
  height: 3.5rem;
}

.mark img {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  max-width: none;
  object-fit: contain;
}

.descriptor {
  color: var(--muted);
  font-size: .95rem;
  border-left: 1px solid var(--border);
  padding-left: 1.3rem;
}

.demo-link {
  margin-left: auto;
  text-decoration: none;
  border-color: var(--border);
  border-radius: 5px;
  padding: .5rem .9rem;
  font-size: .94rem;
  font-weight: 700;
}

h1,h2,h3,p,ol,ul,dl {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.12;
  letter-spacing: -.04em;
}

h1 {
  overflow-wrap: anywhere;
  font-size: clamp(2.35rem,5vw,4.25rem);
}

h2 {
  font-size: clamp(1.5rem,2vw,2rem);
}

h3 {
  font-size: 1.2rem;
}

.eyebrow,.profile,.sample-head,.job-meta b,.console-foot,.pipeline li span {
  font: 500 .83rem/1.5 var(--mono);
}

.eyebrow {
  color: var(--brand-orange);
  letter-spacing: .065em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: .7rem;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1.42fr) minmax(0,.98fr);
  align-items: center;
  gap: clamp(2.5rem,6vw,6.5rem);
  padding: clamp(2.75rem,5.5vw,5.5rem) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 53%;
  z-index: -1;
  background: radial-gradient(ellipse at 60% 40%,#a78bf514,transparent 68%),radial-gradient(ellipse at 30% 80%,#69d3a00a,transparent 70%),repeating-linear-gradient(0deg,transparent 0 39px,#8b9caf0c 39px 40px),repeating-linear-gradient(90deg,transparent 0 39px,#8b9caf0c 39px 40px);
  mask-image: radial-gradient(ellipse,#000 25%,transparent 74%);
  pointer-events: none;
}

.intro h1 {
  font-size: clamp(2.7rem,4.65vw,4.5rem);
  line-height: 1.02;
  letter-spacing: -.058em;
  text-wrap: balance;
  margin: 1.15rem 0;
}

.intro em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  font-size: clamp(1rem,1.3vw,1.16rem);
  line-height: 1.53;
  color: var(--muted);
  max-width: 62ch;
}

.sample {
  margin-top: 1.65rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--brand-purple);
  border-radius: 7px;
  padding: .8rem 1rem;
  background: var(--console);
  font: .83rem/1.6 var(--mono);
  color: var(--muted);
}

.sample>div:not(.sample-head) {
  display: grid;
  grid-template-columns: 7.7ch 5.6ch auto;
  gap: .7rem;
}

.sample .sample-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: .48rem;
}

.sample-head b {
  color: var(--brand-orange);
  font-weight: 500;
}

.sample-head span {
  color: var(--muted);
}

.sample-head span::before {
  content: "/";
  margin-right: .65rem;
}

.info {
  color: var(--brand-purple);
}

.check-level {
  color: var(--accent);
}

.panel,.sheet,.result {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}

.panel {
  border-top: 2px solid var(--accent);
  padding: clamp(1.35rem,2.5vw,2.25rem);
  box-shadow: 0 1.2rem 4rem #10151b30;
}

.panel h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(1.5rem,2vw,1.85rem);
}

label {
  font-weight: 700;
  display: block;
}

.panel form>label:not(.check) {
  margin: .9rem 0 .35rem;
}

input:not([type=checkbox]):not([type=hidden]),select {
  max-width: 100%;
  width: 100%;
  color: var(--text);
  border: 1px solid var(--control);
  background: var(--console);
  border-radius: 5px;
  padding: .67rem .8rem;
  line-height: 1.45;
}

input::placeholder {
  color: var(--muted);
}

input[aria-invalid=true],input:user-invalid {
  border-color: var(--danger);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--muted);
  font-weight: 400;
  font-size: .93rem;
}

.check input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: .2rem 0 0;
  accent-color: var(--accent);
}

.panel .check {
  margin: 1.15rem 0 1.3rem;
}

.panel button {
  width: 100%;
}

.hint {
  font-size: .88rem;
  color: var(--muted);
  margin-top: .75rem;
  text-align: center;
}

.error-note {
  color: var(--danger);
  border-left: 3px solid currentColor;
  padding: .5rem .75rem;
}

.explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--border);
}

.explain section {
  padding: 2.3rem 2.5rem 2.3rem 0;
}

.explain section+section {
  border-left: 1px solid var(--border);
  padding-left: 2.5rem;
  padding-right: 0;
}

.explain p,.explain li,.scope p {
  color: var(--muted);
}

.explain h2,.scope h3 {
  margin-bottom: .8rem;
}

.explain li::marker,.report li::marker {
  color: var(--accent);
}

ul,ol {
  padding-left: 1.3rem;
}

.explain li+li,.report li+li {
  margin-top: .4rem;
}

.scope {
  padding: 2rem 0 3rem;
  max-width: 75ch;
}

.scope p+p {
  color: var(--muted);
  margin-top: .5rem;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .87rem;
}

footer .bar {
  min-height: 4rem;
  justify-content: space-between;
}

.product-credit a {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: var(--brand-orange);
  text-decoration-thickness: 2px;
}

.product-credit a:hover {
  color: var(--brand-orange);
}

.footer-note {
  font-size: .78rem;
  font-family: var(--mono);
}

.sheet,.report,.job {
  margin: clamp(1.8rem,4vw,4rem) auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sheet {
  max-width: 48rem;
  padding: clamp(1.5rem,4vw,3rem);
}

.sheet h1,.report h1 {
  margin: .9rem 0;
}

.sheet form,.sheet>a,.sheet .lead {
  margin: 1rem 0;
  display: block;
}

.report {
  max-width: 62rem;
}

.report h2,.sheet h2 {
  font-size: clamp(1.35rem,2.2vw,1.8rem);
}

.report section,.report>h2 {
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.65rem;
}

.report h2,.report h3 {
  margin-bottom: .85rem;
}

.report form {
  max-width: 34rem;
  margin: .8rem 0;
}

.report form label {
  margin: .5rem 0;
}

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

table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
}

td,th,details,.fact {
  border-bottom: 1px solid var(--border);
  padding: .7rem .55rem;
}

th {
  background: var(--surface-raised);
}

small,.muted {
  display: block;
  color: var(--muted);
}

summary {
  cursor: pointer;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font: .88rem/1.55 var(--mono);
}

.actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.report>.actions {
  justify-content: space-between;
}

.job {
  margin-top: 2rem;
}

.job-top,.job-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.profile {
  color: var(--muted);
  border-left: 1px solid var(--control);
  padding-left: 1rem;
}

.job h1 {
  margin: .55rem 0 1rem;
  font-size: clamp(2.15rem,4vw,3.75rem);
}

.job-meta {
  font-size: .93rem;
  color: var(--muted);
  gap: .65rem 1.4rem;
}

.job-meta b {
  color: var(--text);
  font-size: .9rem;
}

.job-meta strong {
  background: var(--surface-raised);
  color: var(--accent);
  padding: .25rem .65rem;
  border-radius: 4px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin: 1.35rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.metrics div {
  padding: .85rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metrics div+div {
  border-left: 1px solid var(--border);
}

.metrics dt {
  color: var(--muted);
  font-size: .91rem;
}

.metrics dd {
  margin: .12rem 0 0;
  font: 600 1.7rem/1.2 var(--mono);
}

.pipeline {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 6px;
  margin: 1.4rem 0;
}

.pipeline li {
  border-top: 2px solid var(--border);
  padding: .55rem 0 .3rem;
}

.pipeline li strong,.pipeline li span {
  display: block;
}

.pipeline li span {
  color: var(--muted);
  font-size: .76rem;
}

.pipeline [data-state=running],.pipeline [data-state=done] {
  border-color: var(--accent);
}

.pipeline [data-state=pause],.pipeline [data-state=partial] {
  border-color: var(--brand-orange);
}

.pipeline [data-state=error],.pipeline [data-state=cancel] {
  border-color: var(--danger);
}

.result,.limits {
  padding: 1.1rem 1.3rem;
  margin: 1rem 0;
}

.result h2 {
  margin: .3rem 0 .65rem;
}

.result .actions {
  margin: .8rem 0;
}

.delivery {
  color: var(--muted);
}

#consult {
  margin-top: .65rem;
}

.limits {
  border-left: 3px solid var(--brand-orange);
  background: #34312e;
}

.limits b {
  color: var(--brand-orange);
}

.limits ul {
  margin-top: .3rem;
}

.console {
  background: var(--console);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  min-width: 0;
}

.console-title,.tools,.console-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.console-title {
  justify-content: space-between;
}

.console-title>div {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.console-title h2 {
  font-size: 1.38rem;
}

.prompt {
  color: var(--accent);
  font: 700 1.25rem var(--mono);
}

.quiet {
  padding: .3rem .65rem;
  min-height: 34px;
  font-size: .89rem;
}

.tools {
  background: var(--surface);
}

.tools label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .89rem;
  color: var(--muted);
  font-weight: 400;
}

.tools select {
  width: auto;
  padding: .25rem .45rem;
}

.tools .check {
  margin-left: auto;
}

.tools .check input {
  margin: 0;
}

.terminal {
  height: clamp(18rem,41vh,32rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--control) var(--console);
  padding: .5rem 1rem;
  font: .86rem/1.6 var(--mono);
  overflow-anchor: none;
}

.terminal details {
  padding: .2rem 0 .4rem;
  border-color: var(--border);
}

.terminal summary {
  padding: .32rem .15rem;
  color: var(--text);
  font-weight: 700;
}

.terminal summary span {
  margin-left: .7rem;
  color: var(--muted);
  font-weight: 400;
}

.log-line {
  display: grid;
  grid-template-columns: 8ch 5.5ch minmax(0,1fr);
  gap: .8rem;
  align-items: baseline;
  padding: .16rem 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.log-line time {
  color: var(--muted);
}

.log-line b {
  color: var(--brand-purple);
}

.log-line[data-level=CHECK] b {
  color: var(--accent);
}

.log-line[data-level=WARN] b {
  color: var(--brand-orange);
}

.log-line[data-level=ERROR] b {
  color: var(--danger);
}

.log-empty {
  color: var(--muted);
  padding: 1rem 0;
}

.console-foot {
  border: 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.console-foot span {
  margin-left: auto;
}

.console:fullscreen,.console.expanded {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.console.expanded {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.console:fullscreen .terminal,.console.expanded .terminal {
  flex: 1;
  min-height: 0;
}

@media(max-width:900px) {
  .hero {
    gap: 1.6rem;
    grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  }
  .intro h1 {
    font-size: clamp(2.5rem,5.3vw,3.2rem);
  }
  .descriptor {
    display: none;
  }
  .pipeline {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .tools .check {
    margin-left: 0;
  }
}

@media(max-width:680px) {
  .wrap {
    width: calc(100% - 2rem);
  }
  .bar {
    min-height: 4rem;
    gap: .6rem;
  }
  .brand {
    font-size: 1rem;
    gap: .45rem;
  }
  .mark {
    width: 2.4rem;
    height: 2.8rem;
  }
  .mark img {
    width: 3.3rem;
    height: 3.3rem;
  }
  .ambient-code {
    opacity: .045;
  }
  .demo-link {
    font-size: .82rem;
    padding: .42rem .55rem;
  }
  .hero,.explain {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 2rem 0;
    gap: 1.5rem;
  }
  .intro h1 {
    font-size: clamp(2.35rem,9.8vw,3.5rem);
    text-wrap: pretty;
  }
  .sample {
    margin-top: 1.15rem;
  }
  .panel {
    padding: 1.25rem;
  }
  .explain section,.explain section+section {
    border: 0;
    padding: 1.4rem 0;
  }
  .explain section+section {
    border-top: 1px solid var(--border);
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics div {
    padding: .65rem .8rem;
  }
  .metrics div:nth-child(3) {
    border-left: 0;
  }
  .metrics div:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }
  .pipeline {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .pipeline li span {
    font-size: .76rem;
  }
  .tools,.console-title,.console-foot {
    gap: .5rem;
    padding: .65rem;
  }
  .tools label {
    flex-wrap: wrap;
  }
  .terminal {
    padding: .4rem .55rem;
    font-size: .81rem;
  }
  .log-line {
    gap: .4rem;
  }
  .job-meta {
    gap: .4rem .8rem;
  }
  .scope {
    padding-bottom: 1.7rem;
  }
  footer .bar {
    flex-wrap: wrap;
    padding-block: .65rem;
  }
  .result,.limits {
    padding: .85rem;
  }
  .report {
    font-size: .98rem;
  }
}

@media print {
  body,.report,.sheet {
    color: #182820;
    background: white;
  }
  header,footer,.ambient,.tools,.console-foot,.report>.actions {
    display: none;
  }
  main.wrap {
    width: 100%;
  }
  .report {
    margin: 0;
  }
  .report h1,.report h2,.report small,.report p,.report li,pre,.report a {
    color: #21362a;
  }
  .report th {
    background: #edf1ee;
  }
  .report section,.fact,details,td,th {
    border-color: #b8c6bd;
  }
}

.phrase {
  white-space: nowrap;
}

@media(max-width:680px) {
  .hero {
    gap: .9rem;
  }
  .intro {
    display: contents;
  }
  .intro h1 {
    font-size: clamp(2rem,8.8vw,3.5rem);
    margin: 0;
    text-wrap: balance;
  }
  .hero .panel {
    grid-row: 4;
    margin-top: .5rem;
  }
  .hero .sample {
    grid-row: 5;
    margin-top: .55rem;
  }
}
