/* Apply Bot — dark aubergine glass, GT-purple accent, spring motion */

:root {
  --bg: #14101e;
  --bg2: #1b1430;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #efeaf7;
  --dim: #a89fc0;
  --faint: #6f668c;
  --accent: #7c5cff;
  --accent-2: #a685ff;
  --gt: #4f2d7f;
  --mint: #4ade9d;
  --amber: #f5b445;
  --rose: #f27878;
  --radius: 18px;
  --spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --chrome-bg: rgba(20, 16, 30, 0.82);
  --input-bg: rgba(0, 0, 0, 0.25);
  --tile-from: #ffffff;
  --bg-gradient:
    radial-gradient(120% 60% at 85% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(100% 50% at 0% 100%, rgba(79, 45, 127, 0.35), transparent 55%),
    linear-gradient(160deg, #1b1430, #14101e 55%);
}

/* ---------- themes ---------- */
html[data-theme="ledger"] {
  --bg: #f7f3e9; --bg2: #fffdf6;
  --surface: #ffffff; --surface-2: #f1ecdf;
  --stroke: rgba(24, 42, 70, 0.14);
  --text: #182a46; --dim: #5c6478; --faint: #8a8f99;
  --accent: #4f2d7f; --accent-2: #6b46b0; --gt: #4f2d7f;
  --mint: #1e7f4f; --amber: #c98a00; --rose: #b3382c;
  --chrome-bg: rgba(247, 243, 233, 0.9);
  --input-bg: rgba(24, 42, 70, 0.05);
  --tile-from: #182a46;
  --bg-gradient:
    radial-gradient(120% 60% at 85% -10%, rgba(79, 45, 127, 0.08), transparent 60%),
    linear-gradient(160deg, #fffdf6, #f7f3e9 55%);
}
html[data-theme="midnight"] {
  --bg: #0a1220; --bg2: #0e1a2e;
  --surface: rgba(255, 255, 255, 0.05); --surface-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.1);
  --text: #e8f1fa; --dim: #93a8bf; --faint: #5c7189;
  --accent: #38bdf8; --accent-2: #7dd3fc; --gt: #0e7490;
  --chrome-bg: rgba(10, 18, 32, 0.85);
  --bg-gradient:
    radial-gradient(120% 60% at 85% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(100% 50% at 0% 100%, rgba(14, 116, 144, 0.3), transparent 55%),
    linear-gradient(160deg, #0e1a2e, #0a1220 55%);
}
html[data-theme="noir"] {
  --bg: #000000; --bg2: #0c0c10;
  --surface: rgba(255, 255, 255, 0.055); --surface-2: rgba(255, 255, 255, 0.1);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f4f2f8; --dim: #9d97ad; --faint: #635e72;
  --chrome-bg: rgba(0, 0, 0, 0.85);
  --bg-gradient:
    radial-gradient(110% 55% at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #0c0c10, #000 60%);
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }

html { height: 100%; }

body {
  min-height: 100%;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-gradient);
  background-color: var(--bg);
  background-attachment: fixed;
  transition: background-color 0.4s;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.display { font-family: "Sora", "Inter", sans-serif; }

#app { max-width: 520px; margin: 0 auto; padding: 18px 18px 0; }

/* ---------- header ---------- */
header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 2px 20px;
}
.logo {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--gt));
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}
.head-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.head-sub { font-size: 12px; color: var(--dim); margin-top: 1px; }
.head-spacer { margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--stroke);
  background: var(--surface); color: var(--dim); font-size: 17px;
  display: grid; place-items: center; cursor: pointer;
  transition: transform 0.25s var(--spring), background 0.2s;
}
.icon-btn:active { transform: scale(0.88); background: var(--surface-2); }

/* ---------- screens ---------- */
.screen { display: none; animation: screen-in 0.42s var(--ease) both; }
.screen.active { display: block; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* staggered card entrances */
.screen.active > * { animation: rise 0.5s var(--ease) both; }
.screen.active > *:nth-child(1) { animation-delay: 0.02s; }
.screen.active > *:nth-child(2) { animation-delay: 0.07s; }
.screen.active > *:nth-child(3) { animation-delay: 0.12s; }
.screen.active > *:nth-child(4) { animation-delay: 0.17s; }
.screen.active > *:nth-child(5) { animation-delay: 0.22s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 0;
  overflow-wrap: break-word;
}
.card-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px; font-weight: 600;
}

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.tile {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px;
  padding: 13px 6px 11px; text-align: center;
  transition: transform 0.3s var(--spring);
}
.tile:active { transform: scale(0.94); }
.tile-val {
  font-family: "Sora", sans-serif; font-size: 24px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
  background: linear-gradient(120deg, var(--tile-from), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tile-label { font-size: 10px; color: var(--dim); margin-top: 6px; letter-spacing: 0.02em; }

/* ---------- primary action ---------- */
.hero-action {
  width: 100%; border: none; cursor: pointer;
  border-radius: 20px; padding: 20px;
  display: flex; align-items: center; gap: 15px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gt) 100%);
  color: #fff; text-align: left;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
  margin-bottom: 14px;
}
.hero-action:active { transform: scale(0.97); box-shadow: 0 4px 14px rgba(124, 92, 255, 0.3); }
.hero-icon { font-size: 26px; }
.hero-title { font-family: "Sora", sans-serif; font-size: 17px; font-weight: 700; }
.hero-sub { font-size: 12.5px; opacity: 0.82; margin-top: 3px; }

/* ---------- buttons ---------- */
.btn {
  border: none; cursor: pointer; border-radius: 14px;
  padding: 14px 18px; font-size: 15px; font-weight: 600; font-family: inherit;
  transition: transform 0.28s var(--spring), opacity 0.2s, box-shadow 0.3s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--gt));
  color: #fff; box-shadow: 0 6px 20px rgba(124, 92, 255, 0.3);
}
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--stroke); }
.btn-danger { background: rgba(242, 120, 120, 0.14); color: var(--rose); border: 1px solid rgba(242,120,120,0.3); }
.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-row .btn { flex: 1; }

/* ---------- processing / shimmer ---------- */
.shot-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--stroke); max-height: 300px;
}
.shot-frame img { width: 100%; display: block; object-fit: cover; max-height: 300px; opacity: 0.85; }
.scanline {
  position: absolute; left: 0; right: 0; height: 34%;
  background: linear-gradient(to bottom, transparent, rgba(124, 92, 255, 0.28) 45%,
    rgba(166, 133, 255, 0.5) 50%, rgba(124, 92, 255, 0.28) 55%, transparent);
  animation: scan 1.7s var(--ease) infinite;
  mix-blend-mode: screen;
}
@keyframes scan { 0% { top: -34%; } 100% { top: 100%; } }

.spin-note { display: flex; align-items: center; gap: 12px; padding: 14px 2px; color: var(--dim); font-size: 14px; }
.orb {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 0deg, var(--accent), var(--gt), var(--accent));
  animation: whirl 1.1s linear infinite;
  mask: radial-gradient(circle at center, transparent 40%, #000 44%);
  -webkit-mask: radial-gradient(circle at center, transparent 40%, #000 44%);
}
@keyframes whirl { to { transform: rotate(360deg); } }

.steps { display: grid; gap: 9px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); transition: color 0.3s; }
.step.on { color: var(--text); }
.step.done { color: var(--mint); }
.step-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.step.on .step-dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.8); opacity: 0.5; } }

/* ---------- job card ---------- */
.job-role { font-family: "Sora", sans-serif; font-size: 21px; font-weight: 700; line-height: 1.25; }
.job-meta { color: var(--dim); font-size: 13.5px; margin-top: 5px; }
.job-email {
  font-family: "SF Mono", ui-monospace, monospace; font-size: 13px;
  color: var(--accent-2); margin-top: 9px; word-break: break-all;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
  font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 14px;
  border: 1px solid var(--stroke); color: var(--dim); background: var(--surface);
  max-width: 100%; white-space: normal; overflow-wrap: anywhere;
  line-height: 1.45; text-align: left;
}
.chip.good { color: var(--mint); border-color: rgba(74, 222, 157, 0.35); background: rgba(74, 222, 157, 0.08); }
.chip.warn { color: var(--amber); border-color: rgba(245, 180, 69, 0.35); background: rgba(245, 180, 69, 0.08); }
.chip.bad { color: var(--rose); border-color: rgba(242, 120, 120, 0.35); background: rgba(242, 120, 120, 0.08); }
.chip.cv { color: var(--accent-2); border-color: rgba(124, 92, 255, 0.4); background: rgba(124, 92, 255, 0.1); }

/* held stamp */
.hold-banner {
  border: 1.5px dashed rgba(245, 180, 69, 0.55);
  background: rgba(245, 180, 69, 0.07);
  color: var(--amber); border-radius: 14px; padding: 13px 15px;
  font-size: 13.5px; line-height: 1.5; margin-top: 13px;
  animation: stamp 0.45s var(--spring) both;
  overflow-wrap: anywhere;
}
@keyframes stamp {
  0% { transform: scale(1.3) rotate(-3deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.hold-banner b { display: block; letter-spacing: 0.1em; font-size: 11px; margin-bottom: 3px; }

/* ---------- draft editor ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; font-weight: 600; }
.input, textarea.input {
  width: 100%; border-radius: 13px; border: 1px solid var(--stroke);
  background: var(--input-bg); color: var(--text);
  padding: 12px 14px; font-size: 14.5px; font-family: inherit; line-height: 1.55;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18); }
textarea.input { resize: vertical; min-height: 190px; }

.review-notes { margin-top: 12px; font-size: 13px; color: var(--amber); line-height: 1.6; }
.review-notes.clean { color: var(--mint); }

/* ---------- success ---------- */
.success-wrap { text-align: center; padding: 46px 0 30px; }
.tick-ring {
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 157, 0.16), transparent 70%);
  display: grid; place-items: center;
  animation: ring-pop 0.55s var(--spring) both;
}
@keyframes ring-pop { from { transform: scale(0.4); opacity: 0; } }
.tick-svg path {
  stroke: var(--mint); stroke-width: 7; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 80; stroke-dashoffset: 80;
  animation: tick-draw 0.6s 0.25s var(--ease) forwards;
}
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.success-title { font-family: "Sora", sans-serif; font-size: 22px; font-weight: 700; }
.success-sub { color: var(--dim); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ---------- lists ---------- */
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.row:last-child { border-bottom: none; }
.row-main { min-width: 0; flex: 1; }
.row-title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--dim); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--faint); }
.badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.badge.sent { color: var(--accent-2); background: rgba(124, 92, 255, 0.13); }
.badge.replied { color: var(--mint); background: rgba(74, 222, 157, 0.12); }
.badge.draft { color: var(--dim); background: var(--surface-2); }
.badge.due { color: var(--amber); background: rgba(245, 180, 69, 0.12); }

.empty { text-align: center; color: var(--faint); font-size: 13.5px; padding: 26px 10px; line-height: 1.6; }

/* ---------- bottom nav ---------- */
nav.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-around;
  padding: 8px 10px calc(16px + env(safe-area-inset-bottom));
  background: var(--chrome-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--stroke);
}
.tab {
  border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--faint); font-size: 10.5px; font-family: inherit; font-weight: 600;
  padding: 6px 14px; border-radius: 14px;
  transition: color 0.25s, transform 0.3s var(--spring);
}
.tab .t-icon { font-size: 20px; transition: transform 0.3s var(--spring); }
.tab.active { color: var(--accent-2); }
.tab.active .t-icon { transform: translateY(-2px) scale(1.12); }
.tab:active { transform: scale(0.9); }

/* ---------- mail tab ---------- */
.seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 14px; padding: 4px; margin-bottom: 14px;
}
.seg button {
  border: none; cursor: pointer; border-radius: 10px; padding: 9px 4px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--dim);
  transition: all 0.25s var(--ease);
}
.seg button.active {
  background: linear-gradient(135deg, var(--accent), var(--gt)); color: #fff;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.25);
}
.mail-row { cursor: pointer; border-radius: 12px; margin: 0 -8px; padding: 13px 8px; transition: background 0.2s; }
.mail-row:active { background: var(--surface-2); }
.mail-from { font-weight: 700; font-size: 14px; }
.mail-subj { font-size: 13.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-snip { font-size: 12.5px; color: var(--faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-date { font-size: 11.5px; color: var(--faint); float: right; }

#mail-viewer {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: var(--bg); flex-direction: column;
}
#mail-viewer.open { display: flex; animation: screen-in 0.35s var(--ease) both; }
.mv-head {
  padding: 14px 18px calc(12px); border-bottom: 1px solid var(--stroke);
  background: var(--chrome-bg); backdrop-filter: blur(16px);
}
.mv-subject { font-family: "Sora", sans-serif; font-size: 16px; font-weight: 700; }
.mv-meta { font-size: 12px; color: var(--dim); margin-top: 4px; overflow-wrap: anywhere; }
.mv-close {
  float: right; border: 1px solid var(--stroke); background: var(--surface);
  color: var(--text); border-radius: 10px; padding: 6px 13px; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
#mail-frame { flex: 1; border: none; background: #fff; }

/* ---------- ledger detail ---------- */
#ledger-viewer {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: var(--bg); overflow-y: auto; padding: 18px;
}
#ledger-viewer.open { display: block; animation: screen-in 0.35s var(--ease) both; }
.lv-shots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.lv-shots img {
  max-width: 46%; border-radius: 12px; border: 1px solid var(--stroke);
  cursor: pointer; transition: transform 0.3s var(--spring);
}
.lv-shots img:active { transform: scale(0.96); }
.lv-field { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--stroke); font-size: 13.5px; }
.lv-field b { color: var(--faint); font-weight: 600; min-width: 86px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 1px; }
.lv-field span { overflow-wrap: anywhere; }
.seg.filters { grid-template-columns: repeat(5, 1fr); }
.seg.filters button { font-size: 11.5px; padding: 8px 2px; }

/* ---------- theme picker ---------- */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-swatch {
  border-radius: 14px; height: 64px; cursor: pointer; position: relative;
  border: 2px solid var(--stroke); overflow: hidden;
  transition: transform 0.3s var(--spring), border-color 0.2s;
}
.theme-swatch:active { transform: scale(0.92); }
.theme-swatch.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25); }
.theme-swatch span {
  position: absolute; bottom: 5px; left: 0; right: 0; text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
}

/* ---------- run-in-progress pill ---------- */
#runpill[hidden] { display: none !important; }
#runpill {
  position: sticky; top: 8px; z-index: 45;
  display: flex; align-items: center; gap: 9px;
  width: 100%; border: 1px solid rgba(124, 92, 255, 0.45); cursor: pointer;
  background: rgba(34, 26, 56, 0.92); color: var(--text);
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 11px 16px; border-radius: 999px; margin-bottom: 12px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 22px rgba(124, 92, 255, 0.25);
  animation: rise 0.4s var(--ease) both;
  transition: transform 0.28s var(--spring);
}
#runpill:active { transform: scale(0.97); }
#runpill[data-status="ready"] { border-color: rgba(74, 222, 157, 0.5); box-shadow: 0 6px 22px rgba(74, 222, 157, 0.2); }
.rp-orb {
  width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 0deg, var(--accent), var(--gt), var(--accent));
  animation: whirl 1.1s linear infinite;
  mask: radial-gradient(circle, transparent 38%, #000 42%);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 42%);
}
#runpill[data-status="ready"] .rp-orb { background: var(--mint); mask: none; -webkit-mask: none; animation: pulse 1.2s ease-in-out infinite; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px); z-index: 60;
  background: var(--chrome-bg); border: 1px solid var(--stroke);
  color: var(--text); font-size: 13.5px; padding: 11px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all 0.35s var(--spring);
  max-width: 86vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* role choice */
.role-sub { font-size: 13px; color: var(--dim); line-height: 1.55; margin: 8px 0 14px; }
.role-opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; margin-bottom: 9px;
  border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.role-opt:has(input:checked) { border-color: var(--accent); background: rgba(124, 92, 255, 0.12); }
.role-opt input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.role-body { display: block; min-width: 0; flex: 1; }
.role-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.role-reason { display: block; font-size: 12.5px; color: var(--dim); margin-top: 6px; line-height: 1.5; }

/* location preference */
.loc-list { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 6px; }
.loc-opt {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 9px;
  border: 1px solid var(--stroke); border-radius: 999px; background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.loc-num {
  width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--faint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex: none;
}
.loc-opt.on { border-color: var(--accent); background: rgba(124, 92, 255, 0.14); }
.loc-opt.on .loc-num { background: var(--accent); border-color: var(--accent); color: #fff; }
