/* NetSuite UAT Runner — styles. No build step, no external fonts (the CSP
   allows neither, deliberately: one fewer origin to trust and no render-blocking
   fetch on a page testers open all day). */

:root {
  --bg: #f6f7f9; --panel: #fff; --ink: #1c2330; --muted: #64707f; --line: #e2e6ec;
  --accent: #1f5fbf; --accent-ink: #fff;
  --pass: #1b7f3b; --fail: #b3261e; --blocked: #b26a00; --amb: #5b6470;
  --pass-bg: #e6f4ea; --fail-bg: #fbe9e7; --blocked-bg: #fff3df; --amb-bg: #eceff3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }

/* The `hidden` attribute only works while nothing outranks the UA stylesheet's
   [hidden]{display:none}. `.gate{display:grid}` is a class selector, so it beat
   it, and the sign-in gate - position:fixed, inset:0 - could never hide: the
   page sat on "Signing in..." for ever with the app rendered underneath and no
   error anywhere. Caught in a real browser after both Claude-driven ones
   refused the page. Declared once, globally, so no later `display` rule can
   reintroduce it. */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; }

header {
  background: var(--panel); border-bottom: 1px solid var(--line); padding: 0 24px;
  display: flex; align-items: center; gap: 28px; height: 56px; position: sticky; top: 0; z-index: 2;
}
header h1 { font-size: 16px; margin: 0; font-weight: 650; letter-spacing: .01em; }
nav { display: flex; gap: 4px; }
nav button { background: none; border: 0; padding: 18px 12px; font: inherit; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
nav button.active { color: var(--ink); border-bottom-color: var(--accent); }
nav button .n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--line); font-size: 11px; text-align: center; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }

main { max-width: 1180px; margin: 0 auto; padding: 24px; }
section.view { display: none; }
section.view.active { display: block; }

.gate { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; z-index: 10; }
.gate-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px 32px; max-width: 460px; text-align: center; }
.gate-card h2 { margin: 0 0 8px; font-size: 17px; }
.gate-card p { color: var(--muted); margin: 0 0 16px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; }
.panel h2 { font-size: 15px; margin: 0 0 10px; }
.panel h2 + p.lede, p.lede { margin: -4px 0 14px; color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

label.field { display: block; margin: 8px 0; }
label.field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
input[type=text], input[type=number] { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
input[type=number] { width: 90px; }

button.btn { font: inherit; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
button.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.btn:disabled { opacity: .5; cursor: default; }
button.btn.small { padding: 4px 9px; font-size: 12px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
tr.dim td { color: var(--muted); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #fafbfc; }

.chip { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; margin-right: 4px; white-space: nowrap; }
.chip.muted { background: var(--amb-bg); color: var(--amb); }
.chip.warn { background: var(--blocked-bg); color: var(--blocked); }
.chip.bad { background: var(--fail-bg); color: var(--fail); }
.chip.good { background: var(--pass-bg); color: var(--pass); }

.verdict { display: inline-block; padding: 2px 9px; border-radius: 4px; font-weight: 700; font-size: 12px; letter-spacing: .03em; background: var(--amb-bg); color: var(--amb); }
.verdict.PASS, .verdict.FINISHED { background: var(--pass-bg); color: var(--pass); }
.verdict.FAIL, .verdict.FAILED { background: var(--fail-bg); color: var(--fail); }
.verdict.BLOCKED { background: var(--blocked-bg); color: var(--blocked); }
.verdict.RUNNING { background: #e8eefb; color: var(--accent); }

.status-ok { color: var(--pass); font-weight: 700; }
.status-warn { color: var(--blocked); font-weight: 700; }
.status-block { color: var(--fail); font-weight: 700; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
pre { background: #f1f3f6; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; font-size: 12px; margin: 6px 0; max-height: 420px; overflow: auto; }
details { margin: 6px 0; }
summary { cursor: pointer; color: var(--accent); }

.banner { padding: 14px 16px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; }
.banner.login { background: #fff8e1; border-color: #f0d58c; }
.banner h3 { margin: 0 0 4px; font-size: 14px; }

.counts { display: flex; gap: 10px; flex-wrap: wrap; }
.counts .c { padding: 10px 14px; border-radius: 8px; min-width: 110px; }
.counts .c b { display: block; font-size: 22px; }

.shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.shots img { height: 90px; border: 1px solid var(--line); border-radius: 4px; background: #f1f3f6; }

.owner { text-transform: uppercase; font-size: 10px; letter-spacing: .06em; padding: 2px 6px; border-radius: 3px; background: var(--amb-bg); color: var(--amb); margin-left: 6px; vertical-align: middle; }
.owner.runner { background: #e8eefb; color: var(--accent); }
.owner.test-data { background: var(--blocked-bg); color: var(--blocked); }
.owner.netsuite { background: var(--fail-bg); color: var(--fail); }

.fix { border-left: 3px solid var(--accent); padding: 8px 12px; background: #f8faff; border-radius: 0 6px 6px 0; margin: 8px 0; }
.empty { color: var(--muted); padding: 20px 0; text-align: center; }
.hint { color: var(--muted); font-size: 12px; }
a { color: var(--accent); }
