/* Workbench layout. Colour tokens and Process Map styles come from /styles/blueprint.css. */
body { min-height: 100vh; }
header.app { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px 18px; padding: 10px 16px; flex-wrap: wrap; }
header.app h1 { font-size: 17px; margin: 0; }
header.app h1 .brand { color: var(--accent); }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
nav.tabs button { border: 1px solid transparent; background: none; color: var(--muted); font: 500 14px var(--font-body);
  min-height: 36px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
nav.tabs button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.as { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.signout { font-size: 13px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; min-height: 36px; cursor: pointer; }
.signout:hover { color: var(--accent); border-color: var(--accent); }
select, input, textarea, button { font: inherit; color: var(--fg); }
select, input[type=text], input[type=number] { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; min-height: 36px; }
button.btn { background: var(--fg); color: var(--bg); border: 0; border-radius: 6px; padding: 6px 14px; min-height: 36px; cursor: pointer; font-weight: 600; }
button.btn:disabled { opacity: .4; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
main.view { padding: 16px 16px 60px; }
.split { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
aside.cov, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
aside.cov h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; }
aside.cov h3:first-child { margin-top: 0; }
.covrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.covrow:hover, .covrow.on { background: var(--band); }
.covrow code { font-size: 11px; color: var(--muted); }
svg.bar { grid-column: 1 / -1; width: 100%; height: 6px; border-radius: 3px; background: var(--band); display: block; }
.fill-answered { fill: var(--s-answered); } .fill-found_in_data { fill: var(--s-found_in_data); }
.fill-suggested { fill: var(--s-suggested); } .fill-open { fill: var(--s-open); }
.fill-conflicting { fill: var(--s-conflicting); } .fill-needs_consultant { fill: var(--s-needs_consultant); }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font: 500 12px var(--font-body); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; min-height: 30px; background: none; cursor: pointer; color: var(--muted); }
.chip.on { border-color: var(--fg); color: var(--fg); background: var(--band); }
.whoami { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.stagehead { font: 600 13px var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 10px 0; }
.card.s-answered { border-left-color: var(--s-answered); } .card.s-found_in_data { border-left-color: var(--s-found_in_data); }
.card.s-suggested { border-left-color: var(--s-suggested); } .card.s-open { border-left-color: var(--s-open); }
.card.s-conflicting { border-left-color: var(--s-conflicting); } .card.s-needs_consultant { border-left-color: var(--s-needs_consultant); }
.card.notmine { opacity: .6; }
.card.flash { box-shadow: 0 0 0 3px var(--accent-soft); }
.card .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.card .ask { font: 600 16px var(--font-display); margin: 6px 0 2px; }
.card .help { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.who-chip { border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.who-chip.me { border-color: var(--accent); color: var(--accent); }
.opts { display: grid; gap: 4px; margin: 8px 0; border: 0; padding: 0; }
.opts label { display: flex; gap: 8px; align-items: baseline; font-size: 14px; cursor: pointer; min-height: 28px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 13px; }
.row input.said { flex: 1; min-width: 180px; }
.row input.num { width: 120px; }
.vals { font: 12px var(--font-mono); color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.vals .open { color: var(--s-open); font-weight: 600; }
details.hist { margin-top: 8px; font-size: 13px; } details.hist summary { cursor: pointer; color: var(--muted); }
.hist ul { margin: 6px 0 0; padding-left: 18px; } .hist li { margin: 4px 0; }
.note { font-size: 13px; padding: 6px 10px; border-radius: 6px; background: var(--band); margin-top: 8px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; font-size: 14px; max-width: 90vw; z-index: 9; }
.panel h3 { margin: 0 0 4px; font-size: 16px; }
.panel table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.panel td { padding: 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.panel .crumb { font-size: 12px; color: var(--muted); }
.panel h4 { margin: 12px 0 4px; }
.map-wrap.sticky { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; }
.wt { display: grid; gap: 10px; }
.wstep { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; }
.wstep.skip { opacity: .5; }
.wstep .num { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.wstep .does { font-size: 13px; color: var(--muted); }
.wstep .res { font-weight: 600; margin-top: 4px; }
.reasons { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
.reasons li { padding: 4px 0; border-top: 1px dashed var(--line); }
.bg-ok { background: var(--s-answered); } .bg-warn, .bg-hold, .bg-stop { background: var(--s-open); }
.bg-reject, .bg-blocked { background: var(--s-conflicting); } .bg-approval { background: var(--s-needs_consultant); }
.bg-wait { background: var(--s-suggested); } .bg-skip { background: var(--s-default); }
.setup { margin: 10px 0; }
iframe.docs { width: 100%; height: calc(100vh - 110px); border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
pre.diff { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow: auto; font: 12px/1.45 var(--font-mono); max-height: 60vh; }
pre.diff .add { color: var(--s-answered); } pre.diff .del { color: var(--s-conflicting); } pre.diff .hd { color: var(--muted); }
.changes li { margin: 6px 0; } .changes .why { color: var(--muted); font-size: 13px; }
.cls-safe { color: var(--s-answered); } .cls-needs_migration { color: var(--s-open); } .cls-needs_project { color: var(--s-needs_consultant); }
.cls-blocked { color: var(--s-conflicting); } .cls-review { color: var(--muted); }
.find li { font-size: 13px; margin: 3px 0; } .find .error { color: var(--s-conflicting); } .find .warning { color: var(--s-open); } .find .info { color: var(--muted); }

@media (min-width: 900px) {
  .split.q { grid-template-columns: 300px minmax(0, 1fr); }
  .split.map { grid-template-columns: minmax(0, 1fr) 340px; }
  aside.cov, .panel { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; }
  .as { margin-left: auto; }
}

/* Data intake */
.intake-pill { color: var(--stock); }
.tablewrap { overflow-x: auto; }
table.intake { border-collapse: collapse; width: 100%; font-size: 13.5px; background: var(--surface); }
table.intake th, table.intake td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.intake th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
form.sheetform { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 16px; }
form.sheetform h3 { margin: 0 0 6px; }
fieldset.feeds { grid-template-columns: 1fr; }
fieldset.feeds legend { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
@media (min-width: 900px) { fieldset.feeds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Points to clarify */
.points { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.points h2 { margin: 0 0 4px; font-size: 18px; }
.points ul { margin: 6px 0 0; padding-left: 18px; } .points li { margin: 5px 0; }
.points summary { cursor: pointer; }
.chips.rounds .chip { font-weight: 600; padding: 6px 12px; }
.chips.rounds + .help { margin: 4px 0 10px; }
