/* KNOW WHAT YOU'RE REALLY BUYING (2026-11-08), THE WATCH (next-supply-watch.js): maker alerts on Recalls, the decision in the side
   panel, the backup file on a supplier, 503B reliance. On the v8 tokens and the parts that exist: the v8pb rows, the side panel's
   sections and rows, raised pill buttons. Status is an icon and a plain word. No colored edge bars, no nested cards. Dark first. */

/* ---------- Recalls: the maker alerts panel (the v8pb rows the page already draws) ---------- */
#view .swa-pn .swa-av svg { width: 18px; height: 18px; fill: none; stroke: var(--c, var(--v8-warn)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#view .swa-pn .v8pb-av.swa-av { background: color-mix(in srgb, var(--c, var(--v8-warn)) 12%, transparent); }
#view .swa-pn .v8pb-rwho small { font-family: var(--v8-mono); }
#view .swa-pn .v8pb-foot { margin-top: 12px; }
#view .swa-pn button.v8pb-rmain { width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
#view .swa-pn button.v8pb-rmain:focus-visible { outline: 2px solid var(--v8-accent); outline-offset: 4px; border-radius: 8px; }

/* ---------- the side panel: the decision ---------- */
.swa-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.swa-tiles:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.swa-tile { min-height: 56px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--v8-raised); color: var(--v8-t1); box-shadow: var(--v8-hi), 0 0 0 1px var(--v8-hair);
  font: 500 13px/1.3 var(--v8-sans); text-align: left; cursor: pointer; }
.swa-tile:hover { background: color-mix(in srgb, var(--v8-t1) 6%, var(--v8-raised)); }
.swa-tile[aria-checked="true"] { box-shadow: 0 0 0 1.5px var(--v8-accent); background: color-mix(in srgb, var(--v8-accent) 10%, var(--v8-raised)); }
.swa-tile[disabled] { opacity: .45; cursor: not-allowed; }
.swa-tell { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--v8-hair-2); border-bottom: 1px solid var(--v8-hair-2); }
.swa-tell b { display: block; font-weight: 500; font-size: 13px; color: var(--v8-t1); }
.swa-tell small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--v8-t3); }
.swa-tell.off b { color: var(--v8-t3); }
.swa-sw { position: relative; width: 36px; height: 20px; margin-top: 1px; flex: none; padding: 0; border: 0; border-radius: 999px; background: var(--v8-hair); box-shadow: inset 0 0 0 1px var(--v8-hair); cursor: pointer; }
.swa-sw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--v8-t2); transition: transform .15s var(--v8-ease, ease); }
.swa-sw[aria-checked="true"] { background: var(--v8-accent); }
.swa-sw[aria-checked="true"] i { transform: translateX(16px); background: #fff; }
.swa-sw[disabled] { opacity: .45; cursor: not-allowed; }
.swa-note { display: block; margin-top: 12px; }
.swa-note span { display: block; font-size: 12px; color: var(--v8-t3); margin-bottom: 6px; }
.swa-note textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--v8-page); color: var(--v8-t1);
  box-shadow: 0 0 0 1px var(--v8-hair); font: 400 13px/1.45 var(--v8-sans); }
.swa-err { margin: 10px 0 0; font-size: 13px; color: var(--v8-neg); }
.swa-sig { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.swa-sav { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--v8-raised); box-shadow: 0 0 0 1px var(--v8-hair); font: 500 12px/1 var(--v8-mono); color: var(--v8-t2); }
.swa-sig b { display: block; font-weight: 500; font-size: 13px; color: var(--v8-t1); }
.swa-sig small { display: block; margin-top: 2px; font-size: 12px; color: var(--v8-t3); }

/* ---------- the alert's own page: the panel's parts, on the page ---------- */
#view .swa-full { max-width: 760px; }
#view .swa-full .vp-band { margin: 18px 0 0; }
#view .swa-full .vp-ver { padding: 22px 0 2px; }
#view .swa-full .vp-sec { margin: 24px 0 0; }
#view .swa-full .vp-tags { margin-top: 4px; }
#view .swa-full .t-v { color: var(--v8-pos); } #view .swa-full .t-f { color: var(--v8-neg); } #view .swa-full .t-w { color: var(--v8-warn); } #view .swa-full .t-n { color: var(--v8-t3); }
#view .swa-full .vp-i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#view .swa-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- the backup file (a supplier) ---------- */
.swa-cmp em.t-v { color: var(--v8-pos); }
#view .swa-bk { margin-top: 16px; }
#view .swa-bk .swa-bkin { padding: 0 22px 14px; }
.swa-plink { display: block; color: inherit; text-decoration: none; }
.swa-plink:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--v8-hair); }
#view .swa-bk .swa-bkrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--v8-hair-2); text-decoration: none; color: inherit; }
#view .swa-bk .swa-bkrow b { display: block; font-weight: 500; font-size: 14px; color: var(--v8-t1); }
#view .swa-bk .swa-bkrow small { display: block; margin-top: 3px; font: 400 12px/1.4 var(--v8-mono); color: var(--v8-t3); overflow-wrap: anywhere; }
#view .swa-bk .swa-bkst { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; }
#view .swa-bk .swa-bkst.warn { color: var(--v8-warn); } #view .swa-bk .swa-bkst.pos { color: var(--v8-pos); } #view .swa-bk .swa-bkst.neg { color: var(--v8-neg); }
#view .swa-bk .swa-bkst .v8ti { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 503B reliance ---------- */
#view .swa-rel .swa-relrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--v8-hair-2); text-decoration: none; color: inherit; }
#view .swa-rel .swa-relhead { padding: 0 0 10px; border-top: 0; font-size: 13px; color: var(--v8-t3); }
#view .swa-rel b { display: block; font-weight: 500; font-size: 14px; color: var(--v8-t1); }
#view .swa-rel small { display: block; margin-top: 3px; font: 400 12px/1.4 var(--v8-mono); color: var(--v8-t3); }
#view .swa-rel .mono { font-family: var(--v8-mono); font-size: 13px; color: var(--v8-t2); }
#view .swa-rel .swa-bkst { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; white-space: nowrap; }
#view .swa-rel .swa-bkst.warn { color: var(--v8-warn); } #view .swa-rel .swa-bkst.pos { color: var(--v8-pos); }
#view .swa-rel .swa-bkst .v8ti { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 699px) {
  .swa-tiles { grid-template-columns: 1fr; }
  .swa-tiles:has(> :nth-child(4)) { grid-template-columns: 1fr; }
  .swa-tile { min-height: 44px; }
  #view .swa-rel .swa-relrow { grid-template-columns: minmax(0, 1fr) auto; }
  #view .swa-rel .swa-relrow > :nth-child(2), #view .swa-rel .swa-relrow > :nth-child(3) { display: none; }
}
