/* hardsaw-app r1 (Forge 11/26). v33 look: light, one orange accent, sentence case, 44 px targets. */
:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --ink: #1d1d1b;
  --muted: #66665f;
  --line: #e2e2dc;
  --accent: #e8590c;
  --accent-ink: #ffffff;
  --ok: #2b7a3d;
  --warn: #9a5b00;
  --error: #b42318;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
[hidden] { display: none !important; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; letter-spacing: 0.01em; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--accent); }
.who { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 16px; }
h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 18px; margin: 0 0 10px; }
label, legend { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input, select {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0; }
button { font: inherit; min-height: 44px; border-radius: 10px; cursor: pointer; padding: 10px 16px; }
button:disabled { opacity: 0.5; cursor: default; }
.primary { width: 100%; margin-top: 18px; background: var(--accent); color: var(--accent-ink); border: 0; font-weight: 600; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.link { background: none; border: 0; color: var(--accent); padding: 10px 0; text-decoration: underline; }
.muted { color: var(--muted); }
.status { min-height: 1.4em; margin: 0 0 12px; font-size: 15px; }
.status[data-kind="error"] { color: var(--error); font-weight: 600; }
.status[data-kind="ok"] { color: var(--ok); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gate { display: grid; grid-template-columns: 1fr 90px auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.badge { font-size: 13px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.badge[data-kind="ok"] { color: var(--ok); border-color: #b9dcc1; }
.badge[data-kind="warn"] { color: var(--warn); border-color: #ecd3a6; }
.qr { display: block; width: 200px; height: 200px; margin: 12px auto; background: #fff; image-rendering: pixelated; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: var(--bg); padding: 10px; border-radius: 8px; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.findings { margin: 0 0 12px; padding-left: 18px; color: var(--warn); }
.bom { width: 100%; border-collapse: collapse; font-size: 15px; }
.bom th, .bom td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bom thead th { color: var(--muted); font-weight: 500; font-size: 13px; }
.bom tr.group th { background: var(--bg); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.bom td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bom .sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--muted); white-space: nowrap; }
fieldset legend { margin-top: 18px; }
.hash { font-size: 13px; color: var(--muted); }
.hash span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.actions { display: grid; gap: 8px; }
.actions .primary { margin-top: 8px; }
