/* Premier hub - styling from premieritdisposal.co.uk (Inter, navy #072754, sky #00b4f0) with Apple-style surfaces. */
:root {
  --bg: #f5f8fb; --surface: #ffffff; --surface-2: #f0f6fa; --ink: #041531; --ink-2: #33415a; --muted: #6b7686;
  --line: #e2e9f0; --navy: #072754; --navy-2: #04193a; --sky: #00b4f0; --sky-2: #00abed;
  --good: #009252; --good-bg: #e6f6ee; --near: #b77900; --near-bg: #fff4dc; --bad: #c8323a; --bad-bg: #fdecec;
  --none: #9aa4b2; --shadow: 0 1px 2px rgba(4,25,58,.04), 0 8px 28px -12px rgba(4,25,58,.16);
  --shadow-lift: 0 24px 60px -24px rgba(4,25,58,.32); --radius: 20px; --radius-s: 12px;
  --hero: linear-gradient(135deg, #031d44 0%, #002f57 50%, #007cb4 100%);
  --junk: #f26b1d; --btn: #072754;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #020919; --surface: #07162c; --surface-2: #0b1f3b; --ink: #f2f6fa; --ink-2: #c4cfdc; --muted: #8b97a8;
    --line: rgba(255,255,255,.09); --navy: #9fd8ff; --good-bg: rgba(0,146,82,.16); --near-bg: rgba(183,121,0,.18);
    --bad-bg: rgba(200,50,58,.18); --good: #3ccf8e; --near: #f0b43c; --bad: #ff6b72;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px -12px rgba(0,0,0,.6); color-scheme: dark; --btn: #0a6fa8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--sky-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* top bar - frosted, sticky */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a { color: var(--ink-2); padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.on { background: var(--btn); color: #fff; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.who form { margin: 0; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 4px; }
.linkbtn:hover { color: var(--ink); }

/* hero */
.hero { background: var(--hero); color: #fff; padding: 46px 0 88px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,190,250,.35), transparent); pointer-events: none; }
.hero p { color: rgba(255,255,255,.75); margin: 8px 0 0; font-size: 17px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--sky); margin-bottom: 10px; }
.hero .eyebrow { color: #7fdcff; }
.lift { margin-top: -56px; position: relative; z-index: 2; }

/* cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; border: 1px solid var(--line); }
a.card { display: block; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); text-decoration: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); }
.pill.pgr { background: rgba(0,180,240,.12); color: #0077a8; }
.pill.junk { background: rgba(242,107,29,.12); color: #c24f0c; }
.pill.soon { background: var(--surface-2); color: var(--muted); }
.big { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.stat .sub { font-size: 12px; color: var(--muted); }
.planned { opacity: .72; }

/* status dots */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--none); margin-right: 6px; vertical-align: 1px; }
.dot.good { background: var(--good); } .dot.near { background: var(--near); } .dot.behind { background: var(--bad); }
.chip { display: inline-block; min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.chip.good { background: var(--good-bg); color: var(--good); } .chip.near { background: var(--near-bg); color: var(--near); }
.chip.behind { background: var(--bad-bg); color: var(--bad); } .chip.none { color: var(--none); }

/* scorecard */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin: 26px 0 14px; }
.seg { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.seg a { padding: 6px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.seg a.on { background: var(--surface); box-shadow: 0 1px 3px rgba(4,25,58,.12); color: var(--ink); }
.seg a:hover { text-decoration: none; }
.weekpick { display: flex; align-items: center; gap: 6px; }
.weekpick .label { font-weight: 600; padding: 0 6px; }
.round { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); }
.round:hover { text-decoration: none; background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 0 10px 10px; white-space: nowrap; }
td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.outcome td:first-child { font-weight: 600; }
.group-row td { padding-top: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-top: 0; }
.src { font-size: 11px; color: var(--muted); display: block; font-weight: 400; }
.spark { display: block; }
.diff { font-size: 12px; color: var(--muted); display: block; }
.bar-y { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; min-width: 70px; }
.bar-y i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky-2), var(--navy)); border-radius: 999px; }

/* forms and buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font: 600 14px Inter, system-ui, sans-serif;
  background: var(--btn); color: #fff; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn.sky { background: linear-gradient(135deg, #007bad, #00ade4); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; font-size: 13px; }
form.inline { display: inline; margin: 0; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: 15px Inter, system-ui, sans-serif; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 11px 13px; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(0,180,240,.15); }
textarea { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.numgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 16px; }

/* flash */
.flash { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-s); font-weight: 500; }
.flash.good { background: var(--good-bg); color: var(--good); }
.flash.bad { background: var(--bad-bg); color: var(--bad); }

/* entries */
.entry { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; }
.entry .what { flex: 1; min-width: 0; }
.entry .title { font-weight: 600; }
.entry .meta { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.entry .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.kind { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--sky-2); }
.check { font-size: 12px; font-weight: 600; }
.check.found, .check.confirmed { color: var(--good); } .check.not_found { color: var(--bad); }
.check.error { color: var(--near); } .check.pending { color: var(--muted); }

/* login */
.login-shell { min-height: 100vh; display: grid; place-items: center; background: var(--hero); padding: 20px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 24px; padding: 34px 32px; box-shadow: var(--shadow-lift); }
.login-card img { height: 40px; }

footer { color: var(--muted); font-size: 12px; padding: 40px 0 30px; }
section + section { margin-top: 22px; }

@media (max-width: 720px) {
  .grid.two { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .who .name { display: none; }
  .hero { padding: 30px 0 76px; }
  .bar .wrap { gap: 10px; }
  .brand span { display: none; }
  .card { padding: 18px 16px; }
  .hide-s { display: none; }
}
