@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: #ededed;
  --muted: #a3a3a3;
  --surface: #111;
  --divider: #292929;
  --input-border: #777;
  --hover: #191919;
  --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: 6px;
  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: 64px;
  padding: 10px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; text-decoration: none; font-size: .9375rem; font-weight: 500; }
.brand-context { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.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: 64px auto 48px; }
.box { max-width: var(--page-width); margin-bottom: var(--section-space); }
.login { max-width: 380px; margin-top: 96px; }
h1 { margin: 0; font-size: 2rem; font-weight: 550; line-height: 1.2; letter-spacing: -.02em; 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: .75rem; color: var(--muted); }
.state::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; }
.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: 10px 16px;
  font-weight: 500;
  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 { 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: 44px;
  padding: 8px 10px;
  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-bottom: 1px solid var(--divider); }
summary { 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: 6px; 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: 6px; 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; border-bottom: 1px solid var(--divider); }
.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 > .notice { margin-top: 24px; margin-bottom: 0; }
.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: 16px 40px; margin: 20px 0 32px; }
.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-film { position: relative; margin-bottom: var(--section-space); overflow: hidden; background: #000; }
.launcher-film video { display: block; width: 100%; height: 200px; object-fit: contain; }
@media (max-width: 560px) {
  .launcher-film video { height: 200px; }
}
.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: 26px; height: 26px; }
.box-assembly h2 { margin: 0; font-size: 1.125rem; 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-block: 1px solid var(--divider); }
.editor-host { padding: 28px 0; }
.component-description { color: var(--muted); margin-top: var(--label-space); max-width: 65ch; }
.box-context { margin-top: 0; }
.box-context > details:last-child { border-bottom: 0; }
.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; border-top: 1px solid var(--divider); }
.editor-host > details:last-child { border-bottom: 0; }
.editor-host > details:last-child:not([open]) > summary { padding-bottom: 0; }
@media (max-width: 560px) {
  .editor-host { padding: 24px 0; }
  .box .environment-info > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.administration-actions { padding-bottom: 4px; }
.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-heading { margin-bottom: var(--section-space); }
.launcher-heading > p { color: var(--muted); margin-top: var(--label-space); }
.launcher-intro { color: var(--muted); margin-bottom: 24px; }
.box-list { list-style: none; padding: 0; margin: 0 0 var(--section-space); border-top: 1px solid var(--divider); }
.box-list-row { display: flex; align-items: center; justify-content: space-between; gap: var(--group-space); padding-block: 20px; border-bottom: 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 > .component-description { margin: 20px 0 28px; }
.launcher > .full { justify-content: center; }

/* The historical ledger loads only on its own route. */
.ledger { max-width: 1040px; 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: 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); border-top: 1px solid var(--divider); }
.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: 32ch; overflow-wrap: anywhere; }
.ledger-owner { font-variant-numeric: tabular-nums; }
.ledger-empty { padding-block: 24px; border-block: 1px solid var(--divider); color: var(--muted); }

/* Creation is a focused task, separate from the launcher's film. */
.box-create { max-width: 480px; margin-bottom: 48px; }
.create-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.create-heading { margin: 20px 0 32px; }
.create-heading p { margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.create-heading strong { font-weight: 500; color: var(--foreground); }
.create-form { padding-top: 24px; border-top: 1px solid var(--divider); }
.create-form select { height: auto; min-height: 44px; }
.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; }
}

/* A quiet echo of the logo's interrupted scan lines. */
:root { --signal-line: #496c40; }
main h1:not(.sr-only) { position: relative; padding-bottom: 16px; }
main h1:not(.sr-only)::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 22px;
  height: 1px;
  background: var(--signal-line);
  box-shadow: 9px 3px 0 -0.1px var(--signal-line);
  pointer-events: none;
}
.box-definition { color: var(--muted); margin: 0 0 28px; max-width: 48ch; }
.box-definition a { color: var(--foreground); text-decoration-color: var(--signal-line); }
.box-definition a:hover { color: var(--accent); }
.box-library .launcher-heading { margin-bottom: 16px; }
.launcher:not(.box-library) .box-definition { text-align: center; margin-inline: auto; }
.brand > span:first-child { border-bottom: 1px solid var(--signal-line); }
button, .button { border-radius: 3px; }
.primary { position: relative; }
.primary::after {
  content: '';
  position: absolute;
  inset-inline-end: 12px;
  bottom: 5px;
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: .28;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .primary:not(:disabled):is(:hover, :focus-visible)::after { animation: signal-settle 180ms steps(1, end) 1; }
  @keyframes signal-settle {
    0%, 65% { transform: translateX(-3px); }
    35% { transform: translateX(2px); }
    100% { transform: none; }
  }
}
@media (forced-colors: active) {
  main h1::after, .primary::after { display: none; }
}
