/* BinWise. Dark follows inspo 1 and 4 (forest black, lime). Light follows inspo 3 (soft greens, deep green buttons). */

:root {
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --lime: #a6f23a;
  --lime-2: #8ee21c;
  --on-lime: #0c1905;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.25, 1.35, 0.4, 1);

  --recycling: #2f7bff;
  --compost: #2fa957;
  --trash: #4a515b;
  --hazardous: #ff6a3d;

  /* Light */
  --bg: #edf2ea;
  --haze:
    radial-gradient(90% 55% at 85% -8%, #cfe7bf 0%, transparent 60%),
    radial-gradient(70% 45% at -10% 30%, #e2f0d9 0%, transparent 60%),
    linear-gradient(180deg, #f3f7f1, #e9f0e6);
  --card: linear-gradient(180deg, #ffffff, #f7faf5);
  --card-2: #ffffff;
  --chip: #ffffff;
  --line: rgba(22, 52, 26, 0.08);
  --hl: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow: 0 14px 34px -18px rgba(26, 70, 32, 0.32);
  --glass: rgba(255, 255, 255, 0.72);
  --text: #0f1f10;
  --muted: #627164;
  --faint: #9aa79b;
  --accent: #2b7a3c;
  --grad-text: linear-gradient(92deg, #23683a, #5db548);
  --primary: linear-gradient(135deg, #18402e, #2c6a3e);
  --on-primary: #ffffff;
  --fab: linear-gradient(145deg, #1d4a33, #2f7444);
  --on-fab: #c8f77d;
  --feature: linear-gradient(135deg, #e7f1e0, #cfe3c2);
  --dock: rgba(255, 255, 255, 0.9);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090e09;
    --haze:
      radial-gradient(100% 55% at 50% -14%, #24401e 0%, transparent 58%),
      radial-gradient(60% 40% at 110% 70%, #10221399 0%, transparent 70%),
      linear-gradient(180deg, #0c130c, #090e09 60%);
    --card: linear-gradient(180deg, #1b241b, #141b14);
    --card-2: #182018;
    --chip: #1a221a;
    --line: rgba(255, 255, 255, 0.07);
    --hl: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.85);
    --glass: rgba(22, 30, 22, 0.66);
    --text: #f2f7ee;
    --muted: #8e9a8c;
    --faint: #5c695b;
    --accent: #a6f23a;
    --grad-text: linear-gradient(92deg, #a6f23a, #57d06a);
    --primary: linear-gradient(135deg, #b4f74e, #8ee21c);
    --on-primary: #0c1905;
    --fab: linear-gradient(145deg, #b8f854, #8ee21c);
    --on-fab: #0c1905;
    --feature: linear-gradient(140deg, #1f2b1d, #131a13);
    --dock: rgba(18, 25, 18, 0.88);
    --trash: #6b7480;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090e09;
  --haze:
    radial-gradient(100% 55% at 50% -14%, #24401e 0%, transparent 58%),
    radial-gradient(60% 40% at 110% 70%, #10221399 0%, transparent 70%),
    linear-gradient(180deg, #0c130c, #090e09 60%);
  --card: linear-gradient(180deg, #1b241b, #141b14);
  --card-2: #182018;
  --chip: #1a221a;
  --line: rgba(255, 255, 255, 0.07);
  --hl: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.85);
  --glass: rgba(22, 30, 22, 0.66);
  --text: #f2f7ee;
  --muted: #8e9a8c;
  --faint: #5c695b;
  --accent: #a6f23a;
  --grad-text: linear-gradient(92deg, #a6f23a, #57d06a);
  --primary: linear-gradient(135deg, #b4f74e, #8ee21c);
  --on-primary: #0c1905;
  --fab: linear-gradient(145deg, #b8f854, #8ee21c);
  --on-fab: #0c1905;
  --feature: linear-gradient(140deg, #1f2b1d, #131a13);
  --dock: rgba(18, 25, 18, 0.88);
  --trash: #6b7480;
  color-scheme: dark;
}
:root[data-contrast="high"] {
  --line: color-mix(in srgb, var(--text) 40%, transparent);
  --muted: color-mix(in srgb, var(--text) 85%, var(--bg));
  --faint: color-mix(in srgb, var(--text) 70%, var(--bg));
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  font-size: calc(16px * var(--scale, 1));
  background: var(--bg);
  height: 100%;
}
body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--haze), var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 14px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

/* ---------- stage (phone fills screen; laptop shows a device next to a pitch) ---------- */
.stage {
  height: 100%;
}
.pitch {
  display: none;
}
#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--haze), var(--bg);
}
.scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: calc(env(safe-area-inset-top) + 16px) 18px calc(env(safe-area-inset-bottom) + 118px);
}
.scroller::-webkit-scrollbar {
  display: none;
}

.pitch .p-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}
.pitch .p-kicker svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.pitch h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  line-height: 0.98;
  font-weight: 700;
  margin: 22px 0 18px;
}
.pitch h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pitch > p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 30rem;
}
.p-feats {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}
.p-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.p-feat i {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--hl);
  color: var(--accent);
}
.p-feat i svg {
  width: 22px;
  height: 22px;
}
.p-feat small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}
.p-url {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 650;
}
.p-url svg {
  width: 18px;
  height: 18px;
}

/* ---------- shared pieces ---------- */
.view {
  min-height: 100%;
}
.enter > * {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes float {
  50% {
    transform: translateY(-9px) rotate(var(--rot, 0deg));
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.round {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  border: 1px solid var(--line);
  box-shadow: var(--hl);
  transition: transform 0.2s var(--ease);
}
.round:active {
  transform: scale(0.92);
}
.round svg {
  width: 22px;
  height: 22px;
}
.round.lime {
  background: var(--lime);
  color: var(--on-lime);
  border: 0;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--lime) 22%, transparent);
}
.round.sm {
  width: 42px;
  height: 42px;
}
.round.sm svg {
  width: 19px;
  height: 19px;
}

.btn {
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1rem;
  background: var(--primary);
  color: var(--on-primary);
  transition:
    transform 0.2s var(--ease),
    filter 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 20px;
  height: 20px;
}
.btn.white {
  background: #fff;
  color: #10200f;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.35);
}
.btn.ghost {
  background: var(--chip);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.block {
  width: 100%;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--hl), var(--shadow);
}
.muted {
  color: var(--muted);
}
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 2px 14px;
}
.sec h2 {
  font-size: 1.3rem;
  font-weight: 650;
}
.link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.page-head h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}
.page-head p {
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- home ---------- */
.hello {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.avatar {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--on-lime);
  background: radial-gradient(circle at 30% 25%, #e3ffb0, var(--lime) 45%, #5fbf2a);
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px color-mix(in srgb, var(--lime) 55%, transparent);
}
.avatar svg {
  width: 26px;
  height: 26px;
}
.hello .grow {
  flex: 1;
  min-width: 0;
}
.hello b {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hello small {
  color: var(--muted);
  font-size: 0.92rem;
}
.display {
  font-size: 2.45rem;
  line-height: 1.04;
  font-weight: 700;
  margin-bottom: 20px;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 62px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  box-shadow: var(--hl), var(--shadow);
  color: var(--muted);
  text-align: left;
}
.searchbar > svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--text);
}
.searchbar span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.searchbar .round {
  width: 46px;
  height: 46px;
}

.feature {
  overflow: hidden;
  margin-top: 16px;
  padding: 24px 22px;
  min-height: 210px;
  background: var(--feature);
  display: grid;
  grid-template-columns: 1fr 132px;
  align-items: center;
  gap: 8px;
}
.feature::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lime) 30%, transparent), transparent 65%);
  pointer-events: none;
}
.feature h2 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.05;
}
.feature p {
  color: var(--muted);
  margin: 8px 0 18px;
  line-height: 1.4;
  max-width: 13rem;
}
.feature .btn {
  min-height: 50px;
  padding: 0 22px;
}
.framed {
  position: relative;
  width: 132px;
  height: 150px;
  display: grid;
  place-items: center;
  z-index: 1;
}
.framed .corners {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
}
.framed .art {
  height: 104px;
  width: auto;
  animation: float 4.5s ease-in-out infinite;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  height: 100px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--hl);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.tile:active {
  transform: scale(0.95);
}
.tile svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -18px 16px;
  padding: 2px 18px;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-weight: 550;
  font-size: 0.95rem;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.2s var(--ease);
}
.chip:active {
  transform: scale(0.95);
}
.chip[aria-pressed="true"] {
  background: var(--lime);
  color: var(--on-lime);
  border-color: transparent;
}

.bincard {
  overflow: hidden;
  min-height: 236px;
  padding: 24px 22px 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.bincard::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--bc) 42%, transparent), transparent 66%);
}
.bincard .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.bincard h3 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.bincard .top p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 8px;
}
.bincard .art {
  position: absolute;
  right: 10px;
  bottom: 14px;
  height: 140px;
  width: auto;
  animation: float 5s ease-in-out infinite;
}
.stats2 {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 16px;
  align-self: end;
  max-width: 58%;
}
.stats2 > div + div {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.stats2 b {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
}
.stats2 small {
  color: var(--muted);
  font-size: 0.82rem;
}
.swap {
  animation: swapIn 0.5s var(--ease) both;
}
@keyframes swapIn {
  from {
    opacity: 0;
    transform: translateX(26px) scale(0.98);
  }
}

.rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px 12px 12px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--hl);
  text-align: left;
  transition: transform 0.2s var(--ease);
}
button.row:active {
  transform: scale(0.98);
}
.thumb {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 18px;
  object-fit: cover;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--bc, var(--lime)) 14%, var(--card-2));
}
.thumb .art {
  height: 46px;
  width: auto;
}
.row .grow {
  flex: 1;
  min-width: 0;
}
.row .grow b {
  display: block;
  font-weight: 600;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .grow small {
  color: var(--muted);
  font-size: 0.85rem;
}
.tag {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
  color: #fff;
  background: var(--bc);
}
.empty {
  padding: 26px;
  text-align: center;
  color: var(--muted);
  border: 1.5px dashed var(--line);
  border-radius: 24px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 6px;
  margin-top: 14px;
}
.strip > div {
  text-align: center;
}
.strip > div + div {
  border-left: 1px solid var(--line);
}
.strip b {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.strip b sup {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 2px;
}
.strip small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- dock: one liquid-glass capsule, icons only ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  display: flex;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
  animation: rise 0.6s 0.15s var(--ease) both;
}
.dock-glass {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  width: min(calc(100% - 40px), 330px);
  height: 68px;
  padding: 6px;
  border-radius: 999px;
}
.dock-lens {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 5);
  border-radius: 999px;
  background: var(--lens);
  box-shadow: var(--lens-shadow);
  transform: translateX(calc(var(--idx, 0) * 100%));
  transition: transform 0.55s var(--spring);
}
.dk {
  position: relative;
  z-index: 1;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition:
    color 0.3s,
    transform 0.2s var(--ease);
}
.dk svg {
  width: 25px;
  height: 25px;
}
.dk[aria-current="page"] {
  color: var(--text);
}
.dk:active {
  transform: scale(0.88);
}
.dk-scan {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--on-lime);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 8px rgba(40, 80, 0, 0.25),
    0 6px 14px -6px rgba(60, 110, 10, 0.55);
  transition: transform 0.2s var(--ease);
}
.dk-scan:active {
  transform: scale(0.9);
}
.dk-scan svg {
  width: 26px;
  height: 26px;
}

/* ---------- full-screen layers ---------- */
.page {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--haze), var(--bg);
  animation: pageIn 0.42s var(--ease) both;
  overflow: hidden;
}
.page.out {
  animation: pageOut 0.28s ease-in both;
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
}
@keyframes pageOut {
  to {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}
.page .scroller {
  padding-bottom: calc(env(safe-area-inset-bottom) + 36px);
}
.page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.page-bar h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* scan (always dark, it is a camera). Grid layout so nothing overlaps on short screens. */
.scan {
  background: #050805;
  color: #fff;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f2f7ee;
  --muted: rgba(255, 255, 255, 0.7);
}
.scan video,
.scan .still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.scan .freeze {
  z-index: 1;
  animation: fade 0.15s both;
}
.scan .shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 20%, transparent 58%, rgba(0, 0, 0, 0.78) 88%);
}
.scan-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 18px);
}
.scan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.scan-top h2 {
  font-size: 1.12rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scan-top.abs {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 16px;
  right: 16px;
  z-index: 5;
}
.top-acts {
  display: flex;
  gap: 8px;
}
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 22px -10px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
}
.round.glass[aria-pressed="true"] {
  background: var(--lime);
  color: var(--on-lime);
}
.stage {
  position: relative;
  container-type: size;
  display: grid;
  place-items: center;
  min-height: 0;
}
.finder {
  position: relative;
  width: min(80cqw, 60cqh, 330px);
  aspect-ratio: 1;
  pointer-events: none;
  transition: transform 0.5s var(--ease);
}
.finder .corners {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
  transition: color 0.3s;
}
.finder.busy {
  transform: scale(0.95);
}
.finder.busy .corners {
  color: var(--lime);
}
.sweep {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 7%;
  height: 0;
  opacity: 0;
  border-top: 2.5px dashed rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, color-mix(in srgb, var(--lime) 40%, transparent), color-mix(in srgb, var(--lime) 6%, transparent));
}
.finder.busy .sweep {
  opacity: 1;
  animation: sweep 1.5s ease-in-out infinite alternate;
}
@keyframes sweep {
  0% {
    top: 7%;
    height: 86%;
  }
  100% {
    top: 70%;
    height: 23%;
  }
}
.hintbar {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}
.hintbar span {
  display: inline-block;
  max-width: 90%;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  background: rgba(10, 14, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade 0.3s both;
}
.zooms {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
}
.zooms button {
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.2s var(--ease);
}
.zooms button[aria-pressed="true"] {
  background: rgba(0, 0, 0, 0.45);
  color: var(--lime);
  transform: scale(1.06);
}
.focus-ring {
  position: absolute;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  border: 1.5px solid var(--lime);
  border-radius: 22px;
  pointer-events: none;
  animation: focus 1.1s var(--ease) both;
}
@keyframes focus {
  0% {
    transform: scale(1.5);
    opacity: 0;
  }
  25% {
    transform: scale(1);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.flashfx {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.flashfx.go {
  animation: flash 0.35s ease-out;
}
@keyframes flash {
  0% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
  }
}
.tray {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-top: 12px;
  transition: opacity 0.3s;
}
.modes {
  position: relative;
  width: min(100%, 300px);
  height: 50px;
  padding: 4px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modes::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--lime);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.45s var(--spring);
}
.modes[data-mode="multi"]::before {
  transform: translateX(100%);
}
.modes button {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.modes button[aria-pressed="true"] {
  color: var(--on-lime);
}
.scan-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 380px;
}
.sb-side {
  display: grid;
  justify-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.shutter {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3.5px solid rgba(255, 255, 255, 0.92);
  transition: transform 0.2s var(--ease);
}
.shutter i {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--on-lime);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -4px 10px rgba(40, 80, 0, 0.3);
  transition: transform 0.2s var(--ease);
}
.shutter i svg {
  width: 30px;
  height: 30px;
}
.shutter:active i {
  transform: scale(0.86);
}
.shutter:disabled {
  opacity: 0.5;
}
.scan.is-busy .tray,
.scan.is-busy .hintbar,
.scan.is-busy .zooms {
  opacity: 0;
  pointer-events: none;
}
.idcard {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 8;
  padding: 20px 20px 22px;
  border-radius: 32px;
  animation: sheetUp 0.5s var(--spring) both;
}
.idcard small {
  color: rgba(255, 255, 255, 0.72);
}
.idcard h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 4px 0 6px;
}
.idcard .pct {
  color: var(--lime);
  font-weight: 600;
}
.bar {
  height: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin-top: 14px;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #5d9a3c, var(--lime));
  transition: width 0.5s var(--ease);
}
.idcard .round {
  position: absolute;
  right: 16px;
  top: 16px;
}
.nocam {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 0 28px;
  text-align: center;
  line-height: 1.45;
}
.nocam .art {
  height: 130px;
  width: auto;
  animation: float 4s ease-in-out infinite;
}
.scan:has(.nocam:not([hidden])) .finder,
.scan:has(.nocam:not([hidden])) .hintbar,
.scan:has(.nocam:not([hidden])) .zooms {
  display: none;
}
.scan:has(.nocam:not([hidden])) {
  background: radial-gradient(80% 50% at 50% 40%, #24401e, #050805 72%);
}

/* result */
.result .hero {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 56%;
  overflow: hidden;
}
.result .hero .still {
  animation: zoomIn 1.2s var(--ease) both;
}
@keyframes zoomIn {
  from {
    transform: scale(1.12);
    filter: blur(6px);
  }
}
.result .hero .art-hero {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 20%;
  background:
    radial-gradient(60% 50% at 50% 55%, color-mix(in srgb, var(--bc) 45%, transparent), transparent 70%),
    linear-gradient(180deg, #0e160e, #050805);
}
.result .hero .art-hero .art {
  height: 34%;
  width: auto;
  animation:
    popIn 0.7s var(--spring) both,
    float 5s 0.7s ease-in-out infinite;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(30px);
  }
}
.result .finder {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(52%, 214px);
  transform: translate(-50%, -50%);
}
.panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  z-index: 6;
  max-height: 64%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 22px 16px 16px;
  border-radius: 34px;
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.5);
  animation: sheetUp 0.6s var(--spring) both;
}
.panel::-webkit-scrollbar {
  display: none;
}
@keyframes sheetUp {
  from {
    transform: translateY(110%);
  }
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 16px;
}
.panel-head h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
}
.panel-head small {
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
}
.panel-head .acts {
  display: flex;
  gap: 8px;
}
.prow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  text-align: left;
  margin-bottom: 10px;
  animation: rise 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 250ms);
}
.prow .ic {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--accent);
}
.prow .ic svg {
  width: 26px;
  height: 26px;
}
.prow .grow {
  flex: 1;
  min-width: 0;
}
.prow small {
  display: block;
  font-size: 0.84rem;
  opacity: 0.75;
}
.prow b {
  display: block;
  font-weight: 550;
  font-size: 1.08rem;
  line-height: 1.25;
}
.prow.binrow {
  background: linear-gradient(120deg, var(--bc), color-mix(in srgb, var(--bc) 70%, #000));
  border-color: transparent;
  color: #fff;
}
.prow.binrow .ic {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.prow.binrow b {
  font-size: 1.3rem;
  font-weight: 650;
}
.prow.binrow.lime {
  background: linear-gradient(120deg, #b8f854, var(--lime-2));
  color: var(--on-lime);
}
.prow .chev {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: transform 0.3s var(--ease);
}
.prow[aria-expanded="true"] .chev {
  transform: rotate(90deg);
}
.reveal {
  margin: -2px 6px 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--chip);
  border: 1px solid var(--line);
  line-height: 1.45;
  color: var(--muted);
  animation: rise 0.35s var(--ease) both;
}
.conf {
  padding: 4px 6px 14px;
}
.conf .lbl {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}
.conf .lbl b {
  color: var(--accent);
  font-weight: 600;
}
.conf .bar {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  margin-top: 8px;
}
.note {
  margin: 0 6px 14px;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
  background: color-mix(in srgb, #f5b82e 22%, transparent);
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.actions .btn {
  flex: 1;
  white-space: nowrap;
  padding: 0 18px;
}
.actions .btn.ghost {
  flex: 0 0 auto;
}

/* search */
.sfield {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  box-shadow: var(--hl);
}
.sfield svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
}
.sfield input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-size: 1.05rem;
}
.askai {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 12px;
  padding: 18px;
  border-radius: 26px;
  text-align: left;
  font-weight: 600;
  background: var(--feature);
  border: 1px solid var(--line);
}
.askai .round {
  background: var(--lime);
  color: var(--on-lime);
  border: 0;
}

/* sheets */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
}
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade 0.3s both;
}
.sheet {
  position: relative;
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 10px 18px calc(env(safe-area-inset-bottom) + 22px);
  border-radius: 34px 34px 0 0;
  background: var(--haze), var(--bg);
  border-top: 1px solid var(--line);
  animation: sheetUp 0.55s var(--spring) both;
}
.sheet-wrap.out .sheet {
  animation: sheetDown 0.28s ease-in both;
}
.sheet-wrap.out .scrim {
  animation: fade 0.28s reverse both;
}
@keyframes sheetDown {
  to {
    transform: translateY(105%);
  }
}
.grab {
  width: 44px;
  height: 5px;
  border-radius: 5px;
  background: var(--line);
  margin: 0 auto 14px;
}
.guide-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.guide-hero .art {
  height: 110px;
  width: auto;
  flex: none;
}
.guide-hero h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}
.guide-hero p {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
  font-size: 0.95rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pills button {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
}

/* chat */
.chat-log {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-height: 160px;
  padding: 4px 0 10px;
}
.bubble {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 22px;
  line-height: 1.42;
  white-space: pre-wrap;
  animation: rise 0.35s var(--ease) both;
}
.bubble.ai {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 8px;
}
.bubble.me {
  justify-self: end;
  background: var(--lime);
  color: var(--on-lime);
  border-bottom-right-radius: 8px;
}
.composer {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.composer input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-2);
  outline: none;
}
.composer .round {
  width: 56px;
  height: 56px;
}
.dots span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1s infinite;
}
.dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.dots span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

/* learn */
.assess {
  overflow: hidden;
  padding: 24px 22px 22px;
}
.assess .art-pile {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 128px;
  height: 120px;
}
.assess h2 {
  font-size: 1.7rem;
  font-weight: 700;
  max-width: 11rem;
}
.assess p {
  color: var(--muted);
  margin: 8px 0 22px;
  max-width: 12rem;
  line-height: 1.4;
}
.slider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.slider .track {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}
.slider .track i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 8px;
  background: var(--lime);
  transition: width 0.8s var(--ease);
}
.slider .track i::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.ggrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gcard {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 16px 16px 18px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--hl);
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}
.gcard:active {
  transform: scale(0.97);
}
.gcard .art {
  height: 112px;
  width: auto;
  justify-self: center;
  margin: 4px 0 10px;
  transition: transform 0.4s var(--spring);
}
.gcard:hover .art {
  transform: translateY(-6px) rotate(-3deg);
}
.gcard b {
  font-weight: 650;
  font-size: 1.05rem;
}
.gcard small {
  color: var(--muted);
}
.gcard.white {
  background: #fff;
  color: #10200f;
}
.gcard.white small {
  color: #627164;
}

.quiz {
  padding: 22px;
  overflow: hidden;
}
.qtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.quiz .bar {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  margin: 12px 0 8px;
}
.qart {
  height: 150px;
  display: grid;
  place-items: center;
  margin: 10px 0 6px;
}
.qart .art {
  height: 130px;
  width: auto;
  animation: popIn 0.55s var(--spring) both;
}
.qname {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.12;
  margin-bottom: 20px;
  animation: rise 0.45s var(--ease) both;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ans {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 8px 12px 8px 8px;
  border-radius: 24px;
  color: #fff;
  font-weight: 600;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.15;
  background: linear-gradient(140deg, var(--bc), color-mix(in srgb, var(--bc) 62%, #000));
  transition:
    transform 0.2s var(--ease),
    opacity 0.3s,
    box-shadow 0.3s;
}
.ans .art {
  height: 54px;
  width: auto;
  flex: none;
  filter: brightness(1.35) saturate(0.7) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}
.ans:active {
  transform: scale(0.96);
}
.ans.dim {
  opacity: 0.3;
}
.ans.right {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px var(--lime);
}
.ans.wrong {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px var(--hazardous);
  animation: shake 0.4s;
}
@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
.verdict {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: var(--chip);
  border: 1px solid var(--line);
  line-height: 1.4;
  animation: rise 0.4s var(--ease) both;
}
.verdict b {
  display: block;
  font-size: 1.15rem;
}
.score {
  text-align: center;
  padding: 30px 22px;
}
.score .ring {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 6px auto 18px;
}
.score .ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.score .ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.score .ring b small {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 500;
  text-align: center;
}

/* drop-off */
.place {
  overflow: hidden;
  padding: 24px 22px 22px;
  min-height: 250px;
  margin-bottom: 14px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
.place::before {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lime) 18%, transparent), transparent 65%);
}
.place .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.place h3 {
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.1;
  max-width: 15rem;
}
.place .where {
  color: var(--muted);
  margin-top: 8px;
  position: relative;
}
.place .note2 {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 14px 0 16px;
  max-width: 62%;
}
.place .art {
  position: absolute;
  right: 18px;
  bottom: 18px;
  height: 118px;
  width: auto;
  animation: float 5s ease-in-out infinite;
}
.place .acts {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.place .acts a {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--chip);
  border: 1px solid var(--line);
}
.place .acts svg {
  width: 17px;
  height: 17px;
}
.fine {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  padding: 6px 10px;
}

/* impact */
.impact-hero {
  overflow: hidden;
  padding: 24px 22px;
  min-height: 250px;
  background: var(--feature);
}
.impact-hero .art-pile {
  position: absolute;
  right: 4px;
  bottom: 12px;
  width: 182px;
  height: 150px;
}
.bignum {
  font-size: 4.2rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}
.bignum sup {
  font-size: 1.2rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
  vertical-align: top;
  position: relative;
  top: 12px;
}
.impact-hero .lbl {
  color: var(--muted);
  margin: 4px 0 18px;
}
.binbars {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.binbar {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}
.binbar .art {
  height: 42px;
  width: auto;
}
.binbar .t {
  font-weight: 600;
  font-size: 0.95rem;
}
.binbar .trk {
  height: 10px;
  border-radius: 10px;
  margin-top: 6px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  overflow: hidden;
}
.binbar .trk i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: var(--bc);
  transition: width 1s var(--ease);
}
.binbar em {
  font-style: normal;
  font-weight: 600;
  font-size: 1.1rem;
}

/* settings */
.group {
  margin-bottom: 22px;
}
.group > h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 6px 10px;
  font-weight: 600;
}
.gpanel {
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--hl);
  overflow: hidden;
}
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  text-align: left;
  font-weight: 500;
}
.opt + .opt {
  border-top: 1px solid var(--line);
}
.switch {
  position: relative;
  width: 54px;
  height: 32px;
  flex: none;
  border-radius: 32px;
  background: color-mix(in srgb, var(--text) 15%, transparent);
  transition: background 0.25s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--spring);
}
[aria-checked="true"] .switch {
  background: var(--lime-2);
}
[aria-checked="true"] .switch::after {
  transform: translateX(22px);
}
.seg {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 5px;
  margin: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.seg button {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background 0.25s,
    color 0.25s;
}
.seg button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
}
.field {
  padding: 6px 10px 10px;
}
.field input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card-2);
  outline: none;
  font-size: 1rem;
}
.field input:focus {
  border-color: var(--accent);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--lime-2);
}
.range {
  padding: 14px 18px 16px;
}
.ftext {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 16px 18px;
}
.danger {
  color: var(--hazardous);
  font-weight: 600;
}

/* welcome */
.welcome {
  z-index: 90;
  overflow-y: auto;
  animation: none;
}
.wel {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(env(safe-area-inset-top) + 22px) 22px calc(env(safe-area-inset-bottom) + 22px);
}
.wel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 18px;
  animation: rise 0.6s var(--ease) both;
}
.wel-kicker svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.wel h1 {
  font-size: 2.75rem;
  line-height: 1.06;
  font-weight: 700;
  animation: rise 0.7s 0.08s var(--ease) both;
}
.inline-pill {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 0.9em;
  width: 2.2em;
  padding: 0 0.12em;
  border-radius: 999px;
  vertical-align: -0.05em;
  overflow: hidden;
  background: linear-gradient(135deg, #24401e, #0f1a0f);
  border: 1px solid var(--line);
}
:root[data-theme="light"] .inline-pill {
  background: linear-gradient(135deg, #d6ebc9, #b8dca5);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .inline-pill {
    background: linear-gradient(135deg, #d6ebc9, #b8dca5);
  }
}
.inline-pill .art {
  height: 0.8em;
  width: auto;
  margin-bottom: -0.06em;
  animation: float 3s ease-in-out infinite;
}
.inline-pill .art:nth-child(2) {
  animation-delay: -1s;
}
.inline-pill .art:nth-child(3) {
  animation-delay: -2s;
}
.wel p.sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-top: 14px;
  max-width: 21rem;
  animation: rise 0.7s 0.16s var(--ease) both;
}
.wel-art {
  position: relative;
  min-height: 300px;
  margin: 10px -22px 0;
}
.wel-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lime) 30%, transparent), transparent 62%);
  animation: fade 1.2s both;
}
.wa {
  position: absolute;
  width: auto;
  animation:
    popIn 0.8s var(--spring) both,
    float 5s ease-in-out infinite;
}
.wchip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation:
    popIn 0.8s var(--spring) both,
    float 6s ease-in-out infinite;
}
.wchip i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--bc);
}
.wchip i svg {
  width: 20px;
  height: 20px;
}
.go {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 76px;
  padding: 7px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  box-shadow: var(--hl), var(--shadow);
  overflow: hidden;
  animation: rise 0.7s 0.3s var(--ease) both;
}
.go .knob {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 0 22px color-mix(in srgb, var(--lime) 60%, transparent);
  transition: transform 0.55s var(--ease);
  z-index: 1;
}
.go .knob svg {
  width: 24px;
  height: 24px;
}
.go .lbl {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: opacity 0.3s;
}
.go .chevs {
  display: flex;
  margin-right: 16px;
  font-size: 1.4rem;
  letter-spacing: -0.15em;
}
.go .chevs span {
  animation: chev 1.6s infinite;
  opacity: 0.25;
}
.go .chevs span:nth-child(2) {
  animation-delay: 0.2s;
}
.go .chevs span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes chev {
  40% {
    opacity: 1;
  }
}
.go.sliding .knob {
  transform: translateX(calc(var(--w, 280px) - 76px));
}
.go.sliding .lbl {
  opacity: 0;
}
.wel2 h1 {
  font-size: 2.3rem;
  margin-bottom: 22px;
}
.binpick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.binpick button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 6px 12px;
  border-radius: 24px;
  background: var(--card);
  border: 2px solid var(--line);
  font-weight: 600;
  font-size: 0.85rem;
  transition:
    border-color 0.25s,
    opacity 0.25s,
    transform 0.2s var(--ease);
}
.binpick .art {
  height: 72px;
  width: auto;
}
.binpick button[aria-pressed="true"] {
  border-color: var(--lime-2);
}
.binpick button[aria-pressed="false"] {
  opacity: 0.45;
}
.binpick .check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--on-lime);
  transition:
    transform 0.3s var(--spring),
    opacity 0.2s;
}
.binpick .check svg {
  width: 14px;
  height: 14px;
}
.binpick button[aria-pressed="false"] .check {
  transform: scale(0);
  opacity: 0;
}
.lbl-sm {
  font-weight: 600;
  margin: 22px 4px 10px;
}

/* modal + toast + tips */
.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal .box {
  position: relative;
  width: min(100%, 340px);
  padding: 24px;
  border-radius: 32px;
  background: var(--haze), var(--bg);
  border: 1px solid var(--line);
  text-align: center;
  animation: popIn 0.4s var(--spring) both;
}
.modal .box h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.tips {
  display: grid;
  gap: 10px;
  margin: 6px 0 18px;
  text-align: left;
}
.tips div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.tips i {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  background: var(--lime);
  color: var(--on-lime);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 104px);
  transform: translateX(-50%);
  z-index: 120;
  pointer-events: none;
  width: min(92%, 400px);
  display: grid;
  justify-items: center;
}
.toast {
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.92rem;
  color: #fff;
  text-align: center;
  background: rgba(16, 22, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  animation: rise 0.35s var(--spring) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- additions ---------- */
.sb-main {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--muted);
}
.sb-main svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--text);
}
.sb-main span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chev {
  display: grid;
  place-items: center;
  flex: none;
}
.chev svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: transform 0.3s var(--ease);
}
[aria-expanded="true"] .chev svg {
  transform: rotate(90deg);
}
.wpos {
  position: absolute;
  display: block;
}
.wpos .art {
  height: 100%;
  width: auto;
  animation:
    popIn 0.8s var(--d, 0s) var(--spring) both,
    float 5s calc(var(--d, 0s) + 0.8s) ease-in-out infinite;
}
.wtilt {
  position: absolute;
  display: block;
}
.wchip {
  position: relative;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.8s);
}
.art {
  overflow: visible;
}
.art-pile > span {
  display: block;
}
.art-pile > span .art {
  height: 100%;
  width: auto;
  animation: float 5s ease-in-out infinite;
}
.art-pile > span:nth-child(2) .art {
  animation-delay: -1.6s;
}
.art-pile > span:nth-child(3) .art {
  animation-delay: -3.2s;
}

.place .stats2 {
  max-width: 64%;
}
.place .stats2 > div {
  white-space: nowrap;
}
.place .art {
  height: 100px;
}

/* ---------- liquid glass material ---------- */
:root {
  --lg: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  --lg-border: rgba(255, 255, 255, 0.95);
  --lg-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(30, 70, 35, 0.06),
    0 14px 34px -16px rgba(30, 70, 35, 0.35);
  --lg-card: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.5));
  --lens: rgba(30, 80, 40, 0.1);
  --lens-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -1px 2px rgba(30, 80, 40, 0.08);
  --blob-a: #b9e39a;
  --blob-b: #d8f2b0;
  --blob-c: #a8d8c4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lg: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.08));
    --lg-border: rgba(255, 255, 255, 0.13);
    --lg-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -1px 0 rgba(255, 255, 255, 0.05),
      0 16px 36px -14px rgba(0, 0, 0, 0.75);
    --lg-card: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
    --lens: rgba(255, 255, 255, 0.13);
    --lens-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 10px rgba(0, 0, 0, 0.25);
    --blob-a: #2c5a1e;
    --blob-b: #4a7a1c;
    --blob-c: #164234;
  }
}
:root[data-theme="dark"] {
  --lg: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.08));
  --lg-border: rgba(255, 255, 255, 0.13);
  --lg-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 16px 36px -14px rgba(0, 0, 0, 0.75);
  --lg-card: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  --lens: rgba(255, 255, 255, 0.13);
  --lens-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 10px rgba(0, 0, 0, 0.25);
  --blob-a: #2c5a1e;
  --blob-b: #4a7a1c;
  --blob-c: #164234;
}

.lg,
.round:not(.glass):not(.lime),
.chip:not([aria-pressed="true"]),
.searchbar,
.tile,
.seg {
  background: var(--lg);
  border: 1px solid var(--lg-border);
  box-shadow: var(--lg-shadow);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}
.card,
.row,
.gpanel,
.prow:not(.binrow),
.gcard:not(.white),
.reveal,
.verdict {
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  box-shadow: var(--lg-shadow);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.feature,
.impact-hero {
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--lime) 16%, transparent), transparent 60%),
    var(--lg-card);
}
.scan .panel.lg,
.idcard.lg {
  --lg: linear-gradient(160deg, rgba(40, 52, 40, 0.62), rgba(14, 20, 14, 0.72));
  --lg-border: rgba(255, 255, 255, 0.14);
  --lg-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 -10px 40px -10px rgba(0, 0, 0, 0.55);
  color: #f2f7ee;
}
:root[data-theme="light"] .result .panel.lg {
  --lg: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(245, 250, 242, 0.7));
  --lg-border: rgba(255, 255, 255, 0.9);
  color: #0f1f10;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .result .panel.lg {
    --lg: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(245, 250, 242, 0.7));
    --lg-border: rgba(255, 255, 255, 0.9);
    color: #0f1f10;
  }
}


/* calmer accents: no neon halos */
.round.lime {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 8px rgba(40, 80, 0, 0.22);
}
.avatar {
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6);
}
.btn {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 18px -12px rgba(0, 0, 0, 0.5);
}
.go .knob {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -4px 10px rgba(40, 80, 0, 0.25);
}
.feature::after {
  display: none;
}

/* ambient light behind the glass */
.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient i {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient i:nth-child(1) {
  width: 120%;
  height: 50%;
  left: -30%;
  top: -12%;
  background: radial-gradient(closest-side, var(--blob-a), transparent);
}
.ambient i:nth-child(2) {
  width: 90%;
  height: 45%;
  right: -35%;
  top: 38%;
  background: radial-gradient(closest-side, var(--blob-b), transparent);
  animation-duration: 32s;
  opacity: 0.35;
}
.ambient i:nth-child(3) {
  width: 100%;
  height: 45%;
  left: -40%;
  bottom: -14%;
  background: radial-gradient(closest-side, var(--blob-c), transparent);
  animation-duration: 38s;
}
@keyframes drift {
  to {
    transform: translate(12%, 6%) scale(1.15);
  }
}
#main {
  z-index: 1;
}
#app {
  background: var(--bg);
}

/* swipeable sheets */
.panel .grab,
.sheet .grab {
  cursor: grab;
  touch-action: none;
  height: 5px;
  margin-bottom: 14px;
  position: relative;
}
.panel .grab::after,
.sheet .grab::after {
  content: "";
  position: absolute;
  inset: -12px -40px;
}
.panel {
  padding-top: 10px;
}

/* =====================================================================
   Wide screens. Phones keep the dock layout; tablets center it;
   laptops and desktops get a sidebar and multi-column pages.
   ===================================================================== */
.side,
.d-only {
  display: none;
}
kbd {
  font: 600 0.72rem/1 var(--font);
  padding: 5px 7px;
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 7%, transparent);
  border: 1px solid var(--line);
}

@media (min-width: 640px) and (max-width: 959px) {
  .scroller > .view {
    max-width: 620px;
    margin: 0 auto;
  }
  .page .scroller > * {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 960px) {
  .m-only,
  .dock {
    display: none !important;
  }
  .d-only {
    display: revert;
  }
  .bins-desk.d-only {
    display: grid;
  }

  /* sidebar */
  .side {
    position: fixed;
    z-index: 20;
    top: 16px;
    bottom: 16px;
    left: 16px;
    width: 256px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 16px 16px;
    border-radius: 30px;
    animation: rise 0.6s var(--ease) both;
  }
  .side-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px 8px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
  }
  .side-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--lime);
    color: var(--on-lime);
    box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6);
  }
  .side-mark svg {
    width: 24px;
    height: 24px;
  }
  .side-scan {
    min-height: 54px;
    background: var(--lime);
    color: var(--on-lime);
  }
  .side-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 10px 0 14px;
    border-radius: 16px;
    color: var(--muted);
    background: color-mix(in srgb, var(--text) 5%, transparent);
    border: 1px solid var(--line);
    font-size: 0.95rem;
  }
  .side-search svg {
    width: 19px;
    height: 19px;
  }
  .side-search span {
    flex: 1;
    text-align: left;
  }
  .side-nav {
    display: grid;
    gap: 4px;
    margin-top: 8px;
  }
  .sn {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 50px;
    padding: 0 14px;
    border-radius: 16px;
    color: var(--muted);
    font-weight: 550;
    font-size: 1rem;
    transition:
      background 0.25s,
      color 0.25s;
  }
  .sn svg {
    width: 22px;
    height: 22px;
  }
  .sn:hover {
    background: color-mix(in srgb, var(--text) 5%, transparent);
    color: var(--text);
  }
  .sn[aria-current="page"] {
    background: var(--lens);
    box-shadow: var(--lens-shadow);
    color: var(--text);
  }
  .sn[aria-current="page"] svg {
    color: var(--accent);
  }
  .side-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--text) 4%, transparent);
  }
  .side-foot .grow {
    flex: 1;
    min-width: 0;
  }
  .side-foot b {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .side-foot small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .avatar.sm {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .avatar.sm svg {
    width: 20px;
    height: 20px;
  }

  /* main column */
  #main.scroller {
    left: 288px;
    padding: 40px clamp(24px, 3.5vw, 56px) 48px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  #main .view {
    max-width: 1200px;
    margin: 0 auto;
  }
  .scroller::-webkit-scrollbar {
    display: block;
    width: 10px;
  }
  .scroller::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text) 15%, transparent);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
  }
  .page-head h1 {
    font-size: 3rem;
  }
  #toast {
    bottom: 32px;
    left: calc(50% + 144px);
  }

  /* home */
  .view.v-home {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 22px;
    align-items: start;
    grid-template-areas:
      "hello hello hello hello hello hello hello hello hello hello hello hello"
      "title title title title title title title search search search search search"
      "feat feat feat feat feat feat feat tiles tiles tiles tiles tiles"
      "binsh binsh binsh binsh binsh binsh binsh binsh binsh binsh binsh binsh"
      "bins bins bins bins bins bins bins bins bins bins bins bins"
      "stats stats stats stats stats recenth recenth recenth recenth recenth recenth recenth"
      "stats stats stats stats stats recent recent recent recent recent recent recent";
  }
  .a-hello {
    grid-area: hello;
    margin-bottom: 18px;
  }
  .a-title {
    grid-area: title;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    margin-bottom: 0;
    align-self: end;
  }
  .a-search {
    grid-area: search;
    align-self: end;
    margin-bottom: 6px;
  }
  .a-search .sb-main kbd {
    margin-left: auto;
    margin-right: 6px;
  }
  .a-feat {
    grid-area: feat;
    min-height: 280px;
    margin-top: 24px;
    grid-template-columns: 1fr 200px;
    padding: 34px;
  }
  .a-feat h2 {
    font-size: 2.6rem;
  }
  .a-feat p {
    font-size: 1.1rem;
    max-width: 20rem;
  }
  .a-feat .framed {
    width: 190px;
    height: 210px;
  }
  .a-feat .framed .art {
    height: 150px;
  }
  .a-tiles {
    grid-area: tiles;
    margin-top: 24px;
    height: calc(100% - 24px);
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 14px;
  }
  .a-tiles .tile {
    height: auto;
    font-size: 0.95rem;
    transition:
      transform 0.25s var(--ease),
      box-shadow 0.25s;
  }
  .a-tiles .tile:hover {
    transform: translateY(-3px);
  }
  .a-tiles .tile svg {
    width: 32px;
    height: 32px;
  }
  .a-binsh {
    grid-area: binsh;
    margin-top: 36px;
  }
  .a-bins {
    grid-area: bins;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .a-bins .bincard {
    min-height: 270px;
    padding: 22px 20px 20px;
    transition: transform 0.3s var(--ease);
  }
  .a-bins .bincard:hover {
    transform: translateY(-4px);
  }
  .a-bins .bincard h3 {
    font-size: 1.7rem;
  }
  .a-bins .bincard .art {
    height: 112px;
    right: 8px;
    bottom: 12px;
  }
  .a-bins .stats2 {
    max-width: 55%;
    flex-direction: column;
    gap: 8px;
  }
  .a-bins .stats2 > div + div {
    border-left: 0;
    padding-left: 0;
  }
  .a-bins .round.lime {
    width: 44px;
    height: 44px;
  }
  .a-stats {
    grid-area: stats;
    margin-top: 36px;
    grid-template-columns: 1fr;
    padding: 10px 24px;
  }
  .a-stats > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    padding: 20px 4px;
  }
  .a-stats > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .a-stats b {
    font-size: 2.6rem;
  }
  .a-stats small {
    font-size: 0.95rem;
  }
  .a-recenth {
    grid-area: recenth;
    margin-top: 40px;
  }
  .a-recent {
    grid-area: recent;
  }

  /* learn */
  .view.v-learn {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 26px;
    align-items: start;
    grid-template-areas:
      "head head"
      "quiz guides";
  }
  .v-learn .a-head {
    grid-area: head;
  }
  .v-learn .a-quiz {
    grid-area: quiz;
    position: sticky;
    top: 0;
  }
  .v-learn .a-guides {
    grid-area: guides;
  }
  .v-learn .a-guides .sec {
    margin-top: 0;
  }
  .v-learn .a-quiz {
    margin-top: 48px;
  }
  .v-learn .assess {
    min-height: 380px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .v-learn .assess h2 {
    font-size: 2.2rem;
  }
  .v-learn .assess .art-pile {
    transform: scale(1.45);
    transform-origin: top right;
    right: 30px;
    top: 30px;
  }
  .v-learn .gcard .art {
    height: 140px;
  }
  .v-learn .gcard {
    padding: 22px;
  }
  .v-learn .gcard b {
    font-size: 1.25rem;
  }

  /* drop-off */
  .v-drop .place {
    margin: 0;
  }
  .v-drop .chips {
    margin: 0 0 20px;
    padding: 2px 0;
    flex-wrap: wrap;
  }

  /* impact */
  .view.v-impact {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 22px;
    align-items: stretch;
    grid-template-areas:
      "head head"
      "hero bars"
      "badges badges"
      "rech rech"
      "rec rec";
  }
  .v-impact .a-head {
    grid-area: head;
  }
  .v-impact .a-hero {
    grid-area: hero;
    min-height: 320px;
    padding: 34px;
  }
  .v-impact .a-hero .bignum {
    font-size: 5.4rem;
  }
  .v-impact .a-hero .art-pile {
    width: 240px;
    height: 200px;
    transform: scale(1.3);
    transform-origin: bottom right;
    right: 30px;
    bottom: 30px;
  }
  .v-impact .a-bars {
    grid-area: bars;
    align-content: center;
    padding: 28px;
  }
  .v-impact .a-recenth {
    grid-area: rech;
    margin-top: 36px;
  }
  .v-impact .a-recent {
    grid-area: rec;
  }
  .v-impact .a-recent .rows,
  .v-home .a-recent .rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v-home .a-recent .rows {
    grid-template-columns: minmax(0, 1fr);
  }
  button.row:hover,
  .gcard:hover {
    transform: translateY(-2px);
  }

  /* overlays become windows */
  .page:not(.welcome) {
    animation: popWin 0.4s var(--ease) both;
  }
  .page.out:not(.welcome) {
    animation: pageOut 0.25s ease-in both;
  }
  @keyframes popWin {
    from {
      opacity: 0;
      transform: scale(0.97);
    }
  }
  #search,
  #settings {
    background: rgba(5, 10, 5, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  #search > .scroller {
    inset: 9vh auto auto 50%;
    transform: translateX(-50%);
    width: min(680px, 92vw);
    max-height: 78vh;
    border-radius: 30px;
    padding: 18px 18px 22px;
    background: var(--haze), var(--bg);
    border: 1px solid var(--lg-border);
    box-shadow: var(--lg-shadow), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  }
  #settings > .scroller {
    inset: 16px 16px 16px auto;
    width: 460px;
    border-radius: 30px;
    padding: 22px 20px;
    background: var(--haze), var(--bg);
    border: 1px solid var(--lg-border);
    box-shadow: var(--lg-shadow), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
    animation: drawer 0.45s var(--ease) both;
  }
  @keyframes drawer {
    from {
      transform: translateX(40px);
      opacity: 0;
    }
  }

  .scan,
  .result {
    inset: 3.5vh max(3.5vw, calc(50% - 600px));
    border-radius: 34px;
    box-shadow:
      0 0 0 100vmax rgba(4, 8, 4, 0.62),
      0 40px 100px -30px rgba(0, 0, 0, 0.8);
  }
  .scan .finder {
    width: min(70cqw, 72cqh, 400px);
  }
  .result .hero {
    inset: 0 420px 0 0;
    height: auto;
  }
  .result .finder {
    top: 50%;
    width: min(46%, 300px);
  }
  .result .hero .art-hero {
    padding-bottom: 0;
  }
  .result .hero .art-hero .art {
    height: min(42vh, 340px);
  }
  .result .scan-top.abs {
    right: 436px;
  }
  .result .panel {
    inset: 16px 16px 16px auto;
    width: 392px;
    max-height: none;
    animation: drawer 0.5s var(--ease) both;
  }
  .result .panel .grab {
    display: none;
  }
  .result .panel .btn.ghost {
    border-color: color-mix(in srgb, currentColor 25%, transparent);
  }
  .idcard {
    left: 50%;
    right: auto;
    width: 440px;
    margin-left: -220px;
  }

  .sheet-wrap {
    align-items: center;
    justify-content: center;
  }
  .sheet {
    width: min(600px, 92vw);
    max-height: 82vh;
    border-radius: 30px;
    border: 1px solid var(--lg-border);
    padding: 22px 24px 24px;
    animation: popWin 0.35s var(--ease) both;
  }
  .sheet .grab {
    display: none;
  }

  /* welcome: split screen */
  .wel {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: 1fr auto 1fr;
    grid-template-areas:
      ". art"
      "text art"
      "go art";
    column-gap: 40px;
    padding: 40px 56px;
  }
  .w-text {
    grid-area: text;
  }
  .w-go {
    grid-area: go;
    align-self: start;
    padding-top: 30px;
    max-width: 420px;
  }
  .wel h1 {
    font-size: clamp(3.2rem, 5vw, 4.6rem);
  }
  .wel p.sub {
    font-size: 1.2rem;
    max-width: 28rem;
  }
  .wel-art {
    grid-area: art;
    align-self: center;
    margin: 0;
    min-height: 0;
    height: min(560px, 68vh);
    transform: scale(1.18);
  }
  .wel2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: none;
    max-width: 560px;
    align-content: center;
  }
}



/* ---------- learn: level, modes, review, how ---------- */
.lvl {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 120px;
}
.lvl b {
  font-size: 0.95rem;
  font-weight: 650;
}
.lvl small {
  color: var(--muted);
  font-size: 0.78rem;
}
.lvbar {
  width: 120px;
  height: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  overflow: hidden;
}
.lvbar i {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: 8px;
  transition: width 1s var(--ease);
}
.modes-grid {
  display: grid;
  gap: 12px;
}
.mode {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px 14px 14px;
  text-align: left;
  border-radius: 26px;
  transition: transform 0.2s var(--ease);
}
.mode:active {
  transform: scale(0.98);
}
.mode:disabled {
  opacity: 0.6;
}
.mode-art {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--lime) 16%, transparent);
}
.mode-art .art {
  width: 58px;
  height: 58px;
}
.mode .grow {
  flex: 1;
  min-width: 0;
}
.mode b {
  display: block;
  font-size: 1.15rem;
  font-weight: 650;
}
.mode small {
  color: var(--muted);
}
.mode-best {
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
}
.qstats {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qstats b {
  font-size: 1.2rem;
  color: var(--text);
}
.combo {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  font-size: 0.8rem;
  animation: popIn 0.35s var(--spring) both;
}
.newbest {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 700;
  margin-bottom: 10px;
  animation: popIn 0.5s var(--spring) both;
}
.xpgain {
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 18px;
}
.review {
  text-align: left;
  margin-top: 22px;
}
.review h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.rv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.rv .grow {
  flex: 1;
  min-width: 0;
}
.rv b {
  display: block;
  font-weight: 600;
}
.rv small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}
.thumb.sm {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.thumb .art,
.thumb.sm .art {
  width: 80%;
  height: 80%;
}
.how {
  padding: 22px;
  margin-top: 16px;
}
.how h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.how ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.how li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.4;
}
.how li i {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--lime);
  color: var(--on-lime);
}
.how.plain .how {
  padding: 0;
  margin: 0;
}

/* ---------- badges ---------- */
.badges {
  padding: 20px;
  margin-top: 14px;
}
.badges h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.badges h2 small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.bgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.badge {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}
.medal {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border: 2px dashed var(--line);
  filter: grayscale(1);
  opacity: 0.5;
}
.medal .art {
  width: 46px;
  height: 46px;
}
.badge.on {
  color: var(--text);
}
.badge.on .medal {
  filter: none;
  opacity: 1;
  border: 2px solid var(--lime);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--lime) 35%, transparent), color-mix(in srgb, var(--lime) 8%, transparent));
}

/* ---------- drop-off ---------- */
.seg.mini {
  margin: 0;
  padding: 4px;
}
.seg.mini button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.drop-ask {
  margin-bottom: 12px;
}
.drop-ask .sfield {
  height: 58px;
}
.dsug {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip.ic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}
.chip .ci {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.chip .ci .art {
  width: 30px;
  height: 30px;
}
.askai.sm {
  margin-top: 10px;
  padding: 14px 16px;
}
.askai.sm svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.note.okbin {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  background: color-mix(in srgb, var(--bc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent);
}
.mapcard {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: 0;
  height: 300px;
  margin-bottom: 14px;
}
#map {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--card-2);
}
.nearme {
  position: absolute;
  z-index: 500;
  right: 12px;
  bottom: 12px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9rem;
  background: var(--lime);
  color: var(--on-lime);
}
.pin {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  background: #fff;
  border: 3px solid #9ca3af;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.5);
  opacity: 0.6;
}
.pin.on {
  border-color: var(--lime-2);
  opacity: 1;
}
.pin .art {
  width: 36px;
  height: 36px;
  transform: rotate(45deg);
}
.me-dot {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2f7bff;
  border: 4px solid #fff;
  box-shadow: 0 0 0 8px rgba(47, 123, 255, 0.25);
}
.leaflet-container {
  font-family: var(--font);
}
.leaflet-control-attribution {
  font-size: 9px;
}
.leaflet-bar a {
  color: #10200f;
}
.place .top > div {
  min-width: 0;
}
.place .dist {
  color: var(--accent);
  font-weight: 650;
}
.takes {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 14px;
  max-width: 70%;
}
.pill-t {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.place.flash {
  animation: flashCard 1.2s var(--ease);
}
@keyframes flashCard {
  20% {
    box-shadow: 0 0 0 4px var(--lime);
  }
}
.place .stats2 b {
  font-size: 1.02rem;
}
.place .acts {
  flex-wrap: wrap;
}
.bag {
  padding: 20px;
  margin-top: 4px;
}
.bag h2 {
  font-size: 1.2rem;
}
.bag > p {
  margin: 4px 0 14px;
}
.bag-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.bag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 18px;
  text-align: left;
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.bag-row .grow {
  flex: 1;
  min-width: 0;
}
.bag-row b {
  display: block;
  font-weight: 600;
}
.bag-row small {
  color: var(--muted);
}
.chk {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  color: transparent;
  transition: all 0.2s;
}
.chk svg {
  width: 16px;
  height: 16px;
}
.bag-row[aria-checked="true"] .chk {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--on-lime);
}
.bag-row[aria-checked="true"] b {
  text-decoration: line-through;
  opacity: 0.6;
}

/* ---------- welcome region + scan sample ---------- */
.regpick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.regpick button {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 22px;
  text-align: left;
  background: var(--card);
  border: 2px solid var(--line);
  transition: border-color 0.25s;
}
.regpick b {
  font-weight: 650;
}
.regpick small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
  padding-right: 18px;
}
.regpick button[aria-pressed="true"] {
  border-color: var(--lime-2);
}
.regpick .check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--on-lime);
  transition: transform 0.3s var(--spring);
}
.regpick .check svg {
  width: 13px;
  height: 13px;
}
.regpick button[aria-pressed="false"] .check {
  transform: scale(0);
}
.sample-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.sample-pill svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

@media (min-width: 960px) {
  .view.v-drop {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 24px;
    align-items: start;
    grid-template-areas:
      "head head"
      "ask ask"
      "types types"
      "map places"
      "bag places"
      "fine places";
  }
  .v-drop .a-head {
    grid-area: head;
  }
  .v-drop .a-ask {
    grid-area: ask;
    max-width: 640px;
  }
  .v-drop .a-types {
    grid-area: types;
    margin: 0 0 18px;
    padding: 2px 0;
    flex-wrap: wrap;
  }
  .v-drop .a-map {
    grid-area: map;
    height: 520px;
  }
  .v-drop .a-places {
    grid-area: places;
    display: grid;
    gap: 14px;
  }
  .v-drop .a-places .place {
    margin: 0;
  }
  .v-drop .a-bagw {
    grid-area: bag;
  }
  .v-drop .a-fine {
    grid-area: fine;
  }
  .v-drop #places {
    grid-template-columns: minmax(0, 1fr);
  }
  .v-learn .modes-grid {
    grid-template-columns: 1fr;
  }
  .v-learn .a-quiz.modes-grid {
    margin-top: 0;
  }
  .v-impact .a-badges {
    grid-area: badges;
  }
  .bgrid {
    grid-template-columns: repeat(8, 1fr);
  }
  .regpick {
    grid-template-columns: 1fr 1fr;
  }
}
#map.dark-tiles .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.5);
}
#map:not(.dark-tiles) .leaflet-tile-pane {
  filter: saturate(0.7) brightness(1.03);
}
@media (max-width: 959px) {
  .v-drop .page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .v-drop .seg.mini {
    width: 100%;
  }
  .v-learn .page-head .lvl {
    min-width: 96px;
  }
  .v-learn .lvbar {
    width: 96px;
  }
}

/* ---------- full screen, edge to edge (same approach as Docket) ---------- */
html,
body {
  height: 100%;
  height: 100lvh;
  overflow: hidden;
  overscroll-behavior: none;
}
#app {
  height: 100lvh;
  min-height: -webkit-fill-available;
}
@media (max-width: 959px) {
  .page {
    height: 100lvh;
  }
  .scroller {
    padding-bottom: calc(env(safe-area-inset-bottom) + 112px);
  }
  .dock {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* ---------- map upgrades ---------- */
.maptools {
  position: absolute;
  z-index: 500;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 8px;
}
.maptools .round {
  width: 44px;
  height: 44px;
}
.maplegend {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.maplegend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.maplegend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--lime-2);
  background: #fff;
}
.maplegend .lg-store {
  border-color: #60a5fa;
}
.pin {
  animation: pinIn 0.5s var(--d, 0ms) var(--spring) both;
  transition: opacity 0.3s, filter 0.3s;
}
.pin.store {
  width: 42px;
  height: 42px;
  border-width: 2.5px;
  border-color: #60a5fa;
}
.pin.store .art {
  width: 26px;
  height: 26px;
}
.pin.site {
  width: 56px;
  height: 56px;
}
.pin.site.on {
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--lime) 30%, transparent),
    0 8px 18px -6px rgba(0, 0, 0, 0.5);
  animation:
    pinIn 0.5s var(--d, 0ms) var(--spring) both,
    pulse 2.4s 0.6s ease-in-out infinite;
}
.pin.off {
  opacity: 0.35;
  filter: grayscale(0.8);
}
@keyframes pinIn {
  from {
    transform: rotate(-45deg) scale(0) translateY(20px);
    opacity: 0;
  }
}
@keyframes pulse {
  50% {
    box-shadow:
      0 0 0 12px color-mix(in srgb, var(--lime) 10%, transparent),
      0 8px 18px -6px rgba(0, 0, 0, 0.5);
  }
}
.leaflet-popup.bw-pop .leaflet-popup-content-wrapper {
  border-radius: 20px;
  background: var(--card-2);
  color: var(--text);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
}
.leaflet-popup.bw-pop .leaflet-popup-tip {
  background: var(--card-2);
}
.leaflet-popup.bw-pop .leaflet-popup-content {
  margin: 12px 14px;
  font-family: var(--font);
}
.pop {
  display: flex;
  gap: 10px;
}
.pop-art {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--lime) 14%, transparent);
}
.pop-art .art {
  width: 38px;
  height: 38px;
}
.pop b {
  display: block;
  font-size: 0.95rem;
}
.pop small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.pop-takes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.pop-takes span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.pop-acts {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.pop-acts a {
  color: var(--accent) !important;
  font-weight: 650;
}
.leaflet-tooltip.bw-tip {
  background: var(--lime);
  color: var(--on-lime);
  border: 0;
  border-radius: 999px;
  font: 700 0.75rem var(--font);
  padding: 4px 10px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.leaflet-tooltip.bw-tip::before {
  display: none;
}
.leaflet-control-zoom {
  border: 0 !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5) !important;
}
.mapcard.full {
  position: fixed;
  inset: 0;
  z-index: 80;
  height: 100lvh !important;
  margin: 0;
  border-radius: 0;
  animation: popWin 0.35s var(--ease) both;
}
.mapcard.full .maptools {
  top: calc(env(safe-area-inset-top) + 14px);
}
.mapcard.full .maplegend {
  top: calc(env(safe-area-inset-top) + 14px);
}
.mapcard.full .nearme {
  bottom: calc(env(safe-area-inset-bottom) + 20px);
}
body.map-open .dock,
body.map-open .side {
  visibility: hidden;
}
.place .acts button {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--chip);
  border: 1px solid var(--line);
}
.place .acts button svg {
  width: 17px;
  height: 17px;
}
.place.store::before {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), transparent 65%);
}
@keyframes popWin {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}
.place .art {
  top: 84px;
  bottom: auto;
  height: 84px;
}
.place .acts {
  max-width: 100%;
}
.place .note2,
.place .takes {
  max-width: calc(100% - 96px);
}

/* ---------- contrast fixes ---------- */
:root {
  --muted: #4a5c4d;
  --faint: #7d8c7f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --muted: #a3b3a1;
  }
}
:root[data-theme="dark"] {
  --muted: #a3b3a1;
}
/* result panel: solid, readable surfaces in both themes */
.scan .panel.lg {
  --text: #f2f7ee;
  --muted: #b6c4b3;
  --chip: rgba(255, 255, 255, 0.08);
  --card-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #a6f23a;
  --lg: linear-gradient(160deg, rgba(30, 40, 30, 0.9), rgba(14, 20, 14, 0.94));
  color: var(--text);
}
:root[data-theme="light"] .scan .panel.lg {
  --text: #0f1f10;
  --muted: #45584a;
  --chip: #ffffff;
  --card-2: #f1f6ee;
  --line: rgba(15, 31, 16, 0.12);
  --accent: #23683a;
  --lg: linear-gradient(160deg, rgba(250, 252, 248, 0.97), rgba(238, 245, 234, 0.97));
  color: var(--text);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .scan .panel.lg {
    --text: #0f1f10;
    --muted: #45584a;
    --chip: #ffffff;
    --card-2: #f1f6ee;
    --line: rgba(15, 31, 16, 0.12);
    --accent: #23683a;
    --lg: linear-gradient(160deg, rgba(250, 252, 248, 0.97), rgba(238, 245, 234, 0.97));
    color: var(--text);
  }
}
.panel .panel-head small,
.panel .prow small {
  color: var(--muted);
  opacity: 1;
}
.panel .prow.binrow small {
  color: rgba(255, 255, 255, 0.85);
}
.panel .btn.ghost {
  background: var(--chip);
  color: var(--text);
  border: 1px solid var(--line);
}
.panel .round.sm:not(.lime) {
  background: var(--chip);
  color: var(--text);
  border: 1px solid var(--line);
}
.panel .conf .lbl b {
  color: var(--accent);
}
@media (min-width: 960px) {
  .result .panel {
    bottom: auto;
    max-height: calc(100% - 32px);
  }
  .scan .scan-ui {
    padding-bottom: 24px;
  }
}

.zooms:empty {
  display: none;
}
.dock-glass.lg {
  background: var(--dock);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}
.place .art {
  top: 104px;
  height: 64px;
  right: 22px;
}
.place .where,
.place .note2,
.place .takes {
  max-width: calc(100% - 84px);
}
