/* ================================================================
   Lid Life Event Finder — Stylesheet v8
   Brand palette: Signal Red · Asphalt · Bone · Steel
   Fonts: Anton (display) · Barlow Condensed (body) · JetBrains Mono (meta)
   Mobile-first · iOS Safari safe · No backdrop-filter on controls
   ================================================================ */

/* ---- Variables ---- */
:root {
  --red:        #D6202A;
  --red-dark:   #A0141C;
  --red-dim:    rgba(214,32,42,0.14);
  --asphalt:    #0E0E10;
  --surface:    #161618;
  --surface2:   #1e1e21;
  --surface3:   #28282c;
  --bone:       #FFFFFF;
  --steel:      #A8ABB5;
  --border:     #2c2c31;
  --border2:    #3c3c42;
  --hiviz:      #E8FF3A;

  --green:  #22c55e;
  --blue:   #3b82f6;
  --amber:  #f59e0b;
  --purple: #a855f7;
  --crimson:#ef4444;
  --teal:   #14b8a6;

  --f-display: "Anton", "Arial Black", sans-serif;
  --f-body:    "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Consolas, monospace;

  --r:   10px;
  --r-lg:14px;
  --tap: 44px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--asphalt);
  color: var(--bone);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

button { cursor: pointer; font-family: var(--f-body); font-size: inherit; border: none; background: none; color: inherit; }

input, select, textarea { font-family: var(--f-body); font-size: inherit; color: inherit; }

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

/* ================================================================
   Header — solid bg (no backdrop-filter for iOS safety)
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,16,0.97);
  border-bottom: 1px solid var(--border);
  /* Push content below iOS status bar / notch when installed as PWA */
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--bone);
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2px;
}

.header-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: var(--r);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface2);
  color: var(--bone);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.hdr-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.hdr-btn:hover { background: var(--surface3); border-color: var(--border2); }
.hdr-btn:active { transform: scale(0.97); }

.hdr-btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.hdr-btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.hdr-label { display: none; }
@media (min-width: 480px) { .hdr-label { display: inline; } }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: #1a1204;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  line-height: 1;
}
.badge:empty { display: none; }

/* ================================================================
   Layout
   ================================================================ */
main { padding: 0 0 40px; }

.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .page-wrap {
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 28px;
  }
}

/* ================================================================
   Filters panel
   ================================================================ */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .filters {
    position: sticky;
    top: 64px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.filter-block { display: flex; flex-direction: column; gap: 10px; }

.filter-label {
  display: block;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---- Inputs ---- */
.text-input {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 0 12px;
  background: var(--surface2);
  color: var(--bone);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.text-input:focus { outline: none; border-color: var(--red); background: var(--surface3); }
.text-input::placeholder { color: var(--steel); }
textarea.text-input { padding: 10px 12px; min-height: 80px; resize: vertical; }

.select-input {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 0 32px 0 12px;
  background: var(--surface2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6E75' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 12px;
  color: var(--bone);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
}
.select-input:focus { outline: none; border-color: var(--red); }
.select-input option { background: var(--surface2); }

/* ---- Location row ---- */
.loc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: var(--r);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }

.btn-outline {
  background: var(--surface2);
  color: var(--bone);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface3); border-color: var(--border2); }

.btn-primary {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ---- Radius row ---- */
.radius-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.radius-row input[type="range"] {
  flex: 1;
  accent-color: var(--red);
  height: 4px;
  cursor: pointer;
}
#radius-val {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--red);
  min-width: 48px;
  text-align: right;
}
.link-btn {
  background: none;
  border: none;
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  text-decoration: underline;
}
.link-btn:hover { color: var(--bone); }

/* ---- Location status ---- */
.loc-msg {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: var(--r);
  border: 1px solid transparent;
  display: none;
}
.loc-msg.show    { display: block; }
.loc-msg.info    { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.4); color: #93c5fd; }
.loc-msg.ok      { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.4);  color: #86efac; }
.loc-msg.error   { background: var(--red-dim);        border-color: var(--red);           color: #fca5a5; }

/* ---- Date chips ---- */
.date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.chip:hover { border-color: var(--border2); color: var(--bone); }
.chip.active {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--bone);
}
.chip:active { transform: scale(0.96); }

/* ---- Type pills ---- */
.type-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--steel);
}
.type-pill:hover { border-color: var(--border2); }
.type-pill:active { transform: scale(0.96); }
.type-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--steel));
  flex-shrink: 0;
}
.type-pill .pill-count {
  opacity: 0.6;
  font-size: 10px;
}
.type-pill.active { color: #fff; }
.type-pill.active .dot { background: #fff; }
.type-pill.active .pill-count { opacity: 0.75; }

/* ================================================================
   Results section
   ================================================================ */
.results { display: flex; flex-direction: column; gap: 12px; }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.results-count {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.results-count strong { color: var(--red); }

.sort-row .select-input {
  min-height: 38px;
  width: auto;
  font-size: 13px;
}

/* ================================================================
   Event grid & cards
   ================================================================ */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .event-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
}
@media (hover: hover) {
  .event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  }
}
.event-card.t-meets  { border-left-color: var(--green); }
.event-card.t-track  { border-left-color: var(--blue); }
.event-card.t-ride   { border-left-color: var(--amber); }
.event-card.t-shows  { border-left-color: var(--purple); }
.event-card.t-race   { border-left-color: var(--crimson); }
.event-card.t-train  { border-left-color: var(--teal); }
.event-card.is-saved { border-color: rgba(245,158,11,0.5); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.card-badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

.type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.type-badge.t-ride, .type-badge.t-amber { color: #1a0f00; }

.user-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--green);
  color: #0a1f0a;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dist-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface3);
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.card-actions { display: flex; gap: 2px; flex-shrink: 0; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 6px;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  position: relative;
  flex-shrink: 0;
}
.icon-btn svg { width: 18px; height: 18px; display: block; pointer-events: none; }
.icon-btn:hover { background: var(--surface3); color: var(--bone); }
.icon-btn.saved { color: var(--amber); }
.icon-btn:active { transform: scale(0.93); }

.card-date {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
}

.card-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.15;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.card-loc {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--steel);
  line-height: 1.4;
}
.card-loc svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; }

.card-desc {
  font-family: var(--f-body);
  font-size: 14px;
  color: rgba(255,255,255,0.80);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--red-dim);
  background: var(--red-dim);
  text-decoration: none;
  transition: background 0.12s;
}
.card-link:hover { background: rgba(214,32,42,0.25); text-decoration: none; }
.card-link.sec { color: var(--steel); border-color: var(--border); background: var(--surface2); }
.card-link.sec:hover { background: var(--surface3); color: var(--bone); text-decoration: none; }

/* Share popover */
.share-pop {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 4px;
  display: flex;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 10;
  white-space: nowrap;
}
.share-pop button {
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  min-height: 36px;
}
.share-pop button:hover { background: var(--surface3); }

/* ================================================================
   Empty / loading states
   ================================================================ */
.empty-state, .loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--steel);
}
.empty-state h3, .loading-state h3 {
  font-size: 24px;
  color: var(--bone);
  margin-bottom: 8px;
}
.empty-state p, .loading-state p {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   Pagination
   ================================================================ */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 16px 0 4px;
}

.page-btn {
  min-width: 40px; min-height: 40px;
  padding: 0 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--bone);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: background 0.12s, border-color 0.12s;
}
.page-btn:hover:not(:disabled) { background: var(--surface3); border-color: var(--border2); }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-gap { color: var(--steel); font-family: var(--f-mono); padding: 0 4px; }

/* ================================================================
   Overlay · Modal · Drawer
   ================================================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* Modal */
.modal {
  position: fixed; inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.modal-box {
  pointer-events: none;
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-top: 3px solid var(--red);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.22s, opacity 0.22s;
}
.modal.show .modal-box { pointer-events: auto; transform: translateY(0); opacity: 1; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.modal-head h2 { font-size: 24px; color: var(--bone); }

.close-btn {
  width: 36px; height: 36px;
  border-radius: 6px;
  color: var(--steel);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.close-btn svg { width: 18px; height: 18px; display: block; }
.close-btn:hover { background: var(--surface3); color: var(--bone); }

/* Form */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.req { color: var(--red); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.form-note {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--steel);
  line-height: 1.6;
}
.form-note a { color: var(--red); }

/* Submit success */
.submit-success { text-align: center; padding: 16px 8px; }
.submit-success.hidden { display: none; }
.tick-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.tick-circle svg { width: 28px; height: 28px; }
.submit-success h3 { font-size: 24px; color: var(--bone); margin-bottom: 6px; }
.submit-success p { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--steel); }

/* Drawer */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2,0.8,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
.drawer.show { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--red);
  flex-shrink: 0;
}
.drawer-head h2 { font-size: 20px; color: var(--bone); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
}

.drawer-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.saved-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.saved-title {
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--bone);
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 400;
}
.saved-loc { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--steel); }
.saved-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.saved-links a { font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.saved-links .remove-saved {
  margin-left: auto;
  color: var(--steel);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: none;
}
.saved-links .remove-saved:hover { background: var(--red-dim); border-color: var(--red); color: #fca5a5; }
.saved-empty {
  text-align: center;
  color: var(--steel);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 32px 12px;
  line-height: 1.8;
}

/* ================================================================
   Toast
   ================================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface3);
  border: 1px solid var(--border2);
  color: var(--bone);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  text-align: center;
  padding: 20px 16px 40px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.site-footer a { color: var(--steel); }
.site-footer a:hover { color: var(--bone); text-decoration: none; }

/* ================================================================
   Scrollbar (Chromium/Firefox)
   ================================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel); }
