/* TgPharmacy phone mockup — Telegram WebApp UI (matches real app screenshots) */

.phone {
  position: relative;
  width: 360px;
  height: 720px;
  border-radius: 52px;
  background: #1c1c1e;
  padding: 12px;
  box-shadow:
    0 60px 120px -30px rgba(34, 48, 62, 0.35),
    0 30px 60px -15px rgba(34, 48, 62, 0.2),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}
.phone__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #000;
  border-radius: 9999px;
  z-index: 10;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--ph-bg);
  display: flex;
  flex-direction: column;
}

/* iOS status bar */
.tg-status {
  height: 44px;
  padding: 14px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-weight: 600;
  font-size: 15px;
  color: var(--ph-text);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.tg-status__icons {
  display: inline-flex; gap: 5px; align-items: center;
  color: var(--ph-text);
}
.tg-status__icons svg { display: block; }

/* Telegram WebApp header */
.tg-webapp-header {
  height: 56px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  background: var(--ph-bg);
  flex-shrink: 0;
}
.tg-webapp-header__close {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-size: 15px;
  font-weight: 400;
  color: var(--ph-text);
}
.tg-webapp-header__title {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.tg-webapp-header__title b {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-size: 16px;
  font-weight: 700;
  color: var(--ph-text);
  line-height: 1.1;
}
.tg-webapp-header__title span {
  font-size: 11px;
  color: var(--fg-3);
  line-height: 1.2;
  margin-top: 1px;
}
.tg-webapp-header__spacer {
  /* invisible spacer so the title stays optically centered */
  width: 60px;
  height: 1px;
}

/* ── Telegram BOT CHAT header (back + badge | title | avatar) ───── */
.tg-chat-header {
  height: 56px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  background: var(--ph-bg);
  flex-shrink: 0;
}
.tg-chat-header__back {
  display: inline-flex; align-items: center;
  background: var(--ph-card);
  border-radius: 9999px;
  padding: 4px 10px 4px 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-size: 14px;
  color: var(--ph-text);
  font-weight: 500;
  gap: 2px;
}
.tg-chat-header__back i { font-size: 22px; color: var(--fg-1); }
.tg-chat-header__badge {
  background: var(--ph-text);
  color: var(--ph-bg);
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0 6px;
  line-height: 1;
}
.tg-chat-header__title {
  background: var(--ph-card);
  border-radius: 9999px;
  padding: 6px 18px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  min-width: 0;
}
.tg-chat-header__title b {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-size: 14px;
  font-weight: 700;
  color: var(--ph-text);
  line-height: 1.1;
}
.tg-chat-header__title span {
  font-size: 10px;
  color: var(--fg-3);
  line-height: 1.2;
  margin-top: 1px;
}
.tg-webapp-header__avatar,
.tg-chat-header__avatar {
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: transparent url("../assets/hp-logo-v2.svg") no-repeat center;
  background-size: 140% auto;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* ── Bot chat messages (matches real screenshot) ────────────────── */
.bot-chat {
  flex: 1;
  background: var(--ph-bg);
  padding: 12px 12px 8px;
  display: flex; flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.bot-msg {
  background: var(--ph-card-2);
  border-radius: 16px;
  padding: 12px 14px 10px;
  max-width: 92%;
  align-self: flex-start;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-size: 13px;
  line-height: 18px;
  color: var(--ph-text);
  position: relative;
}
.bot-msg__head {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 18px;
}
.bot-msg__head b {
  font-weight: 700;
}
.bot-msg__lines {
  display: flex; flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.bot-msg__line {
  font-size: 13px;
  line-height: 18px;
}
.bot-msg__line b { font-weight: 700; }
.bot-msg__body {
  font-size: 13px;
  line-height: 18px;
}
.bot-msg__body b { font-weight: 700; }
.bot-msg__time {
  font-size: 10px;
  color: var(--fg-3);
  text-align: right;
  margin-top: 4px;
  line-height: 1;
}

/* ── Bot chat composer (bottom strip in screenshot) ─────────────── */
.bot-composer {
  display: flex; align-items: center;
  gap: 6px;
  padding: 8px 10px 12px;
  background: var(--ph-bg);
  border-top: 1px solid var(--ph-divider);
  flex-shrink: 0;
}
.bot-composer__webapp {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(105, 108, 255, 0.10);
  border: 1.5px solid var(--primary);
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ph-text);
  flex-shrink: 0;
}
.bot-composer__webapp i { color: var(--primary); font-size: 14px; }
.bot-composer__attach,
.bot-composer__mic {
  width: 28px; height: 28px;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2);
  font-size: 18px;
  flex-shrink: 0;
}
.bot-composer__input {
  flex: 1;
  background: var(--ph-input-bg);
  border-radius: 9999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--fg-3);
  min-width: 0;
}

/* App body */
.app-body {
  flex: 1;
  overflow: hidden;
  padding: 18px 18px 24px;
  display: flex; flex-direction: column; gap: 14px;
}

/* Title block: "Аптечка / 57 препаратов" + FAB */
.title-block {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
}
.title-block__h {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--ph-text);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.title-block__sub {
  font-size: 13px;
  color: var(--fg-3);
}
.fab-square {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 14px -4px rgba(105, 108, 255, 0.55);
  flex-shrink: 0;
}

/* Location chip row */
.loc-row {
  display: flex; align-items: center; gap: 10px;
}
.loc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 3px 8px -2px rgba(105, 108, 255, 0.4);
}
.loc-chip__count {
  font-weight: 500;
  opacity: 0.8;
  font-size: 12px;
}
.loc-gear {
  width: 32px; height: 32px;
  border-radius: 9999px;
  border: 1.5px solid rgba(34, 48, 62, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2);
  font-size: 15px;
}

/* Search bar */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-app);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--fg-3);
}
.searchbar i { font-size: 18px; }

/* Filter chips (new style) */
.filter-chips {
  display: flex; gap: 8px;
  overflow: hidden;
}
.filter-chip {
  background: var(--ph-card);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.filter-chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 8px -2px rgba(105, 108, 255, 0.4);
}
.filter-chip__count {
  opacity: 0.7;
  font-weight: 500;
}

/* Compact spacing for the Add screen so the submit button stays in view */
.app-body--add {
  padding-top: 4px;
  padding-bottom: 18px;
  gap: 8px;
}
.app-body--add .sheet-title { font-size: 20px; margin: 0 0 2px; }
.app-body--add .scan-btn { padding: 12px 14px; font-size: 13px; }
.app-body--add .scan-btn i { font-size: 20px; }
.app-body--add .form-row { gap: 4px; }
.app-body--add .form-label { font-size: 12px; }
.app-body--add .form-input { padding: 10px 14px; font-size: 13px; }
.app-body--add .form-search-btn { font-size: 16px; }
.app-body--add .btn-primary-full { padding: 12px; font-size: 14px; margin-top: 2px; }

/* Fade out the bottom of the medicine list so the last card doesn't show
   a harsh cut against the phone's rounded bottom (visible in dark theme) */
.med-list {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
}
.med-list {
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.med-card {
  background: var(--ph-card);
  border-radius: 16px;
  padding: 12px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: 0 1px 3px var(--ph-shadow, rgba(34, 48, 62, 0.06));
}
.med-thumb {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--primary-soft);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.med-thumb__emoji {
  font-size: 30px;
  line-height: 1;
  /* Apple emoji on Mac, Segoe UI Emoji on Windows */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}
.med-thumb svg { width: 100%; height: 100%; display: block; }
.med-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.med-titlerow {
  display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
}
.med-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-weight: 700;
  font-size: 15px;
  color: var(--ph-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.badge-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  flex-shrink: 0;
  white-space: nowrap;
}
.badge-status.ok { background: var(--success-soft); color: #2a8a14; }
.badge-status.warn { background: var(--warning-soft); color: #b07700; }
.badge-status.err { background: var(--error-soft); color: #c92a10; }
.med-meta {
  font-size: 12px;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.med-meta .folder {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 3px;
}
.med-chev { color: rgba(34, 48, 62, 0.25); font-size: 18px; }

/* ── Detail screen (matches real screenshot) ──────────────── */
.detail-photo {
  width: 100%;
  aspect-ratio: 5/3;
  border-radius: 16px;
  background: var(--bg-app);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.detail-photo svg { max-width: 60%; max-height: 80%; display: block; }
.detail-photo__img {
  max-width: 85%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}
.detail-photo .ai-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.96);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.1);
}
.detail-photo .ai-badge i { font-size: 13px; }

.detail-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui;
  font-weight: 800;
  font-size: 22px;
  color: var(--ph-text);
  margin: 4px 0 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.detail-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--success-soft);
  color: #2a8a14;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  align-self: flex-start;
}
.detail-pill .dot { width: 8px; height: 8px; background: #1faa1a; border-radius: 50%; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-card {
  background: var(--bg-app);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-card__head {
  display: flex; align-items: center; gap: 6px;
}
.stat-card__icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.stat-card__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.stat-card__value {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui;
  font-weight: 700;
  font-size: 18px;
  color: var(--ph-text);
  letter-spacing: -0.01em;
}
.stat-card__value small {
  font-weight: 500;
  font-size: 12px;
  color: var(--fg-3);
  margin-left: 4px;
}

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 2px;
}
.section-box {
  background: var(--bg-app);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 19px;
  color: var(--fg-1);
}
.section-box.is-ai {
  background: var(--primary-soft-2);
  color: var(--fg-1);
}

.action-take {
  width: 100%;
  background: var(--success-soft);
  color: #1faa1a;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.action-take i { font-size: 16px; }

.action-row {
  display: flex; gap: 8px;
}
.action-edit {
  flex: 1;
  background: var(--primary);
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.action-trash {
  width: 48px;
  background: var(--error-soft);
  color: var(--error);
  border-radius: 12px;
  font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Add modal (bottom-sheet) ──────────────────────────────── */
.sheet-handle {
  width: 36px; height: 4px;
  border-radius: 9999px;
  background: rgba(34, 48, 62, 0.18);
  margin: 0 auto 8px;
}
.sheet-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui;
  font-weight: 800;
  font-size: 22px;
  color: var(--ph-text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
}
.form-input {
  background: var(--bg-app);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--fg-3);
}
.form-input.has-value { color: var(--ph-text); font-weight: 500; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-input-with-btn {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 6px;
}
.form-search-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.btn-primary-full {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
}

/* ── Family screen reuses existing list-card / list-row styles ── */
.list-section { display: flex; flex-direction: column; gap: 8px; }
.list-section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0 4px;
}
.list-card {
  background: var(--ph-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px var(--ph-shadow, rgba(34, 48, 62, 0.06));
}
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-row__avatar {
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.list-row__avatar.a-2 { background: rgba(255, 171, 0, 0.16); color: #b07700; }
.list-row__avatar.a-3 { background: var(--success-soft); color: #2a8a14; }
.list-row__avatar.a-4 { background: rgba(3, 195, 236, 0.16); color: #0892a8; }
.list-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-row__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ph-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-row__sub {
  font-size: 12px;
  color: var(--fg-3);
}
.list-row__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 9999px;
}
.list-row__chevron { color: rgba(34, 48, 62, 0.25); font-size: 18px; }
.invite-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-soft-2);
  border: 1.5px dashed var(--primary-ring);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.invite-bar i { font-size: 18px; }

/* ── Telegram chat (notifications) ────────────────────────── */
.tg-chat-bg {
  background: linear-gradient(180deg, #c8d2dd 0%, #d4dde6 100%);
  flex: 1;
  padding: 14px 12px 24px;
  display: flex; flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.tg-msg {
  background: var(--ph-card);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 19px;
  color: var(--fg-1);
  max-width: 88%;
  box-shadow: 0 1px 1px var(--ph-shadow, rgba(0,0,0,0.06));
  position: relative;
}
.tg-msg__head {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.tg-msg__head i { font-size: 14px; }
.tg-msg__time {
  font-size: 10px;
  color: var(--fg-3);
  margin-top: 4px;
  text-align: right;
}
.tg-msg b {
  font-weight: 700;
  color: var(--ph-text);
}

/* Pulse for the take button */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(31, 170, 26, 0.4); }
  100% { box-shadow: 0 0 0 10px rgba(31, 170, 26, 0); }
}
.pulse { animation: pulse-ring 1.8s var(--ease-out) infinite; }

/* ── Add screen: barcode scanner button (matches real app) ─ */
.scan-btn {
  background: var(--primary-soft-2);
  border: 1.5px dashed var(--primary-ring);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-size: 14px;
  font-weight: 700;
}
.scan-btn i { font-size: 22px; }

/* Make placeholder fields look unfilled */
.form-input:not(.has-value) { color: var(--fg-3); }
.form-input:empty::before {
  content: "";
}

/* ── Family screen: user card + locations list ─────────── */
.user-card {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 0;
}
.user-card__avatar {
  width: 64px; height: 64px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ff7a8a 0%, #ff5e62 100%);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
  font-weight: 800;
  font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-card__avatar--logo {
  background: var(--primary-soft) url("../assets/hp-logo-v2.svg") no-repeat center;
  background-size: 75% auto;
}
.user-card__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-card__name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ph-text);
  line-height: 1.1;
}
.user-card__handle {
  font-size: 13px;
  color: var(--fg-3);
}
.user-card__moon {
  font-size: 28px;
  flex-shrink: 0;
}

/* Location list items (rounded white cards) */
.loc-list {
  display: flex; flex-direction: column; gap: 8px;
}
.loc-item {
  background: var(--ph-card);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 1px 3px var(--ph-shadow, rgba(34, 48, 62, 0.06));
}
.loc-item__icon {
  width: 44px; height: 44px;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.loc-item__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc-item__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ph-text);
}
.loc-item__sub {
  font-size: 12px;
  color: var(--fg-3);
}
.loc-item__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 9999px;
}

/* "Add location" dashed button */
.loc-add {
  margin-top: 8px;
  border: 1.5px dashed rgba(34, 48, 62, 0.25);
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
}
.loc-add i { font-size: 18px; }

/* Invite history row */
.invite-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--ph-card);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px var(--ph-shadow, rgba(34, 48, 62, 0.06));
}
.invite-row__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.invite-row__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.invite-row__title { font-size: 14px; font-weight: 700; color: var(--ph-text); }
.invite-row__sub { font-size: 12px; color: var(--fg-3); }
.invite-row__chev { color: rgba(34, 48, 62, 0.25); font-size: 18px; }
