:root {
  /* The CRM mockup's light palette (Todd, 2026-12-04: "I like the light version"). Always light. */
  color-scheme: light;
  --bg: #F6F2EA; --panel: #FFFFFF; --ink: #1F1B16; --muted: #5F584D; --line: #E3DCCF;
  --brand: #4A2E18; --accent: #1F4E79; --ok: #1D6B3A; --warn: #6B4A00; --bad: #A12A2A;
  --chip: #EFE7DA;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--accent); }
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--brand); text-decoration: none; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.top nav a.on { background: var(--chip); font-weight: 600; }
.pc { margin-left: auto; font-size: 13px; }
.pc.ok::before { content: "● "; color: var(--ok); } .pc.bad::before { content: "● "; color: var(--bad); }
.who { font-size: 13px; color: var(--muted); }
main { padding: 16px; max-width: 1200px; margin: 0 auto; }
main.wide { max-width: none; padding: 0; }
h1 { font-size: 22px; margin: 4px 0 12px; } h2 { font-size: 17px; margin: 20px 0 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--chip); color: var(--ink); border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; }
.chip.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 600; }
.chip b { margin-left: 4px; }
input[type=search], input[type=datetime-local], select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
input[type=search] { width: 100%; max-width: 420px; }
button.btn { font: inherit; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; }
button.btn.ghost { background: transparent; color: var(--brand); }
button.btn:disabled { opacity: .5; cursor: default; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr.row { cursor: pointer; } tr.row:hover td { background: var(--chip); }
td.why { color: var(--muted); font-size: 13px; max-width: 420px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--chip); white-space: nowrap; }
.tag.Finished { color: var(--ok); } .tag.Ready { color: var(--accent); } .tag.Rebuilding { color: var(--warn); }
.tag.Sent { color: var(--muted); }
.tag.Creative, .tag.Generating { color: var(--accent); }
.stages { display: flex; flex-wrap: wrap; gap: 4px; }
.stage { font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
.stage.done, .stage.ok, .stage.passed { background: color-mix(in srgb, var(--ok) 15%, transparent); }
.stage.failed, .stage.blocked { background: color-mix(in srgb, var(--bad) 18%, transparent); }
.stage.running { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.stat { font-size: 26px; font-weight: 700; }
pre { white-space: pre-wrap; word-break: break-word; font: 13px/1.4 Consolas, ui-monospace, monospace; background: var(--chip); padding: 10px; border-radius: 8px; max-height: 420px; overflow: auto; }
.imgs { display: flex; flex-wrap: wrap; gap: 12px; }
.imgs figure { margin: 0; flex: 1 1 200px; max-width: 320px; }
.imgs img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
.imgs figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.checker { background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 50% / 20px 20px; border-radius: 8px; }
.dark-ground { background: #222; border-radius: 8px; }
.callerbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.callerbar .name { font-weight: 600; }
iframe.caller { width: 100%; height: calc(100vh - 110px); border: 0; background: #fff; display: block; }
.bagstrip { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; max-width: min(560px, calc(100vw - 32px)); z-index: 20; }
details summary { cursor: pointer; }
.cmd.failed td { color: var(--bad); }
@media (max-width: 640px) { th.hide, td.hide { display: none; } }
.panel .small { overflow-wrap: anywhere; }
@media (max-width: 640px) { .hide-phone { display: none; } }

/* ---- phone layout (2026-10-26) ---- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .top { padding: 8px 12px; gap: 4px 10px; }
  .brand { font-size: 15px; }
  .top nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; padding: 6px 12px; }
  .pc { font-size: 12px; }
  .who { font-size: 12px; }
  .who .email { display: none; }
  main { padding: 12px; }
  h1 { font-size: 20px; margin-bottom: 10px; }
  h2 { font-size: 16px; margin-top: 14px; }
  .panel { padding: 12px; border-radius: 10px; }
  .chips { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; padding: 5px 10px; font-size: 14px; }
  input[type=search] { max-width: none; }

  /* tables become stacked cards */
  .table-wrap { overflow: visible; }
  .panel.table-wrap { padding: 0; background: transparent; border: 0; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 10px 12px; margin-bottom: 8px; }
  td { border: 0; padding: 1px 0; }
  td.hide { display: block; }
  tr.row td:first-child { font-size: 13px; color: var(--muted); order: 2; }
  tr.row { display: flex; flex-direction: column; }
  tr.row td:nth-child(2) { order: 1; font-weight: 600; font-size: 16px; }
  tr.row td:nth-child(3) { order: 3; margin-top: 4px; }
  tr.row td:nth-child(4) { order: 4; }
  tr.row td:nth-child(5) { order: 5; max-width: none; }
  tr.row td:empty, td.why:empty { display: none; }

  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid .panel { margin-bottom: 0; }
  .stat { font-size: 20px; }
  .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .imgs figure { max-width: none; }
  input[type=datetime-local] { width: 100%; margin-bottom: 8px; }
  .panel p button.btn { margin: 0 6px 6px 0; }

  .callerbar { padding: 8px 12px; gap: 6px 10px; font-size: 14px; }
  .callerbar .name { flex: 1 1 100%; order: -1; }
  iframe.caller { height: calc(100dvh - 150px); min-height: 520px; }
  pre { max-height: 300px; font-size: 12px; }
}

/* ---- Recon (2026-12-04) ---- */
.top nav a[hidden] { display: none; }
.rdrop { border: 2px dashed var(--accent); border-radius: 12px; padding: 18px 16px; text-align: center; background: var(--chip); }
.rdrop:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.rdrop.over { outline: 3px solid var(--accent); }
.rthumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.rthumbs .th { position: relative; } .rthumbs img { height: 110px; border: 1px solid var(--line); border-radius: 6px; display: block; }
.rthumbs button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; cursor: pointer; font: 700 15px/1 inherit; }
.recon textarea, .recon input[type=text] { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); max-width: 100%; }
.recon textarea { width: 100%; min-height: 56px; margin-top: 4px; }
.rrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 0; }
.rrow input[type=text] { flex: 1 1 220px; min-width: 0; }
.rcard h2 { margin: 0 0 2px; } .rcard .thumb { height: 84px; border: 1px solid var(--line); border-radius: 6px; margin: 8px 0 2px; display: block; }
.note { border: 1px solid var(--warn); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.note.bad { border-color: var(--bad); } .note ul { margin: 4px 0 0 18px; padding: 0; }
.rmail { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.rmail .bag { flex: 0 0 190px; } .rmail .bag img { width: 190px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.rmail .txt { flex: 1 1 340px; min-width: 0; } .rmail .to { width: 100%; margin: 2px 0 8px; }
.rmail .body { white-space: pre-wrap; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; max-height: 280px; overflow: auto; font-size: 14px; margin: 6px 0; background: var(--bg); }
.tag.go { border-color: var(--ok); color: var(--ok); } .tag.wait { border-color: var(--warn); color: var(--warn); }
@media (max-width: 640px) { .rmail .bag, .rmail .bag img { flex-basis: 100%; width: 100%; max-width: 260px; } }
.rtabs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rtab { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 10px; padding: 10px 14px; }
.rtab:hover, .rtab:focus-visible { border-color: var(--accent); border-left-color: var(--ok); outline: none; box-shadow: 0 0 0 2px var(--chip); }
.rtab img { height: 44px; width: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.rtab .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; } .rtab .t .small { overflow-wrap: anywhere; }
.rtab .chev { font-size: 22px; color: var(--muted); flex: none; }
dialog.rwin { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 18px 20px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); }
dialog.rwin::backdrop { background: rgba(0, 0, 0, .55); }
.rwin-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.rwin-head h1 { margin: 0 0 2px; }
.rwin-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; margin-top: 12px; }
.rwin .pics { display: flex; flex-direction: column; gap: 10px; } .rwin .pics figure { margin: 0; }
.rwin .pics img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.rwin h2 { margin-top: 18px; } .rwin-grid h2 { margin-top: 0; }
.kv { width: 100%; border-collapse: collapse; margin: 8px 0; } .kv th { text-align: left; white-space: nowrap; padding: 5px 14px 5px 0; vertical-align: top; color: var(--muted); font-weight: 500; }
.kv td { padding: 5px 0; } .kv tr + tr th, .kv tr + tr td { border-top: 1px solid var(--line); }
.sw { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; font-size: 13px; }
.sw i { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.rwin details { margin: 6px 0; } .rwin details p { margin: 6px 0 0; }
.rcap { display: flex; gap: 14px; align-items: flex-start; } .rcap .thumb { height: 110px; margin: 0; flex: none; border: 1px solid var(--line); border-radius: 6px; }
.rmailbox .to { width: 100%; margin: 2px 0 8px; font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
.rmailbox .subj { font-weight: 700; margin-top: 6px; }
.rmailbox .body { white-space: pre-wrap; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 14px; margin: 6px 0; background: var(--bg); }
.warnline { color: var(--warn); }
@media (max-width: 700px) { .rwin-grid { grid-template-columns: 1fr; } .rwin .pics { flex-direction: row; overflow-x: auto; } .rwin .pics figure { flex: 0 0 60%; } dialog.rwin { padding: 14px; } }

/* Recon: email -> sent -> front-desk call (CRM phase 1, 2026-12-04) */
button.btn.big { font-size: 16px; font-weight: 600; padding: 11px 22px; border-radius: 10px; }
a.btn { display: inline-block; text-decoration: none; border: 1px solid var(--ok); background: var(--ok); color: #fff; }
.rmailbox select { max-width: 100%; }
.rmailbox textarea.body { width: 100%; font: inherit; font-size: 14px; line-height: 1.5; color: var(--ink); resize: vertical; max-height: none; }
.rmailbox input.subj { font-weight: 700; margin-top: 2px; }
.rmailbox label { display: block; margin-top: 6px; }
.tag.call { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.rstep { border: 2px solid var(--accent); border-radius: 12px; padding: 14px 18px 16px; margin: 12px 0 4px; background: var(--panel); }
.rstep h2 { margin: 0 0 6px; font-size: 20px; } .rstep .okline { margin: 0 0 4px; color: var(--ok); font-weight: 600; }
.rstep textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); margin: 2px 0 10px; }
.rphone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
.rphone span:first-child { font-size: 32px; font-weight: 700; line-height: 1.1; }
.rscript { font-size: 19px; line-height: 1.6; padding: 10px 0 4px; } .rscript p { margin: 0 0 12px; }
.rscript mark { background: #fbf1d8; color: #1d1d1f; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.routs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.rout { font: inherit; padding: 11px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.rout.on { border: 2px solid var(--accent); background: var(--chip); font-weight: 600; }
dialog.rstop { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px; background: var(--bad); color: #fff; }
.rstop-in { max-width: 760px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.rstop-sign { font-size: 96px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.rstop h1 { font-size: 40px; margin: 8px 0 14px; color: #fff; }
.rstop-name { font-size: 24px; font-weight: 600; margin: 0 0 12px; } .rstop-name span { font-size: 16px; font-weight: 400; }
.rstop ul { list-style: none; padding: 12px 16px; margin: 0 0 12px; text-align: left; background: rgba(0, 0, 0, .22); border-radius: 12px; }
.rstop li + li { margin-top: 6px; }
.rstop button.btn { background: #fff; color: #7a1f1f; border-color: #fff; } .rstop button.btn.ghost { background: transparent; color: #fff; }

/* CRM: pipeline board, today, school record (2026-12-04) */
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 12px; text-align: center; }
.phead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px 4px; }
.phead h1 { margin: 0; } .phead form { margin: 0 0 0 auto; } .phead input { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); min-width: 230px; }
.pboard { display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; padding: 8px 16px 24px; min-height: calc(100vh - 130px); }
.pcol { flex: 0 0 264px; background: var(--chip); border: 2px solid transparent; border-radius: 12px; padding: 8px; min-height: 180px; }
.pcol.over { border-color: var(--accent); }
.pcol h2 { margin: 2px 4px 8px; font-size: 14px; } .pcards { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.pempty { text-align: center; padding: 18px 0; margin: 0; }
.ccard { display: flex; flex-direction: column; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); cursor: pointer; }
.ccard:hover, .ccard:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--chip); }
.ccard.dragging { opacity: .45; } .ccard .last { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cfoot { display: flex; gap: 6px; align-items: flex-end; justify-content: space-between; margin-top: 4px; } .chipsline { display: flex; flex-wrap: wrap; gap: 4px; }
.tag.go, .tag.wait, .tag.call { border: 1px solid; }
a.rtab { text-decoration: none; }
.chead { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; } .chead h1 { margin: 2px 0; font-size: 26px; }
.cgrid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.cside .pics img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; margin-bottom: 12px; }
.cmain h2 { margin-top: 0; } .panel.hot { border: 2px solid var(--ok); }
.people { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.fld { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; }
.fgrid { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 8px 0; }
#crm input[type=text], #crm input[type=number], #crm textarea, #crm select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); width: 100%; }
#crm textarea { resize: vertical; line-height: 1.5; } #crm .rrow textarea { flex: 1 1 260px; width: auto; }
button.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.note.okb { border-color: var(--ok); } .steps { margin: 6px 0 6px 20px; padding: 0; }
.reply + .reply { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.reply .subj { font-weight: 700; margin: 4px 0; } .reply .quote { white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 12px 14px; margin: 4px 0 8px; }
.aplog { list-style: none; padding: 0; margin: 8px 0; } .aplog li { border-left: 3px solid var(--warn); padding: 4px 0 6px 12px; margin-bottom: 10px; }
.aplog li.settled { border-left-color: var(--ok); opacity: .75; } .aptext { white-space: pre-wrap; margin: 3px 0; }
details.final { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; } details summary { cursor: pointer; }
.tl { list-style: none; padding: 0; margin: 12px 0 0; } .tl li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.tl .tag { align-self: start; text-align: center; }
.bars td { width: 100%; white-space: nowrap; } .bar { display: inline-block; height: 14px; min-width: 2px; max-width: calc(100% - 40px); background: var(--accent); border-radius: 4px; vertical-align: middle; margin-right: 8px; }
.scrollx { overflow-x: auto; } .wk { border-collapse: collapse; width: 100%; } .wk th, .wk td { padding: 6px 10px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.wk th:first-child { text-align: left; } .wk thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: 13px; }
@media (max-width: 760px) {
  .cgrid { grid-template-columns: 1fr; } .cside .pics img { max-width: 220px; }
  .pboard { scroll-snap-type: x mandatory; } .pcol { flex-basis: 84vw; scroll-snap-align: center; }
  .top nav { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; } .top nav a { white-space: nowrap; }
  .tl li { grid-template-columns: 1fr; gap: 2px; } .phead form { margin-left: 0; width: 100%; }
}
.chead .fld { flex: 0 0 220px; }
h1, .brand, .rwin h1, .chead h1, .ccard b, .rtab b { font-family: "EB Garamond", Georgia, serif; font-weight: 600; }
h1 { font-size: 30px; line-height: 1.1; } .brand { font-size: 22px; } .chead h1 { font-size: 34px; } .ccard b, .rtab b { font-size: 18px; line-height: 1.15; }
.top nav a.on { background: var(--chip); } .pcol { background: #EFE9DE; } .panel, .ccard { border-radius: 14px; }
.cstage { text-align: right; } .cstage .rrow { justify-content: flex-end; }
@media (max-width: 760px) { .cstage { text-align: left; } .cstage .rrow { justify-content: flex-start; } }
.phead .chips { margin: 0; } a.chip { text-decoration: none; } .phead.in { padding: 0 0 8px; } .phelp { padding: 0 16px; margin: 0; }
#crm .okline { color: var(--ok); font-weight: 600; }
a.btn.ghostlink { background: transparent; color: var(--brand); border: 1px solid var(--brand); padding: 7px 14px; border-radius: 8px; }
.talk { margin: 4px 0 8px 18px; padding: 0; } .talk li { margin: 2px 0; }
.bagrev { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
.bagrev .okline { margin: 0; color: var(--ok); font-weight: 600; } .bagrev .rrow { margin: 0; } .bagrev .chk { display: flex; gap: 8px; align-items: center; }
.bagrev textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
/* Pipeline board pivoted (Todd, 2026-12-04): statuses down the side, schools across. */
.pboard { flex-direction: column; overflow-x: visible; min-height: 0; gap: 8px; }
.pcol { flex: 0 0 auto; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 12px; align-items: start; min-height: 0; padding: 10px 12px; }
.pcol h2 { margin: 6px 0 0; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.pcol h2 .small { font-size: 22px; font-weight: 600; color: var(--ink); font-family: "EB Garamond", Georgia, serif; }
.pcards { flex-direction: row; flex-wrap: wrap; min-height: 0; }
.pcards .ccard { flex: 0 1 250px; min-width: 210px; }
.pempty { text-align: left; padding: 8px 0; }
@media (max-width: 760px) {
  .pboard { scroll-snap-type: none; }
  .pcol { grid-template-columns: 1fr; flex-basis: auto; }
  .pcol h2 { flex-direction: row; align-items: baseline; gap: 8px; margin: 0; }
  .pcards { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .pcards .ccard { flex: 0 0 78vw; }
}
.pboard { align-items: stretch; }
.pcol h2 { flex-direction: row; align-items: baseline; gap: 10px; margin: 4px 0; }
details.mail { border-top: 1px solid var(--line); padding: 8px 0; } details.mail:first-of-type { border-top: 0; }
details.mail summary { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; } details.mail .quote { white-space: pre-wrap; background: var(--bg); border-radius: 10px; padding: 12px 14px; margin: 8px 0 4px; }
.mailpics { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; } .mailpics img { max-width: 260px; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.pcol.building { background: #F3EBD8; border: 1px dashed #C9B98F; }

/* UI pass, 2026-12-04 */
.top { gap: 6px 20px; padding: 10px 20px; }
.top nav a { padding: 6px 12px; font-weight: 500; } .top nav a.on { font-weight: 600; }
.top nav.more { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.top nav.more a { font-size: 13px; color: var(--muted); font-weight: 400; padding: 5px 9px; } .top nav.more a.on { color: var(--ink); }
.top nav a:hover { background: var(--chip); } a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.phead { align-items: center; padding: 14px 20px 6px; } .ptools { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ptools input { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); min-width: 190px; }
.ptools form { display: flex; gap: 6px; margin: 0; } .ptools form input { border-radius: 8px; min-width: 220px; }
.pboard { padding: 8px 20px 28px; gap: 10px; }
.pcol { grid-template-columns: 150px minmax(0, 1fr); border-radius: 14px; padding: 12px 14px; }
.pcol h2 { position: sticky; top: 64px; }
.pcards { gap: 10px; } .pcards .ccard { flex: 0 1 232px; min-width: 200px; padding: 11px 13px; gap: 2px; transition: border-color .12s, box-shadow .12s, transform .12s; }
.ccard:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(74, 46, 24, .10); }
.ccard b { font-size: 19px; } .ccard .cline { color: var(--ink); font-weight: 500; } .ccard.quiet .cline { color: var(--warn); }
.cfoot { flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 6px; }
.pmore { font: inherit; font-size: 13px; align-self: center; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--muted); background: transparent; color: var(--ink); cursor: pointer; }
.pmore:hover { background: var(--panel); }
.nextstep { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.nextstep div { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .nextstep b { font-family: "EB Garamond", Georgia, serif; font-size: 22px; line-height: 1.15; }
.nextstep a.btn { flex: none; background: var(--accent); border-color: var(--accent); padding: 9px 20px; border-radius: 10px; }
.panel { padding: 16px 18px; } .cmain h2, .panel > h2:first-child { font-size: 18px; }
@media (max-width: 760px) { .top nav.more { margin-left: 0; padding-left: 0; border-left: 0; } .ptools { margin-left: 0; width: 100%; } .ptools input, .ptools form, .ptools form input { flex: 1 1 auto; min-width: 0; } .pcol h2 { position: static; } }
.psub { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 0 20px 4px; } .psub .phelp { padding: 0; }
.psub .ptools { margin-left: auto; flex-wrap: nowrap; } .ptools input { min-width: 170px; } .ptools form input { min-width: 200px; }
details.fold > summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; } details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; } details.fold > summary::after { content: "Show"; margin-left: auto; font-size: 13px; color: var(--accent); } details.fold[open] > summary::after { content: "Hide"; }
details.fold[open] > summary { margin-bottom: 10px; }
@media (max-width: 760px) { .psub .ptools { flex-wrap: wrap; width: 100%; } }

/* Recon: check-first box and recent captures down the left (2026-12-05) */
.rgrid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.rside { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; }
.rside .panel { margin: 0; }
.rside h2 { font-size: 1rem; margin: 0 0 8px; }
.rcheck input[type=text] { width: 100%; box-sizing: border-box; }
#rqout { margin-top: 8px; }
.rqres { margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: .9rem; }
.rqres ul { margin: 6px 0 0; padding-left: 18px; } .rqres li { margin-bottom: 6px; }
.rqres.stop { background: #fde8e6; color: #7a1d12; } .rqres.maybe { background: #fff4d6; color: #6b4b00; } .rqres.go { background: #e3f4e6; color: #1d5a2a; }
.rrecent { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.rrecent li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
@media (max-width: 860px) { .rgrid { grid-template-columns: 1fr; } .rside { position: static; } }

/* Recon: Paste Facebook Feed (2026-12-05) */
.rfeedp h2, .rsub { font-size: 1.05rem; margin: 4px 0 8px; }
#rfeedbox { width: 100%; }
.feedl { list-style: none; margin: 6px 0; padding: 0; }
.feedl .fd { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--panel); }
.feedl .fdhead { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 10px; }
.feedl .fd.best { border-left: 5px solid #2e8b45; } .feedl .fd.known { border-left: 5px solid #c9a227; } .feedl .fd.new { border-left: 5px solid #4a7fc1; }
.feedl .fd.done, .feedl .fd.pasted, .feedl .fd.skip { opacity: .7; }
.feedl .fdbody { padding: 0 10px 10px; } .feedl .fdbody textarea { width: 100%; }
.feedl .fd.quiet { border-left: 5px solid #c0392b; }
