:root {
  --gold: #ffb156;
  --gold-hot: #ffd9a0;
  --ink: #06050a;
  --glass: rgba(22, 19, 26, 0.42);
  --glass-line: rgba(255, 255, 255, 0.14);
  --text-dim: rgba(255, 255, 255, 0.55);
}

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

html, body { height: 100%; }

body {
  background: var(--ink);
  color: #fff;
  font-family: "Inter", -apple-system, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: fixed;
  inset: 0;
}

canvas#fx,
canvas#core3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
canvas#core3d { pointer-events: none; }

/* film grain + vignette */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- entrance choreography (driven by GSAP; these are initial states) ---------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
}

/* ---------- header ---------- */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  padding: 30px 38px;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand svg { display: block; }
.brand span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.92);
}

.head-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.connect-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.connect-btn:hover { border-color: rgba(255, 177, 86, 0.5); background: rgba(255, 177, 86, 0.12); }
.connect-btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.help {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-right: 6vw;
}

.user {
  display: flex;
  align-items: center;
  gap: 14px;
}
.user .name {
  font-size: 24px;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-align: right;
}
.user .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 32% 28%, #ffd9a0 0%, #d98a3e 38%, #7c4420 72%, #2c1608 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 248, 238, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ---------- biological age counter ---------- */
.age {
  position: absolute;
  left: 26%;
  top: 51%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  pointer-events: none;
}
.age .label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.age .value {
  font-size: clamp(110px, 15vw, 196px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 2px;
  text-shadow: 0 0 60px rgba(255, 177, 86, 0.25);
  font-variant-numeric: tabular-nums;
}
.age .delta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(14, 12, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(8px);
}
.age .delta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- right rail cards ---------- */
.rail {
  position: absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-46%);
  width: 232px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
}

.card {
  position: relative;
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

.card h3 {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 120px;
}
.card .sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 5px;
}
.card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.card .pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(10, 9, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 500;
}
.go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: rgba(10, 9, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  transition: background 0.3s ease;
}
.card:hover .go { background: rgba(255, 177, 86, 0.22); }
.go svg { display: block; }

/* warm "photo" cards */
.card.warm-a {
  background:
    radial-gradient(130% 110% at 85% 0%, rgba(173, 196, 230, 0.55) 0%, transparent 45%),
    radial-gradient(120% 130% at 15% 30%, rgba(255, 130, 60, 0.75) 0%, rgba(210, 84, 60, 0.55) 45%, transparent 78%),
    linear-gradient(160deg, #b96a3c 0%, #7e3f2c 55%, #3c2030 100%);
}
.card.warm-b {
  background:
    radial-gradient(120% 100% at 80% 90%, rgba(255, 190, 120, 0.8) 0%, transparent 55%),
    radial-gradient(150% 120% at 20% 10%, rgba(120, 60, 44, 0.9) 0%, transparent 70%),
    linear-gradient(200deg, #8a4a2e 0%, #5c2e22 50%, #2a1414 100%);
}
.card.warm-a h3, .card.warm-b h3 { text-shadow: 0 1px 12px rgba(40, 10, 0, 0.45); }

/* ---------- health snapshot ---------- */
.snapshot {
  position: absolute;
  right: 284px; /* rail width + gutters, so expansion never overlaps the rail */
  bottom: 52px;
  width: 252px;
  z-index: 6;
  border-radius: 22px;
  padding: 18px;
  background: rgba(16, 14, 19, 0.66);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: width 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.snapshot .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.snapshot h3 {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.snapshot .sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 5px;
}
.snapshot .go svg { transition: transform 0.45s ease; }
.snapshot .body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.3, 0.7, 0.2, 1), margin-top 0.55s ease;
  margin-top: 0;
}
.snapshot .body > p {
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.snapshot.open { width: 318px; }
.snapshot.open .body { grid-template-rows: 1fr; margin-top: 14px; }
.snapshot.open .go svg { transform: rotate(180deg); }
.snapshot .body b { color: var(--gold-hot); font-weight: 500; }
.snapshot .body .note {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 8px;
}

/* ---------- bottom ruler ---------- */
.ruler {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 9px) bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 90px) bottom / 100% 17px no-repeat;
}
.ruler .nums {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
}
.ruler .nums span {
  flex: none;
  width: 90px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.28);
  transform: translateX(4px);
}
.ruler .marker {
  position: absolute;
  bottom: 0;
  left: -20px;
  width: 2px;
  height: 24px;
  background: linear-gradient(to top, var(--gold), transparent);
  box-shadow: 0 0 12px rgba(255, 177, 86, 0.9);
  opacity: 0;
}

/* ---------- data source chip ---------- */
.source-chip {
  position: absolute;
  left: 38px;
  bottom: 44px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 12, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}
.source-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.source-chip.demo .dot { background: #8ea0d8; box-shadow: 0 0 8px #8ea0d8; }

/* ---------- connect overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(4, 3, 8, 0.55);
  backdrop-filter: blur(18px) saturate(0.9);
  -webkit-backdrop-filter: blur(18px) saturate(0.9);
  opacity: 0;
  pointer-events: none;
}
.overlay.open { pointer-events: auto; }

.panel {
  width: min(520px, calc(100vw - 40px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border-radius: 26px;
  padding: 30px;
  background: rgba(16, 14, 19, 0.72);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.panel .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.panel h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.panel .lede { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.55; }
.panel .close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.provider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.provider .plogo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(10, 9, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-hot);
}
.provider .pinfo { flex: 1; min-width: 0; }
.provider .pname {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.provider .pdesc { font-size: 11px; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }
.provider .pbtn {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 9, 12, 0.55);
  color: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.provider .pbtn:hover { background: rgba(255, 177, 86, 0.2); border-color: rgba(255, 177, 86, 0.5); }
.provider .pbtn:disabled { opacity: 0.45; cursor: default; }
.provider .pbtns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.provider .pbtns .pbtn { width: 100%; }
.provider.drop-hot { border-color: rgba(255, 177, 86, 0.65); background: rgba(255, 177, 86, 0.08); }
.provider .prog {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hot));
  width: 0%;
  margin-top: 8px;
  opacity: 0;
}

.chip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip.sync { color: var(--gold-hot); border-color: rgba(255, 177, 86, 0.5); }
.chip.ok { color: #0c0a10; background: var(--gold); border-color: transparent; }

.panel .row-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 2px 2px;
}
.panel .row-line .rl-label { font-size: 13px; font-weight: 500; }
.panel .row-line .rl-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.45; }

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.3s ease;
  flex: none;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s ease;
}
.toggle.on { background: rgba(255, 177, 86, 0.55); }
.toggle.on::after { transform: translateX(18px); }

.age-input {
  width: 64px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(10, 9, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  text-align: center;
}
.age-input:disabled { opacity: 0.5; }

.panel .disclaim {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  header { padding: 22px; }
  .help { display: none; }
  .brand span { letter-spacing: 0.22em; }
  .user .name { display: none; }
  .age { left: 50%; top: 42%; }
  .rail {
    top: auto;
    bottom: 148px;
    right: 18px;
    left: 18px;
    width: auto;
    transform: none;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .rail .card { min-width: 190px; }
  /* the expanded snapshot covers the rail — fade it out of the way */
  .stage:has(.snapshot.open) .rail { opacity: 0; transform: translateY(12px); pointer-events: none; }
  .snapshot { left: 18px; right: 18px; width: auto; bottom: 40px; }
  .snapshot.open { width: auto; }
  .source-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .snapshot, .snapshot .body, .snapshot .go svg, .toggle, .toggle::after { transition: none; }
}

/* ---------- metric detail overlay ---------- */
.detail-panel { width: min(680px, calc(100vw - 40px)); }
.detail-head-right { display: flex; align-items: flex-start; gap: 12px; flex: none; }
.range-toggle {
  display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.range-toggle button {
  border: 0; background: transparent; color: var(--text-dim);
  font-family: inherit; font-size: 11px; font-weight: 500;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.range-toggle button.on { background: rgba(255, 177, 86, 0.18); color: var(--gold-hot, #ffd9a0); }
.range-toggle button:hover:not(.on) { color: #fff; }

.detail-body { margin-top: 4px; }
.d-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.d-stat {
  flex: 1; min-width: 128px; padding: 13px 15px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.d-stat .k { font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; }
.d-stat .v { font-size: 21px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.d-stat .v small { font-size: 11.5px; font-weight: 400; color: var(--text-dim); margin-left: 3px; }
.d-stat .t { font-size: 10.5px; margin-top: 3px; color: var(--text-dim); }
.d-stat .t.up { color: #9ee8b0; } .d-stat .t.down { color: #ff9d7e; }

.d-section { margin-top: 20px; }
.d-section h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px;
}
.d-section h4 b { color: #fff; font-weight: 600; }

.chart { position: relative; }
.chart svg { display: block; }
.chart-empty {
  height: 90px; display: grid; place-items: center;
  color: var(--text-dim); font-size: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12); border-radius: 14px;
}
.chart-tip {
  position: absolute; transform: translate(-50%, -100%);
  pointer-events: none; opacity: 0; transition: opacity 0.15s ease;
  background: rgba(10, 9, 12, 0.92); border: 1px solid rgba(255, 177, 86, 0.35);
  border-radius: 10px; padding: 6px 10px; font-size: 10.5px; color: var(--text-dim);
  white-space: nowrap; z-index: 3;
}
.chart-tip b { display: block; color: #fff; font-size: 12.5px; font-weight: 600; }

/* bio-age factor breakdown */
.factor-head {
  display: flex; justify-content: center; gap: 10px; align-items: baseline;
  font-size: 13px; color: var(--text-dim); margin-bottom: 14px;
}
.factor-head b { color: #fff; font-size: 17px; font-weight: 600; }
.factor-head b.gold { color: var(--gold-hot, #ffd9a0); }
.factor-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; align-items: center; padding: 7px 0; }
.f-label { font-size: 12.5px; color: var(--text-dim); text-transform: capitalize; }
.f-track { position: relative; height: 14px; }
.f-axis { position: absolute; left: 52%; top: -2px; bottom: -2px; width: 1px; background: rgba(255, 255, 255, 0.22); }
.f-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; }
.f-bar.younger { background: linear-gradient(90deg, rgba(158, 232, 176, 0.25), #9ee8b0); }
.f-bar.older { background: linear-gradient(90deg, #ff9d7e, rgba(255, 157, 126, 0.25)); }
.f-val { font-size: 12px; font-weight: 600; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.f-val.younger { color: #9ee8b0; } .f-val.older { color: #ff9d7e; }

/* history / workouts / inventory lists */
.d-list { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.d-list .li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 12.5px;
}
.d-list .li .n { color: #fff; }
.d-list .li .n small { color: var(--text-dim); margin-left: 7px; font-size: 11px; }
.d-list .li .m { color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-list .li .m b { color: var(--gold-hot, #ffd9a0); font-weight: 600; }

.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.inv-grid .li { font-size: 11.5px; }
@media (max-width: 560px) { .inv-grid { grid-template-columns: 1fr; } }

/* cards are now buttons */
.card, .snapshot .go, .card .go { cursor: pointer; }
.card:hover .go, .snapshot:hover .go { transform: translateX(2px); }
.card .go, .snapshot .go { transition: transform 0.25s ease; }

/* ---------- detail v2: captions, chips, metric deep-dive ---------- */
.chart-cap { font-size: 11.5px; color: var(--text-dim); line-height: 1.55; margin-top: 8px; }
.d-section h4 { display: flex; align-items: center; gap: 8px; }
.dir-chip {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px; text-transform: none;
}
.dir-chip.hi { color: #9ee8b0; background: rgba(158, 232, 176, 0.1); }
.dir-chip.lo { color: #ffc9a0; background: rgba(255, 177, 86, 0.1); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.m-chip {
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85); font-family: inherit; font-size: 11px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.m-chip:hover { background: rgba(255, 177, 86, 0.16); border-color: rgba(255, 177, 86, 0.5); }
.back-btn {
  border: 0; background: transparent; color: var(--gold-hot, #ffd9a0);
  font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
  padding: 4px 0; margin-top: 6px;
}
.back-btn:hover { text-decoration: underline; }
.d-list .li.click { cursor: pointer; border-radius: 8px; }
.d-list .li.click:hover { background: rgba(255, 177, 86, 0.08); }
.d-list .li.click .m { color: var(--gold-hot, #ffd9a0); }
