/* Content Studio. Wildnet palette (charcoal + amber, Poppins / DM Sans), same tokens as ProofPilot. Light + dark. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/DMSans-400-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/Poppins-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/Poppins-600.woff2) format("woff2"); }

:root {
  --ink: #1f2227; --ink-2: #3b4048; --muted: #676e78; --faint: #9aa0a8;
  --line: #e2e4e7; --line-strong: #cdd1d6; --bg: #f3f4f5; --surface: #ffffff; --surface-2: #fbfbfc;
  --amber: #faaa18; --amber-hover: #f09c00; --amber-soft: #fff5de; --amber-ink: #1f2227; --bar: #1f2227;
  --fix: #b8372b; --fix-soft: #fbeae8; --check: #8f5600; --check-soft: #fcf1dc; --ok: #1d7446; --ok-soft: #e3f3ea;
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --shadow: 0 1px 2px rgba(31, 34, 39, .06), 0 4px 16px -6px rgba(31, 34, 39, .10);
  --focus: 0 0 0 3px rgba(250, 170, 24, .45);
  --head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceef1; --ink-2: #c9cdd3; --muted: #9aa1ab; --faint: #6f7680;
    --line: #2c3138; --line-strong: #3a4049; --bg: #121417; --surface: #1a1d22; --surface-2: #1f2328;
    --bar: #0d0f12; --amber-soft: #33290f;
    --fix: #f0857a; --fix-soft: #3a1f1c; --check: #e7b052; --check-soft: #33290f; --ok: #62cf92; --ok-soft: #15301f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -10px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 26px; } h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; } h3 { font-size: 15px; }
a { color: inherit; text-underline-offset: 2px; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; border-radius: var(--r-sm); z-index: 3; }
.skip:focus { left: 8px; }

.bar { background: var(--bar); color: #fff; }
.bar .in { max-width: 1040px; margin: 0 auto; padding: 0 16px; min-height: 56px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { font: 600 16px/1 var(--head); } .brand b em { font-style: normal; color: var(--amber); }
.topnav { display: flex; gap: 2px; flex-wrap: wrap; }
.topnav a { color: #c3c7cd; text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: var(--r-sm); }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.topnav a.on { color: #fff; background: rgba(250, 170, 24, .16); box-shadow: inset 0 -2px 0 var(--amber); }
.spacer { flex: 1; } .who { color: #9aa0a8; font-size: 13px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; }
.pagehead { margin: 4px 0 18px; } .pagehead p { margin: 6px 0 0; max-width: 70ch; }
.steps { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; margin-bottom: 16px; }
.steps .card { margin: 0; }
.card.flush { padding: 0; overflow-x: auto; } .card.empty { color: var(--muted); }
.stepno { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: var(--amber-ink); font-size: 13px; flex: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: grid; gap: 5px; min-width: 0; } .field > span, legend { font-size: 13px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 11px; }
input[type=radio], input[type=file] { width: auto; }
textarea { resize: vertical; line-height: 1.5; }
textarea.copytext { font: 13px/1.5 var(--mono); background: var(--bg); }
fieldset.radios { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
fieldset.radios legend { margin-bottom: 6px; }
.radio { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; flex: 1 1 200px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.radio:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.radio span { display: grid; } .radio input { margin-top: 4px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row select { width: auto; min-width: 220px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-sm); padding: 9px 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .1s; }
.btn:hover { background: var(--surface-2); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn.primary:hover { background: var(--amber-hover); }
.btn.primary.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { background: transparent; } .btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: progress; }

.alert { border-radius: var(--r); padding: 11px 14px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-soft); color: var(--ok); } .alert.fix { background: var(--fix-soft); color: var(--fix); } .alert.check { background: var(--check-soft); color: var(--check); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.fix { background: var(--fix-soft); color: var(--fix); }

.live { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.live .row { justify-content: space-between; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 5%; background: var(--amber); border-radius: 99px; transition: width .6s ease; }
.stage { margin: 0; font-weight: 600; }
.copyblock { display: grid; gap: 8px; } .msg { display: grid; gap: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.gates tr.bad td:first-child { color: var(--fix); font-weight: 600; }
tr.bad td { background: var(--fix-soft); }
.kv td:last-child { text-align: right; }
.scroll { overflow-x: auto; }
.finalrow td { background: var(--surface-2); } .finalbox { display: grid; gap: 10px; }
.save { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.tile .big { font: 600 24px/1.2 var(--head); margin-top: 4px; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r); box-shadow: var(--shadow); z-index: 10; max-width: calc(100% - 32px); }
.toast.ok { background: var(--ok); color: #fff; } .toast.fix { background: var(--fix); color: #fff; }

@media (max-width: 640px) {
  .wrap { padding: 16px 16px 48px; } .card { padding: 16px; } h1 { font-size: 22px; }
  .who { display: none; } .row select { min-width: 0; width: 100%; }
  .posts th:nth-child(3), .posts td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
