:root {
  --ink: #152033;
  --muted: #5c6b7a;
  --line: #d8dee6;
  --surface: #ffffff;
  --bg: #eef2f6;
  --bg-accent: #e7eef5;
  --navy: #0b3d5c;
  --navy-deep: #072c43;
  --teal: #0d7a5f;
  --teal-hover: #0a634d;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 35, 55, 0.06), 0 8px 24px rgba(15, 35, 55, 0.06);
  --max: 920px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #d9e7f2 0%, transparent 55%),
    radial-gradient(900px 320px at 100% 0%, #d8ebe3 0%, transparent 50%),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Header ----- */
.site-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #134a68 100%);
  color: #fff;
  border-bottom: 3px solid #0d7a5f;
  box-shadow: 0 2px 12px rgba(7, 44, 67, 0.25);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.brand-block { min-width: 0; flex: 1 1 180px; }

.brand {
  color: #fff;
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1.2;
}

.tagline {
  margin: 4px 0 0;
  color: #b7c9d6;
  font-size: 0.88rem;
  font-weight: 450;
}

.auth-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.auth-bar .m {
  color: #c9d6e0;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 240px);
}

.auth-bar button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.auth-bar button:hover { background: var(--teal-hover); }
.auth-bar button#btn-signout { background: #4d5b6a; }
.auth-bar button#btn-signout:hover { background: #3f4b58; }

/* ----- Page shell ----- */
.page, main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 16px 28px;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel { padding: 14px; margin-bottom: 14px; }

.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
  font: inherit;
  color: var(--ink);
}

.search-form input:focus {
  outline: 2px solid rgba(13, 122, 95, 0.35);
  border-color: #7bb9a3;
}

.btn-primary,
.btn-secondary,
button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  border: 0;
}

.btn-primary,
.search-form button[type="submit"],
#f > button {
  width: 100%;
  padding: 12px 16px;
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover,
.search-form button[type="submit"]:hover,
#f > button:hover { background: var(--teal-hover); }

.btn-secondary,
.pager button {
  padding: 10px 14px;
  background: #e8eef3;
  color: var(--navy);
}

.btn-secondary:hover,
.pager button:hover { background: #d9e3ec; }

button:disabled { opacity: 0.4; cursor: not-allowed; }

.meta-line, #meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 4px 2px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.notice-list, ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-list li,
#list > li,
#list > li.notice-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid #1a7a9c;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.notice-list li:hover,
#list > li:hover,
#list > li.notice-item:hover {
  border-left-color: var(--teal);
  box-shadow: 0 2px 4px rgba(15, 35, 55, 0.06), 0 12px 28px rgba(15, 35, 55, 0.08);
}

a.notice-card {
  display: block;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.notice-card:hover,
a.notice-card:focus-visible {
  outline: none;
}

a.notice-card:focus-visible {
  box-shadow: inset 0 0 0 2px var(--teal);
}

.notice-card__title {
  display: block;
  font-weight: 650;
  color: var(--navy);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

a.notice-card:hover .notice-card__title {
  color: var(--teal);
  text-decoration: underline;
}

.notice-card__meta {
  display: block;
  margin-top: 6px;
}

/* legacy title-only links still look fine if present */
.notice-list a:not(.notice-card),
#list a:not(.notice-card) {
  font-weight: 650;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.notice-list a:not(.notice-card):hover,
#list a:not(.notice-card):hover { color: var(--teal); text-decoration: underline; }

.m {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.pager, nav.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.pager button { flex: 0 1 auto; min-width: 7rem; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 28px 16px 40px;
  max-width: var(--max);
  margin: 0 auto;
  line-height: 1.45;
}

.site-footer p { margin: 0 0 8px; }
.footer-note { opacity: 0.9; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--navy-deep);
  overflow-wrap: anywhere;
}

.card h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
  color: var(--navy);
}

.desc {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 14px 0 0;
  color: #243041;
}

.lock {
  border: 1px dashed #b7bec8;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 8px, #f0f2f5 8px, #f0f2f5 16px);
}

.unlock {
  border: 1px solid #9dceb8;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  color: var(--navy);
  background: #eef8f3;
}

.crumb {
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumb a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.crumb a:hover { text-decoration: underline; }
.crumb-sep { color: #b7bec8; }
.crumb-here {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  flex: 1 1 140px;
}

#back-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 8px;
  background: #e8eef3;
  margin-right: 4px;
}

/* Tier badges */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.tier-text { text-transform: uppercase; }
.tier-pro { color: #f6d860; }
.tier-starter { background: #1a3d4f; color: #9ed0ea; border: 1px solid #3d7a96; }
.tier-api { background: #1e2a44; color: #c5d0ff; border: 1px solid #6b7fd7; }
.tier-free { background: #2a3440; color: #c9d6e0; border: 1px solid #5b6573; }
#meta .tier-pro, .card .tier-pro { color: #7a5600; }
#meta .tier-free, .card .tier-free { background: #eef1f4; color: #5b6573; border-color: #c9ced6; }
#meta .tier-starter, .card .tier-starter { background: #e7f4fb; color: #0b3d5c; border-color: #8ebcd4; }
#meta .tier-api, .card .tier-api { background: #eef0ff; color: #2f3f8f; border-color: #9aa8e8; }
.auth-bar .tier-badge { transform: translateY(-1px); }
.tier-seal { padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.tier-seal-svg { display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.auth-bar .tier-seal { transform: translateY(1px); }
#meta .tier-seal, #meta .tier-pro { background: transparent; border: 0; color: inherit; }
#meta .tier-seal-svg { filter: drop-shadow(0 1px 1px rgba(11, 61, 92, 0.2)); }

/* Desktop / wider phones in landscape */
@media (min-width: 640px) {
  .search-form {
    grid-template-columns: minmax(0, 1fr) 140px auto;
    align-items: stretch;
  }
  .search-form .btn-primary,
  .search-form button[type="submit"],
  #f > button {
    width: auto;
    min-width: 7.5rem;
  }
  .auth-bar .m { max-width: 320px; }
  .header-inner { padding: 18px 22px; }
  .page, main { padding: 24px 20px 36px; }
  .search-panel { padding: 16px; }
}

@media (min-width: 900px) {
  .brand { font-size: 1.45rem; }
}

/* ----- Header nav ----- */
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.header-nav a {
  color: #d5e4ef;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover { color: #fff; }
.header-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #3ecf9a;
}

/* ----- Pricing ----- */
.pricing-page { max-width: 1100px; }
.pricing-hero { margin: 8px 0 20px; }
.pricing-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}
.pricing-lede { margin: 0; color: var(--muted); max-width: 42rem; }
.payments-note, .checkout-banner {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid #ecd9a8;
  color: #5a4a22;
  font-size: 0.92rem;
}
.checkout-banner.checkout-ok {
  background: #e8f7ef;
  border-color: #a8d9bc;
  color: #1d5c3a;
}
.checkout-banner.checkout-cancel {
  background: #f4f6f8;
  border-color: var(--line);
  color: var(--muted);
}
.pricing-manage {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.price-card-featured {
  border-color: #0d7a5f;
  box-shadow: 0 1px 2px rgba(13, 122, 95, 0.08), 0 10px 28px rgba(13, 122, 95, 0.12);
}
.price-card-current { outline: 2px solid #0b3d5c; }
.price-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.price-card h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
}
.price-amount {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.price-amount .per {
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--muted);
  margin-left: 2px;
}
.price-blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 2.7em;
}
.price-features {
  margin: 6px 0 12px;
  padding: 0 0 0 1.1rem;
  color: var(--ink);
  font-size: 0.9rem;
  flex: 1;
}
.price-features li { margin: 0.35em 0; }
.pricing-cta { width: 100%; text-align: center; text-decoration: none; display: inline-block; }
.pricing-footnote h2 { margin: 0 0 8px; font-size: 1.05rem; }
.pricing-footnote ul { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.clerk-pricing-slot { margin-top: 16px; }
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===== Notice cards (whole card is one link) ===== */
.notice-list li, #list > li { padding: 0; overflow: hidden; }
#list > li.loading, #list > li.empty { padding: 16px 18px; }
#list a.notice-card {
  display: block;
  padding: 14px 18px 14px;
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  font-size: inherit;
}
#list a.notice-card:hover { text-decoration: none; color: inherit; }
#list a.notice-card:hover .nc-title { color: var(--teal); text-decoration: underline; }
#list a.notice-card:focus-visible { outline: 3px solid rgba(13,122,95,.45); outline-offset: -3px; border-radius: var(--radius); }
.nc-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.nc-top .notice-closes { margin-left: auto; }
.nc-title {
  display: block;
  font-weight: 650;
  color: var(--navy);
  font-size: 1.04rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.nc-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 8px; }
.nc-buyer { color: #33424f; font-size: .92rem; overflow-wrap: anywhere; min-width: 0; }
.nc-meta { margin-top: 4px; font-size: .84rem; }

.notice-value {
  font-size: 1.22rem;
  font-weight: 760;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.notice-value-none { font-size: .9rem; font-weight: 550; color: var(--muted); font-style: italic; }

.notice-closes {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .8rem; font-weight: 650;
  white-space: nowrap;
  background: #eef2f6; color: #3c4b59; border: 1px solid #d5dde5;
}
.notice-closes b { font-weight: 600; opacity: .8; }
.closes-soon.notice-closes { background: #fff3e0; color: #8a4b00; border-color: #f2c98a; }
.closes-near.notice-closes { background: #e9f4ff; color: #0b4f7a; border-color: #b6d6ee; }
.closes-closed.notice-closes { background: #f3f3f3; color: #7a7a7a; border-color: #ddd; text-decoration: line-through; }

.lane-chip {
  display: inline-flex; align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: .76rem; font-weight: 650; letter-spacing: .01em;
  background: #e6f3ee; color: #0a5c48; border: 1px solid #bfe0d3;
}
.lane-more { font-size: .76rem; color: var(--muted); font-weight: 600; }

/* ===== Detail key facts ===== */
.facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 14px; }
.fact { background: #f6f9fb; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact-k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact .notice-value { font-size: 1.5rem; }
.fact-v { font-size: 1.15rem; font-weight: 720; color: var(--navy-deep); }
.fact-v-sm { font-size: 1rem; }
.fact-sub { font-size: .84rem; color: var(--muted); }
.fact-closes.closes-soon { background: #fff6e8; border-color: #f2c98a; }
.fact-closes.closes-soon .fact-sub { color: #8a4b00; font-weight: 650; }
.fact-closes.closes-closed .fact-v { color: #888; text-decoration: line-through; }
.cpv-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.cpv-code { font: 600 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #eef2f6; border: 1px solid #d8dee6; border-radius: 5px; padding: 1px 6px; color: #33424f; }
.card .nc-top { margin-bottom: 6px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ===== Search + filters ===== */
.search-form { grid-template-columns: 1fr; }
@media (min-width: 640px) { .search-form { grid-template-columns: minmax(0, 1fr) auto; } }
.filters { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.filters > summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; color: var(--navy); padding: 6px 2px; user-select: none;
}
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::before { content: "▸"; font-size: .8em; transition: transform .15s; }
.filters[open] > summary::before { transform: rotate(90deg); }
.filter-count { background: var(--teal); color: #fff; border-radius: 999px; font-size: .74rem; padding: 1px 8px; }
.filter-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
@media (min-width: 760px) { .filter-grid { grid-template-columns: 1fr 1fr; } }
.fgroup { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; min-width: 0; background: #fbfcfd; }
.fgroup legend { font-weight: 700; font-size: .86rem; color: var(--navy-deep); padding: 0 4px; }
.fgroup .hint { font-weight: 500; color: var(--muted); font-size: .78rem; margin-left: 4px; }
.fgroup label { font-size: .84rem; color: #33424f; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fgroup input[type="number"], .fgroup input[type="date"], .tree-find {
  width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.fgroup label.check { flex-direction: row; align-items: center; gap: 8px; margin-top: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.seg label { flex-direction: row; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 600; cursor: pointer; color: #33424f; }
.seg input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg input:focus-visible + span { outline: 2px solid rgba(13,122,95,.45); }
.filter-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.filter-actions button { width: auto !important; padding: 10px 16px; }

/* tick tree */
.tree { max-height: 260px; overflow: auto; margin-top: 6px; padding-right: 2px; overscroll-behavior: contain; }
.tree-find { margin-bottom: 4px; }
.tree-row { display: flex; align-items: center; gap: 4px; padding: 3px 0 3px calc(var(--d) * 18px); min-width: 0; }
.tree-row:hover { background: #f1f5f8; border-radius: 6px; }
.tree-tog, .tree-tog-sp { flex: 0 0 22px; width: 22px; height: 22px; }
.tree-tog { background: transparent; border: 0; padding: 0; color: var(--muted); font-size: .8rem; border-radius: 4px; }
.tree-tog:hover { background: #e3eaf0; color: var(--navy); }
.fgroup .tree-lbl, .tree-lbl { flex-direction: row !important; align-items: center; gap: 7px; flex: 1 1 auto; min-width: 0; cursor: pointer; font-size: .88rem; }
.tree-lbl input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--teal); }
.tree-lbl.covered { opacity: .65; }
.tree-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tree-code { font: 600 .72rem ui-monospace, Menlo, monospace; color: var(--muted); flex: 0 0 auto; }
.tree-count { font-size: .74rem; color: var(--muted); background: #eef2f6; border-radius: 999px; padding: 0 7px; flex: 0 0 auto; }

/* active filter bar */
.active-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 2px 10px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid #bfe0d3; background: #e6f3ee; color: #0a5c48; font-size: .8rem; font-weight: 600; }
.fchip small { font-family: ui-monospace, Menlo, monospace; opacity: .75; }
.fchip-region { background: #e9f1fb; color: #0b4f7a; border-color: #b6d0ea; }
.fchip:hover { filter: brightness(.96); }
.bar-acts { display: flex; gap: 12px; margin-left: auto; }
.linkish { background: none; border: 0; padding: 2px 0; color: var(--navy); font-size: .86rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.linkish.strong { color: var(--teal); }
.lanes-note { font-size: .82rem; font-weight: 650; color: var(--teal); }

/* lanes onboarding */
.lanes-panel { padding: 18px 18px 16px; margin-bottom: 14px; border-top: 4px solid var(--teal); }
.lanes-head h2 { margin: 0 0 4px; font-size: 1.2rem; color: var(--navy-deep); letter-spacing: -0.01em; }
.tree-lanes { max-height: 340px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; margin-top: 12px; background: #fbfcfd; }
@media (min-width: 760px) { .tree-lanes { columns: 1; } }
.lanes-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; }
.lanes-foot .m { margin: 0; flex: 1 1 220px; }
.lanes-btns { display: flex; gap: 8px; }
.lanes-btns button { width: auto !important; padding: 10px 16px; }
.err { color: #a12a2a; font-size: .88rem; margin: 8px 0 0; }


/* named saved searches */
.saved-searches { margin-top: 14px; grid-column: 1 / -1; }
.saved-searches .hint-block { margin: 0 0 8px; font-size: .85rem; color: var(--muted, #5b6b7c); }
.saved-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.saved-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--line, #d8e0e8); border-radius: 10px; background: #fbfcfd; }
.saved-list .saved-name { font-weight: 650; color: var(--navy-deep, #0b3d5c); flex: 1 1 140px; }
.saved-list .saved-meta { font-size: .78rem; color: var(--muted, #5b6b7c); flex: 1 1 100%; }
.saved-list .saved-btns { display: flex; gap: 6px; }
.saved-list .saved-btns button { width: auto !important; padding: 6px 10px; font-size: .85rem; }
.saved-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.saved-actions #save-search { width: auto !important; }
.saved-searches .err { margin: 8px 0 0; color: #b42318; font-size: .85rem; }

/* ----- email alerts (account settings) ----- */
.alerts-panel { padding: 14px 18px; margin-bottom: 14px; }
.alerts-toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.alerts-toggle input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.alerts-toggle .m { font-size: .86rem; }
.alerts-note { margin: 8px 0 0 28px; font-size: .84rem; color: #6b5400; background: #fff7dd; border-left: 3px solid #d9a400; padding: 6px 10px; }
#alerts-msg { margin: 8px 0 0 28px; font-size: .84rem; }

/* Source badges (Find a Tender / Contracts Finder) */
.src-badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; margin-right: 6px; white-space: nowrap; border: 1px solid transparent; }
.src-fts { background: #e8f1f8; color: #0b3d5c; border-color: #c7dcec; }
.src-cf { background: #eef6ec; color: #1f5e2a; border-color: #cfe5cb; }
.src-below { background: #f6f1e7; color: #6b5400; border-color: #e9dcc0; }

/* API keys panel */
.apikeys-panel { padding: 12px 18px; margin-bottom: 14px; }
.apikeys summary { cursor: pointer; }
.apikey-list { list-style: none; padding: 0; margin: 10px 0; }
.apikey-list li { padding: 6px 0; border-bottom: 1px solid #eee; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.apikey-list li.revoked { opacity: .55; }
.apikey-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.apikey-form input { flex: 1 1 220px; padding: 6px 8px; }
.apikey-fresh { background: #fff7dd; border-left: 3px solid #d9a400; padding: 8px 12px; margin: 8px 0; }
.apikey-fresh code { word-break: break-all; }
