[hidden] { display: none !important; }
:root {
  /* Rockhaven brand, from rockhavenga.com */
  --paper: #ffffff;
  --panel: #ffffff;
  --card: #f5f5f5;
  --ink: #1e1e1e;
  --muted: #666b70;
  --line: #e1e1e1;
  --blue: #5b7f95;        /* Rockhaven slate: buttons, links, bars */
  --blue-soft: #e8eef2;
  --orange: #ff671f;      /* Rockhaven orange: accents and main actions */
  --orange-dark: #e2561a;
  --good: #2e7d5b;
  --good-soft: #e2f0e9;
  --watch: #9a6512;
  --watch-soft: #f7ecd6;
  --poor: #b3362c;
  --poor-soft: #f8e1de;
  --font: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 2.5rem) .4rem;
}
.brand { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.brand h1 {
  margin: 0; font-size: 1.55rem; font-weight: 800; font-stretch: 78%;
  letter-spacing: -.01em;
}
.org { color: var(--muted); }
.who { color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* quarter strip: the one bold element. Bar height = company average. */
.quarters {
  display: flex; gap: 2px; padding: .6rem clamp(1rem, 4vw, 2.5rem) 0;
  overflow-x: auto; border-bottom: 2px solid var(--ink);
}
.q {
  flex: 1 0 4.6rem; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 7.6rem; padding-top: 1.6rem; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--muted); text-align: left;
}
.q .bar {
  position: relative; background: #c4ccca; margin: 0 4px;
  border-radius: 2px 2px 0 0; transition: background .15s;
}
.q .avg {
  position: absolute; top: -1.35rem; left: 0; font-size: .82rem; font-weight: 600; color: var(--ink);
}
.q .lab { padding: .35rem 4px .45rem; font-size: .82rem; line-height: 1.15; }
.q .lab b { display: block; color: var(--ink); font-weight: 650; font-size: .92rem; }
.q.live .bar { background: repeating-linear-gradient(135deg, #c4ccca 0 6px, #d8dedc 6px 12px); }
.q:hover .bar { background: #a9b4b1; }
.q[aria-current="true"] .bar { background: var(--ink); }
.q[aria-current="true"].live .bar { background: repeating-linear-gradient(135deg, var(--ink) 0 6px, #46525b 6px 12px); }
.q[aria-current="true"] .lab { background: var(--ink); color: #dfe5e3; }
.q[aria-current="true"] .lab b { color: #fff; }

main { padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 3rem; max-width: 1320px; }

/* headline numbers: one sentence, not a card grid */
.headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 2.2rem; margin-bottom: .6rem; }
.headline .big { font-size: 3rem; font-weight: 800; font-stretch: 80%; line-height: 1; }
.headline .big small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: .4rem; font-stretch: 100%; }
.headline .stat { color: var(--muted); }
.headline .stat b { color: var(--ink); font-weight: 650; }
.delta-up { color: var(--good); }
.delta-down { color: var(--poor); }

.notice {
  margin: .4rem 0 1rem; padding: .7rem .9rem; max-width: 70ch;
  background: var(--blue-soft); border-left: 3px solid var(--blue);
}

.tools { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; margin: 1rem 0 .7rem; }
.search input {
  font: inherit; padding: .5rem .7rem; width: min(22rem, 80vw);
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
}
.check { color: var(--muted); display: flex; gap: .4rem; align-items: center; }

/* board */
.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.board { border-collapse: collapse; width: 100%; min-width: 980px; }
.board th, .board td { padding: .55rem .6rem; text-align: right; border-bottom: 1px solid #e6eae8; }
.board th:nth-child(1), .board td:nth-child(1),
.board th:nth-child(2), .board td:nth-child(2) { text-align: left; }
.board thead th {
  position: sticky; top: 0; background: var(--panel); z-index: 1;
  font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.2;
  vertical-align: bottom; border-bottom: 1px solid var(--line);
}
.board thead button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit;
}
.board thead th[aria-sort] button { color: var(--ink); }
.board thead th[aria-sort="descending"] button::after { content: " ▾"; }
.board thead th[aria-sort="ascending"] button::after { content: " ▴"; }
.board tbody tr { cursor: pointer; }
.board tbody tr:hover { background: #f4f6f5; }
.board td.rank { color: var(--muted); width: 2.5rem; }
.board td.name { font-weight: 600; }
.board td.name .tag { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: .35rem; }
.board td.total { font-weight: 750; font-size: 1.02rem; }
.board td.blank { color: #aab3b0; }
.s-good { color: var(--ink); }
.board td.total.s-good, .mini td.s-good { color: var(--good); }
.s-watch { color: var(--watch); background: var(--watch-soft); }
.s-poor { color: var(--poor); background: var(--poor-soft); font-weight: 650; }
.board td.change { font-size: .88rem; }
.empty { color: var(--muted); }
.footnote { color: var(--muted); font-size: .85rem; max-width: 72ch; margin-top: 1rem; }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(29, 39, 48, .28); z-index: 9; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 10;
  background: var(--panel); border-left: 2px solid var(--ink);
  transform: translateX(105%); transition: transform .22s ease-out; overflow-y: auto;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.open { transform: none; }
.drawerinner { padding: 1.3rem 1.4rem 2rem; position: relative; }
.close {
  position: absolute; top: .7rem; right: .8rem; font-size: 1.6rem; line-height: 1;
  border: 0; background: none; cursor: pointer; color: var(--muted); padding: .2rem .5rem;
}
.drawer h2 { margin: 0 2rem .15rem 0; font-size: 1.5rem; font-weight: 800; font-stretch: 80%; }
.drawer .meta { color: var(--muted); font-size: .88rem; margin: 0 0 1rem; }
.drawer h3 { font-size: 1rem; margin: 1.6rem 0 .5rem; }
.trend { width: 100%; height: auto; display: block; }
.trend .axis { stroke: var(--line); }
.trend .line { fill: none; stroke: var(--ink); stroke-width: 2; }
.trend .dot { fill: var(--ink); }
.trend text { font-size: 10px; fill: var(--muted); font-family: var(--font); }
.mini { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mini th, .mini td { padding: .35rem .4rem; border-bottom: 1px solid #e6eae8; text-align: right; }
.mini th:first-child, .mini td:first-child { text-align: left; }
.mini th { color: var(--muted); font-weight: 600; }
.list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.list li { padding: .45rem 0; border-bottom: 1px solid #e6eae8; }
.list .sub { color: var(--muted); font-size: .84rem; }
.fail { color: var(--poor); font-weight: 650; }

@media (max-width: 640px) {
  .top { flex-direction: column; gap: .2rem; }
  .headline .big { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .q .bar { transition: none; }
}

/* section nav */
.views { display: flex; gap: 1.4rem; padding: .2rem clamp(1rem, 4vw, 2.5rem) 0; }
.views a {
  color: var(--muted); text-decoration: none; padding: .35rem 0; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.views a:hover { color: var(--ink); }
.views a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
#view-rate, #view-tracker, #view-review { border-top: 2px solid var(--ink); }

.pagetitle { font-size: 1.9rem; font-weight: 800; font-stretch: 80%; margin: 0; line-height: 1.1; }
.lede { max-width: 70ch; color: var(--ink); margin: .7rem 0 1rem; }
.meta { color: var(--muted); }

.ratehead { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; }
.seg button { font: inherit; border: 0; background: var(--panel); padding: .35rem .9rem; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.ratebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; justify-content: space-between;
  padding: .7rem .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; max-width: 1000px;
}
.progress { margin: 0; }
.primary {
  font: inherit; font-weight: 650; background: var(--blue); color: #fff; border: 0;
  border-radius: 4px; padding: .5rem 1rem; cursor: pointer;
}
.primary:hover { background: #184d8f; }

.rategrid { min-width: 560px; max-width: 1000px; }
.rategrid th, .rategrid td { text-align: left; }
.rategrid tbody tr { cursor: default; }
.rategrid input.score {
  font: inherit; width: 5.5rem; padding: .35rem .5rem; text-align: right;
  border: 1px solid var(--line); border-radius: 4px; background: #fbfcfb;
}
.rategrid input.score:focus { border-color: var(--blue); background: #fff; }
.tablewrap:has(.rategrid) { max-width: 1000px; }
.status { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.status.ok { color: var(--good); }
.status.err { color: var(--poor); font-weight: 600; }

.qtools { max-width: 1000px; margin: 0 0 1rem; display: grid; gap: .8rem; }
.field { display: grid; gap: .3rem; }
.field span:first-child { font-weight: 600; }
.qtools textarea {
  font: inherit; width: 100%; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 4px; resize: vertical;
}
.paste { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .6rem .9rem; }
.paste summary { cursor: pointer; font-weight: 600; }
.paste textarea { margin: .4rem 0 .6rem; font-family: var(--font); max-width: 100%; display: block; }

.dept { margin-top: 1.6rem; max-width: 760px; }
.dept h3 { margin: 0; font-size: 1.15rem; }
.dept .meta { margin: .1rem 0 .5rem; }
.track td.s-good { color: var(--good); }

.mynote { max-width: 70ch; margin: -.3rem 0 1rem; }

/* review queue */
.views .count {
  display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .2rem;
  background: var(--poor); color: #fff; border-radius: 1rem; font-size: .75rem; text-align: center;
}
.rqlist { margin-top: 1rem; max-width: 900px; display: grid; gap: 1rem; }
.rqcard { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 4px; padding: 1rem 1.1rem; }
.rqtop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; }
.rqtop h3 { margin: 0; font-size: 1.12rem; }
.pill { padding: .1rem .55rem; border-radius: 1rem; font-size: .85rem; font-weight: 650; }
.pill.s-good { background: var(--good-soft); color: var(--good); }
.rqcard .meta { margin: .35rem 0; }
.rqmissed { margin: .2rem 0 .6rem; color: var(--poor); font-weight: 600; }
.rqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem 1rem; margin: .7rem 0; }
.rqvendors { grid-column: 1 / -1; display: grid; gap: .5rem; max-width: 460px; }
.rqfield { display: grid; gap: .2rem; font-size: .88rem; color: var(--muted); }
.rqfield input, .rqfield select, .rqfield textarea {
  font: inherit; color: var(--ink); padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 4px; background: #fbfcfb; width: 100%;
}
.rqactions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .8rem; }
.secondary { font: inherit; background: none; border: 1px solid var(--line); border-radius: 4px; padding: .5rem 1rem; cursor: pointer; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; justify-self: start; text-decoration: underline; }
.rqrow { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.rqdone { padding: .6rem 0; }
.rqtabs { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.rqquote { margin: .5rem 0; padding: .5rem .8rem; background: #f4f6f5; border-left: 3px solid var(--line); white-space: pre-wrap; }
.pill.s-watch { background: var(--watch-soft); color: var(--watch); }
a.small { font-size: .8rem; margin-left: .3rem; }
.rategrid input.score:disabled { background: #eef1ef; color: var(--muted); }
.primary:disabled { opacity: .5; cursor: default; }

/* category guide */
.guide { max-width: 1000px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .7rem 1rem; margin: 0 0 1rem; }
.guide h3 { margin: 0 0 .4rem; font-size: 1rem; }
.guide dl { margin: 0; display: grid; grid-template-columns: minmax(10rem, max-content) 1fr; gap: .35rem 1.2rem; }
.guide dt { font-weight: 650; }
.guide dd { margin: 0; color: var(--ink); }
.catguide { margin-top: 1rem; }
.catguide summary { cursor: pointer; font-weight: 650; }
.catguide dl { margin-top: .6rem; }
@media (max-width: 640px) { .guide dl { grid-template-columns: 1fr; } .guide dd { margin-bottom: .4rem; } }

/* dashboard */
.viewbar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; margin: 1rem 0; }
.viewbar .secondary { margin-left: auto; }
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 1100px; }
@media (max-width: 760px) { .dash { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 4px; padding: .8rem 1rem 1rem; }
.panel h3 { margin: 0 0 .5rem; font-size: 1.02rem; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable td { padding: .32rem .35rem; border-bottom: 1px solid #e6eae8; }
.ptable tr { cursor: pointer; }
.ptable tr:hover { background: #f4f6f5; }
.ptable .pn { color: var(--muted); width: 1.8rem; }
.ptable .pname { font-weight: 600; }
.ptable .pval { text-align: right; font-weight: 700; width: 4.5rem; border-radius: 3px; }
.pval.s-good { color: var(--good); background: var(--good-soft); }
.chg-up { color: var(--good); }
.chg-down { color: var(--poor); }
.legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; color: var(--muted); margin: 0; }
.legend span.item { display: inline-flex; align-items: center; gap: .4rem; }
.swatch { display: inline-block; width: .9rem; height: .9rem; border-radius: 2px; }
.swatch.s-good { background: var(--good-soft); border: 1px solid var(--good); }
.swatch.s-watch { background: var(--watch-soft); border: 1px solid var(--watch); }
.swatch.s-poor { background: var(--poor-soft); border: 1px solid var(--poor); }

@media print {
  .views, .quarters, .viewbar, .tools, .who, .notice, .drawer, .scrim, .catguide, .footnote { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .panel { break-inside: avoid; border-color: #999; }
  .dash { grid-template-columns: 1fr 1fr; }
}

.drawer details.tracker { margin: .3rem 0 .6rem; }
.drawer details.tracker summary { cursor: pointer; font-weight: 600; }


/* ================= Rockhaven look ================= */
body { font-size: 15.5px; }
.top {
  align-items: center; padding: 1rem clamp(1rem, 4vw, 2.5rem) .6rem;
  border-top: 6px solid #000;
}
.brand { align-items: center; gap: 1rem; }
.logo { display: block; height: 42px; width: auto; }
.wordmark { font-family: var(--serif); font-weight: 300; color: var(--blue); font-size: 1.35rem; letter-spacing: .02em; white-space: nowrap; }
.wordmark .r { font-style: italic; font-size: 1.9rem; line-height: 1; }
.brand .divider { width: 1px; align-self: stretch; background: var(--line); }
.brand h1 { font-family: var(--serif); font-weight: 400; font-stretch: normal; font-size: 1.35rem; letter-spacing: 0; }
.org { display: none; }
.who { font-size: .88rem; }

.views { gap: 1.6rem; border-bottom: 1px solid var(--orange); }
.views a { font-weight: 600; font-size: .95rem; color: #3d4247; padding: .55rem 0 .5rem; border-bottom-width: 3px; }
.views a:hover { color: var(--orange); }
.views a[aria-current="page"] { color: #000; border-bottom-color: var(--orange); }
#view-rate, #view-tracker, #view-review { border-top: 0; }

.quarters { border-bottom: 0; padding-top: 1.1rem; background: var(--card); }
.q .bar { background: #c9d5dc; border-radius: 3px 3px 0 0; }
.q:hover .bar { background: #a9bcc8; }
.q.live .bar { background: repeating-linear-gradient(135deg, #c9d5dc 0 6px, #e3eaee 6px 12px); }
.q[aria-current="true"] .bar { background: var(--blue); }
.q[aria-current="true"].live .bar { background: repeating-linear-gradient(135deg, var(--blue) 0 6px, #86a1b2 6px 12px); }
.q[aria-current="true"] .lab { background: var(--blue); color: #e8eef2; border-radius: 0 0 3px 3px; }
.q .lab b { font-weight: 700; }

.headline .big, .pagetitle, .drawer h2 {
  font-family: var(--serif); font-weight: 300; font-stretch: normal; letter-spacing: -.01em;
}
.headline .big small { font-family: var(--font); }
.pagetitle { font-size: 2.1rem; }
.drawer h2 { font-size: 1.6rem; }
h3, .panel h3, .guide h3, .dept h3, .rqtop h3, .drawer h3 { font-family: var(--serif); font-weight: 400; }

/* buttons: Rockhaven pills */
.primary {
  background: var(--orange); border-radius: 999px; padding: .55rem 1.3rem; font-weight: 700;
}
.primary:hover { background: var(--orange-dark); }
.secondary {
  border-radius: 999px; border: 1px solid var(--blue); color: var(--blue); background: #fff; padding: .5rem 1.2rem; font-weight: 600;
}
.secondary:hover { background: var(--blue-soft); }
.seg { border: 0; border-radius: 999px; background: var(--card); padding: 3px; gap: 2px; }
.seg button { border-radius: 999px; background: transparent; color: #3d4247; font-weight: 600; padding: .38rem 1rem; }
.seg button + button { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* cards: light grey, soft corners, like the website */
.panel, .guide, .ratebar, .rqcard, .paste, .catguide {
  background: var(--card); border: 0; border-radius: 6px;
}
.panel { border-top: 0; padding: 1rem 1.1rem 1.1rem; }
.panel h3 { padding-bottom: .45rem; border-bottom: 1px solid var(--orange); margin-bottom: .4rem; }
.ptable td { border-bottom-color: #e6e6e6; }
.rqcard { border-left: 4px solid var(--blue); }
.notice { background: #fff4ee; border-left-color: var(--orange); border-radius: 0 6px 6px 0; }

.tablewrap { border-color: var(--line); border-radius: 6px; }
.board thead th { background: var(--card); color: #3d4247; }
.board tbody tr:hover, .ptable tr:hover { background: #f8f3ef; }

input[type="search"], .rqfield input, .rqfield select, .rqfield textarea, .rategrid input.score, .qtools textarea {
  border-radius: 6px; border-color: #d6d6d6; background: #fff;
}
.search input { border-radius: 999px; padding-left: 1rem; }

.drawer { border-left: 4px solid var(--orange); }
.trend .line { stroke: var(--blue); }
.trend .dot { fill: var(--blue); }
.views .count { background: var(--orange); }

@media (max-width: 640px) {
  .brand .divider { display: none; }
  .brand { gap: .2rem .8rem; }
  .logo { height: 34px; }
  .top { align-items: flex-start; }
  .views { overflow-x: auto; gap: 1.2rem; white-space: nowrap; scrollbar-width: none; }
  .views a { flex: 0 0 auto; }
}

/* vendor emails */
.qpick { font: inherit; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--blue); color: var(--blue); background: #fff; }
.wording textarea { width: 100%; font: inherit; padding: .6rem; border: 1px solid #d6d6d6; border-radius: 6px; margin: .4rem 0; }
.wording summary { cursor: pointer; font-family: var(--serif); }
.mailgrid { min-width: 760px; }
.mailgrid th, .mailgrid td { text-align: left; }
.mailgrid tbody tr { cursor: default; }
.mailgrid input.contacts { font: inherit; width: 100%; min-width: 260px; padding: .35rem .5rem; border: 1px solid #d6d6d6; border-radius: 6px; }
.mailpreview { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.drawer:has(.mailpreview) { width: min(1000px, 100%); }
#view-emails .ratebar { margin-bottom: 1rem; }

/* insights */
#view-insights { max-width: 1100px; }
.inav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .6rem 0 1rem; }
.inav a { color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.inav a:hover { border-bottom-color: var(--orange); }
.isec { margin: 2rem 0 1rem; scroll-margin-top: 1rem; }
.isec > h3 { font-size: 1.3rem; margin: 0 0 .3rem; padding-bottom: .4rem; border-bottom: 1px solid var(--orange); }
.isec > .meta { max-width: 80ch; margin: .4rem 0 .8rem; }
.isec h4 { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; margin: 1.3rem 0 .5rem; }
.itable { min-width: 560px; }
.itable th, .itable td { text-align: left; }
.itable tbody tr { cursor: default; }
.itable td.dim, .itable td.dim .vlink { color: var(--muted); }
.vlink { font-weight: 600; text-decoration: none; color: var(--ink); text-align: left; }
.vlink:hover { color: var(--orange); text-decoration: underline; }
.watch { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.wcard { background: var(--card); border-radius: 6px; padding: .8rem 1rem; border-left: 4px solid var(--orange); }
.wtop { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.wcard ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.pill.s-poor { background: var(--poor-soft); color: var(--poor); }
.bars { display: grid; gap: .35rem; max-width: 760px; }
.bar { display: grid; grid-template-columns: 12rem 1fr 13rem; gap: .7rem; align-items: center; font-size: .92rem; }
.bt { background: var(--card); border-radius: 3px; height: .9rem; overflow: hidden; }
.bf { display: block; height: 100%; background: var(--blue); }
.bn { color: var(--muted); }
.tradegrp { background: var(--card); border-radius: 6px; margin: .4rem 0; padding: .55rem .9rem; max-width: 760px; }
.tradegrp summary { cursor: pointer; display: flex; gap: 1rem; align-items: baseline; }
.tradegrp .tname { font-weight: 650; min-width: 11rem; }
.tradegrp .pill { margin-left: auto; }
.tradegrp .tablewrap { margin-top: .6rem; }
@media (max-width: 640px) { .bar { grid-template-columns: 1fr; gap: .15rem; } }

.notecell { min-width: 12rem; }
.rnote { font: inherit; font-size: .9rem; width: 100%; min-width: 14rem; padding: .35rem .5rem; border: 1px solid #d6d6d6; border-radius: 6px; resize: vertical; }
.rategrid { max-width: 1100px; }
.tablewrap:has(.rategrid) { max-width: 1100px; }

.adjust input.score { width: 5rem; font: inherit; padding: .25rem .4rem; border: 1px solid #d6d6d6; border-radius: 6px; text-align: right; }
.adjust tr.removed td { text-decoration: line-through; color: var(--muted); }
.adjust .sub { color: var(--muted); font-size: .8rem; }
.adjust th, .adjust td { text-align: left !important; vertical-align: top; }

/* no-shows tab */
#view-noshows { max-width: 1200px; }
.nsgrid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 1.2rem; align-items: start; }
.nsvendors { position: sticky; top: .5rem; max-height: calc(100vh - 1rem); overflow-y: auto; }
.nsvendors .pn { text-align: right; white-space: nowrap; width: auto; }
.nslist h3 { margin: 0 0 .4rem; padding-bottom: .4rem; border-bottom: 1px solid var(--orange); }
.nslist h3 + .list, .nslist h3 + p { margin-top: 0; }
.nslist h3:not(:first-child) { margin-top: 1.6rem; }
.nsitems li { padding: .6rem 0; }
.nstop { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.nsdate { font-weight: 700; min-width: 7.5rem; }
.nsnote { white-space: pre-wrap; margin-top: .15rem; }
@media (max-width: 800px) { .nsgrid { grid-template-columns: 1fr; } .nsvendors { position: static; max-height: none; } }
@media print { #view-noshows .tools, #view-noshows .qpick, #view-noshows .secondary { display: none !important; } .nsvendors { position: static; max-height: none; } }

#view-tracker .ratebar { margin: .4rem 0 1rem; max-width: 900px; }
.linkbtn.small { font-size: .8rem; margin-left: .3rem; }

/* pike invoices */
#view-pike { max-width: 1100px; }
.pikebar { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: end; margin: 1rem 0; }
.pikebar .rqfield input { min-width: 11rem; }
.pikegrid { min-width: 720px; }
.pikegrid th, .pikegrid td { text-align: left; }
.pikegrid tbody tr { cursor: default; }
.pikegrid tr.paid td { color: var(--muted); }

.tradeedit { display: flex; align-items: end; gap: .8rem; margin: .8rem 0; }
.tradeedit .rqfield input { min-width: 16rem; }

/* ---------- category weights ---------- */
.wform { background: var(--card, #f5f5f5); border-radius: 6px; padding: 1rem 1.2rem; max-width: 44rem; }
.wstart { font-weight: 600; display: inline-flex; gap: .5rem; align-items: center; }
.wstart select { font: inherit; padding: .3rem .5rem; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .5rem 1.5rem; margin: .8rem 0; }
.wrow { display: flex; align-items: center; gap: .5rem; }
.wlabel { flex: 1; }
.wrow input { width: 4.5rem; font: inherit; padding: .3rem .4rem; text-align: right; }
.wsum { font-weight: 700; margin: .3rem 0 .8rem; }
.wsum.s-good { color: var(--good); }
.wsum.s-poor { color: var(--poor); }
.wbtns { display: flex; flex-wrap: wrap; gap: .6rem; }
.wpreview { margin-top: 1.5rem; max-width: 44rem; }
.wtable td:not(.name), .wtable th:not(:first-child) { text-align: right; }
.whist { margin: .5rem 0 0 1rem; }
@media (max-width: 520px) { .wform { padding: .8rem; } .wgrid { grid-template-columns: 1fr; } }
