:root {
  --bg: #0c0e13;
  --card: #13161d;
  --card2: #1a1e27;
  --line: #242936;
  --txt: #f2f4f8;
  --mut: #8b93a3;
  --accent: #e8613c;
  --accent2: #e0a83f;
  --good: #3fae8c;
  --blue: #5b8def;
  --radius: 14px;
}
:root[data-theme="light"] {
  --bg: #f6f7f9;
  --card: #ffffff;
  --card2: #edeff4;
  --line: #e0e3ea;
  --txt: #181c26;
  --mut: #5f6878;
  --accent: #d9532e;
  --accent2: #9a6d10;
  --good: #23825f;
  --blue: #3f68c8;
}
:root[data-theme="light"] .goto-card,
:root[data-theme="light"] .block { box-shadow: 0 1px 3px rgba(20,25,40,.06); }
:root[data-theme="light"] .gc-tag { background: rgba(154,109,16,.12); }
:root[data-theme="light"] .gc-tag.net { background: rgba(35,130,95,.12); }
:root[data-theme="light"] .landing-glow { background: radial-gradient(closest-side, rgba(217,83,46,0.08), transparent 72%); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font: 16px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* Lucide icons */
.lic { width: 16px; height: 16px; stroke-width: 2.1; vertical-align: -2.5px; display: inline-block; }
.lic-s { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
h2 .h-ic, .h-ic { width: 17px; height: 17px; color: var(--accent); margin-right: 8px; vertical-align: -3px; }
.logo-ic { color: var(--accent); margin-right: 6px; }
.cd-lic { width: 21px; height: 21px; color: var(--accent); vertical-align: -3.5px; }
.big-ic { margin-bottom: 8px; }
.big-ic .lic { width: 42px; height: 42px; stroke-width: 1.6; color: var(--accent); }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; position: relative; }
.screen { padding: 18px 16px 0; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }
.hidden { display: none !important; }

h1 { font-size: 27px; line-height: 1.18; margin: 14px 0 8px; letter-spacing: -0.3px; }
h2 { font-size: 18px; margin: 0 0 4px; }
.sub { color: var(--mut); margin: 0 0 22px; }
.hint { color: var(--mut); font-size: 13px; margin: 2px 0 12px; }
.tiny { color: var(--mut); font-size: 12px; margin-top: 14px; }
.opt { color: var(--mut); font-weight: 400; font-size: 13px; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-row { display: flex; align-items: center; justify-content: space-between; }
.logo-mark { width: 27px; height: 27px; border-radius: 8px; }
.logo-word { font-size: 19px; font-weight: 500; color: var(--mut); letter-spacing: -0.02em; }
.logo-word b { font-weight: 800; color: var(--txt); }
.theme-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1px solid var(--line);
  color: var(--mut); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.theme-btn .lic { width: 15px; height: 15px; vertical-align: 0; }
.theme-btn:active { transform: scale(.94); }
.topbar-actions { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- landing / share page ---------- */
.landing { padding-top: 26px; overflow: hidden; }
.landing-glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 420px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(232,97,60,0.10), transparent 72%);
  filter: blur(8px);
}
.landing-inner { position: relative; z-index: 1; }
.plain-hero h1 { margin-top: 22px; }

.ref-hero { text-align: center; margin: 18px 0 6px; }
.ref-sub { color: var(--mut); font-size: 14px; margin: 8px 0 4px; }
.ref-headline2 { font-size: 17px; font-weight: 700; color: var(--accent2); margin: 4px 0 2px; }

/* group value-prop headers */
.rg-sell { font-size: 17px; font-weight: 800; margin: 2px 0 2px; }
.rg-sub { color: var(--mut); font-size: 13px; line-height: 1.45; margin-bottom: 10px; }

/* collapsed categories + expander */
.gc-rest { margin-top: 8px; }
.gc-expand { display: block; width: 100%; margin-top: 8px; background: transparent; border: 1px dashed var(--line);
  color: var(--accent2); font: 600 13px/1 "Inter", -apple-system, "Segoe UI", sans-serif; padding: 10px; border-radius: 10px; cursor: pointer; }
.gc-expand:active { opacity: .75; }

/* tie / no-clear-winner state */
.gc-tag.tie { color: var(--mut); background: rgba(139,147,163,.14); }
.gc-pick.gc-dim { color: var(--mut); font-weight: 600; }

/* GoTo card grid (share page) */
.ref-group { text-align: left; margin-top: 18px; }
.ref-group-title { font-weight: 700; font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; display: flex; align-items: center; }
.ref-group-title .lic { color: var(--accent); }
.goto-grid { display: flex; flex-direction: column; gap: 8px; }
.goto-card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  min-width: 0;
  display: flex; align-items: center; gap: 12px;
}
.gc-body { flex: 1; min-width: 0; }
.gc-chev { color: var(--mut); font-size: 18px; font-weight: 600; flex: none; }
.goto-card .gc-icon { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 9px; background: var(--card2); }
.goto-card .gc-icon .lic { width: 15px; height: 15px; color: var(--accent); vertical-align: 0; }
.goto-card .gc-cat { color: var(--mut); font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; }
.goto-card .gc-name { font-weight: 700; font-size: 14px; margin-top: 2px; line-height: 1.25; }
.goto-card.tappable { cursor: pointer; transition: transform .1s ease, border-color .15s ease; }
.goto-card.tappable:active { transform: scale(.97); border-color: var(--accent); }
.gc-top { display: flex; justify-content: space-between; align-items: center; }
.gc-badge { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 4px; flex: none; }
.gc-more { color: var(--accent2); font-size: 11px; font-weight: 600; margin-top: 6px; }
.gc-line { display: flex; align-items: center; gap: 5px; margin-top: 3px; min-width: 0; }
.gc-tag { flex: none; font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  color: var(--accent2); background: rgba(255,209,102,.12); border-radius: 5px; padding: 2px 5px; }
.gc-tag.net { color: var(--good); background: rgba(67,197,158,.12); }
.gc-pick { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 12.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* two-level (destination + stay) slots */
.stay-slot { margin: 8px 0 0 22px; position: relative; }
.stay-slot .stay-arrow { position: absolute; left: -18px; top: 10px; color: var(--mut); font-size: 15px; pointer-events: none; }
.stay-slot input.search { padding-left: 13px; }
.stay-slot input.search:disabled { opacity: .45; }

/* optional 5-word micro-review input */
.note-slot { margin: 8px 0 0 22px; position: relative; }
.note-slot::before { content: '\201C'; position: absolute; left: -16px; top: 6px; color: var(--accent2); font: 700 18px/1 Georgia, serif; }
.note-input { width: 100%; padding: 10px 13px; background: transparent; border: 1px dashed var(--line);
  border-radius: 10px; color: var(--txt); font-size: 13px; font-style: italic; }
.note-input:focus { border-style: solid; border-color: var(--accent2); outline: none; }

/* featured micro-review on detail rows */
.cd-review { font-size: 13px; font-style: italic; color: var(--accent2); margin-top: 1px; }
.cd-review.has-more { cursor: pointer; }
.cd-review-by { color: var(--mut); font-style: normal; font-size: 12px; }
.cd-rev-more { color: var(--mut); font-style: normal; font-size: 11px; font-weight: 700; margin-left: 6px;
  background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.cd-revs { margin: 6px 0 2px; padding-left: 10px; border-left: 2px solid var(--line); }
.cd-rev-item { font-size: 12.5px; font-style: italic; color: var(--accent2); padding: 2px 0; }

/* stay breakdown pills in detail sheet */
.cd-stays { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cd-stays-label { color: var(--mut); font-size: 11px; font-weight: 700; }
.stay-pill { background: var(--card2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.stay-pill b { color: var(--accent2); margin-left: 4px; }

/* degree-of-separation selector */
.cd-degrees { display: flex; gap: 6px; margin-bottom: 12px; }
.cd-deg { flex: 1; background: var(--card2); border: 1px solid var(--line); color: var(--mut);
  font-size: 12px; font-weight: 700; padding: 8px 4px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.cd-deg.active { background: var(--accent); border-color: transparent; color: #fff; }

/* tappable dashboard rank rows */
.tappable-row { cursor: pointer; }
.tappable-row:active { opacity: .8; }
.cr-chev { margin-left: auto; color: var(--mut); font-size: 11px; font-weight: 600; }

/* category detail overlay */
.cat-detail { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,14,.72); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.cd-sheet { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--bg);
  border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  animation: sheetUp .22s ease; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.cd-head { display: flex; align-items: center; justify-content: space-between; }
.cd-title { font-size: 20px; font-weight: 800; }
.cd-close { background: var(--card2); border: 1px solid var(--line); color: var(--mut); font-size: 20px;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; line-height: 1; }
.cd-sub { color: var(--mut); font-size: 13px; margin: 4px 0 14px; }
.cd-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
.cd-actions { display: flex; gap: 8px; margin-top: 10px; }
.act-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--card2); border: 1px solid var(--line); border-radius: 9px;
  color: var(--txt); font: 600 12px/1 "Inter", -apple-system, "Segoe UI", sans-serif;
  padding: 8px 12px; cursor: pointer; text-decoration: none;
}
.act-btn:active { opacity: .75; }
.act-btn .lic { margin-right: 0; color: var(--accent); }
.act-btn .g-logo { width: 13px; height: 13px; }
.stay-pill { text-decoration: none; color: var(--txt); }
.cd-row:last-child { border-bottom: none; }
.cd-rank { width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--mut); background: var(--card2); border: 1px solid var(--line); }
.cd-rank.r1 { color: #0f0d08; background: var(--accent2); border-color: transparent; }
.cd-rank.r2 { color: #10131a; background: #aeb7c6; border-color: transparent; }
.cd-rank.r3 { color: #170f0a; background: #c98d5f; border-color: transparent; }
.cd-body { flex: 1; min-width: 0; }
.cd-name { font-weight: 700; font-size: 15px; }
.cd-city { color: var(--mut); font-size: 12px; }
.cd-bar-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cd-bar { height: 6px; border-radius: 999px; background: var(--accent); min-width: 12px; }
.cd-count { color: var(--mut); font-size: 12px; white-space: nowrap; }
.cd-fans { color: var(--mut); font-size: 12px; margin-top: 4px; }

/* iPhone-contacts-style fan chips, clustered by degree — always ONE line */
.cd-fan-groups { display: flex; flex-wrap: nowrap; overflow: hidden; gap: 6px 12px; margin-top: 8px; align-items: center; }
.fan-group { display: flex; align-items: center; gap: 5px; flex: none; }
.fg-label { color: var(--mut); font-size: 10px; font-weight: 800; letter-spacing: .3px; }
.fg-chips { display: inline-flex; }
.fan-chip {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
  border: 2px solid var(--bg); margin-left: -7px;
}
.fg-chips .fan-chip:first-child { margin-left: 0 !important; }
/* condense stages applied by JS until the row fits on one line */
.cd-fan-groups.c1 { gap: 6px 8px; }
.cd-fan-groups.c1 .fan-chip { margin-left: -11px; }
.cd-fan-groups.c2 { gap: 6px 6px; }
.cd-fan-groups.c2 .fan-chip { margin-left: -14px; }
.cd-fan-groups.c3 { gap: 6px 5px; }
.cd-fan-groups.c3 .fan-chip { width: 22px; height: 22px; font-size: 9px; margin-left: -13px; }
.fan-chip.deg0 { background: var(--accent); color: #fff; }
.fan-chip.deg1 { background: var(--good); }
.fan-chip.deg2 { background: var(--blue); }
.fan-chip.deg3 { background: #6b7484; }
.cd-expand { display: block; width: 100%; margin-top: 10px; background: var(--card2); border: 1px dashed var(--line);
  color: var(--accent2); font-size: 13px; font-weight: 700; padding: 10px; border-radius: 10px; cursor: pointer; }
.cd-expand:active { opacity: .8; }
#cd-map-wrap { margin: 14px 0 12px; }
#cd-map { height: 200px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.center-txt { text-align: center; }

/* pre-signup unlock preview */
.unlock { text-align: left; margin-top: 26px; }
.unlock-title { font-weight: 800; font-size: 17px; text-align: center; line-height: 1.35; margin-bottom: 14px; }
.stat-row { display: flex; gap: 8px; margin-bottom: 12px; }
.stat { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center;
  cursor: pointer; color: inherit; font: inherit; transition: border-color .15s ease; }
.stat.active { border-color: var(--accent); background: var(--card2); }
.stat:active { transform: scale(.98); }
.stat-n { display: block; font-size: 22px; font-weight: 800; color: var(--accent2); }
.stat-l { display: block; font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .5px; }

/* unlock tab content: people + picks lists */
.unlock-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; max-height: 380px; overflow-y: auto; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pl-row:last-child { border-bottom: none; }
.pl-row .fan-chip { margin-left: 0; width: 28px; height: 28px; }
.pl-body { flex: 1; min-width: 0; }
.pl-name { font-weight: 700; font-size: 14px; }
.pl-loc { color: var(--mut); font-size: 12px; }
.pl-gen { color: var(--mut); font-size: 11px; font-weight: 800; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.pk-cat { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pk-cat:last-child { border-bottom: none; }
.pk-head { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.pk-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.pk-rank { color: var(--accent2); font-weight: 800; width: 16px; text-align: center; flex: none; }
.pk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-count { color: var(--mut); font-weight: 700; white-space: nowrap; }
.unlock-graph-wrap { background: radial-gradient(circle at 50% 45%, #161a21, #0f1115); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 4px; }
#unlock-graph { width: 100%; height: 300px; display: block; touch-action: none; }
.unlock-graph-wrap, #graph-wrap { background: radial-gradient(circle at 50% 45%, var(--card2), var(--bg)) !important; }
.unlock-graph-cap { color: var(--mut); font-size: 12px; text-align: center; padding: 8px 12px 10px; }
.unlock-picks { margin-top: 12px; }
.unlock-pick { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #20242e, #14171d); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.up-icon { font-size: 18px; }
.up-body { flex: 1; display: flex; flex-direction: column; }
.up-cat { color: var(--mut); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.up-name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.up-badge { background: var(--accent); color: #1a0e08; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.unlock-more { color: var(--mut); font-size: 12px; text-align: center; margin-top: 2px; }

/* build screen category rows */
.cat-row { margin: 14px 0 4px; }
.cat-label { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.cat-icon { margin-right: 2px; }
.cat-row .slot input.search { padding-left: 13px; }

/* dashboard rankings */
.rank-group { margin-top: 14px; }
.rank-group:first-child { margin-top: 0; }
.rank-group-title { font-weight: 800; font-size: 13px; color: var(--mut); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.cat-rank { border-bottom: 1px solid var(--line); padding: 10px 0; }
.cat-rank:last-child { border-bottom: none; }
.cr-head { display: flex; align-items: center; gap: 6px; }
.cr-cat { color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.cr-top { margin-top: 3px; }
.cr-name { font-weight: 700; font-size: 15px; }
.cr-meta { color: var(--mut); font-size: 12px; margin-top: 1px; }
.you-too { background: rgba(63,174,140,.15); color: var(--good); border: 1px solid rgba(63,174,140,.35); font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }
.cr-rest { margin-top: 6px; }
.cr-alt { display: flex; justify-content: space-between; color: var(--mut); font-size: 13px; padding: 2px 0 2px 12px; border-left: 2px solid var(--line); margin: 2px 0; }
.cr-alt-meta { white-space: nowrap; margin-left: 10px; }

/* friend card pick rows */
.fc-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.fc-row:last-child { border-bottom: none; }
.fc-cat { color: var(--mut); white-space: nowrap; }
.fc-pick { font-weight: 600; text-align: right; }

/* map pins — flat brand circles */
.emoji-pin .pin {
  position: relative;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.pin.pin-num { color: #fff; font: 700 12px/1 "Inter", -apple-system, "Segoe UI", sans-serif; }
.pin.dot { width: 14px; height: 14px; }
.gp-list { margin: 8px 0 0; padding-left: 20px; }
.gp-list li { margin: 2px 0; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(232,97,60,.25);
}
.ref-headline { font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: -0.3px; }
.ref-headline span { color: var(--accent2); }
.ref-cards { margin: 18px 0 6px; text-align: left; }
.ref-card {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #20242e, #14171d);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.ref-card .medal { font-size: 22px; }
.ref-card .rc-name { font-weight: 700; }
.ref-card .rc-addr { color: var(--mut); font-size: 12px; }
.ref-prompt { color: var(--mut); font-weight: 600; margin: 14px 0 4px; }

.how { display: flex; justify-content: space-between; gap: 8px; margin-top: 26px; }
.how-step { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; font-size: 12px; color: var(--mut); text-align: center; }
.how-step span { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 6px; }

.glow-btn { box-shadow: 0 8px 22px rgba(232,97,60,.28); }

/* ---------- shared bits ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; font-weight: 700; padding: 4px 2px 16px; color: var(--mut); }
.chip { background: var(--card2); border: 1px solid var(--line); color: var(--txt); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; position: relative; }
.block.center { text-align: center; }

.btn { appearance: none; border: 1px solid var(--line); background: var(--card2); color: var(--txt); padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.big { width: 100%; padding: 15px; font-size: 16px; margin-top: 8px; display: block; text-align: center; text-decoration: none; }
.link-btn { background: none; border: none; color: var(--mut); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* slots */
.slot { position: relative; margin-bottom: 10px; }
.slot .rank { position: absolute; left: 12px; top: 13px; color: var(--accent2); font-weight: 800; pointer-events: none; }
.slot input.search { width: 100%; padding: 13px 36px 13px 34px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; color: var(--txt); font-size: 15px; }
.slot.filled input.search { border-color: var(--good); }
.slot .clear { position: absolute; right: 8px; top: 8px; background: none; border: none; color: var(--mut); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.dropdown { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--card2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.dropdown .opt-row { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.dropdown .opt-row:last-child { border-bottom: none; }
.dropdown .opt-row:hover { background: #262b36; }
.dropdown .opt-row .nm { font-weight: 600; }
.dropdown .opt-row .ad { color: var(--mut); font-size: 12px; }
.dropdown .loading, .dropdown .empty { padding: 10px 12px; color: var(--mut); font-size: 13px; }

/* fields */
.field { display: block; text-align: left; margin: 12px 0; }
.field span { display: block; font-size: 13px; color: var(--mut); margin-bottom: 6px; }
.field input { width: 100%; padding: 13px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; color: var(--txt); font-size: 16px; }
.err { color: #ff7a7a; font-size: 13px; }

/* check email */
.check-card { padding: 28px 18px; }
.big-emoji { font-size: 48px; margin-bottom: 6px; }

/* sticky footer */
.sticky-foot { position: fixed; bottom: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }

/* dashboard */
.share-block { background: var(--card); }
.share-row { display: flex; gap: 8px; margin: 10px 0 8px; }
.share-row input { flex: 1; padding: 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; color: var(--txt); font-size: 13px; }

.rankrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rankrow:last-child { border-bottom: none; }
.rankrow .num { font-weight: 800; color: var(--accent2); width: 22px; text-align: center; }
.rankrow .body { flex: 1; }
.rankrow .body .nm { font-weight: 600; }
.rankrow .body .ad { color: var(--mut); font-size: 12px; }
.rankrow .count { background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: 12px; color: var(--mut); white-space: nowrap; }
.fans { color: var(--mut); font-size: 12px; margin-top: 2px; }

.pill { display: inline-block; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin: 4px 6px 0 0; font-size: 13px; }
.pill b { color: var(--good); }

.friend-card { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; }
.friend-card .fh { display: flex; justify-content: space-between; align-items: center; }
.friend-card .fh .nm { font-weight: 700; }
.friend-card .fh .rel { color: var(--mut); font-size: 12px; }
.friend-card ol { margin: 8px 0 0; padding-left: 20px; }
.friend-card li { margin: 2px 0; }

#map { height: 240px; border-radius: 12px; overflow: hidden; }
.muted-empty { color: var(--mut); font-size: 14px; padding: 6px 0; }

/* graph / mind map */
#graph-wrap { height: 360px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #161a21, #0f1115); border: 1px solid var(--line); touch-action: none; }
#graph { width: 100%; height: 100%; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--mut); }
.legend i.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.legend .me { background: var(--accent); } .legend .referrer { background: var(--accent2); }
.legend .friend { background: var(--good); } .legend .extended { background: #8a93a6; }
.graph-panel { margin-top: 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.graph-panel .gp-head { font-weight: 700; }
.graph-panel .gp-head span { color: var(--mut); font-weight: 400; font-size: 12px; }
.graph-panel ol { margin: 8px 0 0; padding-left: 20px; }
.graph-panel li { margin: 2px 0; }
