:root {
  --ink: #1c2023;
  --paper: #f8f8f4;
  --surface: #ffffff;
  --line: #c6cac8;
  --muted: #505956;
  --accent: #ffd447;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
  font: 16px/1.5 "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1184px, 100%); margin-inline: auto; padding-inline: clamp(18px, 4vw, 54px); }
header { background: var(--paper); border-bottom: 1px solid #dcded5; }
.bar, .foot, nav, .brand, .panel-head, .archive-heading, .jobhead { display: flex; align-items: center; }
.bar, .foot, .archive-heading, .jobhead { justify-content: space-between; gap: 16px; }
.bar { min-height: 66px; }
a { color: inherit; }
.brand { gap: 9px; text-decoration: none; font: 750 1.35rem/1 var(--mono); letter-spacing: -.06em; }
nav { align-self: stretch; gap: clamp(16px, 3vw, 36px); }
nav a { display: grid; align-items: center; font: .9rem var(--mono); color: #404640; text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding: 36px 0 23px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.8rem, 5.2vw, 4.65rem); line-height: 1; letter-spacing: -.067em; font-weight: 750; }
.intro p { max-width: 365px; margin-bottom: 2px; color: var(--muted); }
.workbench { display: grid; grid-template-columns: 1fr; border: 1px solid #262a24; border-radius: 12px; overflow: hidden; background: #21251f; }
.workbench:has(.inspector:not([hidden])) { grid-template-columns: 1.04fr 1fr; }
.workbench > div { min-width: 0; }
.input-panel { color: #fff; padding: 12px; }
.panel-head { min-height: 42px; padding: 0 18px; gap: 10px; font: 600 .84rem/1.4 var(--mono); }
.panel-head h2 { font: inherit; }
.drop {
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: 268px; padding: 20px clamp(30px, 6.3vw, 86px); gap: 24px; cursor: pointer;
  border: 1px dashed #838672; border-radius: 6px; color: #fffef4; overflow: hidden;
  background: radial-gradient(ellipse at 83% 63%, #424533 0, transparent 55%), #272b24;
  transition: background-color .16s, border-color .16s;
}
.drop::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .29; pointer-events: none; background: radial-gradient(#a3a58b .75px, transparent 1px) 0 0 / 8px 8px; mask-image: linear-gradient(90deg, transparent 16%, #000 66%); }
.drop > span { pointer-events: none; }
.drop:hover, .drop:focus-within, .drop.over { border-color: #ffda62; background-color: #30352b; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: -3px; }
.drop.over { border-style: solid; box-shadow: inset 0 0 0 2px var(--accent); }
.drop-copy { display: grid; justify-items: center; text-align: center; }
.drop-title { font-size: clamp(1.95rem, 3.3vw, 2.95rem); line-height: 1.07; letter-spacing: -.055em; font-weight: 680; }
.drag-prompt, .drop.over .default-prompt { display: none; }
.drop.over .drag-prompt { display: inline; }
.drop-hint { margin: 10px 0 21px; font: .875rem/1.55 var(--mono); color: #cbd0bf; }
.drop-hint span { padding-inline: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 2px; background: var(--accent); color: #181a17; font: 700 .95rem/1.4 var(--mono); text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.button:hover { background: #ffe17c; }
.chooser { min-height: 48px; gap: 12px; padding: 11px 22px; border-radius: 5px; box-shadow: inset 0 -2px 0 #ad861e; }
.drop:hover .chooser, .drop:focus-within .chooser, .drop.over .chooser { background: #ffe17a; }
.folder { position: relative; width: 19px; height: 13px; border: 2px solid currentColor; border-radius: 2px; }
.folder::before { content: ""; position: absolute; width: 8px; height: 3px; top: -5px; left: -2px; border: 2px solid currentColor; border-bottom: 0; border-radius: 2px 3px 0 0; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible, .chooser:focus-within { outline: 3px solid #387ecd; outline-offset: 3px; }
.input-panel :focus-visible, .input-panel .chooser:focus-within, header a:focus-visible { outline-color: #a0d2ff; }
.inspector { background: var(--surface); border-left: 1px solid #363b31; }
.inspector .panel-head { justify-content: space-between; background: #e5e8e5; border-color: var(--line); }
#inspection-mode, #archive-count { font: .8rem var(--mono); color: var(--muted); }
.archive-heading { padding: 17px 18px 14px; align-items: baseline; }
#archive-name { min-width: 0; overflow-wrap: anywhere; font: 650 1rem var(--mono); }
#archive-count { white-space: nowrap; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font: .875rem/1.45 var(--mono); }
th, td { padding: 8px 18px; text-align: left; border-block: 1px solid #e2e5e2; }
th { background: #f4f5f3; color: var(--muted); font-size: .8rem; font-weight: 500; }
td:first-child { overflow-wrap: anywhere; }
td:nth-child(2), th:nth-child(2) { width: 100px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.action-col { width: 80px; }
td:last-child { padding: 0 12px 0 0; text-align: right; }
.inspector:not(.loaded) .action-col, .inspector:not(.loaded) td:last-child { display: none; }
.tool-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 26px; color: #d5d9ca; border-top: 1px solid #42473d; }
.local-note { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; }
.lock { display: inline-block; position: relative; width: 12px; height: 9px; border: 1.5px solid #c5cdb9; border-radius: 2px; margin-top: 4px; flex: none; }
.lock::before { content: ""; position: absolute; width: 6px; height: 5px; left: 1.5px; top: -6px; border: 1.5px solid #c5cdb9; border-bottom: 0; border-radius: 5px 5px 0 0; }
.tool-foot .text-btn { font-weight: 500; }
.text-btn { min-height: 40px; padding: 4px 0; border: 0; background: transparent; color: inherit; font: 600 .87rem var(--mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn:hover, footer a:hover { text-decoration-thickness: 2px; }
#job { min-height: 245px; padding: 23px; overflow-wrap: anywhere; }
.jobhead { align-items: baseline; }
.jobhead h3 { font: 650 1.16rem/1.45 var(--mono); }
.jobhead button { flex: none; color: #d6dcd8; }
#status { margin: 12px 0 20px; color: #d6dcd8; white-space: pre-line; }
#status.error { border-left: 3px solid #ff897d; padding-left: 12px; color: #ffd2cd; }
#actions { display: flex; flex-wrap: wrap; gap: 8px; }
#inspection-note { color: var(--muted); padding: 16px 18px; }
.reference { display: grid; grid-template-columns: 1.04fr 1fr; gap: 40px; margin: 36px 0 54px; }
.reference h2 { font-size: 1.4rem; letter-spacing: -.035em; margin: 0 0 12px; }
.manual-list, .reference section > details:first-of-type { border-top: 2px solid var(--ink); }
.manual-list a, details { border-bottom: 1px solid var(--line); }
.manual-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none; }
.manual-list a:hover strong, summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.manual-list strong { font-weight: 610; }
.manual-list span { font-size: .84rem; text-align: right; color: var(--muted); }
summary { padding: 14px 0; cursor: pointer; font-weight: 550; }
details p { padding: 0 0 16px; color: var(--muted); max-width: 60ch; }
footer { border-top: 1px solid var(--line); }
.foot { min-height: 64px; }
.foot .brand { font-size: 1rem; }
.foot > a:last-child { font-size: .85rem; }
.article { max-width: 780px; margin: 0 auto; padding: 42px 22px 64px; min-height: 68vh; }
.article h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 30px; }
.article h2 { font-size: 1.32rem; margin: 24px 0 6px; letter-spacing: -.025em; }
.article p { line-height: 1.7; }
.article code { font-family: var(--mono); background: #e3e7e4; overflow-wrap: anywhere; }
.article .button { margin-top: 25px; border-color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .intro { display: block; padding: 28px 0 20px; }
  .intro p { margin-top: 10px; max-width: 55ch; }
  .workbench:has(.inspector:not([hidden])), .reference { grid-template-columns: 1fr; }
  .reference { gap: 24px; margin: 26px 0 36px; }
  .drop { min-height: 228px; padding: 24px; }
  .tool-foot { padding-inline: 16px; }
  .inspector { border-left: 0; }
  #job { min-height: 190px; padding: 16px; }
  .archive-heading { padding: 12px; }
  th, td { padding: 8px 12px; }
}
@media (max-width: 420px) {
  .bar { min-height: 54px; }
  nav { gap: 14px; }
  nav a { font-size: .82rem; }
  .brand { font-size: 1.1rem; }
  .manual-list a { display: grid; gap: 1px; }
  .manual-list span { text-align: left; }
  td:nth-child(2), th:nth-child(2) { width: 84px; }
}

@media (max-width: 540px) {
  .drop { min-height: 202px; padding: 22px 12px; }
  .drop-hint { margin: 6px 0 14px; }
  .tool-foot { flex-wrap: wrap; justify-content: center; gap: 0 16px; padding: 8px 10px; }
  .tool-foot .text-btn { min-height: 36px; }
  .local-note { font-size: .83rem; }
}
@media (prefers-reduced-motion: reduce) {
  .drop { transition: none; }
}
