/* Spool's monochrome, monospace, rectangular controls; no framework or fonts. */
:root { color-scheme: light; --fg: #1a1a1a; --muted: #555; --line: #888; --soft: #ddd; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--fg); font: 14px/1.5 ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--soft); }
.brand { font-weight: 700; }
main { max-width: 720px; margin: 0 auto; padding: 32px 24px; }
h1 { font-size: 20px; margin: 0 0 24px; }
h2 { font-size: 16px; margin: 24px 0 8px; }
p { margin: 16px 0; overflow-wrap: anywhere; }
button, .command, input::file-selector-button { font: inherit; color: var(--fg); background: #fff; border: 1px solid var(--line); border-radius: 0; min-height: 44px; padding: 8px 16px; cursor: pointer; }
.command { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button:hover:not(:disabled), .command:hover, input::file-selector-button:hover { background: #efefef; }
button.primary { background: var(--fg); border-color: var(--fg); color: #fff; font-weight: 700; }
button.primary:hover:not(:disabled) { background: #3a3a3a; }
button:disabled { color: var(--muted); background: #f6f6f6; border-color: var(--soft); cursor: default; }
a { color: inherit; }
a:not(.command) { display: inline-flex; align-items: center; min-height: 44px; }
a[aria-disabled="true"] { color: var(--muted); pointer-events: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
input { font: inherit; max-width: 100%; }
input[type="file"] { display: block; margin-top: 8px; width: 100%; }
input::file-selector-button { margin-right: 8px; }
fieldset { border: 1px solid var(--soft); padding: 16px; min-width: 0; }
#tray label { display: flex; gap: 8px; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
canvas { display: block; width: min(100%, 360px); height: auto; image-rendering: pixelated; margin: 24px 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.note { color: var(--muted); font-size: 12px; border-top: 1px solid var(--soft); padding-top: 16px; }
.send-hint { border: 0; padding: 0; white-space: pre-wrap; }
#status, #request-status { min-height: 24px; }
@media (max-width: 560px) {
  header { padding: 8px 16px; gap: 8px; }
  .brand { font-size: 12px; }
  header .command { padding: 8px; white-space: nowrap; font-size: 12px; }
  main { padding: 24px 16px; }
}
