.device {
  font: 16px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0; text-align: left; font-synthesis: none; color-scheme: dark;
  --nw-ink: #d5e8cb; --nw-muted: #a3b89b; --nw-green: #6bd79b; --nw-paper: #11251e;
  --nw-line: #3a5142; --nw-surface: #1b3026; --nw-body-ink: #c5d0cd; --nw-body-line: #61706d;
  --nw-focus: #f7c808; color: var(--nw-ink);
  --nw-shell: url("assets/body-dark-desktop.webp"); --nw-key: url("assets/key-dark-desktop.webp");
}
html[data-theme="light"] .device {
  color-scheme: light; --nw-ink: #24392b; --nw-muted: #48614e;
  --nw-green: #007a42; --nw-paper: #edf3e9; --nw-line: #b9c9b6; --nw-surface: #e0e9dc;
  --nw-body-ink: #273c43; --nw-body-line: #687c83; --nw-focus: #007a42;
  --nw-shell: url("assets/body-light-desktop.webp"); --nw-key: url("assets/key-light-desktop.webp");
}
.device, .device * { box-sizing: border-box; }
.device button, .device input, .device textarea { font: inherit; }
.device button, .device a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.device button { cursor: pointer; }
.device button:disabled { cursor: not-allowed; opacity: .48; }
.device :is(button,a,input,textarea,[tabindex]):focus-visible { outline: 2px solid var(--nw-focus); outline-offset: 3px; }
.device button svg, .device a svg { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.8; }
.device [hidden] { display: none !important; }
.device { position: relative; width: min(1080px, 100%); aspect-ratio: 1200 / 1040; margin: auto; isolation: isolate; }
.device .hardware, .device .key-sprite { position: absolute; inset: 0; background: var(--nw-shell) center / 100% 100% no-repeat; pointer-events: none; }
.device .key-sprite { background-image: var(--nw-key); }
.device.key-pressed .key-sprite { animation: nw-key-press 480ms ease-out; }
.device .screen-glass { position: absolute; left: 15%; top: 7.115385%; width: 68.333333%; height: 58.653846%; background: #10241f; border: 7px solid #263e3c; padding: 3px; border-radius: 16px; box-shadow: inset 0 3px 8px #0008, 0 2px 1px #7d929033, 0 0 0 2px #122520; overflow: hidden; }
.device .screen { height: 100%; display: flex; flex-direction: column; background: var(--nw-paper); border-radius: 6px; overflow: hidden; color: var(--nw-ink); }
.device .app-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 13px; gap: 12px; flex-shrink: 0; }
.device .app-identity { min-width: 0; }
.device .app-brand { color: var(--nw-ink); margin: 0; font-size: 28px; font-weight: 650; line-height: 1.1; }
.device .app-subtitle { color: var(--nw-muted); font-size: 12px; margin: 6px 0 0; line-height: 1.3; }
.device .workspace-name { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.device .workspace-dot, .device .offline > span { width: 5px; height: 5px; background: var(--nw-green); border-radius: 50%; flex-shrink: 0; }
.device .app-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 22px; gap: 2px; flex-shrink: 0; border-bottom: 1px solid var(--nw-line); }
.device .app-nav button { border: 0; background: transparent; color: var(--nw-muted); display: flex; align-items: center; justify-content: center; padding: 10px 5px; gap: 6px; position: relative; font-size: 12px; border-radius: 3px 3px 0 0; white-space: nowrap; min-width: 0; min-height: 39px; }
.device .app-nav button:hover { color: var(--nw-ink); background: var(--nw-surface); }
.device .app-nav button[aria-selected="true"] { color: var(--nw-ink); background: var(--nw-surface); }
.device .app-nav button[aria-selected="true"]::after { content: ""; height: 2px; position: absolute; bottom: -1px; left: 0; right: 0; background: var(--nw-green); }
.device .workspace { min-height: 0; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 22px; scrollbar-width: thin; scrollbar-color: var(--nw-muted) transparent; overscroll-behavior: contain; }
.device .eyebrow { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--nw-muted); margin: 0 0 12px; text-transform: uppercase; }
.device .task-heading { font-size: 24px; line-height: 1.25; font-weight: 550; margin: 0 0 14px; }
.device .task-description, .device .task-rule { font-size: 13px; line-height: 1.6; margin: 10px 0; }
.device .task-rule { color: var(--nw-muted); }
.device .task-context { display: flex; gap: 14px; font-size: 11px; color: var(--nw-muted); margin: 16px 0; align-items: center; flex-wrap: wrap; }
.device .task-context span { display: inline-flex; align-items: center; gap: 5px; }
.device .task-context svg { width: 13px; height: 13px; }
.device .command { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border: 1px solid var(--nw-line); background: transparent; color: var(--nw-ink); padding: 8px 12px; border-radius: 4px; font-size: 12px; line-height: 1.3; text-decoration: none; }
.device .command:hover { background: var(--nw-surface); }
.device .command.primary, .device .commit-control .command { background: var(--nw-ink); color: var(--nw-paper); border-color: var(--nw-ink); }
.device .command.primary:hover, .device .commit-control .command:hover { opacity: .9; }
.device .command.subtle { border-color: transparent; color: var(--nw-muted); padding-inline: 7px; }
.device .command.reject { color: var(--nw-ink); }
.device .command svg { width: 15px; height: 15px; }
.device .view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 15px; }
.device .view-heading h2 { font-size: 20px; font-weight: 550; margin: 0; }
.device .view-heading small { font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--nw-muted); text-align: right; }
.device .view-note { font-size: 12px; color: var(--nw-muted); line-height: 1.5; margin: 13px 0; }
.device .table-scroll { overflow-x: auto; scrollbar-width: thin; }
.device table { border-collapse: collapse; width: 100%; font-size: 12px; }
.device th { font-weight: 500; text-align: left; font-size: 11px; color: var(--nw-muted); border-bottom: 1px solid var(--nw-line); padding: 8px; white-space: nowrap; }
.device td { padding: 9px 8px; border-bottom: 1px solid var(--nw-line); white-space: nowrap; }
.device th:first-child, .device td:first-child { padding-left: 0; }
.device th:last-child, .device td:last-child { padding-right: 0; }
.device .data-table { min-width: 520px; }
.device .data-table input[type="number"] { width: 62px; border: 1px solid var(--nw-line); border-radius: 3px; padding: 6px; background: var(--nw-surface); color: var(--nw-ink); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.device .data-table input[type="checkbox"] { accent-color: var(--nw-green); width: 16px; height: 16px; vertical-align: middle; }
.device .data-toolbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; }
.device .fixture-preview { margin: 14px 0 18px; }
.device .fixture-preview h3 { font-size: 12px; font-weight: 500; color: var(--nw-muted); margin: 12px 0 8px; }
.device .fixture-preview p { font-size: 12px; line-height: 1.6; }
.device .file-bar { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; border-bottom: 1px solid var(--nw-line); padding: 0 0 11px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; color: var(--nw-ink); overflow-wrap: anywhere; }
.device .file-actions { margin-left: auto; display: flex; gap: 4px; }
.device .icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--nw-line); background: transparent; border-radius: 3px; color: var(--nw-ink); }
.device .icon-button:hover { background: var(--nw-surface); }
.device .code { font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--nw-ink); margin: 12px 0; white-space: pre; overflow-x: auto; tab-size: 4; }
.device .code-editor { width: 100%; min-height: 215px; resize: vertical; border: 1px solid var(--nw-line); background: var(--nw-surface); padding: 10px; border-radius: 3px; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--nw-ink); }
.device .modified-note { color: var(--nw-ink); border-left: 2px solid var(--nw-green); padding: 8px 12px; font-size: 12px; line-height: 1.5; margin: 10px 0; }
.device .result-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--nw-line); margin-bottom: 12px; }
.device .result-tabs button { padding: 8px 0; border: 0; border-bottom: 2px solid transparent; color: var(--nw-muted); font-size: 12px; background: transparent; white-space: nowrap; }
.device .result-tabs button[aria-selected="true"] { color: var(--nw-ink); border-bottom-color: var(--nw-green); }
.device .result-number { font: 18px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--nw-ink); }
.device .result-formula { margin: 12px 0; display: flex; justify-content: space-between; gap: 12px; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--nw-muted); flex-wrap: wrap; }
.device .snapshot-id, .device .proof-state { font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--nw-muted); }
.device .proof-state.stale { border-left: 2px solid var(--nw-focus); padding-left: 8px; }
.device .proof-stamps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 16px 0; border-block: 1px solid var(--nw-line); padding-block: 12px; }
.device .proof-stamps dt { color: var(--nw-muted); font-size: 11px; line-height: 1.4; }
.device .proof-stamps dd { margin: 5px 0 0; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.device .role-route { font-size: 11px; line-height: 1.6; color: var(--nw-muted); }
.device .role-route a, .device .app-links a { color: var(--nw-green); }
.device .returned-route { color: var(--nw-ink); }
.device .owner-review { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--nw-line); }
.device .owner-review h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.device .review-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.device .decision-status { font-size: 12px; line-height: 1.5; display: flex; align-items: center; gap: 6px; color: var(--nw-ink); margin: 5px 0 12px; }
.device .decision-status svg { width: 15px; height: 15px; }
.device .owner-remarks { font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; border-left: 2px solid var(--nw-line); padding-left: 10px; }
.device .owner-form { display: grid; gap: 9px; margin-top: 12px; font-size: 12px; }
.device .owner-form textarea { width: 100%; min-height: 76px; resize: vertical; background: var(--nw-surface); border: 1px solid var(--nw-line); color: var(--nw-ink); padding: 9px; border-radius: 3px; }
.device .form-error { color: var(--nw-ink); font-size: 12px; line-height: 1.4; }
.device .commit-control { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 0 0; }
.device .commit-notice { font-size: 12px; line-height: 1.5; }
.device .commit-gate { font-size: 11px; color: var(--nw-muted); line-height: 1.5; }
.device .empty-result { padding: 10px 0; }
.device .empty-result h2 { font-size: 20px; margin: 0 0 10px; font-weight: 550; }
.device .empty-result p { font-size: 13px; line-height: 1.5; color: var(--nw-muted); }
.device .snapshot-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 14px 0; font-size: 12px; }
.device .snapshot-grid dt { color: var(--nw-muted); }
.device .snapshot-grid dd { margin: 0; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.device .artifact-diff { font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; color: var(--nw-ink); padding-left: 10px; border-left: 2px solid var(--nw-green); }
.device .run-status { margin: 0; min-height: 30px; padding: 6px 22px; color: var(--nw-ink); background: var(--nw-surface); font-size: 11px; line-height: 1.5; flex-shrink: 0; }
.device .run-status:empty { padding-block: 0; min-height: 6px; }
.device .app-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; border-top: 1px solid var(--nw-line); font-size: 11px; color: var(--nw-muted); flex-shrink: 0; }
.device .offline { display: inline-flex; gap: 5px; align-items: center; }
.device .app-links { display: flex; align-items: center; gap: 12px; }
.device .app-footer a { color: var(--nw-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.device .app-footer a svg { width: 13px; height: 13px; }
.device .no-js-note { font-size: 11px; padding: 6px 22px; margin: 0; color: var(--nw-muted); }
.device .inventory { position: absolute; left: 15.416667%; top: 68.076923%; color: var(--nw-body-ink); user-select: none; font: 600 14px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.device .inventory small { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }
.device .vents { position: absolute; left: 39.416667%; top: 68.269231%; width: 16.5%; height: 3.557692%; background: repeating-linear-gradient(to bottom, #182724 0, #182724 2px, #61726c 2px, #61726c 5px); border-radius: 2px; opacity: .65; }
.device .power-area { position: absolute; left: 79%; top: 68.076923%; width: 3.583333%; height: 3.75%; }
.device .power-button { width: 100%; height: 100%; min-width: 26px; min-height: 25px; display: grid; place-items: center; padding: 0; border: 1px solid var(--nw-body-line); border-radius: 5px; background: transparent; color: var(--nw-body-ink); box-shadow: inset 0 1px 2px #ffffff18, 0 2px 1px #0005; }
.device .power-led { position: absolute; top: 45%; left: -16px; width: 5px; height: 5px; border-radius: 50%; background: #7fe6a5; }
.device.is-off .power-led { background: #5b7267; }
.device.is-off .screen { visibility: hidden; }
@keyframes nw-key-press { 35% { transform: translateY(3px); } 100% { transform: translateY(0); } }
@media (max-width: 800px) {
  .device { --nw-shell: url("assets/body-dark-mobile.webp"); --nw-key: url("assets/key-dark-mobile.webp"); }
  html[data-theme="light"] .device { --nw-shell: url("assets/body-light-mobile.webp"); --nw-key: url("assets/key-light-mobile.webp"); }
  .device { width: min(480px, 100%); aspect-ratio: 480 / 1060; }
  .device .screen-glass { left: 7.916667%; top: 4.433962%; width: 84.166667%; height: 71.226415%; border-width: 4px; padding: 2px; border-radius: 10px; }
  .device .app-header { padding: 15px 13px 12px; gap: 6px; }
  .device .app-brand { font-size: 25px; }
  .device .app-subtitle { font-size: 11px; }
  .device .workspace-name { display: none; }
  .device .app-nav { padding-inline: 8px; gap: 0; }
  .device .app-nav button { font-size: 11px; gap: 4px; padding-inline: 2px; }
  .device .app-nav button svg { width: 13px; height: 13px; }
  .device .workspace { padding: 18px 13px; }
  .device .task-heading { font-size: 22px; }
  .device .task-description, .device .task-rule { font-size: 12px; }
  .device .command { font-size: 11px; padding-inline: 9px; }
  .device .commit-notice { font-size: 11px; }
  .device .task-context { gap: 8px; }
  .device .view-heading { flex-wrap: wrap; }
  .device .view-heading h2 { font-size: 19px; }
  .device .file-actions { margin-left: 0; }
  .device .proof-stamps { grid-template-columns: 1fr; gap: 8px; }
  .device .proof-stamps > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .device .proof-stamps dd { margin: 0; flex-shrink: 0; }
  .device .result-tabs { gap: 11px; }
  .device .result-tabs button { font-size: 11px; }
  .device .run-status { padding-inline: 13px; }
  .device .app-footer { padding: 9px 13px; flex-wrap: wrap; gap: 5px 10px; }
  .device .app-links { gap: 8px; }
  .device .no-js-note { padding-inline: 13px; }
  .device .inventory { left: 9.375%; top: 79.245283%; font-size: 12px; }
  .device .inventory small { font-size: 11px; }
  .device .vents { left: 46.458333%; top: 79.433962%; width: 20%; height: 2.358491%; }
  .device .power-area { left: 83.541667%; top: 78.962264%; width: 7.916667%; height: 3.301887%; }
}
@media (max-width: 360px) {
  .device .app-nav button { flex-direction: column; padding-block: 6px; min-height: 47px; }
  .device .app-brand { font-size: 23px; }
  .device .inventory small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .device *, .device *::before, .device *::after { animation: none !important; transition: none !important; }
}
