:root {
  color-scheme: light;
  --ink: #101010;
  --dark: #0b0b0b;
  --paper: #fafaf8;
  --line: #deded7;
  --muted: #65655e;
  --lime: #a6ee28;
  --confirmed: #ae283e;
  --suspicious: #8b510b;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
::selection { background: var(--lime); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, a, input, select, summary { touch-action: manipulation; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
.shell { width: calc(100% - 112px); max-width: 1180px; margin-inline: auto; }
:focus-visible { outline: 2px solid #507c08; outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 16px 22px; background: var(--lime); color: var(--ink); }
.skip-link:focus { top: 12px; }

/* The lime masthead and the dark / paper contrast echo the reference site. */
.site-header { background: linear-gradient(90deg, var(--lime) 50%, var(--dark) 50%); }
.header-inner { display: flex; justify-content: space-between; align-items: stretch; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 15px; padding-right: 28px; background: var(--lime); font-size: 24px; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.brand img { flex-shrink: 0; }
.main-nav { display: flex; align-items: stretch; gap: 36px; padding-left: 36px; color: #eee; background: var(--dark); }
.main-nav a { display: flex; align-items: center; position: relative; font-size: 13px; }
.main-nav a::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.main-nav a:hover { color: var(--lime); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav .site-home { gap: 6px; color: var(--lime); white-space: nowrap; }
html[data-deployment="local"] .intro,
html[data-deployment="local"] .site-home { display: none; }
.startup-error { margin-bottom: 28px; padding: 22px; border: 1px solid #db939e; border-radius: 4px; background: #fff1f3; color: #9f2035; }
.startup-error h2 { font-size: 20px; margin-bottom: 12px; }
.startup-error p { font-size: 13px; line-height: 1.7; }
.startup-error pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.7 var(--mono); }
.activity.failed { animation: none; border: 2px solid var(--confirmed); }
.main-nav a:focus-visible, .intro a:focus-visible, .site-footer a:focus-visible { outline-color: var(--lime); }
.intro { overflow: hidden; color: #f8f8f4; background: var(--dark); }
.intro-inner { position: relative; padding-top: 70px; padding-bottom: 26px; }
.intro-copy { position: relative; z-index: 1; max-width: 620px; padding-bottom: 58px; }
.eyebrow { color: #b2b2a9; font: 10px/1.6 var(--mono); letter-spacing: 2.6px; }
h1 { margin: 26px 0 22px; font-size: clamp(42px, 5.1vw, 70px); line-height: 1.08; font-weight: 600; letter-spacing: -3px; }
.heading-accent { color: var(--lime); }
.lead { max-width: 470px; color: #adada5; font-size: 16px; line-height: 1.8; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 50px; padding: 13px 21px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 600; }
.hero-link { margin-top: 28px; color: var(--ink); background: var(--lime); transition: background .2s; }
.hero-link:hover { background: #b9fc4a; }
.hero-link > span:last-child { font-size: 24px; font-weight: 400; line-height: 1; }
.intro-art { position: absolute; right: -75px; top: 7px; width: 61%; pointer-events: none; }
.intro-art img { width: 100%; height: auto; }
.intro-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #ffffff26; padding-top: 20px; }
.intro-bottom p { color: #96968c; font: 10px/1.6 var(--mono); letter-spacing: 1.4px; }
.intro-bottom a { display: grid; place-items: center; width: 36px; height: 36px; color: var(--lime); font-size: 25px; }

.workspace { padding: 48px 0 72px; background: var(--paper); }
h2 { margin: 0; font-size: 23px; line-height: 1.3; font-weight: 600; letter-spacing: -.7px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.section-symbol { font-size: 32px; line-height: 1; color: #7b7b6c; }
.note { color: var(--muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.control-row { display: flex; gap: 12px; align-items: end; }
.label-field { flex: 1; min-width: 0; }
label { color: #55554e; font-size: 12px; line-height: 1.4; }
label > input:not([type=checkbox]) { display: block; margin-top: 9px; width: 100%; }
input:not([type=checkbox]), select, button { border: 1px solid #c9c9c0; border-radius: 4px; background: transparent; color: var(--ink); padding: 13px 15px; min-height: 46px; }
input:not([type=checkbox]), select { background: #fff; font-size: 13px; }
input::placeholder { color: #77776e; opacity: 1; }
button { cursor: pointer; font-size: 12px; font-weight: 500; line-height: 1.5; transition: background .15s, border-color .15s; }
button:hover:not(:disabled) { background: #eeeee7; border-color: #77776b; }
button:disabled { opacity: .42; cursor: default; }
button.primary { padding-inline: 25px; color: #fff; background: var(--ink); border-color: var(--ink); }
button.primary:hover:not(:disabled) { background: #333; border-color: #333; }
.options { display: flex; gap: 16px 30px; flex-wrap: wrap; margin-top: 22px; }
.options label { display: flex; align-items: center; gap: 9px; min-height: 24px; cursor: pointer; }
input[type=checkbox] { accent-color: #588213; width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.status-line { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 22px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.status-line strong { font-weight: 500; }
.activity { width: 12px; height: 12px; flex-shrink: 0; border: 1.5px solid #a3a398; border-right-color: transparent; border-radius: 50%; animation: collecting 1s linear infinite; }
.activity.done { width: 12px; height: 7px; border: 0; border-bottom: 1.5px solid #527518; border-left: 1.5px solid #527518; border-radius: 0; transform: translateY(-2px) rotate(-45deg); animation: none; }
@keyframes collecting { to { transform: rotate(360deg); } }
.mono { font: 10px/1.6 var(--mono); color: var(--muted); }
#run-id { margin-left: auto; overflow-wrap: anywhere; }
#log-status { margin-top: 11px; font-size: 11px; }
#log-status.error { color: var(--confirmed); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 38px; padding: 24px 0; background: #eeeee7; }
.stats > div { padding: 0 28px; border-right: 1px solid #d4d4c9; }
.stats > div:last-child { border: 0; }
.stats span { display: block; font-size: 38px; line-height: 1.1; font-weight: 400; letter-spacing: -1.8px; font-variant-numeric: tabular-nums; }
.stats small { display: block; margin-top: 10px; color: #646459; font-size: 11px; line-height: 1.5; }
.record-counts { margin: -20px 0 32px; color: #45453e; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 0 0 36px; border-bottom: 1px solid var(--line); }
.tool-icon { width: 21px; height: 21px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.extras > summary { display: flex; align-items: center; gap: 12px; min-height: 32px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.5; }
.extras > summary::-webkit-details-marker { display: none; }
.extras > summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; }
.extras[open] > summary::after { content: "−"; }
.extras > .note { margin: 15px 0 20px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.playground h2 { display: flex; align-items: center; gap: 12px; min-height: 32px; font-size: 14px; letter-spacing: 0; }
.playground .note { margin: 12px 0 18px; }
.interaction-controls { display: flex; align-items: end; gap: 10px; }
.interaction-controls label { flex: 1; min-width: 0; }
.interaction-controls button { flex-shrink: 0; }

.results { --muted: #45453e; margin-top: 44px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.results-toolbar h2 { font-size: 32px; letter-spacing: -1.2px; }
.results-toolbar button { min-height: 40px; padding: 10px 14px; font: 11px/1.5 var(--mono); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 25px 0 16px; }
.filters input { flex: 1; min-width: 0; padding-left: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2377776e' stroke-width='1.5'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") no-repeat 14px center; }
.filters select { min-width: 175px; max-width: 100%; }
#record-scope { min-width: 0; }
@media (min-width: 761px) { .filters input { flex-basis: 100%; } }
#status-filter option { color: var(--ink); background: #fff; font-weight: 600; }
#status-filter option[value="ok"],
#status-filter[data-filter="ok"] { color: #166534; background-color: #dcf3df; }
#status-filter option[value="crafted:attention"],
#status-filter option[value="crafted:suspicious"],
#status-filter option[value="unsupported"],
#status-filter option[value="timeout"],
#status-filter[data-filter="crafted:attention"],
#status-filter[data-filter="crafted:suspicious"],
#status-filter[data-filter="unsupported"],
#status-filter[data-filter="timeout"] { color: #784208; background-color: #fff0cc; }
#status-filter option[value="crafted:confirmed"],
#status-filter option[value="error"],
#status-filter option[value="blocked"],
#status-filter option[value="denied"],
#status-filter[data-filter="crafted:confirmed"],
#status-filter[data-filter="error"],
#status-filter[data-filter="blocked"],
#status-filter[data-filter="denied"] { color: #9f2035; background-color: #ffe1e5; }
#status-filter option[value="requires_setup"],
#status-filter[data-filter="requires_setup"] { color: #1d4c96; background-color: #e0edff; }
#status-filter option[value="cancelled"],
#status-filter option[value="skipped"],
#status-filter[data-filter="cancelled"],
#status-filter[data-filter="skipped"] { color: #334155; background-color: #e8edf2; }
#status-filter option[data-count="0"] { color: #65655e; background-color: #f3f3ef; font-weight: 400; }
.reading-guide { margin-bottom: 24px; }
.reading-guide > summary { cursor: pointer; color: var(--muted); font-size: 12px; line-height: 1.6; width: fit-content; }
.reading-guide .note { margin-top: 12px; max-width: 950px; }
.crafted-legend strong { color: var(--ink); font-weight: 600; }
.record-columns { display: flex; justify-content: space-between; gap: 12px; padding: 15px 18px; border-block: 1px solid #cecec5; color: #32322c; font: 600 11px/1.5 var(--mono); background: #eeeee7; }
.record-columns span:last-child { width: 150px; flex-shrink: 0; }
.record { border-bottom: 1px solid var(--line); background: transparent; }
.record:nth-child(even) { background: #f3f3ef; }
.record > summary { cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 17px 18px; list-style: none; font: 12px/1.5 var(--mono); transition: background .15s; }
.record > summary::-webkit-details-marker { display: none; }
.record > summary:hover { background: #e9e9e1; }
.record[open] { background: #fff; }
.record[open] > summary { background: #e9ecdf; }
.record > summary .id { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.record > summary .id::before { content: "+"; display: inline-block; width: 17px; color: #737365; }
.record[open] > summary .id::before { content: "−"; }
.record .meta { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); }
.pill { display: inline-flex; justify-content: center; align-items: center; width: 116px; flex-shrink: 0; padding: 5px 8px; border: 1px solid #aeb7c0; border-radius: 4px; color: #334155; background: #e8edf2; font-size: 11px; font-weight: 700; line-height: 1.5; }
.record[data-status="ok"] > summary .pill { color: #166534; background: #dcf3df; border-color: #88bd94; }
.record[data-status="unsupported"] > summary .pill,
.record[data-status="timeout"] > summary .pill { color: #784208; background: #fff0cc; border-color: #d2aa57; }
.record[data-status="error"] > summary .pill,
.record[data-status="blocked"] > summary .pill,
.record[data-status="denied"] > summary .pill { color: #9f2035; background: #ffe1e5; border-color: #db939e; }
.record[data-status="requires_setup"] > summary .pill { color: #1d4c96; background: #e0edff; border-color: #91add5; }
.preview { font-size: 12px; color: #34342e; max-width: 185px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.record > summary .crafted-cell { width: 150px; flex-shrink: 0; font: 500 12px/1.5 var(--mono); }
.crafted-cell.unknown { color: var(--muted); }
.confirmed, .crafted-cell.confirmed { color: var(--confirmed); }
.suspicious, .crafted-cell.suspicious { color: var(--suspicious); }
.record.crafted-confirmed { box-shadow: inset 3px 0 var(--confirmed); }
.record.crafted-suspicious { box-shadow: inset 3px 0 #b07825; }
.record > .record-body { border-top: 1px solid var(--line); }
.crafted-reason { font-size: 12px; line-height: 1.7; color: var(--muted); padding: 18px; overflow-wrap: anywhere; }
.crafted-confirmed > .record-body > .crafted-reason { color: var(--confirmed); }
.crafted-suspicious > .record-body > .crafted-reason { color: var(--suspicious); }
.parameter-scroll { max-width: 100%; overflow-x: auto; }
.parameter-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.parameter-table th, .parameter-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.parameter-table th { font-size: 12px; font-weight: 600; color: #32322c; background: #eeeee7; }
.parameter-table th:first-child { width: 26%; }
.parameter-table th:last-child { width: 29%; }
.parameter-table td:first-child, .parameter-table code { font: 12px/1.7 var(--mono); white-space: pre-wrap; }
.parameter-confirmed { background: #fff0f1; }
.parameter-confirmed > td:first-child { color: var(--confirmed); }
.parameter-suspicious { background: #fff5e6; }
.parameter-suspicious > td:first-child { color: var(--suspicious); }
.crafted-cell small { display: block; font-size: 11px; line-height: 1.7; margin-top: 7px; }
.record pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px; margin: 0; border-top: 1px solid var(--line); font: 11px/1.7 var(--mono); color: #414137; max-height: 600px; overflow: auto; background: #f7f7f2; }
.parameter-value > summary { cursor: pointer; font: 12px/1.7 var(--mono); overflow-wrap: anywhere; color: #34342e; }
.parameter-table .parameter-value pre { max-height: 350px; padding: 10px; }
.raw-record > summary { cursor: pointer; padding: 16px 18px; font: 11px/1.6 var(--mono); color: var(--muted); border-top: 1px solid var(--line); }
#empty { padding-block: 28px; }
.site-footer { color: #aaa; background: var(--dark); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #e8e8e0; font-size: 16px; font-weight: 600; letter-spacing: -.4px; }
.footer-brand img { filter: grayscale(1) invert(1); }
.footer-inner > span { font: 10px/1.6 var(--mono); }
.back-top { color: #c7c7bc; font-size: 11px; }
.back-top:hover { color: var(--lime); }

@media (min-width: 1450px) {
  .intro-inner { padding-top: 85px; }
  .intro-copy { padding-bottom: 74px; }
}
@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .intro-art { right: -60px; top: 50px; width: 59%; opacity: .75; }
  .intro-copy { max-width: 60%; }
  h1 { font-size: 54px; }
  .lead { max-width: 410px; font-size: 15px; }
  .tools-grid { gap: 28px; }
  .record .meta { display: none; }
  .preview { max-width: 140px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 70px; }
  .brand { gap: 9px; font-size: 21px; padding-right: 18px; }
  .brand img { width: 42px; height: auto; }
  .main-nav { gap: 18px; padding-left: 20px; }
  .main-nav a { font-size: 11px; }
  .intro-inner { padding-top: 46px; }
  .intro-copy { max-width: 75%; padding-bottom: 45px; }
  h1 { font-size: clamp(40px, 7.4vw, 54px); letter-spacing: -1.8px; }
  .intro-art { top: 88px; right: -160px; width: 75%; opacity: .27; }
  .lead { max-width: 390px; }
  .eyebrow { font-size: 9px; letter-spacing: 2px; }
  .intro-bottom p { font-size: 8px; letter-spacing: .8px; }
  .workspace { padding-top: 32px; padding-bottom: 44px; }
  .control-row { flex-wrap: wrap; }
  .label-field { flex-basis: 100%; }
  .control-row button { flex: 1; }
  .options { gap: 8px 20px; }
  #run-id { flex-basis: 100%; margin-left: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 0; margin: 26px 0 30px; }
  .stats > div { padding: 22px; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid #d4d4c9; }
  .stats span { font-size: 34px; }
  .tools-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 30px; }
  .extras { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .extras > summary, .playground h2 { font-size: 14px; }
  .results { margin-top: 30px; }
  .results-toolbar { flex-wrap: wrap; gap: 16px; }
  .results-toolbar h2 { font-size: 28px; }
  .filters { flex-wrap: wrap; margin-top: 20px; }
  .filters input { flex-basis: 100%; }
  .filters select { width: 100%; }
  .record .preview { display: none; }
  .record > summary { flex-wrap: wrap; gap: 6px 10px; padding: 15px 12px; }
  .record > summary .id { flex-basis: calc(100% - 126px); }
  .record > summary .crafted-cell { width: auto; margin-left: 143px; }
  .record-columns { padding-inline: 12px; font-size: 10px; }
  .record-columns span:last-child { width: auto; }
  .parameter-table th:first-child { width: 24%; }
  .parameter-table th:last-child { width: 34%; }
  .parameter-table th, .parameter-table td { padding: 10px 8px; }
  .parameter-table td:first-child, .parameter-table code, .crafted-cell small { font-size: 11px; }
  .footer-inner { flex-wrap: wrap; gap: 20px; }
  .footer-inner > span { order: 3; width: 100%; font-size: 9px; }
}
@media (max-width: 480px) {
  .brand { font-size: 19px; gap: 7px; padding-right: 13px; }
  .brand img { width: 36px; }
  .main-nav { gap: 6px; padding-left: 16px; flex-direction: column; align-items: flex-end; justify-content: center; padding-block: 10px; }
  .main-nav a:first-child { display: none; }
  .main-nav a { max-width: 132px; text-align: right; line-height: 1.5; }
  .intro-copy { max-width: 100%; padding-bottom: 0; }
  h1 { font-size: clamp(35px, 10.1vw, 48px); }
  .lead { font-size: 14px; line-height: 1.8; }
  .intro-art { position: relative; top: auto; bottom: auto; right: auto; width: 88%; margin: -10px -30px -5px auto; opacity: .8; }
  .intro-art img { transform: rotate(-8deg); }
  .intro-bottom { gap: 12px; padding-top: 15px; }
  .intro-bottom p { max-width: 245px; }
  .hero-link { margin-top: 24px; }
  .interaction-controls { flex-wrap: wrap; }
  .interaction-controls label { flex-basis: 100%; }
  .interaction-controls button { width: 100%; }
  .results-toolbar .button-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
