/* Bargain Birdie — base layout and neutral defaults. */

:root {
  --cream: #fdf6ea;
  --ink: #3d2f23;
  --ink-soft: #6d5a48;
  --muted: #8a715a;
  --muted-light: #b09270;
  --warm-fill: #f7e9d2;
  --warm-line: #f0e2c8;
  --warm-border: #e8d9bd;
  --accent: #d97706;
  --coral: #e2593d;
  --green: #5f8f5a;
  --sun: #f5b445;
  --card-shadow: 0 3px 0 rgba(194, 151, 96, 0.25);
  --card-shadow-big: 0 6px 0 rgba(194, 151, 96, 0.25);
  --soft-shadow: 0 2px 4px rgba(61, 47, 35, 0.1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: #c2410c; }
a:hover { color: #9a3412; }
.hidden { display: none !important; }

/* ---------- layout ---------- */

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  max-width: 560px;
  margin: 0 auto;
}
.screen.has-tabbar { bottom: calc(68px + var(--safe-bottom)); }

@media (min-width: 561px) {
  body { background: #f4ead8; }
  .screen { box-shadow: 0 0 40px rgba(61, 47, 35, 0.12); background: var(--cream); }
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 12px;
  flex-shrink: 0;
}
.page-title-row { display: flex; align-items: center; gap: 12px; }
.page-title-row h1 { font-size: 24px; font-weight: 800; flex-grow: 1; }

.bottom-bar {
  display: flex;
  gap: 12px;
  padding: 14px 20px calc(16px + var(--safe-bottom));
  background: #ffffff;
  border-top: 2px solid var(--warm-line);
  flex-shrink: 0;
}
.bottom-bar.column { flex-direction: column; }

/* ---------- text ---------- */

.hint { font-size: 13px; font-weight: 600; color: var(--muted); }
.hint.strong { font-size: 14px; font-weight: 700; }
.hint.small, .small { font-size: 12px; }
.hint.center, .center { text-align: center; }
.accent-text { color: var(--accent); font-size: 13px; font-weight: 700; }
.accent-text.small { font-size: 12px; }
.success-text { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 700; }
.body-text { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink-soft); }
.icon-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }

/* ---------- buttons & chips ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 16px;
}
.btn.primary { background: var(--accent); color: #ffffff; }
.btn.primary.added { background: var(--cream); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.white { background: #ffffff; box-shadow: var(--card-shadow); font-size: 15px; }
.btn.ghost { background: var(--warm-fill); color: var(--muted); font-size: 15px; }
.btn.danger { background: transparent; color: #a33a22; font-size: 15px; }
.btn.danger.armed { background: #a33a22; color: #ffffff; }
.btn.grow { flex-grow: 1; }
.btn:disabled { opacity: 0.5; cursor: default; }

.round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--card-shadow);
}
.round-btn.back { position: absolute; left: 28px; top: calc(12px + var(--safe-top)); z-index: 5; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--warm-fill);
  color: var(--muted);
}
.chip.choice { cursor: pointer; }
.chip.on { background: var(--accent); color: #ffffff; }
.chip.static { background: #ffffff; box-shadow: var(--soft-shadow); cursor: default; }
.chip.static.live { background: var(--green); color: #ffffff; }
.chip.static.paused { background: var(--warm-line); color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-light);
}

/* ---------- welcome ---------- */

.welcome-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 28px 24px;
}
.brandmark { display: block; }
.welcome-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; }
.tagline { font-size: 15px; font-weight: 600; color: var(--muted); }

.welcome-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 24px;
  flex-grow: 1;
}
.welcome-choices h2 { font-size: 17px; font-weight: 800; text-align: center; }

.choice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-align: left;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  transition: transform 0.1s;
}
.choice-card:active { transform: scale(0.98); }
.choice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 18px;
  background: var(--warm-fill);
}
.choice-text { display: flex; flex-direction: column; gap: 3px; }
.choice-text strong { font-size: 17px; font-weight: 800; }
.choice-text small { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- map screen ---------- */

.map-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px 12px;
  flex-shrink: 0;
}
.map-header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.greeting h1 { font-size: 22px; font-weight: 800; }

/* search + suggestions */
.search-wrap, .suggest-wrap { position: relative; }
.suggest-wrap > .field { width: 100%; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}
.search-field input {
  flex-grow: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  -webkit-appearance: none;
}
.search-field input::placeholder { color: var(--muted-light); font-weight: 600; }
.search-field input::-webkit-search-cancel-button { display: none; }
.clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--warm-fill);
  color: var(--muted);
}

.suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(61, 47, 35, 0.18);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.suggest-list button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--warm-line);
}
.suggest-list button:last-child { border-bottom: none; }
.suggest-list strong { font-size: 14px; font-weight: 800; }
.suggest-list span { font-size: 12px; font-weight: 600; color: var(--muted); }
.suggest-list .note { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--muted); }

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 0 20px 2px;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-row .chip { flex-shrink: 0; }
.filter-row:empty { display: none; }

.map-area { flex-grow: 1; border-radius: 24px 24px 0 0; overflow: hidden; }
.maplibregl-canvas { outline: none; }

.pin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid #ffffff;
  box-shadow: 0 3px 6px rgba(61, 47, 35, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ffffff; }
.pin.selected { width: 44px; height: 44px; background: var(--accent); box-shadow: 0 4px 10px rgba(61,47,35,0.3), 0 0 0 5px rgba(217,119,6,0.25); }

.peek-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--card-shadow-big);
  z-index: 10;
}
.peek-row { display: flex; align-items: center; gap: 14px; }
.peek-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.peek-text strong { font-size: 16px; font-weight: 800; }
.peek-actions { display: flex; gap: 10px; }
.peek-actions .primary { flex-grow: 1; }

.thumb-photo {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 18px;
  background: var(--warm-fill) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-photo.empty::after {
  content: "";
  width: 26px;
  height: 26px;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c29760' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='M21 15 L16 10 L5 21'/%3E%3C/svg%3E");
}

/* ---------- detail ---------- */

.detail-scroll { flex-grow: 1; overflow-y: auto; }
.detail-hero { position: relative; padding: 12px 16px 0; }
.detail-photo {
  display: block;
  width: 100%;
  /* Height is set from the photo's own shape in JS so nothing gets cropped. */
  height: 230px;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--warm-fill);
  cursor: zoom-in;
}
.detail-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-photo img[src=""] { visibility: hidden; }

/* ---------- full-screen photo viewer ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 22, 18, 0.985);
  touch-action: none;
}
/* Fill the viewport and letterbox, rather than letting max-width cap the
   photo at a fraction of the screen — the whole point is to see it bigger. */
.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.lb-close { top: calc(12px + var(--safe-top)); right: 12px; }
.lb-prev { left: 10px; top: 50%; margin-top: -24px; }
.lb-next { right: 10px; top: 50%; margin-top: -24px; }
.lb-btn.hidden { display: none !important; }
.lb-count {
  position: absolute;
  bottom: calc(18px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}
.photo-chip {
  position: absolute;
  right: 28px;
  bottom: 12px;
  padding: 6px 14px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: var(--soft-shadow);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.thumb-row { display: flex; gap: 10px; padding: 12px 16px; overflow-x: auto; }
.thumb-row button {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--warm-fill) center/cover no-repeat;
  border: 3px solid #ffffff;
  box-shadow: var(--soft-shadow);
}
.thumb-row button.on { border-color: var(--accent); box-shadow: var(--card-shadow); }

.detail-body { display: flex; flex-direction: column; gap: 14px; padding: 2px 20px 20px; }
.detail-body h1 { font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 3px; }

.hours-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--warm-fill);
  border-radius: 18px;
}
.hours-card div { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }

.report-zone { display: flex; flex-direction: column; gap: 8px; }
.sale-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.sale-row .alert-text strong { font-size: 15px; }
.sale-row .chip { flex-shrink: 0; }

/* ---------- route ---------- */

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}
.seg-btn {
  flex: 1 1 0;
  height: 44px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}
.seg-btn.on { background: var(--accent); color: #ffffff; }

.route-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 20px 16px;
  flex-grow: 1;
  overflow-y: auto;
}
.stop-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.stop-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
}
.stop-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.stop-text strong { font-size: 14px; font-weight: 800; line-height: 1.25; }
.stop-controls { display: flex; gap: 8px; flex-shrink: 0; }
.stop-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--warm-fill);
  color: var(--muted);
}
.stop-controls .remove { background: var(--cream); border: 2px solid var(--warm-border); }
.stop-controls button:disabled { opacity: 0.35; cursor: default; }

.empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.empty-card strong { font-size: 17px; font-weight: 800; }

/* ---------- forms ---------- */

.form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 20px 24px;
  flex-grow: 1;
}
.form-col.scroll { overflow-y: auto; }
/* Inside a scrolling column, flex children must keep their natural height
   instead of being squeezed to fit the viewport. */
.form-col.scroll > * { flex-shrink: 0; }

.field-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }

.field {
  min-height: 46px;
  padding: 12px 16px;
  background: #ffffff;
  border: none;
  border-radius: 23px;
  box-shadow: var(--soft-shadow);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.field::placeholder { color: var(--muted-light); font-weight: 600; }
.field:focus { outline: 2px solid var(--accent); }
.field.area { min-height: 90px; border-radius: 18px; resize: vertical; font-weight: 600; line-height: 1.45; }

.photo-row { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-row .tile {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--warm-fill) center/cover no-repeat;
}
.add-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  cursor: pointer;
  background: #ffffff;
  border: 2px dashed #c29760;
  border-radius: 16px;
}

/* calendar date picker */
.calendar {
  padding: 12px 10px 14px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 8px;
}
.cal-head strong { font-size: 15px; font-weight: 800; }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--warm-fill);
  color: var(--muted);
}
.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-light);
  padding-bottom: 4px;
}
.cal-day {
  aspect-ratio: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.cal-day.blank { visibility: hidden; }
.cal-day.past { color: #d8ccb8; cursor: default; }
.cal-day.weekend { color: var(--coral); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--warm-border); }
.cal-day.on { background: var(--accent); color: #ffffff; font-weight: 800; box-shadow: none; }

.hours-row { display: flex; gap: 10px; }
.time-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}
.time-select {
  width: 100%;
  height: 40px;
  border: none;
  background: transparent
    center right / 16px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a715a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9 L12 15 L18 9'/%3E%3C/svg%3E");
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  padding-right: 22px;
  cursor: pointer;
}
.time-select:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.post-map { height: 220px; border-radius: 18px; overflow: hidden; box-shadow: var(--soft-shadow); }

/* ---------- my sale ---------- */

.listing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--card-shadow-big);
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--warm-fill);
  border-radius: 16px;
}
.toggle-row strong { font-size: 14px; font-weight: 800; }

.switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 15px;
  background: #d9c9a8;
  transition: background 0.15s;
}
.switch[aria-checked="true"] { background: var(--green); }
.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(61, 47, 35, 0.3);
  transition: left 0.15s;
}
.switch[aria-checked="true"] .knob { left: 25px; }

/* ---------- alerts ---------- */

.alerts-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 20px 24px;
  flex-grow: 1;
  overflow-y: auto;
}
.alerts-scroll > * { flex-shrink: 0; }

.section-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding-top: 4px;
}

.alert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.alert-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.alert-card strong { font-size: 15px; font-weight: 800; }
.alert-card button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--cream);
  border: 2px solid var(--warm-border);
  border-radius: 22px;
  box-sizing: border-box;
}

.match-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.match-card .thumb-photo { width: 56px; height: 56px; border-radius: 14px; }
.match-card .alert-text strong { font-size: 15px; }

.alert-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.alert-form .field-label { margin-top: 0; }
.alert-form-actions { display: flex; gap: 10px; padding-top: 6px; }

/* ---------- tab bar ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  height: calc(68px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #ffffff;
  border-top: 2px solid var(--warm-line);
  max-width: 560px;
  margin: 0 auto;
  z-index: 20;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 2px;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tab.active { color: var(--accent); font-weight: 800; }
.tab-icon { position: relative; display: block; line-height: 0; }
.tab-dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid #ffffff;
}
.tab-badge {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
}

/* ---------- share ---------- */

.share-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 22px 24px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.share-bird { display: block; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
}

