/* Hallmark · shape: app screen · utilitarian firmware console */
/* Critique: the packet and device checks remain visible alongside the write action. */
:root {
  --background: #f2f0e9;
  --surface: #fffdf7;
  --ink: #202a28;
  --muted: #4c5955;
  --line: #c9cfc6;
  --field-edge: #748078;
  --accent: #075b48;
  --focus: #aa5221;
  --on-accent: #f8fff9;
  --pressed: #043e32;
  --disabled: #e4e8df;
  --body: "Instrument Sans", "Microsoft YaHei UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: var(--body); }
header, main { width: min(100% - 2.5rem, 52rem); margin-inline: auto; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
header strong { font-size: 1.2rem; }
header span, .detail { color: var(--muted); }
main { padding: 2.4rem 0 3rem; }
h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.06; overflow-wrap: break-word; text-wrap: balance; min-width: 0; }
p { line-height: 1.6; }
.intro { margin-bottom: 1.6rem; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: grid; gap: .45rem; font-weight: 600; }
form > :nth-child(n+3) { grid-column: 1 / -1; }
select, input { width: 100%; min-height: 2.7rem; border: 1px solid var(--field-edge); background: var(--surface); color: var(--ink); padding: .5rem; font: inherit; }
button { min-height: 2.7rem; padding: .55rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }
button.secondary { background: var(--surface); color: var(--accent); }
button:active:not(:disabled) { background: var(--pressed); color: var(--on-accent); }
button:disabled { background: var(--disabled); color: var(--muted); border-color: var(--line); cursor: default; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.console { margin-top: 1.6rem; padding: 1.2rem; border: 1px solid var(--line); background: var(--surface); }
#status { margin-top: 0; font-weight: 700; }
#mac { max-width: 14rem; margin-bottom: 1rem; font-family: var(--mono); }
progress { width: 100%; accent-color: var(--accent); }
summary { cursor: pointer; margin-top: .85rem; }
pre { font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 14rem; overflow: auto; }
@media (max-width: 35rem) { form { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
