@font-face {
  font-family: Inter;
  src: url('/static/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}

:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #f2f3f0;
  --muted: #a0a69e;
  --surface: #0d100d;
  --divider: #252a25;
  --input-border: #697267;
  --hover: #111711;
  --accent: #7fee64;
  --primary: #7fee64;
  --primary-text: #101810;
  --primary-hover: #91f57b;
  --success: #7fee64;
  --success-surface: #152313;
  --error: #ff9292;
  --error-surface: #291414;
  --selection: #2d4827;
  --section-space: 32px;
  --group-space: 16px;
  --label-space: 8px;
  --page-width: 640px;
  --control-radius: 2px;
  --signal-red: #ff2d55;
  --signal-cyan: #00d5ff;
  font-family: Inter, Arial, sans-serif;
  font-size: 100%;
  font-feature-settings: 'cv11' 1;
  color: var(--foreground);
  background: var(--background);
  accent-color: var(--accent);
  caret-color: var(--accent);
  scrollbar-color: var(--input-border) var(--background);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { color: var(--foreground); background: var(--selection); }
body { margin: 0; min-height: 100dvh; font-size: .875rem; line-height: 1.5; background: var(--background); }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
.button { text-decoration: none; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

header {
  min-height: 96px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 20px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.125rem; font-weight: 650; letter-spacing: -.03em; }
.brand-slash { color: var(--accent); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.brand-context { color: var(--foreground); font-size: .875rem; font-weight: 450; letter-spacing: -.01em; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.header-actions > a { color: var(--muted); text-decoration: none; }
.header-actions > a:hover { color: var(--foreground); }
.skip-link { position: absolute; left: 16px; top: -80px; background: var(--surface); padding: 8px 12px; z-index: 2; }
.skip-link:focus { top: 8px; }

main { overflow-wrap: anywhere; width: calc(100% - 40px); margin: 72px auto 64px; }
.box { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 80px; }
.box-identity, .box-workspace { min-width: 0; }
.login { max-width: 440px; margin-top: 96px; }
h1 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 580; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
p { margin: 0; }
.login h1 { margin-bottom: var(--section-space); }
.title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.state::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 1px; }
.state[data-state='running']::before { background: currentColor; }
.state[data-state='loading']::before { border-style: dashed; }
.state[data-state='unknown']::before { border-radius: 1px; background: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.state[data-state='running'] { color: var(--success); }
.state[data-state='unknown'] { color: var(--error); }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--input-border);
  border-radius: var(--control-radius);
  padding: 11px 18px;
  font-weight: 550;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
button:hover, .button:hover { background: var(--hover); }
button:active, .button:active { border-color: var(--foreground); }
button:disabled { opacity: .6; cursor: wait; }
.primary { position: relative; background: var(--primary); border-color: transparent; color: var(--primary-text); }
.primary:hover { color: var(--primary-text); background: var(--primary-hover); }
.primary:active { border-color: var(--primary-text); }
.primary:disabled { background: var(--surface); border-color: var(--divider); color: var(--muted); opacity: 1; cursor: default; }
.primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.quiet { border-color: transparent; color: var(--muted); padding: 6px 8px; }
.danger { color: var(--error); border-color: var(--error); }
.danger:hover { background: var(--error-surface); }
.danger:active { border-color: var(--error); }
.full { width: 100%; justify-content: space-between; }
.text-button { display: inline-flex; padding: 0; min-height: auto; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
label { display: block; font-weight: 500; margin-bottom: 8px; }
input:not([type='checkbox']), textarea, select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--foreground);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; }

.environment-info { margin: 0; padding: 0 0 24px; display: grid; gap: var(--group-space); }
.environment-info > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--group-space); }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
dd a { text-decoration-color: var(--input-border); }
details { border: 0; }
details + details { border-top: 1px solid var(--divider); }
summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; cursor: pointer; font-weight: 500; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { flex-shrink: 0; content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-right: 4px; }
details[open] > summary::after { transform: rotate(225deg); }
summary:hover { color: var(--accent); }
.confirmation { display: flex; gap: 8px; align-items: center; font-weight: 400; margin-bottom: 16px; cursor: pointer; min-height: 24px; }
.confirmation input { width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.notice { padding: 12px 14px; border-radius: var(--control-radius); margin-bottom: 24px; }
.notice.error { color: var(--error); background: var(--error-surface); }
.notice.success, .notice.info { background: transparent; padding: 0; margin-bottom: var(--section-space); }
.notice.success { color: var(--success); }
.notice.info { color: var(--muted); }
.action-progress { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); padding: 12px 16px; border: 1px solid var(--divider); border-radius: var(--control-radius); background: var(--surface); box-shadow: 0 4px 16px rgb(0 0 0 / 8%); }
noscript p { margin-block: 20px; color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  header { padding-inline: 20px; }
  .task-note { font-size: .875rem; }
  .header-actions { gap: 8px; }
  main { margin-top: 32px; }
  .login { margin-top: 64px; }
  .environment-info > div { grid-template-columns: 100px minmax(0, 1fr); }
}

@media (pointer: coarse), (max-width: 560px) {
  button, .button, .confirmation { min-height: 44px; }
  .brand, .header-actions > a, .skip-link { display: inline-flex; align-items: center; min-height: 44px; }
  summary { min-height: 44px; }
  input:not([type='checkbox']), textarea, select { min-height: 44px; font-size: 1rem; }
  .text-button { padding-inline: 4px; }
}

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

.task-area { padding: var(--section-space) 0; }
.setup-panel > p:not(.task-note) { color: var(--muted); max-width: 64ch; margin-bottom: 24px; }
.setup-panel + .setup-panel:not([hidden]) { margin-top: var(--section-space); }
.setup-panel[hidden] + .setup-panel { margin-top: 0; }
textarea { resize: vertical; height: auto; min-height: 88px; line-height: 1.65; font-family: ui-monospace, monospace; font-size: .75rem; }
form > textarea { display: block; margin-bottom: 24px; }
.task-note { color: var(--muted); font-size: .8125rem; margin-top: var(--group-space); max-width: 64ch; }
.box-workspace > .notice { margin-bottom: 24px; }
.loading-placeholder { min-height: 13rem; display: flex; flex-direction: column; gap: var(--group-space); }
.loading-placeholder span { display: block; height: .75rem; max-width: 100%; background: var(--divider); border-radius: 2px; }
.loading-placeholder span:nth-child(1) { width: 12rem; height: 1.25rem; }
.loading-placeholder span:nth-child(2) { width: 24rem; }
.loading-placeholder span:nth-child(3) { width: 8rem; height: 2.5rem; margin-top: var(--group-space); }
@media (max-width: 560px) {
  .setup-panel form > .primary { width: 100%; }
}
@media (pointer: coarse), (max-width: 560px) {
  textarea { font-size: 1rem; }
}
@media (scripting: none) {
  #task-area, #state { display: none; }
}

button, .button, .notice, h1 { overflow-wrap: anywhere; }
.header-actions, .brand { min-width: 0; max-width: 100%; }

.destination-context { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 28px 0 0; }
.destination-context dt { color: var(--muted); font-size: .75rem; }
.destination-context dd { margin: 4px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.destination-context > div { min-width: 0; max-width: 100%; }

/* Pages assemble the same identity, context, action and disclosure primitives. */
.launcher { max-width: var(--page-width); margin-bottom: 48px; }
.launcher-mark { position: relative; aspect-ratio: 1; }
.launcher-mark img { display: block; width: 100%; height: auto; }
.launcher-mark video { display: block; width: 100%; height: 100%; object-fit: contain; }
.launcher-motion { position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; padding: 12px; }
.launcher-motion svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.entity-heading { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 12px; }
.entity-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
h1 .entity-icon { width: 36px; height: 36px; color: var(--accent); }
.box-heading .entity-heading { display: block; font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.box-heading .entity-icon { display: block; margin-bottom: 24px; }
.box-assembly h2 { margin: 0; font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
.box-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--label-space) var(--group-space); }
.box-assembly { border: 0; }
.editor-host { padding: 4px 0 0; }
.box-context { margin-top: 0; border-top: 1px solid var(--divider); }
.editor-host h2 .entity-icon { color: var(--accent); }
.editor-host .task-area { border-bottom: 0; padding-bottom: 0; }
.editor-host .notice { margin: 24px 0 0; }
.editor-host #box-details { margin-top: 24px; }
.editor-host #box-details:not([hidden]) + #administration { border-top: 1px solid var(--divider); }
@media (max-width: 560px) {
  .editor-host { padding: 0; }
  .box .environment-info > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.administration-actions { padding-bottom: 24px; }
.administration-actions > section { padding: 4px 0 24px; }
.administration-actions > section:not([hidden]) ~ section:not([hidden]) { border-top: 1px solid var(--divider); padding-top: 24px; }
.administration-actions > section:last-child { padding-bottom: 0; }

.box-library { max-width: var(--page-width); padding-bottom: var(--section-space); }
.launcher-intro { color: var(--muted); margin-bottom: 24px; }
.box-list { list-style: none; padding: 0; margin: 0 0 var(--section-space); }
.box-list-row { display: flex; align-items: center; justify-content: space-between; gap: var(--group-space); padding-block: 20px; }
.box-list-row + .box-list-row { border-top: 1px solid var(--divider); }
.box-list-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.box-list-identity h2 { margin: 0; font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.box-list-identity p, .box-access { color: var(--muted); overflow-wrap: anywhere; }
.box-list-identity .entity-icon { color: var(--accent); }
.box-list-row form { flex-shrink: 0; }
.empty-environments h2 { font-size: 1rem; font-weight: 500; margin: 0 0 var(--label-space); }
.empty-environments p { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 560px) {
  .box-list-row { flex-wrap: wrap; }
  .box-list-row form, .box-list-row button { width: 100%; max-width: none; }
}

.launcher > .full { justify-content: center; }

/* The historical ledger loads only on its own route. */
.ledger { max-width: 1120px; margin-bottom: 48px; }
.ledger-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--group-space); }
.ledger-heading p { color: var(--muted); margin-top: var(--label-space); }
.ledger-description { color: var(--muted); margin: 24px 0 var(--section-space); max-width: 65ch; }
.ledger-scroll { overflow-x: auto; }
.ledger-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.ledger-table caption { text-align: left; color: var(--muted); padding-bottom: var(--group-space); }
.ledger-table th, .ledger-table td { padding: 20px 16px; vertical-align: top; border-bottom: 1px solid var(--divider); }
.ledger-table th:first-child, .ledger-table td:first-child { padding-left: 0; }
.ledger-table th { font-weight: 500; }
.ledger-table thead th { color: var(--muted); font-size: .75rem; font-weight: 450; }
.ledger-table tbody tr:last-child > * { border-bottom: 0; }
.ledger-table tbody tr:hover { background: var(--hover); }
.ledger-table th[scope='row'] { min-width: 240px; }
.ledger-table td { max-width: 260px; overflow-wrap: anywhere; }
.ledger-table time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-secondary { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; margin-top: 4px; }
.ledger-id { max-width: 36ch; overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.ledger-owner { font-variant-numeric: tabular-nums; }
.ledger-empty { padding-block: 24px; color: var(--muted); }

/* Creation pairs the task with its form, without launcher artwork. */
.box-create { max-width: 960px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 80px; align-items: start; }
.box-create > .create-back { grid-column: 1 / -1; justify-self: start; margin-bottom: 32px; }
.create-back { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.create-back::before { content: ''; width: 7px; height: 7px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.create-heading { margin: 0; min-width: 0; }
.create-heading p { margin-top: 20px; color: var(--muted); overflow-wrap: anywhere; }
.create-heading strong { font-weight: 500; color: var(--foreground); }
.create-form { min-width: 0; padding-top: 4px; }
.create-form select { height: auto; min-height: 52px; }
.create-actions { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.create-actions button, .create-actions a { min-height: 44px; }
.create-actions a { display: inline-flex; align-items: center; color: var(--muted); }
@media (max-width: 560px) {
  .create-actions { flex-wrap: wrap; }
  .create-actions button { flex: 1; }
}

/* Shrink identity groups before long names can widen the page. */
.box-heading > *, .ledger-heading > *, .box-list-identity > div {
  min-width: 0;
  max-width: 100%;
}
@media (forced-colors: active) {
  .primary { border-color: ButtonText; }
  .state::before { forced-color-adjust: none; color: CanvasText; }
}

/* Co-brand grammar: the supplied artwork owns the glitch; controls echo it once. */
.box-definition { color: var(--muted); max-width: 26ch; font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.box-definition a { color: var(--foreground); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.box-definition a:hover { color: var(--accent); }
.launcher-signin { max-width: 400px; margin-top: 48px; text-align: center; }
.launcher-signin .launcher-mark { width: 240px; margin: 0 auto 32px; }
.launcher-signin .primary { min-height: 52px; }
.primary:not(:disabled)::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  right: -3px;
  top: 11px;
  background: var(--signal-cyan);
  box-shadow: -5px 3px var(--signal-red);
  opacity: 0;
  pointer-events: none;
}
.primary:not(:disabled):is(:hover, :focus-visible)::after { opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .primary:not(:disabled):is(:hover, :focus-visible)::after { animation: channel-align 220ms steps(2, end) 1; }
  @keyframes channel-align {
    0% { transform: translateX(-4px); opacity: .3; }
    60% { transform: translateX(2px); opacity: .8; }
    100% { transform: none; }
  }
}

/* Identity and work share a single alignment across the suite. */
.launch-console {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 80px;
  max-width: 1120px;
}
.console-identity, .console-workspace { min-width: 0; }
.console-identity .launcher-mark { width: 200px; margin: -16px 0 24px; }
.console-identity .box-definition { max-width: 23ch; }
.console-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.console-heading > div { min-width: 0; }
.console-destination { margin-top: 16px; color: var(--muted); }
.console-heading > .button { margin-top: 2px; }
.launch-console .box-list { margin: 0; }
.launch-console .box-list + .button { margin-top: 24px; }
.launch-console .box-list-row { min-height: 120px; padding: 28px 0; gap: 24px; }
.launch-console .box-list-identity { gap: 20px; }
.launch-console .box-list-identity > .entity-icon { width: 32px; height: 32px; stroke-width: 1.25; }
.launch-console .box-list-identity h2 { font-size: 1.1875rem; font-weight: 520; letter-spacing: -.02em; }
.launch-console .box-list-identity p { margin-top: 6px; font-size: .8125rem; }
.launch-console .box-list-row button { min-width: 126px; justify-content: space-between; }
.launch-console .box-list-row button::after { content: ''; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); flex: none; }
.launch-console .box-list-row:focus-within .entity-icon { color: var(--foreground); }
.launch-console .box-list-row:has(form[aria-busy='true']) { opacity: .65; }
.launch-console .launcher-intro { padding: 28px 0; }
@media (hover: hover) {
  .launch-console .box-list-row:has(button):hover .entity-icon { color: var(--foreground); }
  .launch-console .box-list-row:has(button):hover button { border-color: var(--accent); }
}
@media (max-width: 900px) {
  .launch-console { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
  .console-identity .launcher-mark { width: 160px; }
  .box { column-gap: 40px; }
  .box-create { column-gap: 40px; }
}
@media (max-width: 700px) {
  header { min-height: 80px; padding: 14px 20px; }
  .header-actions { gap: 12px; font-size: .8125rem; }
  main { margin-top: 40px; }
  .launch-console, .box, .box-create { display: block; max-width: 560px; }
  .console-identity { display: flex; align-items: center; gap: 24px; margin-bottom: 44px; }
  .console-identity .launcher-mark { width: 96px; flex: none; margin: 0; }
  .console-identity .box-definition { max-width: 27ch; font-size: .875rem; }
  .console-heading { gap: 16px; margin-bottom: 20px; }
  .console-heading h1 { font-size: 2rem; }
  .console-heading > .button { padding-inline: 14px; }
  .box-identity { margin-bottom: 44px; }
  .box-heading .entity-heading { display: flex; align-items: flex-start; font-size: 2rem; }
  .box-heading .entity-icon { width: 28px; height: 28px; margin: 4px 0 0; }
  .destination-context { margin-top: 20px; }
  .box-create > .create-back { margin-bottom: 24px; }
  .create-heading { margin-bottom: 36px; }
  .ledger-description { margin-top: 20px; }
}
@media (max-width: 560px) {
  .launch-console .box-list-row { padding: 24px 0; gap: 20px; }
  .launch-console .box-list-row form { padding-inline-start: 52px; }
  .launch-console .box-list-identity h2 { font-size: 1.0625rem; }
  .launcher-signin { max-width: 360px; margin-top: 32px; }
  .launcher-signin .launcher-mark { width: 200px; }
}
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .header-actions { gap: 8px; }
  .console-identity { gap: 16px; }
  .console-identity .launcher-mark { width: 80px; }
}
@media (forced-colors: active) {
  .primary::after { display: none; }
  .launch-console .box-list-row button { border-color: ButtonText; }
}
