/* GovScan: J-LAB amber-rose accent + tool-specific pieces on top of node.css / desk.css.
   Only add what the shared ARGUS system does not already provide. */
:root {
  --accent:      oklch(0.76 0.15 48);
  --accent-2:    oklch(0.83 0.11 55);
  --accent-h:    48;
  --accent-glow: oklch(0.76 0.15 48 / 0.30);
  --accent-soft: oklch(0.76 0.15 48 / 0.13);

  --g-a: oklch(0.72 0.16 155); --g-b: oklch(0.78 0.12 195); --g-c: oklch(0.80 0.13 90);
  --g-d: oklch(0.74 0.15 60); --g-e: oklch(0.66 0.18 35); --g-f: oklch(0.62 0.20 25);
}

.muted { color: var(--mid); }
.hidden { display: none !important; }

/* ---- input widgets (shared by public ops panel and desk panel) ---- */
#targets, .case-input {
  width: 100%; box-sizing: border-box; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--fg); border-radius: 6px; padding: 12px 14px; min-height: 118px;
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; line-height: 1.55; resize: vertical;
}
#targets:focus, .case-input:focus { outline: none; border-color: var(--accent); }
.purpose {
  width: 100%; box-sizing: border-box; margin-top: 10px; background: var(--bg-3);
  border: 1px solid var(--line); color: var(--fg); border-radius: 6px; padding: 10px 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
}
.purpose:focus { outline: none; border-color: var(--accent); }
.attest {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 12.5px;
  color: var(--fg-2); line-height: 1.5; cursor: pointer;
}
.attest input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.scanbar, .run-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.filebtn { cursor: pointer; }

/* desk button variants (disarm-style, not in desk.css) */
.btn-run {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--bg);
  border: 0; border-radius: 6px; padding: 11px 20px; font-family: inherit; font-weight: 600;
  font-size: 13px; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn-run:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px -12px var(--accent); }
.btn-run:disabled { opacity: .45; cursor: not-allowed; }
.btn-line {
  display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; font-family: inherit;
  font-size: 12.5px; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s;
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.section-h .more { display: inline-flex; gap: 8px; }
.btn-run svg, .btn-line svg { width: 15px; height: 15px; }

/* desk panel/header (not provided by desk.css; disarm-style) */
.desk .panel { border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 18px 20px; }
.desk .ph { display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); }
.desk .ph svg { width: 15px; height: 15px; color: var(--accent); }

/* ---- grade badge ---- */
.gb { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; font-weight: 700; font-size: 0.85rem; color: #0c0a08; flex-shrink: 0;
  font-family: "IBM Plex Mono", monospace; }
.gb.A { background: var(--g-a); } .gb.B { background: var(--g-b); } .gb.C { background: var(--g-c); }
.gb.D { background: var(--g-d); } .gb.E { background: var(--g-e); } .gb.F { background: var(--g-f); }

/* ---- results (public full-width section + shared cards) ---- */
.results-wrap { position: relative; z-index: 2; padding: 0 var(--gutter-x, 6vw) clamp(32px, 4vw, 64px); }
.results-wrap .ops-head { margin-bottom: 14px; }
#results-list { display: flex; flex-direction: column; gap: 14px; }

.site-result { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--line);
  border-radius: 6px; padding: 18px 20px; }
.sr-head { display: flex; align-items: center; gap: 12px; }
.sr-score { font-size: 1.5rem; font-weight: 700; font-family: "IBM Plex Mono", monospace; }
.sr-dom { color: var(--fg-2); font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.pchip { font-size: 0.68rem; padding: 3px 9px; border-radius: 20px; background: var(--bg-3);
  color: var(--mid); font-family: "IBM Plex Mono", monospace; }
.sr-issues { font-size: 0.8rem; color: var(--fg-2); margin-bottom: 8px; }
.finding-list { display: flex; flex-direction: column; }
.finding { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.fstatus { flex-shrink: 0; width: 50px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding-top: 3px; font-family: "IBM Plex Mono", monospace; }
.fstatus.fail { color: var(--g-f); } .fstatus.warn { color: var(--g-d); }
.fstatus.pass { color: var(--g-a); } .fstatus.info, .fstatus.error { color: var(--mid); }
.fbody { flex: 1; min-width: 0; }
.ftitle { font-size: 0.86rem; font-weight: 600; color: var(--fg); }
.fsummary { font-size: 0.8rem; color: var(--fg-2); }
.finding-detail { font-size: 0.75rem; color: var(--mid); margin-top: 4px;
  font-family: "IBM Plex Mono", monospace; word-break: break-word; }
.finding-detail .k { color: var(--accent); }
.chip { font-size: 0.68rem; padding: 3px 9px; border-radius: 20px; font-family: "IBM Plex Mono", monospace; }
.chip.no { background: oklch(0.62 0.20 25 / 0.16); color: var(--g-f); }

/* ---- history ---- */
.histrow { display: grid; grid-template-columns: 155px 90px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 0.83rem; }

@media (max-width: 720px) {
  .histrow { grid-template-columns: 1fr auto; }
  .sr-head { flex-wrap: wrap; }
}
