*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

:root{
  --s:#07101a;
  --s2:#0c1824;
  --s3:#111f2e;
  --border:#1c2e3f;
  --muted:#4a6880;
  --text:#b8d0e4;
  --bright:#deedf8;
  --accent:#2471A3;
  --navy:#1A5276;
  --gold:#F0B429;
  --mag:#cc0066;
  --ok:#4ade80;
  --warn:#fbbf24;
  --err:#f87171;
}

body{
  font-family:'DM Sans',system-ui,sans-serif;
  background:var(--s);
  color:var(--text);
  height:100vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.top{
  height:50px;
  flex-shrink:0;
  background:var(--s);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
}

.top-logo{
  height:40px;
  /* background:#fff; */
  border-radius:3px;
  padding:2px 5px;
  flex-shrink:0;
}

.top-divider{
  width:1px;
  height:20px;
  background:var(--border);
}

.top-title{
  font-size:12.5px;
  font-weight:700;
  color:var(--bright);
}

.top-sub{
  font-size:10px;
  color:var(--muted);
}

.sp{ flex:1; }

.tbtn{
  height:30px;
  padding:0 11px;
  border-radius:6px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  font-size:11.5px;
  cursor:pointer;
  white-space:nowrap;
  transition:.12s;
}

.tbtn:hover{ background:var(--s3); }
.tbtn.gold{
  background:var(--gold);
  border-color:var(--gold);
  color:#07101a;
  font-weight:700;
}
.tbtn.gold:hover{ background:#d9a020; }
.tbtn.dim{
  border-color:#1a2d3d;
  color:var(--muted);
}
.tbtn.dim:hover{
  background:var(--s2);
  color:var(--text);
}
.tbtn:disabled{
  opacity:.35;
  cursor:not-allowed;
  pointer-events:none;
}

.shell{
  flex:1;
  display:flex;
  overflow:hidden;
}

.sb{
  width:295px;
  flex-shrink:0;
  background:var(--s2);
  border-right:1px solid var(--border);
  overflow-y:auto;
  display:flex;
  flex-direction:column;
}

.sb-sec{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
}

.sb-label{
  font-size:9px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:8px;
  display:flex;
  align-items:center;
  gap:6px;
}

.sb-inline-note{
  font-size:9px;
  font-weight:500;
  color:var(--muted);
  letter-spacing:0;
  text-transform:none;
}

.sb-hint{
  font-size:10.5px;
  color:var(--muted);
  line-height:1.5;
  margin-bottom:8px;
}

.inline-code{
  font-size:9.5px;
  background:#07101a;
  padding:1px 4px;
  border-radius:3px;
}

.f{ margin-bottom:8px; }
.f:last-child{ margin-bottom:0; }

.f label{
  display:block;
  font-size:10px;
  color:#6a8aa6;
  margin-bottom:3px;
}

.f input,
.f textarea,
.f select{
  width:100%;
  background:#07101a;
  border:1px solid var(--border);
  color:var(--bright);
  border-radius:6px;
  padding:6px 8px;
  font-size:11.5px;
  outline:none;
  transition:.1s;
}

.f input:focus,
.f textarea:focus,
.f select:focus{
  border-color:var(--accent);
  background:#08131e;
}

.f textarea{
  min-height:70px;
  resize:vertical;
  line-height:1.45;
}

.g2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}

.min-40{ min-height:40px !important; }
.min-42{ min-height:42px !important; }
.min-54{ min-height:54px !important; }

.tile-rows{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.tile-row{
  display:grid;
  gap:6px;
  align-items:center;
  background:#07101a;
  border:1px solid var(--border);
  padding:5px 8px;
  border-radius:6px;
}

.tile-row.std{ grid-template-columns:8px 1fr 64px 46px; }
.tile-row.custom{ grid-template-columns:8px 1fr 64px 46px 20px; }

.tdot{
  width:8px;
  height:8px;
  border-radius:50%;
  flex-shrink:0;
}

.tlbl{
  font-size:10px;
  color:#6a8aa6;
  line-height:1.2;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.tile-row input{
  background:#08131e;
  border:1px solid var(--border);
  color:var(--bright);
  border-radius:5px;
  padding:3px 6px;
  font-size:11px;
  outline:none;
  width:100%;
}

.tile-row input:focus{ border-color:var(--accent); }

.tlbl-edit{
  font-size:10px;
  color:#6a8aa6;
  background:transparent;
  border:none;
  border-bottom:1px solid var(--border);
  outline:none;
  min-width:0;
  width:100%;
  padding:0;
}

.mbtn{
  height:22px;
  padding:0 6px;
  border-radius:4px;
  border:1px solid var(--border);
  background:#0c1824;
  color:var(--text);
  font-size:10px;
  cursor:pointer;
  white-space:nowrap;
}

.mbtn:hover{ background:var(--s3); }
.mbtn.hid{
  border-color:#4a1a1a;
  color:var(--err);
}
.mbtn.x{
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:14px;
  padding:0;
  cursor:pointer;
}
.mbtn.x:hover{ color:var(--err); }

.ag-rows{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ag-row{
  display:grid;
  grid-template-columns:1fr 46px;
  gap:6px;
  align-items:center;
}

.ag-row input{
  background:#07101a;
  border:1px solid var(--border);
  color:var(--bright);
  border-radius:6px;
  padding:5px 8px;
  font-size:11px;
  outline:none;
}

.ag-row input:focus{ border-color:var(--accent); }

.logo-drop{
  border:1px dashed #1e3248;
  border-radius:7px;
  padding:11px;
  text-align:center;
  background:#07101a;
  cursor:pointer;
  transition:.12s;
}

.logo-drop:hover{ border-color:var(--accent); }

.logo-drop-preview{
  max-width:140px;
  max-height:40px;
  display:none;
  margin:0 auto 6px;
}

.logo-drop-preview.on{ display:block; }

.logo-drop-hint{
  font-size:10.5px;
  color:var(--muted);
}

.logo-drop-hint strong{
  display:block;
  font-size:11px;
  color:var(--text);
  margin-bottom:2px;
}

.smbtn{
  height:26px;
  padding:0 9px;
  border-radius:5px;
  border:1px solid var(--border);
  background:var(--s3);
  color:var(--text);
  font-size:10.5px;
  cursor:pointer;
}

.smbtn:hover{ background:#1b2d3e; }

.smbtn.ghost{
  background:transparent;
  border-color:transparent;
  color:var(--muted);
}

.smbtn.ghost:hover{ color:var(--err); }

.btn-row{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:7px;
}

.status-row{
  display:flex;
  gap:7px;
  margin-top:8px;
  flex-wrap:wrap;
}

.pill{
  font-size:9.5px;
  padding:3px 8px;
  border-radius:20px;
  border:1px solid var(--border);
  color:var(--muted);
  background:var(--s3);
}

.pill.ok{
  border-color:#1a4030;
  color:var(--ok);
  background:rgba(74,222,128,.06);
}

.pill.warn{
  border-color:#3a2a08;
  color:var(--warn);
  background:rgba(251,191,36,.06);
}

.pill.err{
  border-color:#3a1010;
  color:var(--err);
  background:rgba(248,113,113,.06);
}

.mod-notice{
  font-size:10px;
  color:var(--warn);
  background:rgba(251,191,36,.06);
  border:1px solid rgba(251,191,36,.18);
  padding:6px 9px;
  border-radius:6px;
  margin-top:9px;
  display:none;
}

.mod-notice.on{ display:block; }

.preview{
  flex:1;
  overflow:auto;
  background:#141e2b;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:24px;
  position:relative;
}

.scale-outer{
  flex:0 0 auto;
}

.scale-wrap{
  transform-origin:top left;
  width:816px;
  height:1056px;
}

.preview-empty{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  pointer-events:none;
}

.preview-empty h2{
  font-size:17px;
  color:#2a4258;
  font-weight:700;
  margin-bottom:6px;
}

.preview-empty p{
  font-size:12px;
  color:#1e3044;
  max-width:280px;
  line-height:1.55;
}

.handout{
  width:816px;
  height:1056px;
  overflow:hidden;
  background:#fff;
  color:#1C2833;
  position:relative;
  font-family:'Inter',system-ui,sans-serif;
  display:flex;
  flex-direction:column;
  --navy:#1A5276;
  --blue:#2471A3;
  --pale:#EBF5FB;
  --blue-lt:#D6EAF8;
  --blue-mid:#AED6F1;
  --gold:#F0B429;
  --mag:#cc0066;
  --txt:#1C2833;
  --mid:#4A6274;
  --lt:#85929E;
  --line:#D5E8F0;
  print-color-adjust:exact;
  -webkit-print-color-adjust:exact;
}

.h-head{
  display:grid;
  grid-template-columns:210px 1fr 148px;
  border-bottom:4px solid var(--gold);
  flex-shrink:0;
  background:var(--white);
}

.h-logo-cell{
  padding:10px 14px 10px 32px;
  border-right:1px solid var(--line);
  display:flex;
  align-items:center;
  min-height:64px;
}

.h-logo-default{
  display:flex;
  align-items:center;
}

.h-logo-default.off{ display:none; }

.h-logo-default img{
  height:52px;
  width:auto;
  display:block;
  background:transparent;
  border:0;
  box-shadow:none;
}

.h-logo-custom{ display:none; }
.h-logo-custom.on{
  display:flex;
  align-items:center;
}

.h-logo-custom img{
  max-height:50px;
  max-width:172px;
  display:block;
}

.h-meta{
  padding:10px 18px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.h-meta-sup{
  font-size:9px;
  color:var(--mid);
  font-weight:700;
  letter-spacing:.05em;
}

.h-meta-title{
  font-size:16px;
  color:var(--navy);
  font-weight:900;
  letter-spacing:-0.01em;
  line-height:1.15;
  margin-top:3px;
}

.h-meta-data{
  font-size:7px;
  color:var(--lt);
  margin-top:4px;
}

.h-tag{
  padding:10px 32px 10px 14px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  text-align:right;
}

.h-tag-a{
  font-size:12px;
  font-weight:800;
  color:var(--navy);
  text-align:right;
}

.h-tag-b{
  font-size:9.5px;
  color:var(--mid);
  font-weight:400;
  margin-top:2px;
}

.h-banner{
  background:var(--pale);
  padding:18px 32px 14px;
  border-bottom:2px solid var(--line);
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  flex-shrink:0;
}

.h-hl{
  font-size:26px;
  font-weight:900;
  line-height:1.1;
  letter-spacing:-.015em;
  color:var(--navy);
  text-transform:uppercase;
}

.h-hl .m{ color:var(--mag); }

.h-sub{
  font-size:16px;
  color:var(--mid);
  margin-top:8px;
  line-height:1.3;
}

.h-sub strong{
  color:var(--blue);
  font-weight:800;
}

.h-csbg{
  min-width:168px;
  background:#FEF9EE;
  color:#7A5500;
  border-radius:8px;
  border:1.5px solid var(--gold);
  padding:16px 24px;
  text-align:center;
  flex-shrink:0;
}

.h-csbg-lbl{
  font-size:9px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.h-csbg-num{
  font-family:'Open Sans',sans-serif;
  font-size:44px;
  color:var(--gold);
  font-weight:900;
  line-height:1;
  margin-top:4px;
  letter-spacing:-0.03em;
  white-space:nowrap;
}

.h-csbg-sub{
  font-size:9px;
  font-weight:600;
  margin-top:2px;
}

.h-snap-wrap{
  padding:14px 32px 16px;
  flex-shrink:0;
}

.h-sec{
  font-size:11px;
  font-weight:700;
  color:var(--navy);
  letter-spacing:.14em;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.h-sec::after{
  content:'';
  height:2px;
  background:var(--blue-lt);
  flex:1;
}

.h-sec.gold{
  color:var(--gold);
}

.h-sec.gold::after{
  background:var(--gold);
}

.h-sec.mag{
  color:var(--mag);
}

.h-sec.mag::after{
  background:var(--mag);
}

.h-snap{
  display:flex;
  gap:10px;
  padding-bottom:0;
}

/* "WHO WE SERVE IN NY-X" subtitle sits below the tiles */
.h-snap-sub{
  margin-top:8px;
  margin-bottom:0;
}

.h-tile{
  flex:1;
  min-height:110px;
  border-radius:8px;
  padding:0 4px 12px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  text-align:center;
}

.h-tile-n{
  font-family:'Open Sans',sans-serif;
  font-size:46px;
  font-weight:900;
  line-height:1;
  letter-spacing:-0.02em;
  text-align:center;
  width:100%;
}

.h-tile-l{
  font-size:11.5px;
  font-weight:600;
  line-height:1.3;
  margin-top:4px;
  min-height:26px;
  color:inherit;
  opacity:.8;
  text-align:center;
  width:100%;
}

.h-body{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  padding:0 32px;
  align-items:stretch;
  flex:1 1 0;          /* fills all space between snap-wrap and ask — nothing can push past the page */
  min-height:0;        /* allows the flex item to shrink below natural content height */
}

/* District Outcomes — left column, under agencies + narrative */
.h-outs-wrap{
  padding-top:2px;
}

.h-left,
.h-right{
  display:flex;
  flex-direction:column;
  min-height:0;        /* allows columns to shrink within the fixed body height */
  overflow:hidden;     /* clips any content that exceeds the column — nothing pushes layout */
}

.h-left{ gap:14px; }
.h-right{ gap:10px; }

/* Narrative section grows to fill whatever vertical space the agencies+outcomes leave */
.h-narr-section{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
}

.h-narr{
  flex:1;
  min-height:0;
  overflow:hidden;
}

.h-who-section{ margin-top:0; }

.flex-col-fill{
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.h-ag-list{
  display:flex;
  flex-direction:column;
  gap:5px;
}

/* Two-column layout for districts with many agencies (7+).
   Cuts the list height roughly in half so the page fits without scaling. */
.h-ag-list.multi-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
}

.h-ag{
  min-height:32px;
  background:var(--pale);
  border-left:4px solid var(--blue);
  border-radius:0 6px 6px 0;
  padding:7px 12px;
  font-size:9.5px;
  line-height:1.35;
  font-weight:500;
  color:var(--txt);
  display:flex;
  align-items:center;
}

.h-ag-empty{ opacity:.28; }

.handout-note{
  margin-top:4px;
}

.h-ag-src{
  font-size:7px;
  color:var(--lt);
  line-height:1.55;
}

.h-narr{
  background:var(--pale);
  border-left:4px solid var(--blue);
  border-radius:0 8px 8px 0;
  padding:13px 16px;
  font-size:10px;
  color:var(--mid);
  line-height:1.7;
}

.h-narr strong{ color:var(--navy); font-weight:600; }

.h-who{
  background:#FEF9EE;
  border-left:4px solid var(--gold);
  border-radius:0 8px 8px 0;
  padding:13px 16px;
  font-size:10px;
  color:#7A5500;
  line-height:1.7;
}

.h-who strong{ color:#3D1F00; font-weight:600; }

.h-outs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}

.h-out{
  border-radius:8px;
  min-height:72px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  padding:0 4px 9px;
  text-align:center;
}

.h-out-n{
  font-family:'Open Sans',sans-serif;
  font-size:22px;
  font-weight:900;
  line-height:1;
  letter-spacing:-0.01em;
  text-align:center;
  width:100%;
}

.h-out-l{
  font-size:9px;
  font-weight:600;
  line-height:1.3;
  margin-top:4px;
  color:inherit;
  opacity:.8;
}

.h-map-section{
  display:flex;
  flex-direction:column;
  flex:1;              /* map section fills the right column space above who-we-serve */
  min-height:0;
}

.h-map-wrap{
  background:var(--pale);
  border:1.5px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  position:relative;
  flex:1;              /* grows to fill the map section — map gets taller when there's more space */
  min-height:0;
}

#h-map{
  width:100%;
  height:100%;
  min-height:80px;     /* absolute floor — won't collapse smaller than this */
  display:block;
  background:var(--pale);
}

.h-map-svg{
  display:block;
  width:100%;
  height:100%;
}

.h-legend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  font-size:8px;
  color:var(--mid);
  margin-top:5px;
}

.h-legend span{
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.h-sw{
  width:8px;
  height:8px;
  border-radius:2px;
  display:inline-block;
}

.sw-other{
  background:#D6EAF8;
  border:1px solid #90b8d0;
}

.sw-current{
  background:#FEF9EE;
  border:1px solid #F0B429;
}

.sw-nyc{
  background:#C5A0C0;
  border:1px solid #9B6090;
}

.h-cap{
  font-size:8px;
  color:var(--lt);
  font-style:italic;
  text-align:center;
  margin-top:5px;
}

.h-src-section{
  flex-shrink:0;
  margin-top:10px;
}

.h-src-head{
  font-size:8px;
  font-weight:800;
  color:var(--navy);
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:3px;
}

.h-src{
  font-size:7.5px;
  color:var(--lt);
  line-height:1.55;
  margin-top:0;
}

.h-src strong{ color:var(--mid); }

.h-ask{
  margin:8px 32px 8px; /* h-body now fills remaining space so ask naturally sits at the bottom */
  background:var(--pale);
  border:1.5px solid var(--blue-mid);
  border-radius:10px;
  padding:10px 20px;
  flex-shrink:0;
  display:grid;
  grid-template-columns:152px 1fr; /* narrow enough that "OUR REQUEST TO" wraps; wide enough for "OUR REQUEST" */
  grid-template-areas:"left grid";
  gap:0 16px;
  align-items:center;
}

/* Left column: title + footer stacked */
.h-ask-left{
  grid-area:left;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-self:stretch;
  border-right:2px solid var(--blue-mid);
  padding-right:14px;
  padding-top:4px;
  padding-bottom:4px;
  gap:6px;
}

.h-ask-title{
  font-size:15px;
  font-weight:900;
  color:var(--navy);
  letter-spacing:.05em;
  text-transform:uppercase;
  text-align:right;
  line-height:1.3;
}

/* Three asks stacked vertically */
.h-ask-grid{
  grid-area:grid;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}

.h-ask-item{
  display:flex;
  gap:8px;
  align-items:center;
}

.h-ask-num{
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--navy);
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:11px;
  flex-shrink:0;
}

.h-ask-txt{
  font-size:9.5px;
  color:var(--navy);
  line-height:1.35;
  font-weight:600;
}

.h-ask-txt strong{ font-weight:900; }

/* Footer sits below title in left column */
.h-ask-foot{
  font-size:8px;
  color:var(--mid);
  font-style:italic;
  text-align:right;
  line-height:1.45;
}

.h-foot{
  background:var(--navy);
  color:rgba(255,255,255,.45);
  padding:8px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:8px;
  letter-spacing:0.04em;
  flex-shrink:0;
}

.h-foot a{
  color:rgba(255,255,255,.65);
  text-decoration:none;
}

#export-root{
  /* position:absolute keeps it in the document flow so html2canvas resolves
     CSS correctly; left:-9999px hides it visually. NOT opacity:0 — html2canvas
     respects opacity and would render blank. */
  position:absolute;
  left:-9999px;
  top:0;
  width:816px;
  background:#fff;
  pointer-events:none;
}

.export-page,
.print-page{
  width:816px;
  height:1056px;
  margin:0;
  padding:0;
  background:#fff;
  break-after:page;
  page-break-after:always;
}

.export-page:last-child,
.print-page:last-child{
  break-after:auto;
  page-break-after:auto;
}

.logo-drop.dragover{
  border-color:var(--accent);
  background:#08131e;
}
/* #bulk-print-root screen/print visibility is handled entirely in print.css
   using :has() selectors for precise single-district vs. bulk-print modes. */
.h-outs-note{
  font-size:7.5px;
  color:#78104e;
  line-height:1.55;
  margin-top:14px;
}

/* ─── Light mode (follows OS / browser preference) ───────────────────────────
   All handout styles (.handout *) are white-on-white by design and need
   no changes.  Only the app chrome (header, sidebar, preview bg) adapts.
   ────────────────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {

  :root {
    --s:      #f2f6fa;   /* page / header background */
    --s2:     #e9f0f7;   /* sidebar background */
    --s3:     #dde7f1;   /* hover / active background */
    --border: #bdd0e3;   /* borders */
    --muted:  #527a9a;   /* secondary labels, hints */
    --text:   #1e3a54;   /* primary text */
    --bright: #0c1f30;   /* emphasis text */
    --ok:     #15803d;
    --warn:   #b45309;
    --err:    #b91c1c;
  }

  /* dim-button borders use a hardcoded dark value — replace with light border */
  .tbtn.dim { border-color: var(--border); }

  /* sidebar field inputs */
  .f input,
  .f textarea,
  .f select {
    background: #fff;
    border-color: var(--border);
  }
  .f input:focus,
  .f textarea:focus,
  .f select:focus { background: #fff; }

  /* tile + agency rows */
  .tile-row        { background: #fff; border-color: var(--border); }
  .tile-row input  { background: var(--s); border-color: var(--border); }
  .ag-row input    { background: #fff; border-color: var(--border); }

  /* tile action buttons (Hide/Show/×) — hardcoded dark bg in base style */
  .mbtn { background: var(--s3); border-color: var(--border); color: var(--text); }
  .mbtn:hover { background: var(--s2); }
  .mbtn.hid { border-color: #e0a0a0; color: var(--err); }

  /* logo drop zone */
  .logo-drop { background: #fff; border-color: var(--border); }

  /* preview canvas — slightly darker so the white handout pops */
  .preview         { background: #c8d8e8; }
  .preview-empty h2 { color: #3a5c78; }
  .preview-empty p  { color: var(--muted); }

  /* inline code chip in sidebar hint */
  .inline-code { background: var(--s3); color: var(--bright); }

  /* status pills */
  .pill         { background: var(--s3); }
  .pill.ok      { border-color: #a8d4b8; color: var(--ok);   background: rgba(21,128,61,.1); }
  .pill.warn    { border-color: #e0c070; color: var(--warn); background: rgba(180,83,9,.1);  }
  .pill.err     { border-color: #e0a0a0; color: var(--err);  background: rgba(185,28,28,.1); }

  /* modification notice */
  .mod-notice {
    color: var(--warn);
    background: rgba(180,83,9,.08);
    border-color: rgba(180,83,9,.25);
  }
}
