:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #fff;
  --muted: #a3a3a3;
  --border: #303030;
  --field: #111;
  --error: #ffb4b4;
  --focus: #b8d4ff;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  font-size: 14px;
  line-height: 1.5;
  scrollbar-color: var(--border) var(--background);
}
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1280px; padding: 0 48px; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { border-radius: 4px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--foreground); color: var(--background); }
header, footer { display: flex; align-items: center; justify-content: space-between; }
header { min-height: 88px; border-bottom: 1px solid var(--border); gap: 24px; }
header > a:last-child { color: var(--muted); font-size: 13px; }
.wordmark { font-weight: 650; text-decoration: none; font-size: 17px; letter-spacing: -.025em; }
main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 100px; padding: 72px 0 80px; }
h1 { font-size: clamp(36px, 4.3vw, 58px); line-height: 1.06; font-weight: 600; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.intro { margin: 24px 0 32px; color: var(--muted); max-width: 46ch; font-size: 16px; line-height: 1.6; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 550; }
.file-field { padding: 22px; border: 1px dashed var(--muted); margin-bottom: 24px; }
.file-field.dragging { border-color: var(--foreground); background: var(--field); }
.file-field input { max-width: 100%; color: var(--muted); font-size: 13px; }
input::file-selector-button { background: var(--foreground); color: var(--background); border: none; padding: 8px 12px; margin-right: 12px; cursor: pointer; font: inherit; }
.fields { display: grid; gap: 20px; }
input:not([type=file]) { width: 100%; min-height: 42px; border: 1px solid var(--border); background: var(--field); color: var(--foreground); padding: 9px 12px; caret-color: var(--foreground); }
input::placeholder { color: var(--muted); }
#prototype-id { font-family: var(--font-mono); font-size: 13px; }
form p, #result p { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.optional { margin-left: 6px; color: var(--muted); font-weight: 400; }
.actions { display: flex; gap: 16px; align-items: center; margin-top: 28px; }
button { cursor: pointer; border: 1px solid var(--foreground); background: var(--foreground); color: var(--background); padding: 10px 16px; font-size: 13px; font-weight: 600; min-height: 42px; }
button:hover { opacity: .88; }
button:disabled { cursor: wait; opacity: .6; }
.secondary { background: transparent; color: var(--foreground); border-color: var(--border); }
#progress { color: var(--muted); font-size: 13px; }
#error { color: var(--error); font-size: 14px; margin-top: 20px; }
#result { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 32px; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.result-heading h2 { font-size: 16px; margin: 0; font-weight: 550; }
#revision { font-size: 12px; color: var(--muted); }
#view-link { display: block; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 13px; }
.result-actions { display: flex; align-items: center; gap: 20px; margin: 20px 0; font-size: 13px; }
aside { padding-top: 8px; }
aside h2 { font-size: 23px; letter-spacing: -.025em; line-height: 1.25; font-weight: 550; margin: 0 0 14px; }
aside p { max-width: 48ch; color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 24px; }
pre { font-family: var(--font-mono); font-size: 12px; line-height: 1.9; overflow-x: auto; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 28px 0 22px; tab-size: 2; }
code, .mono { font-family: var(--font-mono); }
dl { margin: 36px 0; }
dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
aside .boundary { font-size: 12px; }
footer { border-top: 1px solid var(--border); padding: 20px 0 32px; color: var(--muted); font-size: 12px; gap: 20px; }
[hidden] { display: none !important; }
@media (max-width: 850px) {
  body { padding: 0 24px; }
  main { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); padding-top: 48px; }
}
@media (max-width: 640px) {
  body { padding: 0 20px; }
  header { min-height: 72px; }
  main { grid-template-columns: minmax(0, 1fr); padding: 40px 0 48px; gap: 56px; }
  h1 { font-size: 42px; }
  aside { border-top: 1px solid var(--border); padding-top: 32px; }
  .file-field { padding: 18px; }
}
