/* =========================================================
   FULL ELDIUM — unified CSS (cleaned)
   - Shared tokens + reset + layout
   - Buttons / forms
   - Watchlist
   - Planning Checker
   - Landing: Hero + Tools (final “3 cards” version)
   - Toasts
   - Add-alert UI + table polish
   ========================================================= */

/* ------------------------------
   Tokens
--------------------------------*/
:root {
  --paper: #f6f3ee;
  --paper-soft: rgba(255, 255, 255, 0.66);
  --paper-glass: rgba(255, 255, 255, 0.48);

  --ink: #0e141b;
  --ink-muted: rgba(14, 20, 27, 0.58);
  --ink-faint: rgba(14, 20, 27, 0.42);

  --accent: #1b3a40;

  --line: rgba(14, 20, 27, 0.10);
  --line-soft: rgba(14, 20, 27, 0.06);

  --glow-a: rgba(27, 58, 64, 0.18);
  --glow-b: rgba(130, 96, 255, 0.12);

  --h1: clamp(2.35rem, 4vw, 3.55rem);
  --h2: clamp(1.15rem, 2.2vw, 1.75rem);
  --lead: 1.06rem;

  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  /* default radius policy: mostly square, but allow components to opt in */
  --radius: 0px;
}

/* ------------------------------
   Reset / Base
--------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: var(--radius);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "liga" 1, "kern" 1;
  letter-spacing: 0.001em;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.16em;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(14, 20, 27, 0.34);
}

/* ------------------------------
   Ambient background
--------------------------------*/
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(920px 540px at 18% 12%, var(--glow-a), transparent 60%),
    radial-gradient(1020px 580px at 82% 14%, var(--glow-b), transparent 62%),
    radial-gradient(900px 520px at 50% 92%, rgba(224, 210, 186, 0.22), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 46%);
}

/* =========================================================
   BUTTONS — shared
   ========================================================= */
.btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  cursor: pointer;
  user-select: none;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;

  background: #111827;
  border: 1px solid #111827;
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 3px 3px rgba(17, 24, 39, 0.25);

  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn:hover,
.primary-btn:hover {
  background: #0b1220;
  border-color: #0b1220;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.32);
}

.btn:focus-visible,
.primary-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(27, 58, 64, 0.28),
    0 8px 22px rgba(17, 24, 39, 0.22);
}

.btn:active,
.primary-btn:active {
  transform: translateY(0);
}

.btn:disabled,
.primary-btn:disabled {
  background: rgba(17, 24, 39, 0.35);
  border-color: rgba(17, 24, 39, 0.35);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Variants */
.btn--primary {
  background: rgba(14, 20, 27, 0.92);
  border-color: rgba(14, 20, 27, 0.92);
  color: rgba(255, 255, 255, 0.96);
}
.btn--primary:hover {
  background: rgba(14, 20, 27, 1);
  border-color: rgba(14, 20, 27, 1);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-muted);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.38);
  border-color: transparent;
  box-shadow: none;
}

.btn--wide { width: 100%; }

/* Table-level small button */
.table-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 12px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  font-size: 12px;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.table-btn:hover { background: rgba(0,0,0,0.04); }
.table-btn--muted { color: rgba(0,0,0,0.65); }

/* Special: watchlist create alert button (inherits primary styles) */
#watchlist-create-alert-btn.watchlist-submit-btn {
  /* Nothing needed if you can add class="primary-btn" in HTML.
     If you cannot, keep this minimal alias. */
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  cursor: pointer;
  user-select: none;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;

  background: #111827;
  border: 1px solid #111827;
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 3px 3px rgba(17, 24, 39, 0.25);

  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
#watchlist-create-alert-btn.watchlist-submit-btn:hover:not(:disabled) {
  background: #0b1220;
  border-color: #0b1220;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.32);
}
#watchlist-create-alert-btn.watchlist-submit-btn:focus-visible:not(:disabled) {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(27, 58, 64, 0.28),
    0 8px 22px rgba(17, 24, 39, 0.22);
}
#watchlist-create-alert-btn.watchlist-submit-btn:disabled {
  background: rgba(17, 24, 39, 0.35);
  border-color: rgba(17, 24, 39, 0.35);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  cursor: not-allowed;
}

/* =========================================================
   FORMS — shared
   ========================================================= */
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 14px 12px;
  font-size: 0.95rem;
  border: none;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  font-family: var(--font-sans);
}

input::placeholder,
textarea::placeholder { color: var(--ink-faint); }

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-bottom-color: rgba(27, 58, 64, 0.85);
  background: rgba(255, 255, 255, 0.54);
}

.hint,
.results-count {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-top: 8px;
  opacity: 0.85;
}

.error,
.success {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.45);
  border-left: 2px solid;
}

.error {
  border-left-color: rgba(163, 51, 51, 0.85);
  background: rgba(163, 51, 51, 0.06);
  color: rgba(120, 25, 25, 1);
}

.success {
  border-left-color: rgba(28, 120, 66, 0.75);
  background: rgba(28, 120, 66, 0.06);
  color: rgba(16, 86, 45, 1);
}

.divider {
  height: 1px;
  background: var(--line-soft);
  border: none;
  margin: 20px 0;
}

/* =========================================================
   SITE LAYOUT + NAV + FOOTER
   ========================================================= */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(246, 243, 238, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 20, 27, 0.06);
}

.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.site-brand-title {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.site-brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(14, 20, 27, 0.55);
  font-weight: 650;
}

.site-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav .btn {
  height: 40px;
  padding: 0 14px;
  font-size: 0.70rem;
  letter-spacing: 0.22em;
}

.site-footer {
  border-top: 1px solid rgba(14, 20, 27, 0.06);
  background: transparent;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 18px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-muted {
  color: rgba(14, 20, 27, 0.55);
  font-size: 0.86rem;
}

/* Mobile nav tidy */
@media (max-width: 640px) {
  .site-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .site-nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}

/* =========================================================
   SHARED PAGE WRAPPERS
   ========================================================= */
.page,
.planning-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page { padding: 36px 18px 60px; }
.planning-shell { padding: 28px 18px 64px; }

.card,
.pc-card {
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
}

.card { padding: 28px 28px 32px; }
.pc-card { padding: 22px 22px 26px; }

.pc-card--primary { background: rgba(255, 255, 255, 0.70); }

/* =========================================================
   WATCHLIST SYSTEM
   ========================================================= */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 650;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-top: 8px;
}

.badge {
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.38);
  padding: 10px 12px;
  white-space: nowrap;
}

.watchlist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.watchlist-text {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 70ch;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.results-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.results-count {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0;
}

/* Table wrapper */
.watch-table-wrapper { margin-top: 14px; overflow-x: auto; }
.watch-table-wrapper--boxed {
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  padding: 12px;
}

.watch-table-scroll { overflow-y: auto; border: 1px solid rgba(0, 0, 0, 0.06) }
.watch-table-scroll--fixed5 { max-height: 330px; overflow: auto}

.watch-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.watch-table thead { background: rgba(255, 255, 255, 0.30); }

.watch-table th,
.watch-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.watch-table thead th {
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 650;
  border-bottom: 1px solid rgba(0,0,0,0.14);
}

.watch-table tbody tr { transition: background 120ms ease; }
.watch-table tbody tr:hover { background: rgba(0,0,0,0.03); }

.watch-table td.watch-details-col { position: relative; }
.watch-table td.watch-details-col::after {
  content: "›";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 120ms ease;
  color: rgba(0,0,0,0.35);
}
.watch-table tbody tr:hover td.watch-details-col::after { opacity: 1; }

/* Status pill (single source of truth) */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.status-active { color: rgba(16, 86, 45, 1); }
.status-inactive { color: rgba(71, 85, 105, 1); }

#watch-map {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.30);
}

/* Address link polish */
.watch-link {
  display: inline-block;
  font-weight: 650;
  text-decoration: none;
}
.watch-link:hover { text-decoration: underline; }

.watch-postcode {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

/* =========================================================
   PLANNING CHECKER SYSTEM
   ========================================================= */
.pc-header { margin-bottom: 26px; }
.pc-title { max-width: 80ch; }

.pc-h1 {
  font-family: var(--font-serif);
  font-size: var(--h1);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
}

.pc-lede {
  margin: 10px 0 0;
  font-size: var(--lead);
  line-height: 1.65;
  color: var(--ink-muted);
}

.pc-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: start;
}

.pc-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 84px;
  align-self: start;
}

.pc-main { min-width: 0; }
.pc-card--results { background: var(--paper-soft); }

.pc-card-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.pc-h2 {
  font-family: var(--font-serif);
  margin: 0;
  font-size: var(--h2);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pc-sub {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pc-badge {
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.38);
  padding: 10px 12px;
  white-space: nowrap;
}
.pc-badge--muted { opacity: 0.85; }

.pc-form { margin-top: 10px; }

.pc-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.pc-search-btn { height: 44px; }

.pc-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.pc-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 18px;
}

.pc-pill {
  flex: 1 1 240px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.38);
  padding: 10px 12px;
  min-width: 0;
}
.pc-pill--wide { flex: 2 1 320px; }

.pc-pill-k {
  display: block;
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}

.pc-pill-v {
  display: block;
  font-size: 0.93rem;
  color: rgba(14, 20, 27, 0.88);
  font-weight: 600;
}

.pc-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pc-results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
}

.pc-results { list-style: none; margin: 0; padding: 0; }

.pc-result {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.pc-result-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: rgba(14, 20, 27, 0.92);
}

.pc-result-title { font-weight: 600; line-height: 1.45; }
.pc-result-cta { opacity: 0.40; font-size: 0.95rem; }

.pc-result-meta {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.pc-empty { padding: 22px 4px 10px; }

.pc-empty-kicker {
  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.pc-empty-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.pc-empty-text { color: var(--ink-muted); line-height: 1.65; }

.pagination {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-link,
.page-current {
  padding: 6px 10px;
  font-size: 0.70rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--ink-muted);
}

.page-link:hover {
  color: rgba(14, 20, 27, 0.86);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(14, 20, 27, 0.28);
}

.page-current {
  color: rgba(14, 20, 27, 0.92);
  border-bottom: 1px solid rgba(14, 20, 27, 0.65);
}

/* =========================================================
   LANDING — HERO
   ========================================================= */
.eld-hero-bleed {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: clamp(520px, 78vh, 860px);
  overflow: hidden;
  border-bottom: 1px solid rgba(14, 20, 27, 0.10);
  background: #ddd;
  isolation: isolate;
}

.eld-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.03);
}

.eld-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(235, 226, 214, 0.65) 0%,
      rgba(235, 226, 214, 0.18) 42%,
      rgba(14, 20, 27, 0.00) 64%,
      rgba(14, 20, 27, 0.34) 84%,
      rgba(14, 20, 27, 0.62) 100%),
    radial-gradient(900px 520px at 18% 12%, rgba(27, 58, 64, 0.18), transparent 62%),
    radial-gradient(1000px 560px at 82% 12%, rgba(130, 96, 255, 0.14), transparent 62%);
  z-index: 1;
}

.eld-hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;

  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 44px;

  display: grid;
  grid-template-rows: 1fr auto;
}

.eld-hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: end;
}

.eld-hero-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.90;
  font-size: clamp(3.2rem, 7.4vw, 6.2rem);
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.eld-hero-sub {
  justify-self: end;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.55;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

/* =========================================================
   LANDING — TOOLS (FINAL: 3 cards grid)
   ========================================================= */
.eld-tools-wrap {
  position: relative;
  z-index: 1;
  min-height: clamp(520px, 78vh, 860px);
  padding: 72px 18px 96px;
  border-top: 1px solid rgba(14,20,27,0.06);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(27,58,64,0.08), transparent 60%),
    radial-gradient(900px 420px at 65% 0%, rgba(130,96,255,0.06), transparent 65%),
    var(--paper, #f6f3ee);
}

.eld-tools-head,
.eld-tools-list {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Stronger Tools header */
.eld-tools-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 12px 2px 22px;
  border: none;
}
.eld-tools-head::before {
  content:"";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 1px;
  background: rgba(14,20,27,0.08);
}

.eld-tools-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: rgba(14,20,27,0.92);
  margin: 0;
  padding-top: 14px;
}
.eld-tools-title::before {
  content:"";
  position:absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: rgba(14,20,27,0.75);
  opacity: 0.9;
}

.eld-tools-sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 0.70rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;

  padding: 10px 12px;
  border: 1px solid rgba(14,20,27,0.10);
  background: rgba(255,255,255,0.45);
  color: rgba(14,20,27,0.60);

  box-shadow: 0 12px 30px rgba(14,20,27,0.06);
}
.eld-tools-sub::before {
  content:"";
  width: 6px;
  height: 6px;
  background: rgba(14,20,27,0.65);
  opacity: 0.55;
}

/* Cards grid */
.eld-tools-list {
  margin-top: 24px;
  border: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

.eld-tool-row {
  position: relative;
  overflow: hidden;
  min-height: 320px;

  padding: 22px 22px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 55px rgba(14,20,27,0.14);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  color: rgba(255,255,255,0.92);
  text-decoration: none;
  isolation: isolate;

  transition: transform 140ms ease, box-shadow 160ms ease;
}

.eld-tool-row::before {
  content:"";
  position:absolute;
  inset:0;
  z-index: 0;
  transform: scale(1.05);
  filter: blur(10px) saturate(1.05) contrast(1.02);
  opacity: 0.95;
  transition: filter 160ms ease;
}

.eld-tool-row::after {
  content:"";
  position:absolute;
  inset:0;
  z-index: 1;
  background:
    radial-gradient(900px 360px at 20% 18%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(14,20,27,0.20), rgba(14,20,27,0.72));
}

.eld-tool-row:nth-child(1)::before{
  background:
    radial-gradient(700px 420px at 20% 25%, rgba(255,120,60,0.55), transparent 60%),
    radial-gradient(700px 520px at 80% 20%, rgba(130,96,255,0.35), transparent 62%),
    linear-gradient(120deg, rgba(10,14,18,1), rgba(25,35,44,1));
}
.eld-tool-row:nth-child(2)::before{
  background:
    radial-gradient(820px 520px at 30% 20%, rgba(27,58,64,0.55), transparent 60%),
    radial-gradient(720px 520px at 75% 35%, rgba(240,220,190,0.26), transparent 62%),
    linear-gradient(120deg, rgba(10,14,18,1), rgba(20,26,34,1));
}
.eld-tool-row:nth-child(3)::before{
  background:
    radial-gradient(760px 520px at 25% 25%, rgba(200,70,70,0.42), transparent 62%),
    radial-gradient(760px 520px at 80% 35%, rgba(80,160,200,0.34), transparent 62%),
    linear-gradient(120deg, rgba(10,14,18,1), rgba(22,30,40,1));
}

.eld-tool-row:hover{
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(14,20,27,0.18);
}
.eld-tool-row:hover::before{
  filter: blur(8px) saturate(1.12) contrast(1.04);
}

.eld-tool-main,
.eld-tool-cta { position: relative; z-index: 2; }

.eld-tool-name{
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.05;
  color: rgba(255,255,255,0.96);
  margin-bottom: 10px;
}

.eld-tool-desc{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.80);
  max-width: 46ch;
}

.eld-tool-cta{
  align-self: flex-end;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 750;
  color: rgba(255,255,255,0.82);
  opacity: 0.95;
}

/* =========================================================
   TOAST + UNDO TOAST
   ========================================================= */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  background: rgba(14, 20, 27, 0.95);
  color: rgba(255, 255, 255, 0.94);
  z-index: 9999;
}
.toast--show { opacity: 1; transform: translateY(0); }

.undo-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: 420px;
  padding: 12px 14px;
  background: rgba(14, 20, 27, 0.95);
  color: rgba(255, 255, 255, 0.92);
  display: none;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.undo-toast.show { display: flex; }

.undo-toast .undo-msg { font-size: 0.86rem; line-height: 1.35; }

.undo-toast .undo-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.undo-toast .undo-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.70rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.undo-toast .undo-btn:hover { background: rgba(255, 255, 255, 0.16); }

.undo-toast .undo-timer {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.70);
}

/* =========================================================
   Add alert UI + helpers
   ========================================================= */
.add-alert-wrap { margin-top: 10px; }

.add-alert-row {
  display: grid;
  grid-template-columns: 260px 1fr 160px;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}

.field label { display: block; margin-bottom: 6px; }

/* merged postcode control */
.postcode-merge {
  display: grid;
  grid-template-columns: 160px 1fr;
  border: 1px solid rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background: #fff;
}
.postcode-merge select,
.postcode-merge input {
  border: 0;
  width: 100%;
  padding: 10px 12px;
  outline: none;
  background: transparent;
}
.postcode-merge .postcode-left {
  border-right: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(0, 0, 0, 0.02);
}

.add-alert-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header-postcode-preview {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
  display: none;
}

.postcode-merge select:disabled {
  opacity: 0.55;
  color: rgba(0,0,0,0.55);
  cursor: not-allowed;
}
select option[disabled] { color: rgba(0,0,0,0.55); }

.form-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}
.form-feedback--error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.18);
}
.form-feedback--success {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

/* secondary destructive action */
.btn-stop {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.75);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.btn-stop:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.35);
  color: rgba(0, 0, 0, 0.9);
}
.btn-stop:active { transform: translateY(1px); }
.btn-stop:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}
.watch-table tr .btn-stop { opacity: 0.65; }
.watch-table tr:hover .btn-stop { opacity: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pc-side { position: static; }
  .eld-tools-list { grid-template-columns: 1fr; }
  .eld-tool-row { min-height: 260px; }
}

@media (max-width: 860px) {
  .eld-hero-bottom { grid-template-columns: 1fr; }
  .eld-hero-sub { justify-self: start; max-width: 70ch; }
  .eld-hero-title { line-height: 0.96; }
}

@media (max-width: 900px) {
  .add-alert-row { grid-template-columns: 1fr; }
  .add-alert .primary-btn { width: 100%; }
}

@media (max-width: 640px) {
  .pc-search-row { grid-template-columns: 1fr; }
  .btn, .primary-btn { width: 100%; }
  .watchlist-top { flex-direction: column; align-items: flex-start; }

  .eld-tools-wrap { padding: 54px 18px 70px; }
  .eld-tools-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 18px;
  }
  .eld-tools-sub { padding: 9px 11px; }
}

/* =========================================
   Retail-style filtering + reader card UX
   No rounded corners.
   CLEANED + CONSOLIDATED (no conflicting table/grid hacks)
   ========================================= */

/* ===== Shell / card ===== */
.ux-shell{
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 18px 42px;
}

.ux-card{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Top header */
.ux-top{ padding: 20px 18px; }

.ux-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}

.ux-eyebrow{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}

.ux-title{
  font-size: 40px;
  line-height: 1.1;
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ux-meta{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.ux-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  font-size: 12px;
  letter-spacing: .02em;
}

.ux-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px; /* dot only */
  background: #bbb;
}
.ux-dot--on{ background: #2e7d32; }
.ux-dot--off{ background: #9e9e9e; }

.ux-borough{
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

/* Toolbar */
.ux-toolbar{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);

  display: flex;
  align-items: center;
  gap: 12px;

  /* stop left jumping when right changes */
  justify-content: flex-start;

  /* allow wrapping on small screens without chaos */
  flex-wrap: wrap;
}

.ux-toolbar__left{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;

  /* left takes remaining space so it stays anchored */
  flex: 1 1 auto;
  min-width: 260px;
}

.ux-toolbar__right{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;

  /* right stays "right" without affecting left width */
  flex: 0 0 auto;
  margin-left: auto;
}

/* --- Filter button styling (eldium-ish pills) --- */
/* Assumes you already have .btn.btn--ghost */
.ux-toolbar .btn.btn--ghost{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.75);
  padding: 8px 12px;
  line-height: 1;
  white-space: nowrap;

  /* smoothness */
  transition: transform 0.08s ease, background 0.12s ease, border-color 0.12s ease;
}

.ux-toolbar .btn.btn--ghost:hover{
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.16);
}

.ux-toolbar .btn.btn--ghost:active{
  transform: translateY(1px);
}

/* Active state (you used .is-active in the template) */
.ux-toolbar .btn.btn--ghost.is-active{
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.22);
}

/* Optional: make the right side feel like a grouped control */
.ux-toolbar__right{
  padding: 6px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Tighten spacing a bit inside the group */
.ux-toolbar__right .btn.btn--ghost{
  margin: 0;
}

/* Mobile: stack nicely */
@media (max-width: 640px){
  .ux-toolbar{
    align-items: stretch;
  }
  .ux-toolbar__left,
  .ux-toolbar__right{
    width: 100%;
  }
  .ux-toolbar__right{
    margin-left: 0;
    justify-content: flex-start;
  }
}

.ux-muted{
  font-size: 12px;
  opacity: .62;
  line-height: 1.4;
}

/* Saved property */
.ux-focus{
  margin-top: 14px;
  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.55);
}

.ux-focus__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
}

.ux-sectionlabel{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}

.ux-focus__addr{
  margin-top: 8px;
  font-weight: 600;
}

.ux-divider{
  height: 1px;
  background: rgba(0,0,0,0.06);
}

/* Main layout: filters + results */
.ux-main{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 18px;
}

@media (max-width: 980px){
  .ux-main{ grid-template-columns: 1fr; }
}

/* Filters (Mr Porter-ish) */
.ux-filters{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.60);
  padding: 14px;
  position: sticky;
  top: 16px;
  align-self: start;
}

@media (max-width: 980px){
  .ux-filters{ position: static; }
}

.ux-filters__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 12px;
}

.ux-filters__title{
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
  font-weight: 600;
}

.ux-filtergroup{
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ux-filtergroup:last-child{ border-bottom: 0; }

.ux-filterlabel{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  font-weight: 600;
  margin-bottom: 10px;
}

.ux-input{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.015);
  padding: 10px 10px;
  font-size: 13px;
  outline: none;
}
.ux-input:focus{
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.22);
}

.ux-check{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  padding: 6px 0;
  user-select: none;
}
.ux-check input{ transform: translateY(1px); }

/* Results head */
.ux-results__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}

.ux-sectiontitle{
  font-size: 18px;
  font-weight: 600;
}

.ux-count{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}

/* Reader card (center, feels like opening a product page) */
.ux-reader{
  display: none;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  margin-bottom: 12px;
}
.ux-reader--open{ display:block; }

.ux-reader__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ux-reader__title{
  font-weight: 600;
  opacity: .85;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ux-reader__actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}

.ux-reader__body{ padding: 12px; }

.ux-readergrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 980px){
  .ux-readergrid{ grid-template-columns: 1fr; }
}

/* ===== Table container ===== */
.ux-tablewrap{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
}

.ux-table-scroll{
  max-height: 560px;
  overflow: auto;
}

/* ===== Base table ===== */
.ux-table{
  width: 100%;
  border-collapse: collapse;
}

.ux-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 12px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .82;
}

.ux-tr td{
  padding: 14px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}

.ux-td--muted{
  font-size: 12px;
  opacity: .65;
  line-height: 1.5;
}

.ux-td--right{ text-align: right; }

.ux-tag{
  display:inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.10);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  background: rgba(0,0,0,0.02);
}
.ux-tag--exact{ background: rgba(46,125,50,0.08); }
.ux-tag--likely{ background: rgba(255,193,7,0.12); }
.ux-tag--postcode{ background: rgba(0,0,0,0.03); }

.ux-risk{ font-weight: 600; }

/* ===== Actions (single source of truth) ===== */
.ux-actions{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

/* Buttons: “Details” hero */
.ux-btn-hero{
  border: 1px solid rgba(0,0,0,0.24);
  background: rgba(0,0,0,0.05);
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.ux-btn-hero:hover{ background: rgba(0,0,0,0.08); }

.ux-btn-subtle{ opacity: .75; }
.ux-btn-subtle:hover{ opacity: 1; }

/* Primary action (top + reader close) */
.ux-btn-primary{
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.03);
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.ux-btn-primary:hover{ background: rgba(0,0,0,0.06); }

/* Action column: make actions feel important and aligned */
.ux-btn-link{
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .9;
}
.ux-btn-link:hover{ opacity: 1; }

/* ===== Metrics/blocks inside reader ===== */
.ux-metric{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  padding: 10px 12px;
}

.ux-metric__value{
  margin-top: 6px;
  font-weight: 600;
}

.ux-block{
  grid-column: 1 / -1;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  padding: 10px 12px;
}

.ux-block__label{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 8px;
  font-weight: 600;
}

.ux-sev{
  letter-spacing: .12em;
  opacity: .75;
  font-size: 12px;
}

.ux-pagination{
  padding: 14px 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
}

/* =========================
   MODAL (polished + reliable)
   ========================= */

.ux-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.ux-modal--open{ display: block; }

.ux-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.40);
}

.ux-modal__panel{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.98);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
  border-radius: 0 !important;
}

/* Bar feels “app-like” and stays visible */
.ux-modal__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.98);
}

.ux-modal__title{
  font-weight: 600;
  font-size: 14px;
  opacity: .92;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.ux-modal__actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}

.ux-modal__content{
  padding: 16px;
  overflow: auto;
  max-height: calc(100vh - 140px);
}

/* Content: grid that actually reads well */
.ux-modalgrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px){
  .ux-modalgrid{ grid-template-columns: 1fr; }
}

/* Blocks look like “cards” */
.ux-modalgrid .ux-block,
.ux-modalgrid .ux-metric{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  padding: 12px 12px;
  border-radius: 0 !important;
}

/* Let big blocks span full width */
.ux-modalgrid .ux-block{
  grid-column: 1 / -1;
}

.ux-block__label{
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 10px;
  font-weight: 600;
}

.ux-modal__big{
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ux-modal__sub{
  margin-top: 6px;
  opacity: .78;
  line-height: 1.4;
}

/* Lists inside modal */
.ux-modal__content .ux-list{
  margin: 10px 0 0 18px;
}

.ux-modal__content li{
  margin: 6px 0;
}

/* Prevent background scroll while modal open */
body.ux-noscroll{ overflow: hidden; }

/* ===== Retail list layout (replaces table for matches) ===== */
/* NOTE: uses .ux-resultslist (not .ux-list) to avoid collisions */
.ux-listhead{
  display: grid;
  grid-template-columns: 1fr 360px 210px;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-bottom: 0;
  background: rgba(255,255,255,0.80);
}

.ux-listhead__left,
.ux-listhead__actions{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .8;
}

.ux-listhead__band{
  display: grid;
  grid-template-columns: 140px 140px 80px;
  gap: 10px;
  justify-content: start;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .8;
}

.ux-listwrap{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
  max-height: 560px;
  overflow: auto;
}

/* renamed container */
.ux-resultslist{
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ux-item{
  display: grid;
  grid-template-columns: 1fr 360px 210px;
  gap: 16px;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  outline: none;
}
.ux-item:last-child{ border-bottom: 0; }

.ux-item__left{ min-width: 0; }

.ux-address{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.ux-item__secondary{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ux-metaitem{
  font-size: 12px;
  opacity: .55;
  line-height: 1.4;
}
.ux-metaitem--title{ opacity: .72; }

.ux-item__band{
  display: grid;
  grid-template-columns: 140px 140px 80px;
  gap: 10px;
  align-content: end;
}

.ux-bandtext{
  font-size: 12px;
  opacity: .70;
  letter-spacing: .02em;
}
.ux-bandtext--strong{
  opacity: .85;
  font-weight: 600;
}

.ux-item__actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

/* Hover + focus affordance (subtle, non-invasive) */
.ux-item:hover{ background: rgba(0,0,0,0.02); }
.ux-item:focus{
  background: rgba(0,0,0,0.03);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}

/* ===== App cell (table version): two-line, readable ===== */
.ux-appcell{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ux-appcell__addr{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ux-appcell__title{
  font-size: 12px;
  opacity: .70;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Subtle hover + focus on rows */
.ux-tr{ outline: none; }
.ux-tr:hover{ background: rgba(0,0,0,0.02); }
.ux-tr:focus{
  background: rgba(0,0,0,0.03);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
  outline: none;
}

/* ===== Table readability + predictable columns ===== */
.ux-table--apps{
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

/* Optional col widths if you use <colgroup> */
.ux-col-app{ width: 62%; }
.ux-col-rel{ width: 12%; }
.ux-col-seen{ width: 14%; }
.ux-col-risk{ width: 8%; }
.ux-col-act{ width: 16%; }

.ux-th-right{ text-align: right; }

/* ===== Absolutely no rounded corners in this layer ===== */
.ux-card, .ux-focus, .ux-filters, .ux-input, .ux-chip, .ux-tag, .ux-borough,
.ux-tablewrap, .ux-reader, .ux-metric, .ux-block, .ux-modal__panel,
.ux-listwrap, .ux-listhead, .ux-item{
  border-radius: 0 !important;
}

/* Stacked table: only Application + Actions columns */
.ux-table--stacked{
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.ux-table--stacked .ux-col-app{ width: auto; }
.ux-table--stacked .ux-col-act{ width: 210px; }

/* Meta band under title */
.ux-appcell__meta{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.ux-appmeta{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ux-appmeta__k{
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
  white-space: nowrap;
}

.ux-appmeta__v{
  font-size: 12px;
  opacity: .85;
  white-space: nowrap;
}

/* Make tags sit nicely in the band */
.ux-appcell__meta .ux-tag{
  padding: 4px 8px;
  font-size: 11px;
}

/* Actions stay vertically stacked + right-aligned */
.ux-td--right{ text-align: right; }
.ux-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.ux-results{
  min-width: 0; /* CRITICAL: allows children to shrink */
}

.ux-tablewrap{
  width: 100%;
  overflow: hidden; /* prevent sideways bleed */
}

.ux-table-scroll{
  width: 100%;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden; /* IMPORTANT */
}

.ux-table--apps{
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

/* Application column = flexible */
.ux-col-app{
  width: auto;
}

/* Actions column = fixed, predictable */
.ux-col-act{
  width: 200px; /* 180–220px sweet spot */
}

.ux-appcell{
  min-width: 0;
}

.ux-appcell__addr,
.ux-appcell__title{
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ux-actions{
  max-width: 200px;
  align-items: flex-end;
}

.ux-actions .btn{
  width: 100%;
}

/* Queue Toolbar */
.ux-toolbar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.ux-toolbar__left {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ux-toolbar__right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Queue Filters */
.queue-filters {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group .ux-input {
  width: 80px;
}

/* Queue Actions */
.queue-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.queue-actions__buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.queue-actions__tip {
  margin-left: 0.5rem;
}

.queue-actions__select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* Queue List */
.queue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Queue Item */
.queue-item {
  padding: 1rem;
}

.queue-item__content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.queue-item__main {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.queue-item__main input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.queue-item__details {
  min-width: 0;
  flex: 1;
}

.queue-item__property {
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item__watch-info {
  margin: 0 0 0.75rem 0;
}

.queue-item__application {
  margin-top: 0.75rem;
}

.queue-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.25rem 0;
}

.queue-item__metadata {
  margin: 0.5rem 0 0 0;
}

.queue-item__notice {
  margin-top: 0.5rem;
}

.queue-item__risk {
  margin-top: 0.5rem;
}

.queue-item__risk-reasons {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.queue-item__risk-reasons li {
  margin-bottom: 0.25rem;
}

.queue-item__risk-reasons li::before {
  content: "• ";
  margin-right: 0.25rem;
}

/* Queue Item Actions */
.queue-item__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}

/* Queue Pagination */
.queue-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .ux-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ux-toolbar__left,
  .ux-toolbar__right {
    width: 100%;
    justify-content: flex-start;
  }

  .queue-filters {
    width: 100%;
  }

  .filter-group {
    flex: 1;
  }

  .filter-group .ux-input {
    width: 100%;
  }

  .queue-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .queue-actions__buttons {
    width: 100%;
  }

  .queue-actions__buttons .btn {
    flex: 1;
  }

  .queue-actions__select-all {
    margin-left: 0;
  }

  .queue-item__content {
    flex-direction: column;
  }

  .queue-item__actions {
    width: 100%;
    align-items: stretch;
  }

  .queue-item__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .queue-actions__buttons {
    flex-direction: column;
  }

  .queue-actions__buttons .btn {
    width: 100%;
  }
}

/* Empty State - Eldium Style */
.queue-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  min-height: 400px;
}

.queue-empty__content {
  max-width: 480px;
  text-align: center;
}

.queue-empty__visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.queue-empty__circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.queue-empty__circle--1 {
  width: 120px;
  height: 120px;
  background: rgba(99, 102, 241, 0.1);
  animation-delay: 0s;
}

.queue-empty__circle--2 {
  width: 100px;
  height: 100px;
  background: rgba(99, 102, 241, 0.15);
  animation-delay: 1s;
}

.queue-empty__circle--3 {
  width: 80px;
  height: 80px;
  background: rgba(99, 102, 241, 0.2);
  animation-delay: 2s;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.queue-empty__icon {
  position: relative;
  width: 48px;
  height: 48px;
  color: #6366f1;
  z-index: 1;
}

.queue-empty__text {
  margin-bottom: 2rem;
}

.queue-empty__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.025em;
}

.queue-empty__description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.queue-empty__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.queue-empty__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
}

.queue-empty__actions .btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.queue-empty__actions .btn:hover svg {
  opacity: 1;
}

/* Responsive */
@media (max-width: 640px) {
  .queue-empty {
    padding: 4rem 1.5rem;
    min-height: 350px;
  }

  .queue-empty__visual {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
  }

  .queue-empty__circle--1 {
    width: 100px;
    height: 100px;
  }

  .queue-empty__circle--2 {
    width: 80px;
    height: 80px;
  }

  .queue-empty__circle--3 {
    width: 60px;
    height: 60px;
  }

  .queue-empty__icon {
    width: 40px;
    height: 40px;
  }

  .queue-empty__title {
    font-size: 1.25rem;
  }

  .queue-empty__description {
    font-size: 0.875rem;
  }

  .queue-empty__actions {
    flex-direction: column;
    width: 100%;
  }

  .queue-empty__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .queue-empty__circle {
    animation: none;
    opacity: 0.1;
  }
}

/* Portfolio Styles */

.ux-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #0f172a;
}

.property-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.property-title {
  font-weight: 700;
}

.postcode-title {
  font-weight: 600;
}

.latest-info, 
.highest-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.latest-title, 
.highest-score {
  font-weight: 600;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.ux-empty {
  text-align: center;
  padding: 2rem;
  border: 1px dashed #cbd5e0;
  background-color: #f9fafb;
}

.ux-empty h2 {
  font-size: 1.5rem;
  color: #1e293b;
}

.ux-empty p {
  color: #475569;
}

/* Portfolio summary stats — compact, modest */
.section-header {
  margin: 24px 0 12px 0;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}

.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 0 0 24px 0;
  padding: 0;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  text-align: left;
  transition: border-color 0.15s ease;
}

.stat-card:hover {
  border-color: #d1d5db;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
  color: #111827;
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Accent colors — left border only, no background */
.stat-card--alert {
  border-left: 2px solid #f59e0b;
}

.stat-card--alert .stat-value {
  color: #d97706;
}

.stat-card--warning {
  border-left: 2px solid #3b82f6;
}

.stat-card--warning .stat-value {
  color: #2563eb;
}

.stat-card--risk-high {
  border-left: 2px solid #ef4444;
}

.stat-card--risk-high .stat-value {
  color: #dc2626;
}

.stat-card--risk-medium {
  border-left: 2px solid #f59e0b;
}

.stat-card--risk-medium .stat-value {
  color: #d97706;
}

.stat-card--risk-low {
  border-left: 2px solid #10b981;
}

.stat-card--risk-low .stat-value {
  color: #059669;
}

/* Responsive */
@media (max-width: 768px) {
  .portfolio-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .stat-card {
    padding: 10px 12px;
  }
  
  .stat-value {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .portfolio-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Note preview in portfolio table */
.watch-note-cell {
  max-width: 200px;
}

.note-preview {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-preview:hover {
  color: #111827;
}

.btn--active {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
  /* Optional: underline or different colour to show current page */
  text-decoration: underline;
}

/* Dropdown wrapper */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown__trigger {
  background: none;
  border: none;
  cursor: pointer;
}

/* Hidden by default */
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 100;
}

.nav-dropdown__menu.is-open {
  display: block;
}

.nav-dropdown__item {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-dropdown__item:hover {
  background: #f5f5f5;
}

.nav-dropdown__item.btn--active {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

/* Highlight the trigger button when on a tools page */
.nav-dropdown__trigger.tools-active {
  opacity: 0.7;
  text-decoration: underline;
}

/* ── Page shell ── */
.pf {
  padding: 40px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Top bar ── */
.pf-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.pf-heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.pf-subhead {
  font-size: 13px;
  color: var(--color-muted, #999);
  letter-spacing: 0.02em;
}

/* ── Summary stat pills ── */
.pf-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e8e5e0);
  padding: 10px 18px;
  min-width: 80px;
  text-align: center;
}

.pf-stat-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pf-stat-val--alert { color: #dc2626; }
.pf-stat-val--warn  { color: #d97706; }
.pf-stat-val--ok    { color: #16a34a; }

.pf-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted, #999);
  margin-top: 3px;
}

/* ── Filter tabs ── */
.pf-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border, #e8e5e0);
}

.pf-tab {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-muted, #999);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}

.pf-tab.is-active,
.pf-tab:hover {
  color: var(--color-text, #111);
  border-bottom-color: var(--color-text, #111);
}

/* ── Card grid ── */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ── Property card ── */
.pf-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e8e5e0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: pf-rise 0.35s ease both;
}

.pf-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.pf-card:nth-child(1)  { animation-delay: 0ms; }
.pf-card:nth-child(2)  { animation-delay: 50ms; }
.pf-card:nth-child(3)  { animation-delay: 100ms; }
.pf-card:nth-child(4)  { animation-delay: 150ms; }
.pf-card:nth-child(5)  { animation-delay: 200ms; }
.pf-card:nth-child(6)  { animation-delay: 250ms; }
.pf-card:nth-child(7)  { animation-delay: 300ms; }
.pf-card:nth-child(8)  { animation-delay: 350ms; }
.pf-card:nth-child(9)  { animation-delay: 400ms; }
.pf-card:nth-child(10) { animation-delay: 450ms; }

@keyframes pf-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Colour strip */
.pf-card-strip { height: 4px; width: 100%; }
.pf-card-strip--active  { background: linear-gradient(90deg, #22c55e, #86efac); }
.pf-card-strip--stopped { background: var(--color-border, #e8e5e0); }
.pf-card-strip--alert   { background: linear-gradient(90deg, #dc2626, #f87171); }

/* Card body */
.pf-card-body {
  padding: 18px 20px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header row */
.pf-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pf-card-address {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}

.pf-postcode-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--color-bg, #f5f4f1);
  border: 1px solid var(--color-border, #e8e5e0);
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Meta */
.pf-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--color-muted, #999);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pf-dot--active  { background: #22c55e; box-shadow: 0 0 0 2px #bbf7d0; }
.pf-dot--stopped { background: #d1d5db; }

/* Needs-analysis banner */
.pf-needs-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fefce8;
  border: 1px solid #fde68a;
  padding: 8px 12px;
}

.pf-needs-text  { font-size: 12px; color: #92400e; font-weight: 600; }
.pf-needs-count {
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

/* Risk widget */
.pf-risk {
  background: var(--color-bg, #f5f4f1);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pf-risk-score {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  min-width: 52px;
}
.pf-risk-score--high { color: #dc2626; }
.pf-risk-score--mid  { color: #d97706; }
.pf-risk-score--low  { color: #16a34a; }
.pf-risk-score--none { color: #d1d5db; font-size: 20px; }

.pf-risk-right { flex: 1; min-width: 0; }

.pf-risk-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted, #999);
  margin-bottom: 4px;
}

.pf-risk-title {
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-text, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--color-border, #e8e5e0);
  margin-top: 6px;
  overflow: hidden;
}

.pf-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #22c55e 0%, #f59e0b 50%, #dc2626 100%);
  background-size: 200px 100%;
}

/* Latest */
.pf-latest { display: flex; flex-direction: column; gap: 3px; }

.pf-latest-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted, #999);
}

.pf-latest-title {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text, #111);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-latest-date { font-size: 11px; color: var(--color-muted, #aaa); }

/* Footer */
.pf-card-footer {
  display: flex;
  gap: 6px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--color-border, #e8e5e0);
}

.pf-btn {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 10px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pf-btn--primary { background: var(--color-text, #111); color: #fff; }
.pf-btn--primary:hover { background: #333; }

.pf-btn--ghost {
  background: transparent;
  color: var(--color-text, #444);
  border: 1px solid var(--color-border, #e0dbd4);
}
.pf-btn--ghost:hover { border-color: #999; color: #111; }

.pf-btn--warn {
  background: #FEF2F2;
  color: #dc2626;
  border: 1px solid #fecaca;
  flex: 0;
  padding: 9px 12px;
}
.pf-btn--warn:hover { background: #fee2e2; }

.pf-btn--portal {
  background: transparent;
  color: var(--color-muted, #888);
  border: 1px solid var(--color-border, #e8e5e0);
  flex: 0;
  padding: 9px 14px;
}
.pf-btn--portal:hover { color: #111; border-color: #999; }

/* Empty */
.pf-empty {
  text-align: center;
  padding: 100px 32px;
  color: var(--color-muted, #999);
}
.pf-empty-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.25; }
.pf-empty h2   { font-size: 20px; font-weight: 600; color: var(--color-text, #333); margin: 0 0 6px; }
.pf-empty p    { font-size: 13px; }

/* Responsive */
@media (max-width: 640px) {
  .pf { padding: 24px 16px 60px; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-stats { gap: 6px; }
  .pf-stat  { padding: 8px 12px; min-width: 64px; }
}

/* =========================================================
   WATCH LIST ADDITIONS
   Delete everything from "ALERTS / WATCH LIST" onward
   in style.css and paste this instead.
   ========================================================= */

.watch-page .portfolio-summary,
.watch-page .section-header { display: none; }

/* ── Ticker ── */
.al-ticker {
  display: flex;
  align-items: stretch;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.al-ticker-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 20px;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.al-ticker-item:last-child { border-right: none; }

.al-ticker-item::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2px;
  background: var(--line);
}
.al-ticker-item--ok::before    { background: #22c55e; }
.al-ticker-item--warn::before  { background: #f59e0b; }
.al-ticker-item--alert::before { background: #dc2626; }
.al-ticker-item--info::before  { background: var(--accent, #1b3a40); }

.al-ticker-val {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.al-ticker-item--ok .al-ticker-val    { color: #16a34a; }
.al-ticker-item--warn .al-ticker-val  { color: #d97706; }
.al-ticker-item--alert .al-ticker-val { color: #dc2626; }

.al-ticker-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
  white-space: nowrap;
}

@media (max-width: 580px) {
  .al-ticker { flex-wrap: wrap; }
  .al-ticker-item { flex: 1 1 45%; border-bottom: 1px solid var(--line-soft); }
}

/* ── Add alert form ── */
.al-form-wrap {
  background: rgba(246,243,238,0.60);
  border: 1px solid var(--line-soft);
  padding: 20px;
  margin-top: 12px;
}

/*
  4 columns: council | outward | inward | button
  Council gets 2fr so it reads fully, outward/inward fixed, button auto.
*/
.al-form-row {
  display: grid;
  grid-template-columns: 2fr 180px 1fr auto;
  gap: 12px;
  align-items: end;
}

.al-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.al-form-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* Suppress native select arrow on all form selects */
.al-form-wrap select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.al-submit-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  cursor: pointer;
  background: var(--accent, #1b3a40);
  color: rgba(255,255,255,0.92);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
  transition: opacity 0.15s, transform 0.1s;
  flex-shrink: 0;
  align-self: end;
}
.al-submit-btn:hover:not(:disabled) { opacity: 0.85; transform: translateY(-1px); }
.al-submit-btn:disabled {
  background: var(--line);
  color: var(--ink-faint);
  cursor: not-allowed;
}

.al-postcode-preview {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 8px;
}
.al-postcode-preview strong { color: var(--ink); }

.al-address-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 700px) {
  .al-form-row { grid-template-columns: 1fr 1fr; }
  .al-submit-btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .al-form-row { grid-template-columns: 1fr; }
}

/* ── Tabs ── */
.al-tabs {
  display: flex;
  margin: 14px 0 12px;
  border-bottom: 1px solid var(--line-soft);
}

.al-tab {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.al-tab.is-active,
.al-tab:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── Table ── */
.watch-table-wrapper--boxed { border: none; background: transparent; padding: 0; }

.watch-table-scroll {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.60);
}
.watch-table-scroll--fixed5 { max-height: 380px; }

.watch-table thead { position: sticky; top: 0; z-index: 2; }

.watch-table thead th {
  padding: 9px 12px;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  background: rgba(246,243,238,0.97);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.watch-table thead th.js-sort { cursor: pointer; user-select: none; }
.watch-table thead th.js-sort:hover { color: var(--ink); }

.watch-table tbody tr {
  border-left: 3px solid transparent;
  transition: background 0.1s ease, opacity 0.12s ease;
}
.watch-table tbody tr[data-filter-active="1"] { border-left-color: #22c55e; }
.watch-table tbody tr[data-filter-active="0"] { border-left-color: var(--line-soft); opacity: 0.52; }
.watch-table tbody tr:hover { background: rgba(255,255,255,0.90); opacity: 1 !important; }

.watch-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 0.875rem;
}
.watch-table tbody tr:last-child td { border-bottom: none; }

.status-pill { font-size: 0.65rem; letter-spacing: 0.14em; padding: 4px 9px; border-radius: 999px; }
.status-active   { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.28); color: #15803d; }
.status-inactive { background: rgba(0,0,0,0.03); border-color: var(--line); color: var(--ink-faint); }

.table-btn {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.70);
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: background 0.12s, border-color 0.12s;
}
.table-btn:hover { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.22); text-decoration: none; }
.table-btn--muted { color: var(--ink-faint); border-color: var(--line-soft); }
.table-btn--muted:hover { color: #dc2626; border-color: rgba(220,38,38,0.28); background: rgba(220,38,38,0.04); }

#watch-map { border: 1px solid var(--line); margin-top: 4px; }

.results-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn--secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn--secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn--small {
  padding: 6px 12px;
  font-size: 13px;
}

/* Inline compact alert form */
.add-alert-inline {
  margin: 0;
}

.add-alert-inline-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: nowrap; /* Changed from wrap */
  width: 100%;
}

.field-inline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0; /* Postcode field stays fixed width */
}

.field-inline.field-expand {
  flex: 1; /* Address field expands */
  min-width: 0; /* Allow shrinking */
}

.input-compact {
  height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  min-width: 180px;
  width: 100%; /* Fill parent */
}

/* Rest stays the same */
.input-compact:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-hint-inline {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}

.field-hint-inline.detected {
  color: #059669;
  font-weight: 500;
}

.field-hint-inline.not-supported {
  color: #dc2626;
  font-weight: 500;
}

.btn--compact {
  height: 38px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  background: #1e293b;
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0; /* Button stays fixed width */
}

.btn--compact:hover:not(:disabled) {
  background: #0f172a;
}

.btn--compact:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .add-alert-inline-row {
    flex-direction: column;
    flex-wrap: wrap;
  }
  
  .field-inline,
  .field-inline.field-expand {
    width: 100%;
    flex: none;
  }
  
  .input-compact {
    width: 100%;
    min-width: unset;
  }
  
  .btn--compact {
    width: 100%;
  }
}

/* ============================================
   PORTFOLIO PANEL - Stats + Actions
   ============================================ */
.portfolio-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin: 24px 0;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.portfolio-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: #111827;
  font-feature-settings: 'tnum';
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.stat-item--warn .stat-value {
  color: #d97706;
}

.stat-item--alert .stat-value {
  color: #dc2626;
}

.portfolio-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
  background: none;
}

.action-btn--secondary {
  color: #374151;
  background: white;
  border: 1px solid #d1d5db;
}

.action-btn--secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* ============================================
   ADD ALERT PANEL
   ============================================ */
.add-alert-panel {
  margin: 24px 0;
  padding: 24px;
  background: #f9fafb;  /* Changed from white */
  border: 1px solid #e5e7eb;
}

.add-alert-header {
  margin-bottom: 20px;
}

.add-alert-header h3 {
  font-size: 15px;  /* was 16px */
  font-weight: 500;  /* was 600 */
  color: #111827;
  margin: 0 0 4px 0;
}

.add-alert-header p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.add-alert-fields {
  display: flex;
  gap: 12px;
  align-items: flex-start;  /* Changed from flex-end */
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.field-group--expand {
  flex: 1;
  min-width: 0;
}

.field-label {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-input {
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  color: #111827;
  background: white;
  border: 1px solid #d1d5db;
  transition: all 0.15s;
  width: 100%;
}

.field-status {
  font-size: 12px;
  font-weight: 500;
  min-height: 18px;
  display: block;
}

.field-status.detected {
  color: #059669;
}

.field-status.not-supported {
  color: #dc2626;
}

.submit-btn {
  height: 40px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: #111827;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 24px;  /* Align with inputs that have label */
}

.submit-btn:hover:not(:disabled) {
  background: #000000;
}

.submit-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ============================================
   COVERAGE MODAL
   ============================================ */
.coverage-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.coverage-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.coverage-modal-content {
  position: relative;
  background: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

/* Scroll fade indicator */
.coverage-modal-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.coverage-modal-content.has-scroll::after {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.coverage-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.coverage-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.coverage-modal-close {
  padding: 6px;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}

.coverage-modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.coverage-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 100px);
}

.coverage-intro {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 24px;
}

.coverage-intro strong {
  color: #111827;
  font-weight: 600;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.coverage-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 16px;
  transition: all 0.15s;
}

.coverage-card:hover {
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.coverage-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.coverage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: #111827;
  color: white;
  font-size: 11px;
  font-weight: 600;
}

.coverage-card-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.coverage-postcodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.postcode-chip {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  background: white;
  border: 1px solid #e5e7eb;
  font-family: 'SF Mono', Monaco, monospace;
}

.coverage-footer {
  text-align: center;
  padding: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.coverage-footer p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #6b7280;
}

.coverage-request-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  background: white;
  border: 1px solid #d1d5db;
  text-decoration: none;
  transition: all 0.15s;
}

.coverage-request-btn:hover {
  background: #111827;
  color: white;
  border-color: #111827;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .portfolio-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .portfolio-stats {
    gap: 24px;
  }
  
  .add-alert-fields {
    flex-direction: column;
    align-items: stretch;
  }
  
  .field-group {
    width: 100%;
  }
  
  .submit-btn {
    width: 100%;
  }
  
  .coverage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portfolio-stats {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .portfolio-actions {
    width: 100%;
  }
  
  .action-btn {
    flex: 1;
    justify-content: center;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.15s;
}

.back-link:hover {
  color: #111827;
  text-decoration: none;
}

.back-link svg {
  transition: transform 0.15s;
}

.back-link:hover svg {
  transform: translateX(-2px);
}

/* ============================================
   WATCH DETAIL PAGE — watch_detail.css
   Extends the shared design system (style.css).
   All classes scoped to wd-* prefix.
   ============================================ */

/* ── Shell ── */
.wd-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

/* ── Page header ── */
.wd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 6px 0 24px;
  flex-wrap: wrap;
}

.wd-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.wd-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
  margin: 0 0 12px;
}

.wd-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.wd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

.wd-badge--mono {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  background: #111827;
  color: white;
  border-color: #111827;
}

.wd-badge--ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.wd-badge--muted {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.wd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
}

.wd-dot--on {
  background: #22c55e;
  box-shadow: 0 0 0 2px #bbf7d0;
}

.wd-dot--off { background: #d1d5db; }

/* ── Header actions group ── */
.wd-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Run analysis button ── */
.wd-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #111827;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.wd-run-btn:hover { background: #000; transform: translateY(-1px); }

.wd-run-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  background: #d97706;
  color: white;
  border-radius: 999px;
}

/* ── Back button ── */
.wd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  background: white;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.wd-back-btn svg {
  transition: transform 0.15s ease;
}

.wd-back-btn:hover {
  color: #111827;
  border-color: #9ca3af;
  background: #f9fafb;
  text-decoration: none;
}

.wd-back-btn:hover svg {
  transform: translateX(-2px);
}

/* ── Two-column body ── */
.wd-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 920px) {
  .wd-body { grid-template-columns: 1fr; }
}

/* ── Aside ── */
.wd-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 72px;
  align-self: start;
}

@media (max-width: 920px) {
  .wd-aside { position: static; }
}

/* ── Panels ── */
.wd-panel {
  background: white;
  border: 1px solid #e5e7eb;
  padding: 16px;
}

.wd-panel--flat {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.wd-panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}

.wd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wd-panel-addr {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 10px;
}

.wd-panel-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wd-panel-empty {
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
}

.wd-kv {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wd-kv-k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
  flex-shrink: 0;
}

.wd-kv-v {
  font-size: 12px;
  color: #374151;
}

.wd-mono {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 11px;
}

/* ── Top risks list ── */
.wd-risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-risk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.wd-risk-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wd-risk-score {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  min-width: 38px;
  text-align: right;
}

.wd-risk-score--high { color: #dc2626; }
.wd-risk-score--mid  { color: #d97706; }
.wd-risk-score--low  { color: #16a34a; }

.wd-risk-body { flex: 1; min-width: 0; }

.wd-risk-title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.wd-risk-sub {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-ext-link {
  font-size: 11px;
  color: #6b7280;
  text-decoration: none;
}
.wd-ext-link:hover { color: #111827; }

/* ── Filter panel ── */
.wd-clear-btn {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wd-clear-btn:hover { color: #dc2626; }

.wd-filtergroup {
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.wd-filtergroup:last-child { border-bottom: none; padding-bottom: 0; }

.wd-filterlabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}

.wd-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  outline: none;
}
.wd-input:focus {
  border-color: #6b7280;
  background: white;
}

.wd-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
}

/* ── Quick views ── */
.wd-quickviews {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-qv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.12s;
}

.wd-qv:hover {
  background: white;
  border-color: #e5e7eb;
  text-decoration: none;
}

.wd-qv--active {
  background: #111827;
  color: white;
  border-color: #111827;
}

.wd-qv-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  background: #d97706;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
}

.wd-qv--active .wd-qv-count { background: rgba(255,255,255,0.25); }

/* ── Main results ── */
.wd-main { min-width: 0; }

.wd-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.wd-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.wd-section-sub {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.wd-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* ── Table ── */
.wd-table-wrap {
  border: 1px solid #e5e7eb;
  background: white;
  overflow: hidden;
}

.wd-table-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 640px;
}

.wd-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 560px;
}

.wd-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  white-space: nowrap;
  text-align: left;
}

.wd-th-right { text-align: right; }

.wd-tr {
  border-left: 3px solid transparent;
  transition: background 0.1s;
  cursor: pointer;
  outline: none;
}

.wd-tr:hover { background: #f9fafb; }

.wd-tr:focus {
  background: #f9fafb;
  outline: 2px solid #111827;
  outline-offset: -2px;
}

.wd-tr[data-rel="EXACT"]    { border-left-color: #22c55e; }
.wd-tr[data-rel="LIKELY"]   { border-left-color: #f59e0b; }
.wd-tr[data-rel="POSTCODE"] { border-left-color: #e5e7eb; }

.wd-td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
  font-size: 13px;
  color: #374151;
}

.wd-td-app { width: 99%; }
.wd-td-right { text-align: right; white-space: nowrap; }
.wd-td-seen { white-space: nowrap; }

.wd-tr:last-child .wd-td { border-bottom: none; }

.wd-app-addr {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 3px;
}

.wd-app-title {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Tags ── */
.wd-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  white-space: nowrap;
}

.wd-tag--exact    { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.wd-tag--likely   { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.wd-tag--postcode { background: #f9fafb; border-color: #e5e7eb; color: #6b7280; }

/* ── Risk cell ── */
.wd-risk-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wd-risk-num {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wd-risk-num--high { color: #dc2626; }
.wd-risk-num--mid  { color: #d97706; }
.wd-risk-num--low  { color: #16a34a; }

.wd-risk-delta {
  font-size: 10px;
  color: #9ca3af;
}

.wd-dash { color: #d1d5db; font-size: 16px; }

/* ── Date/time cells ── */
.wd-date {
  display: block;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

.wd-time {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 1px;
}

/* ── Row action buttons ── */
.wd-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.wd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.12s;
  background: white;
  color: #374151;
}

.wd-btn:hover { text-decoration: none; }

.wd-btn--primary {
  background: #111827;
  color: white;
  border-color: #111827;
}

.wd-btn--primary:hover { background: #000; }

.wd-btn--ghost { background: white; color: #6b7280; }
.wd-btn--ghost:hover { background: #f9fafb; color: #111827; border-color: #9ca3af; }

/* ── Empty state ── */
.wd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
  border: 1px dashed #e5e7eb;
  background: #fafafa;
}

.wd-empty-icon {
  color: #d1d5db;
  margin-bottom: 16px;
}

.wd-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.wd-empty-sub {
  font-size: 13px;
  color: #9ca3af;
  max-width: 36ch;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .wd-shell { padding: 20px 16px 60px; }
  .wd-header { gap: 12px; }
  .wd-title { font-size: 1.5rem; }

  .al-ticker { flex-wrap: wrap; }
  .al-ticker-item { flex: 1 1 45%; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 480px) {
  .al-ticker-item { flex: 1 1 100%; }
}

/* ============================================
   ACTION QUEUE PAGE — aq-* prefix
   Append to style.css
   Relies on wd-* and al-* already defined above.
   ============================================ */

/* ── Bulk actions bar ── */
.aq-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.aq-bulk-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aq-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.aq-bulk-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Queue list ── */
.aq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  background: white;
}

/* ── Queue item ── */
.aq-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  padding: 16px 14px;
  border-bottom: 1px solid #f3f4f6;
  align-items: start;
  transition: background 0.1s;
}

.aq-item:last-child { border-bottom: none; }
.aq-item:hover { background: #fafafa; }

.aq-item-check {
  padding-top: 2px;
  display: flex;
  justify-content: center;
}

.aq-item-body { min-width: 0; }

/* Top row: address + risk */
.aq-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.aq-item-addr {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Risk score badge */
.aq-risk-score {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.aq-risk-denom {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0;
}

.aq-risk--high { color: #dc2626; }
.aq-risk--mid  { color: #d97706; }
.aq-risk--low  { color: #16a34a; }

/* Application title */
.aq-item-title {
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta band */
.aq-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.aq-meta-item {
  font-size: 11px;
  color: #6b7280;
}

.aq-meta-sep {
  font-size: 11px;
  color: #d1d5db;
}

/* Risk reasons */
.aq-reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.aq-reasons li {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  padding-left: 12px;
  position: relative;
}

.aq-reasons li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #d1d5db;
}

/* Notice text */
.aq-notice {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
  margin: 0;
}

/* Item action column */
.aq-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}

/* Pagination */
.wd-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 0;
  flex-wrap: wrap;
}

/* Badge variant used on queue header */
.wd-badge--alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .aq-item {
    grid-template-columns: 28px 1fr;
  }

  .aq-item-actions {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .aq-bulk {
    flex-direction: column;
    align-items: flex-start;
  }

  .aq-bulk-actions {
    width: 100%;
  }

  .aq-bulk-actions .wd-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================
   PLANNING CHECKER REDESIGN — pck-* prefix
   INSTRUCTIONS:
   1. Delete the entire /* PLANNING CHECKER SYSTEM */
      block from style.css (from .pc-header down
      to the @media (max-width: 980px) block that
      closes with ".pc-side { position: static; }")
   2. Paste this block in its place.
   ============================================ */

.pck-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

/* ── Feedback banners ── */
.pck-feedback {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  border-left: 2px solid;
  margin: 16px 0 0;
}
.pck-feedback--ok  { background: rgba(22,163,74,0.06); border-left-color: #16a34a; color: #14532d; }
.pck-feedback--err { background: rgba(220,38,38,0.05); border-left-color: #dc2626; color: #7f1d1d; }

/* ── Hero ── */
.pck-hero {
  padding: 44px 0 0;
  margin-bottom: 36px;
}

.pck-hero-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pck-hero-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink-faint);
}

.pck-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 26px;
  color: var(--ink);
}

/* ── Search bar ── */
.pck-search-form { position: relative; }

.pck-search-bar {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(14,20,27,0.16);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pck-search-bar:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14,20,27,0.06);
}

/* Override the global input styles for the search input specifically */
.pck-search-bar input,
.pck-search-bar input[type="text"] {
  flex: 1;
  border: none !important;
  border-right: 1px solid rgba(14,20,27,0.10) !important;
  background: transparent !important;
  padding: 16px 18px !important;
  font-size: 1rem !important;
  color: var(--ink) !important;
  outline: none !important;
  min-width: 0;
  box-shadow: none !important;
}

.pck-search-bar input:focus {
  background: rgba(255,255,255,0.9) !important;
}

.pck-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  background: var(--ink);
  color: rgba(255,255,255,0.95);
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s;
}
.pck-search-btn:hover { background: #000; }

.pck-search-hint {
  margin-top: 9px;
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pck-search-hint code {
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
  font-size: 11px;
  background: rgba(14,20,27,0.05);
  border: 1px solid rgba(14,20,27,0.08);
  padding: 1px 6px;
}

/* ── Context bar ── */
.pck-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.pck-context-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pck-context-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.pck-context-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pck-context-v {
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}

.pck-context-sep {
  color: var(--line);
  font-size: 16px;
  line-height: 1;
  opacity: 0.6;
}

/* Alert trigger button */
.pck-alert-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(14,20,27,0.14);
  background: white;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pck-alert-trigger:hover,
.pck-alert-trigger.is-on {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pck-alert-trigger.is-on .pck-alert-trigger-dot {
  background: rgba(255,255,255,0.7);
}

.pck-alert-trigger-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
  transition: background 0.12s;
}

/* ── Alert drawer ── */
.pck-alert-drawer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: white;
}

.pck-alert-drawer.is-open {
  max-height: 400px;
  border-bottom: 1px solid var(--line);
}

.pck-alert-drawer-inner {
  padding: 20px 20px 22px;
}

.pck-alert-intro {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.pck-alert-row {
  margin-bottom: 10px;
}

.pck-alert-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pck-alert-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pck-alert-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(14,20,27,0.12);
  background: #f9fafb;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-sans);
  transition: border-color 0.12s, background 0.12s;
}
.pck-alert-select:focus { border-color: var(--ink); background: white; }

.pck-alert-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(14,20,27,0.12);
  background: #f9fafb;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.12s, background 0.12s;
}
.pck-alert-input:focus { border-color: var(--ink); background: white; }

.pck-alert-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.pck-alert-submit {
  height: 42px;
  padding: 0 24px;
  background: var(--ink);
  color: white;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
  flex-shrink: 0;
}
.pck-alert-submit:hover:not(:disabled) { background: #000; }
.pck-alert-submit:disabled {
  background: rgba(14,20,27,0.18);
  color: rgba(14,20,27,0.35);
  cursor: not-allowed;
}

.pck-alert-link {
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.pck-alert-link:hover { color: var(--ink); text-decoration: underline; }

.pck-alert-note {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ── Results feed ── */
.pck-feed {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pck-result {
  border-bottom: 1px solid rgba(14,20,27,0.05);
  animation: pck-rise 0.3s ease both;
}
.pck-result:last-child { border-bottom: none; }
.pck-result:nth-child(1) { animation-delay: 0.03s; }
.pck-result:nth-child(2) { animation-delay: 0.06s; }
.pck-result:nth-child(3) { animation-delay: 0.09s; }
.pck-result:nth-child(4) { animation-delay: 0.12s; }
.pck-result:nth-child(5) { animation-delay: 0.15s; }
.pck-result:nth-child(6) { animation-delay: 0.18s; }
.pck-result:nth-child(7) { animation-delay: 0.21s; }
.pck-result:nth-child(8) { animation-delay: 0.24s; }

.pck-result-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid transparent;
  transition: background 0.1s, border-left-color 0.1s;
}
.pck-result-link:hover {
  background: rgba(255,255,255,0.80);
  border-left-color: var(--ink);
  text-decoration: none;
}

.pck-result-body { flex: 1; min-width: 0; }

.pck-result-num {
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
  font-size: 10px;
  color: var(--ink-faint);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.pck-result-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 4px;
}

.pck-result-addr {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.pck-result-arrow {
  color: rgba(14,20,27,0.20);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.1s, transform 0.1s;
}
.pck-result-link:hover .pck-result-arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}

/* ── Empty state ── */
.pck-empty {
  padding: 64px 32px 56px;
  text-align: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pck-empty-num {
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.pck-empty-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.pck-empty-body {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 40ch;
  margin: 0 auto;
}

.pck-empty-alert-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(14,20,27,0.3);
  text-underline-offset: 2px;
}
.pck-empty-alert-link:hover { text-decoration-color: var(--ink); }

/* ── Pagination ── */
.pck-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.pck-page-info {
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.pck-page-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pck-page-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(14,20,27,0.12);
  color: var(--ink-muted);
  text-decoration: none;
  background: white;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.pck-page-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  text-decoration: none;
}
.pck-page-btn--current {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ── Footer link ── */
.pck-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  margin-top: 18px;
  transition: color 0.12s;
}
.pck-footer-link:hover { color: var(--ink); text-decoration: none; }

/* ── Animation ── */
@keyframes pck-rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .pck-page { padding: 0 16px 60px; }
  .pck-hero { padding-top: 28px; margin-bottom: 24px; }
  .pck-hero-title { margin-bottom: 18px; }
  .pck-search-btn { padding: 0 16px; font-size: 10px; }
  .pck-context { gap: 8px; }
  .pck-alert-actions { flex-direction: column; align-items: stretch; }
  .pck-alert-submit { width: 100%; justify-content: center; }
  .pck-result-link { gap: 12px; }
  .pck-result-arrow { display: none; }
  .pck-pagination { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================
   END OF pck-* BLOCK
   ============================================ */

   /* ============================================
   ADMIN DATA DASHBOARD — dash-* prefix
   Append to the end of style.css.
   ============================================ */

.dash-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.dash-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.dash-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

/* Export buttons */
.dash-exports {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.dash-export-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(14,20,27,0.14);
  background: white;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.dash-export-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  text-decoration: none;
}

/* ── Stats strip ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-bottom: 24px;
  background: rgba(14,20,27,0.08);
}

.dash-stat {
  background: white;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.dash-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(14,20,27,0.06);
}

.dash-stat--ok::before   { background: #22c55e; }
.dash-stat--warn::before { background: #f59e0b; }
.dash-stat--alert::before { background: #ef4444; }

.dash-stat-val {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.dash-stat--ok   .dash-stat-val { color: #16a34a; }
.dash-stat--warn .dash-stat-val { color: #d97706; }
.dash-stat--alert .dash-stat-val { color: #dc2626; }

.dash-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.3;
}

/* ── Two-column grid ── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ── Panels ── */
.dash-panel {
  background: white;
  border: 1px solid rgba(14,20,27,0.08);
}

.dash-panel--full {
  grid-column: 1 / -1;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(14,20,27,0.06);
}

.dash-panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
}

.dash-panel-count {
  font-size: 11px;
  color: var(--ink-faint);
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
}

/* ── Tables ── */
.dash-table-wrap {
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

.dash-panel--full .dash-table-wrap {
  max-height: 480px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: #fafaf9;
  border-bottom: 1px solid rgba(14,20,27,0.08);
  text-align: left;
  white-space: nowrap;
}

.dash-th-right { text-align: right !important; }

.dash-table tbody tr {
  border-bottom: 1px solid rgba(14,20,27,0.04);
  transition: background 0.1s;
}
.dash-table tbody tr:last-child { border-bottom: none; }
.dash-table tbody tr:hover { background: rgba(14,20,27,0.02); }

.dash-table td {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink);
  vertical-align: middle;
}

.dash-td-mono {
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-td-right { text-align: right; }

.dash-td-num {
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.dash-td-addr {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-td-title {
  font-size: 12px;
  color: var(--ink-muted);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-td-action { text-align: right; width: 40px; }

.dash-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink-faint);
  border: 1px solid rgba(14,20,27,0.10);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.1s, border-color 0.1s, background 0.1s;
}
.dash-link:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(14,20,27,0.03);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .dash-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-panel--full {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .dash-page { padding: 24px 16px 60px; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-exports { width: 100%; }
  .dash-export-btn { flex: 1; justify-content: center; }
}

/* ============================================
   END OF dash-* BLOCK
   ============================================ */

/* ── Followers modal ── */
.dash-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.dash-modal.is-open { display: block; }

.dash-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,20,27,0.45);
  backdrop-filter: blur(2px);
}

.dash-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  background: white;
  border: 1px solid rgba(14,20,27,0.12);
  box-shadow: 0 20px 60px rgba(14,20,27,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(14,20,27,0.07);
  flex-shrink: 0;
}

.dash-modal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.dash-modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  max-width: 36ch;
}

.dash-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid rgba(14,20,27,0.10);
  color: var(--ink-faint);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.dash-modal-close:hover { background: rgba(14,20,27,0.05); color: var(--ink); }

.dash-modal-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
}

.dash-modal-loading {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 20px 0;
  text-align: center;
  font-style: italic;
}

.dash-modal-empty {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 20px 0;
  text-align: center;
  font-style: italic;
  margin: 0;
}

.dash-modal-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.dash-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.dash-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(14,20,27,0.05);
}
.dash-user-item:last-child { border-bottom: none; }

.dash-user-avatar {
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.dash-user-info { flex: 1; min-width: 0; }

.dash-user-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-meta {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.dash-user-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
  flex-shrink: 0;
}

.dash-user-status--on {
  color: #16a34a;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.dash-user-status--off {
  color: #9ca3af;
  border-color: #e5e7eb;
  background: #f9fafb;
}

/* Followers button in table */
.dash-followers-btn {
  background: none;
  border: 1px solid rgba(14,20,27,0.12);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  font-family: var(--font-sans);
}
.dash-followers-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.dash-noscroll { overflow: hidden; }

/* ── Watches table additions ── */

/* Remove max-height scroll on the watches table — pagination handles length */
.dash-table-wrap--noscroll {
  max-height: none;
  overflow-x: auto;
}

/* Search bar */
.dash-search-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(14,20,27,0.06);
}

.dash-search-form { margin: 0; }

.dash-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(14,20,27,0.12);
  background: #fafaf9;
  padding: 0 12px;
  max-width: 480px;
  transition: border-color 0.12s, background 0.12s;
}

.dash-search-bar:focus-within {
  border-color: var(--ink);
  background: white;
}

.dash-search-icon {
  color: var(--ink-faint);
  flex-shrink: 0;
}

.dash-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 9px 0 !important;
  font-size: 13px !important;
  color: var(--ink) !important;
  outline: none !important;
  font-family: var(--font-sans);
  min-width: 0;
  box-shadow: none !important;
}

.dash-search-input::placeholder { color: var(--ink-faint); }

.dash-search-clear {
  font-size: 11px;
  color: var(--ink-faint);
  text-decoration: none;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.1s;
}
.dash-search-clear:hover { color: var(--ink); }

/* Sortable header links */
.dash-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  transition: color 0.1s;
}
.dash-sort-link:hover { color: var(--ink); text-decoration: none; }

/* Status badge */
.dash-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid;
}

.dash-status--on {
  color: #16a34a;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.dash-status--off {
  color: #9ca3af;
  border-color: #e5e7eb;
  background: #f9fafb;
}

/* Email cell */
.dash-td-email {
  font-size: 12px;
  color: var(--ink-muted);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Date cell */
.dash-td-date {
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* Empty row */
.dash-td-empty {
  text-align: center;
  padding: 40px 16px !important;
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
}

/* Pagination */
.dash-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(14,20,27,0.06);
  flex-wrap: wrap;
}

.dash-page-info {
  font-family: 'DM Mono', 'SF Mono', Monaco, monospace;
  font-size: 11px;
  color: var(--ink-faint);
}

.dash-page-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.dash-page-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(14,20,27,0.12);
  color: var(--ink-muted);
  text-decoration: none;
  background: white;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.dash-page-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  text-decoration: none;
}
.dash-page-btn--current {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ── Footer overrides (paper theme, matches --ink / --line tokens) ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: transparent;
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

/* Left column */
.site-footer-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-footer-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.site-footer-brand-name {
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.site-footer-brand-sep {
  color: var(--ink-faint);
  font-size: 0.80rem;
}

.site-footer-brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.site-footer-address {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.site-footer-email {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.site-footer-email:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(14, 20, 27, 0.30);
}

/* Right column */
.site-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer-link {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.12s ease;
}
.site-footer-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-footer-link-sep {
  color: var(--ink-faint);
  font-size: 0.78rem;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.70rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

/* Disclaimer strip */
.site-footer-base {
  border-top: 1px solid var(--line-soft);
}

.site-footer-base-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 9px 18px 10px;
  font-size: 0.68rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 600px) {
  .site-footer-inner {
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px 18px;
  }
  .site-footer-right {
    align-items: flex-start;
  }
}

/* ============================================
   MOBILE — hamburger nav + responsive patches
   ============================================ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(14,20,27,0.12);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s;
}
.nav-hamburger:hover { background: rgba(14,20,27,0.05); }

@media (max-width: 640px) {
  /* Show hamburger, hide nav links by default */
  .nav-hamburger { display: inline-flex; }

  .site-nav-inner {
    flex-direction: row;         /* keep brand + hamburger side by side */
    align-items: center;
    flex-wrap: nowrap;
  }

  .site-nav-links {
    display: none;               /* hidden until toggled */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(246,243,238,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    z-index: 998;
  }

  .site-nav-links.is-open { display: flex; }

  /* Dropdown becomes full-width inline list when open on mobile */
  .nav-dropdown { width: 100%; }

  .nav-dropdown__menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--line);
    padding: 4px 0 4px 12px;
    background: transparent;
    display: none;
  }

  .nav-dropdown__menu.is-open { display: block; }

  .nav-dropdown__trigger { width: 100%; text-align: left; }

  .nav-dropdown__item { padding: 8px 12px; }

  /* Full-width nav buttons */
  .site-nav .btn--ghost {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  /* Forms (logout button) */
  .site-nav-links form { width: 100%; }
  .site-nav-links form .btn { width: 100%; }

  /* Sticky positioning for the nav so the dropdown works */
  .site-nav { position: sticky; }
}

/* ── Watch table: horizontal scroll on mobile ── */
@media (max-width: 640px) {
  .watch-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wd-table-scroll     { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-table-wrap     { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Hero landing title */
  .eld-hero-title { font-size: clamp(2.4rem, 10vw, 3.2rem); }

  /* Tools cards: single column */
  .eld-tools-list { grid-template-columns: 1fr; }
  .eld-tool-row   { min-height: 220px; }

  /* Portfolio grid: single column */
  .pf-grid { grid-template-columns: 1fr; }

  /* Queue item: collapse action column */
  .aq-item {
    grid-template-columns: 28px 1fr;
  }
  .aq-item-actions {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 8px;
  }

  /* Toast: full width */
  .toast, .undo-toast {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* ── Touch target minimum ── */
.btn, .primary-btn, .wd-btn, .pf-btn, .dash-export-btn,
.pck-search-btn, .pck-alert-trigger, .al-submit-btn {
  min-height: 44px;
}

/* ── Prevent horizontal overflow ── */
@media (max-width: 640px) {
  body { overflow-x: hidden; }
  .page, .planning-shell, .ux-shell, .wd-shell, .pf, .pck-page, .dash-page {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================
   END MOBILE BLOCK
   ============================================ */

/* ============================================
   PLANNING CHECKER — search loader
   Append to the pck-* block in style.css
   ============================================ */

/* Loader block — hidden by default, sits between hero and results */
.pck-loader {
  display: none;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  overflow: hidden;
}

.pck-loader.is-visible {
  display: flex;
}

/* Top row: dots + text */
.pck-loader-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 16px;
}

/* Three pulsing dots */
.pck-loader-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pck-loader-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.15;
  animation: pck-pulse 1.4s ease-in-out infinite both;
}

.pck-loader-dots span:nth-child(1) { animation-delay: 0s; }
.pck-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.pck-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pck-pulse {
  0%, 80%, 100% { opacity: 0.15; transform: scale(0.85); }
  40%           { opacity: 1;    transform: scale(1); }
}

/* Text */
.pck-loader-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pck-loader-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.pck-loader-msg {
  font-size: 12px;
  color: var(--ink-muted);
  transition: opacity 0.18s ease;
}

/* Indeterminate progress bar at the bottom */
.pck-loader-bar {
  height: 2px;
  background: rgba(14,20,27,0.06);
  position: relative;
  overflow: hidden;
}

.pck-loader-bar-fill {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--ink);
  animation: pck-slide 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pck-slide {
  0%   { left: -40%; }
  100% { left: 110%; }
}

/* Spinner on the search button */
@keyframes pck-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.pck-spin {
  animation: pck-spin 0.8s linear infinite;
  flex-shrink: 0;
}

/* ============================================
   END loader block
   ============================================ */

   .pck-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pck-result-row .pck-result-link {
  flex: 1;
  min-width: 0;
}

.pck-result-save {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(14,20,27,0.16);
  background: white;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}

.pck-result-save:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.pck-result-save.is-saved {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
  pointer-events: none;
}