:root {
  --paper: #f2f4f6;
  --card: #ffffff;
  --card-2: #e9edf1;
  --line: #d9dfe5;
  --ink: #131a21;
  --ink-2: #4e5b68;
  --ink-3: #8593a0;
  --green: #12805a;
  --green-ink: #0b5d41;
  --green-soft: #dcf1e6;
  --amber-soft: #fbeccc;
  --amber-ink: #7a4d00;
  --danger: #b4431f;
  --focus: #1d6fd6;
  --shadow: 0 1px 2px rgba(19, 26, 33, 0.06), 0 6px 18px -8px rgba(19, 26, 33, 0.16);
  --radius: 14px;
  --radius-s: 9px;
  --gutter: 16px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #101519;
  --card: #182028;
  --card-2: #212b35;
  --line: #2c3742;
  --ink: #e9eef2;
  --ink-2: #aeb9c4;
  --ink-3: #75838f;
  --green: #3cbf8a;
  --green-ink: #7fdcb5;
  --green-soft: #173a2d;
  --amber-soft: #3d2f12;
  --amber-ink: #f1c470;
  --danger: #ee7f5b;
  --focus: #6ea8ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -10px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
  --paper: #101519;
  --card: #182028;
  --card-2: #212b35;
  --line: #2c3742;
  --ink: #e9eef2;
  --ink-2: #aeb9c4;
  --ink-3: #75838f;
  --green: #3cbf8a;
  --green-ink: #7fdcb5;
  --green-soft: #173a2d;
  --amber-soft: #3d2f12;
  --amber-ink: #f1c470;
  --danger: #ee7f5b;
  --focus: #6ea8ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -10px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
}

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: var(--green-ink); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.js .ssr { display: none; }

.ssr {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
}

.ssr h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 12px; }

.ssr h2 { font-size: 19px; margin: 24px 0 8px; }

.ssr table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }

.ssr th, .ssr td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }

.ssr-nav, .ssr-foot, .ssr small { color: var(--ink-2); font-size: 14px; }

.ssr-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 12px 0; }

.ssr-form label { display: flex; flex-direction: column; gap: 4px; }

.ssr-form input[type="search"] { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); min-width: 260px; }

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom));
  min-height: 100dvh;
}

.hero {
  padding: calc(28px + env(safe-area-inset-top)) 0 18px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.search {
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 6px 4px 14px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}

.search-box:focus-within { border-color: var(--green); }

.search-box svg { flex: none; color: var(--ink-3); }

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 17px;
  -webkit-appearance: none;
  appearance: none;
}

.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-box input::placeholder { color: var(--ink-3); }

.search-box .clear {
  flex: none;
  border: 0;
  background: var(--card-2);
  color: var(--ink-2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.search-box .clear[hidden] { display: none; }

.search-box .go {
  flex: none;
  border: 0;
  background: var(--green);
  color: #fff;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-weight: 600;
}

.search-box .go:disabled { opacity: 0.45; cursor: default; }

.suggest {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 50dvh;
  overflow: auto;
}

.suggest:empty { display: none; }

.suggest li button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 11px 16px;
  font-size: 16px;
}

.suggest li button:active,
.suggest li.active button { background: var(--card-2); }

.suggest mark { background: transparent; color: var(--green-ink); font-weight: 600; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  background: var(--card-2);
  border-radius: 12px;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  padding: 9px 8px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 14px;
}

.segmented button[aria-pressed="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.section {
  margin-top: 26px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-head button {
  border: 0;
  background: transparent;
  color: var(--green-ink);
  font-weight: 500;
  font-size: 14px;
  padding: 0 0 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips.scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 6px;
  scrollbar-width: none;
}

.chips.scroll::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  max-width: 100%;
  white-space: nowrap;
}

.chip span { overflow: hidden; text-overflow: ellipsis; }

.chip svg { flex: none; color: var(--ink-3); }

.chip.on {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green-ink);
}

.chip.on svg { color: currentColor; }

.chip.ghost { border-style: dashed; color: var(--ink-2); }

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.recent-list li + li { border-top: 1px solid var(--line); }

.recent-list button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.recent-list small { color: var(--ink-3); font-size: 13px; flex: none; }

.foot {
  margin-top: 40px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.foot a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  margin: 0 calc(-1 * var(--gutter));
  padding: calc(8px + env(safe-area-inset-top)) var(--gutter) 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .back {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.topbar .titles { min-width: 0; flex: 1; }

.topbar h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .sub {
  margin: 1px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .thumb {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.controls {
  position: sticky;
  top: calc(56px + env(safe-area-inset-top));
  z-index: 9;
  background: var(--paper);
  padding-top: 4px;
}

.summary {
  margin: 12px 0 10px;
  color: var(--ink-2);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.summary b { color: var(--ink); font-weight: 600; }

.offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "main price"
    "actions actions";
  gap: 4px 12px;
}

.offer-main { grid-area: main; min-width: 0; }

.offer-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.offer-pharm {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.offer-addr {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
}

.offer-meta {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 13px;
}

.offer-meta b { color: var(--green-ink); font-weight: 600; }

.price {
  grid-area: price;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-top: 2px;
  white-space: nowrap;
}

.price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 2px;
}

.price .online {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--card-2);
  color: var(--ink-2);
}

.badge.h24 { background: var(--green-soft); color: var(--green-ink); }

.badge.hours { background: var(--amber-soft); color: var(--amber-ink); }

.offer-actions {
  grid-area: actions;
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.act {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--green-ink);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 6px;
  border-radius: var(--radius-s);
  text-decoration: none;
}

.act:active { background: var(--card-2); }

.act.quiet { color: var(--ink-2); flex: 0 0 auto; }

.more {
  width: 100%;
  margin-top: 14px;
  border: 1.5px solid var(--line);
  background: var(--card);
  padding: 13px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
}

.more:disabled { opacity: 0.6; }

.related h2 { margin-bottom: 8px; }

.state {
  margin-top: 28px;
  padding: 28px 20px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  color: var(--ink-2);
}

.state h3 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }

.state p { margin: 0 0 14px; font-size: 14px; }

.state.error h3 { color: var(--danger); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 11px;
  text-decoration: none;
}

.btn.secondary { background: var(--card-2); color: var(--ink); }

.choices {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.choices li + li { border-top: 1px solid var(--line); }

.choices button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px 16px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.choices button svg { color: var(--ink-3); flex: none; }

.choices .all { font-weight: 600; color: var(--green-ink); }

.lede-note {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.skeleton div {
  height: 92px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 18, 0.45);
  z-index: 40;
  animation: fade 0.18s ease-out;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-width: 640px;
  margin: 0 auto;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  animation: rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-grip {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 8px auto 0;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 8px;
}

.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 700; }

.sheet-head button {
  border: 0;
  background: var(--card-2);
  color: var(--ink-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.sheet-search {
  margin: 0 16px 8px;
}

.sheet-search input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
}

.sheet-body {
  overflow: auto;
  padding: 0 8px 12px;
  overscroll-behavior: contain;
}

.opts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.opts button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.opts button[aria-selected="true"] {
  background: var(--green-soft);
  color: var(--green-ink);
  font-weight: 600;
}

.opts button:active { background: var(--card-2); }

.opts .empty { padding: 20px 10px; color: var(--ink-3); text-align: center; }

.detail {
  padding: 0 16px 16px;
}

.detail .dname {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.detail dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 14px;
  font-size: 15px;
}

.detail dt { color: var(--ink-3); }

.detail dd { margin: 0; }

.detail .dprice {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.detail .dprice small { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }

.detail h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 14px;
  align-items: center;
}

.toast button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 600;
  padding: 0;
}

.toast[hidden] { display: none; }

@keyframes rise {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (min-width: 480px) {
  .hero h1 { font-size: 34px; }
  .offer { padding: 14px 16px 12px; }
}

.summary .view-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--card-2);
  border-radius: 10px;
  flex: none;
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}

.view-toggle button[aria-pressed="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.map-host {
  position: relative;
  z-index: 0;
  height: calc(100dvh - 230px - env(safe-area-inset-top));
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-2);
  box-shadow: var(--shadow);
}

.map-host > .map-canvas {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font);
}

.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 14px;
}

.map-note {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

.leaflet-container { background: var(--card-2); }

.leaflet-control-zoom a,
.map-locate {
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  background: var(--card) !important;
  color: var(--ink) !important;
  border: 0 !important;
  font-size: 20px;
}

.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 10px !important; overflow: hidden; }

.leaflet-control-zoom a + a { border-top: 1px solid var(--line) !important; }

.map-locate {
  display: grid;
  place-items: center;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 0;
}

.leaflet-control-attribution {
  background: color-mix(in srgb, var(--card) 80%, transparent) !important;
  color: var(--ink-3) !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a { color: var(--ink-2) !important; }

.pin-wrap { background: transparent; border: 0; }

.pin {
  position: relative;
  transform: translate(-50%, calc(-100% - 8px));
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.pin small { font-size: 10px; font-weight: 600; color: var(--ink-3); }

.pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: var(--card);
  border-right: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: translateX(-50%) rotate(45deg);
}

.pin.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.pin.active small { color: rgba(255, 255, 255, 0.8); }

.pin.active::after { background: var(--green); }

.me-wrap { background: transparent; border: 0; }

.me-dot {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1d6fd6;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.me-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(29, 111, 214, 0.25);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.mini-offers {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
  max-height: 40dvh;
  overflow-y: auto;
}

.mini-offers li + li { border-top: 1px solid var(--line); }

.mini-offers button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.mini-offers .mini-name { flex: 1; min-width: 0; }

.mini-offers .mini-price {
  flex: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-offers button:active { background: var(--card-2); }

.dark-tiles .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.6);
}

.cluster-wrap { background: transparent; border: 0; }

.cluster {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  box-shadow: 0 0 0 5px rgba(18, 128, 90, 0.25), 0 3px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.cluster b { font-size: 16px; }

.cluster span { font-size: 9.5px; font-weight: 600; opacity: 0.9; white-space: nowrap; }

.chip.accent {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.chip.accent svg { color: #fff; }

.list-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  background: var(--card);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.list-card > svg { flex: none; color: var(--green); }

.list-card > svg:last-child { color: var(--ink-3); }

.list-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-card-main b { font-size: 15px; font-weight: 600; }

.list-card-main span {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-card.ghost {
  background: transparent;
  box-shadow: none;
  border: 1.5px dashed var(--line);
}

.list-card.ghost > svg { color: var(--ink-3); }

.list-items {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list-items:empty { display: none; }

.list-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px 11px 16px;
}

.list-items li + li { border-top: 1px solid var(--line); }

.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.li-name { font-weight: 600; font-size: 15px; }

.li-form { color: var(--ink-2); font-size: 13px; }

.li-remove {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--card-2);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}

.more.add-more {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green-ink);
  border-style: dashed;
  background: transparent;
}

.ph-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px 8px;
}

.ph-card.full { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--green); }

.ph-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ph-main { flex: 1; min-width: 0; }

.ph-name {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.ph-addr { font-size: 14px; margin-top: 2px; }

.ph-score {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--p), var(--card-2) 0);
  display: grid;
  place-items: center;
}

.ph-score span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.ph-score small { font-size: 11px; font-weight: 500; color: var(--ink-3); }

.ph-score.full span { background: var(--green); color: #fff; }

.ph-items {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.ph-items li { border-bottom: 1px solid var(--line); }

.ph-items li > button,
.ph-items li > span {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink);
}

.ph-items i {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.ph-items .ok i { background: var(--green-soft); color: var(--green-ink); }

.ph-items .no i { background: var(--card-2); color: var(--ink-3); }

.ph-items .no span span { color: var(--ink-3); text-decoration: line-through; }

.ph-items li span span,
.ph-items li button span { flex: 1; min-width: 0; }

.ph-items b { flex: none; font-variant-numeric: tabular-nums; }

.ph-items .no b { color: var(--ink-3); font-weight: 500; }

.ph-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
  flex-wrap: wrap;
}

.ph-foot b { color: var(--ink); font-size: 15px; }

.ph-actions { display: flex; gap: 2px; }

.ph-actions .act { flex: none; padding: 8px 8px; }

.sheet-ph .ph-card { box-shadow: none; padding: 0 0 8px; }

.pie-wrap { background: transparent; border: 0; }

.pie {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--p), var(--card) 0);
  box-shadow: 0 0 0 2px var(--card), 0 3px 10px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pie span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pie.full span { background: var(--green); color: #fff; }

.pie.active { box-shadow: 0 0 0 3px var(--focus), 0 3px 10px rgba(0, 0, 0, 0.3); }

.cluster.partial { background: var(--ink-2); box-shadow: 0 0 0 5px rgba(78, 91, 104, 0.25), 0 3px 10px rgba(0, 0, 0, 0.25); }

.topbar-action {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.shared-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 12px 14px;
  background: var(--green-soft);
  color: var(--green-ink);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.35;
}

.shared-note .btn { flex: none; padding: 9px 14px; font-size: 14px; }

.pinned-list { margin-top: 14px; }

.ph-card.pinned { box-shadow: var(--shadow), inset 0 0 0 2px var(--focus); }

.ph-pinned {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -2px 0 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--focus);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.ph-actions .act.quiet { padding: 8px 6px; }

.foot-theme {
  margin-top: 10px;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--card-2);
}

.foot-theme button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  display: grid;
  place-items: center;
}

.foot-theme button[aria-pressed="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
