/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ece5d9;
  --surface: rgba(255, 248, 239, 0.82);
  --surface2: #f7efe4;
  --border: #d8cdbc;
  --text: #233746;
  --text-muted: #6d7c86;
  --accent: #7a2033;
  --accent-soft: #c16d7c;
  --accent-rgb: 122, 32, 51;
  --emerald: #147c64;
  --emerald-rgb: 20, 124, 100;
  --indigo: #336faf;
  --red: #c45549;
  --sidebar-w: 320px;
  --radius: 10px;
  --app-height: 100vh;
  --map-legend-offset: 24px;
}

html, body {
  height: 100%;
  min-height: var(--app-height);
  font-family: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

body {
  position: relative;
}

/* ===== Map Layer ===== */
#map-shell {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--app-height);
  z-index: 0;
  background: var(--bg);
  overflow: hidden;
}

#map-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(var(--accent-rgb), 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(var(--emerald-rgb), 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(236,229,217,0.18));
}

#map {
  width: 100%;
  height: 100%;
}

/* ===== Login Screen ===== */
#login-screen {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: var(--app-height);
  height: var(--app-height);
  background:
    linear-gradient(rgba(245,239,230,0.76), rgba(245,239,230,0.64)),
    radial-gradient(circle at 20% 18%, rgba(var(--accent-rgb), 0.16), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(var(--emerald-rgb), 0.14), transparent 34%);
  backdrop-filter: blur(6px);
}

#login-screen.open {
  display: flex;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 380px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 28px 72px rgba(109, 85, 52, 0.18);
}

.login-logo {
  margin-bottom: 20px;
}

.login-logo-mark {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(93, 72, 48, 0.12));
}

.login-brand-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 6px;
  font-family: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.login-tagline {
  color: rgba(35,55,70,0.74);
  font-size: 0.92rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 32px;
}

.login-error {
  color: var(--red);
  font-size: 0.875rem;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(196,85,73,0.12);
  border-radius: var(--radius);
  border: 1px solid rgba(196,85,73,0.22);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  margin-bottom: 20px;
}
.google-btn:hover {
  background: #fffaf4;
  border-color: #cbbca8;
  transform: translateY(-1px);
}
.google-btn:active { transform: translateY(0); }

.login-secondary-btn {
  width: 100%;
  padding: 11px 18px;
  background: rgba(255, 248, 239, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  margin-bottom: 20px;
}

.login-secondary-btn:hover {
  background: #fffaf4;
  border-color: #cbbca8;
  transform: translateY(-1px);
}

.login-secondary-btn:active { transform: translateY(0); }

.dev-btn {
  display: block;
  width: 100%;
  padding: 9px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.dev-btn:hover { border-color: #c0b09a; color: var(--text); }

.login-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== App Layout ===== */
#app-screen {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  height: var(--app-height);
  min-height: var(--app-height);
  pointer-events: none;
}

.map-legend {
  position: fixed;
  left: calc(var(--sidebar-w) + 24px);
  right: 24px;
  bottom: calc(var(--map-legend-offset) + env(safe-area-inset-bottom));
  z-index: 16;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.map-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,248,239,0.84);
  border: 1px solid rgba(216,205,188,0.88);
  box-shadow:
    0 16px 34px rgba(122, 97, 68, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.68);
  backdrop-filter: blur(16px);
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.map-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.22);
}

.place-popup.maplibregl-popup {
  z-index: 18;
}

.place-popup .maplibregl-popup-content {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,248,239,0.96);
  border: 1px solid rgba(216,205,188,0.92);
  box-shadow:
    0 18px 36px rgba(122, 97, 68, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.72);
  color: var(--text);
}

.place-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: rgba(255,248,239,0.96);
}

.place-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: rgba(255,248,239,0.96);
}

.place-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(255,248,239,0.96);
}

.place-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(255,248,239,0.96);
}

.place-popup-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  max-width: 260px;
}

.place-popup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(35,55,70,0.62);
}

.place-popup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.place-popup-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.place-popup-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.place-popup-dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.place-popup-date {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(35,55,70,0.78);
}

/* ===== Sidebar ===== */
#sidebar {
  width: var(--sidebar-w);
  height: var(--app-height);
  position: relative;
  background: rgba(250,244,236,0.8);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 10;
  flex-shrink: 0;
  min-height: 0;
  pointer-events: auto;
  backdrop-filter: blur(18px);
  box-shadow: 20px 0 56px rgba(122, 97, 68, 0.12);
}

#sidebar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.62), rgba(var(--emerald-rgb), 0.18));
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,248,239,0.88)),
    rgba(255,248,239,0.82);
  border: 1px solid rgba(35,55,70,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 8px 20px rgba(93,72,48,0.1);
}

.app-brand-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.app-brand-copy {
  min-width: 0;
}

.app-brand-name {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-family: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.app-brand-tagline {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: 3px;
}

.account-menu {
  position: fixed;
  width: 248px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,250,243,0.98), rgba(247,239,226,0.99));
  border: 1px solid rgba(216,205,188,0.92);
  box-shadow: 0 18px 42px rgba(93, 72, 48, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 34;
}

#account-menu[hidden] {
  display: none !important;
}

.account-menu-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.account-menu-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.account-menu-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(35,55,70,0.56);
}

.account-theme-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-theme-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(216,205,188,0.92);
  border-radius: 12px;
  background: rgba(255,252,247,0.72);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.account-theme-option:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.08);
}

.account-theme-option.active {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.12);
}

.account-theme-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.account-theme-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.account-theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.64), 0 0 0 1px rgba(216,205,188,0.92);
}

.account-menu-logout {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.account-menu-logout:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.34);
}

.stats {
  padding: 14px 16px 16px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0) 52%),
    radial-gradient(circle at top right, rgba(var(--emerald-rgb), 0.1), transparent 42%);
}

.stats-kicker {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(35,55,70,0.68);
}

.stats-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.stats-count {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stats-percent {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.stats-percent-muted {
  color: var(--text-muted);
}

.stats-detail {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stats-bar {
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(83,103,118,0.12);
  overflow: hidden;
}

.stats-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.28);
  transition: width 0.3s ease;
}

.stats-meta {
  margin-top: 10px;
  font-size: 0.74rem;
  color: rgba(35,55,70,0.58);
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  padding: 8px 8px 0;
  gap: 2px;
}

.tab-btn {
  flex: 1;
  padding: 8px 4px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-align: center;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), transparent);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 8px;
  border-bottom: 1px solid rgba(216,205,188,0.72);
}

.list-toolbar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(35,55,70,0.58);
}

.list-sort-select {
  min-width: 154px;
  min-height: 36px;
  padding: 7px 34px 7px 12px;
  border: 1px solid rgba(216,205,188,0.92);
  border-radius: 999px;
  background: rgba(255,252,247,0.88);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236D7C86' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.list-sort-select:focus {
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

/* ===== Place List ===== */
.place-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.place-item {
  padding: 6px 10px;
}

.place-item-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.place-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.place-item:hover .place-item-main,
.place-item.is-expanded .place-item-main {
  background: rgba(224,214,200,0.45);
}

.place-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.place-item-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,252,247,0.78);
  color: rgba(35,55,70,0.7);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.place-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.place-meta {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(var(--accent-rgb), 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s;
}

.place-item:hover .place-item-actions,
.place-item.is-expanded .place-item-actions {
  opacity: 1;
}

.place-edit-btn {
  padding: 0 10px;
  min-height: 30px;
  border: 1px solid rgba(216,205,188,0.92);
  border-radius: 999px;
  background: rgba(255,252,247,0.88);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.place-edit-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.7rem;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,252,247,0.88);
  transition: opacity 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.delete-btn:hover { color: var(--red); background: rgba(196,85,73,0.12); }

.place-history {
  margin: 6px 0 2px;
  padding: 0 12px 2px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.place-history-block {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,252,247,0.82);
  border: 1px solid rgba(216,205,188,0.86);
}

.place-history-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(35,55,70,0.56);
}

.place-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.place-history-item,
.place-history-empty,
.place-history-notes {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
}

.place-history-empty {
  margin-top: 8px;
  color: var(--text-muted);
}

.place-history-notes {
  margin-top: 8px;
  color: rgba(35,55,70,0.82);
  white-space: pre-wrap;
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== Sidebar Footer ===== */
.sidebar-footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: stretch;
}

.save-btn {
  width: 100%;
  min-height: 46px;
  padding: 11px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, color 0.15s;
}

.save-btn:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.48);
  transform: translateY(-1px);
}

.save-btn:active { transform: translateY(0); }

.save-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.save-btn[hidden] {
  display: none;
}

.share-icon-btn {
  width: 48px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 248, 239, 0.9);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, color 0.15s;
}
.share-icon-btn:hover {
  background: #fffaf4;
  border-color: rgba(var(--accent-rgb), 0.44);
  color: var(--accent);
  transform: translateY(-1px);
}
.share-icon-btn:active { transform: translateY(0); }
.share-icon-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.add-btn {
  width: 100%;
  min-height: 46px;
  padding: 11px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff8ef;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.add-btn:hover { background: #631726; transform: translateY(-1px); }
.add-btn:active { transform: translateY(0); }

.mobile-topbar {
  position: fixed;
  top: max(14px, calc(env(safe-area-inset-top) + 6px));
  right: 14px;
  z-index: 18;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: auto;
}

.mobile-topbar[aria-hidden="false"] {
  display: flex;
}

.mobile-map-panel,
.mobile-drawer-scrim {
  display: none;
}

.mobile-menu-toggle {
  width: 52px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(216,205,188,0.92);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,248,239,0.94)),
    rgba(255,248,239,0.9);
  box-shadow:
    0 12px 30px rgba(122, 97, 68, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-icon {
  position: relative;
  width: 22px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.mobile-menu-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-menu-icon span:nth-child(1) {
  width: 20px;
}

.mobile-menu-icon span:nth-child(2) {
  width: 15px;
}

.mobile-menu-icon span:nth-child(3) {
  width: 20px;
}

.mobile-identity-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  appearance: none;
  border-radius: 999px;
  background: rgba(255,248,239,0.9);
  border: 1px solid rgba(216,205,188,0.92);
  box-shadow: 0 12px 30px rgba(122, 97, 68, 0.14);
  backdrop-filter: blur(16px);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-identity-chip:hover,
.mobile-identity-chip:focus-visible,
.mobile-identity-chip.is-open {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow:
    0 14px 30px rgba(122, 97, 68, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.66);
  outline: none;
}

.mobile-user-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  flex-shrink: 0;
}

.mobile-user-placeholder {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(35,55,70,0.06);
  color: rgba(35,55,70,0.76);
  flex-shrink: 0;
}

.mobile-user-placeholder[hidden] {
  display: none !important;
}

.mobile-map-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-height: calc(var(--app-height) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  z-index: 17;
  pointer-events: auto;
  padding: 14px 14px 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,248,239,0.92), rgba(250,244,236,0.96)),
    rgba(250,244,236,0.94);
  border: 1px solid rgba(216,205,188,0.94);
  box-shadow:
    0 18px 42px rgba(122, 97, 68, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.74);
  backdrop-filter: blur(18px);
  overflow-x: hidden;
  overflow-y: auto;
}

.mobile-map-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.12), transparent 36%),
    radial-gradient(circle at top right, rgba(var(--emerald-rgb), 0.1), transparent 38%);
}

.mobile-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.mobile-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-stats-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(216,205,188,0.78);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(35,55,70,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

.mobile-stats-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-stats-count {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  line-height: 1.05;
}

.mobile-stats-percent {
  flex-shrink: 0;
  min-width: 58px;
  padding: 7px 10px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.08));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.54);
}

.mobile-stats-progress {
  height: 10px;
  margin-top: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(83,103,118,0.16), rgba(83,103,118,0.1));
  border: 1px solid rgba(216,205,188,0.82);
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(35,55,70,0.08),
    inset 0 1px 0 rgba(255,255,255,0.38);
}

.mobile-stats-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.26);
}

.mobile-stats-caption {
  font-size: 0.78rem;
  color: rgba(35,55,70,0.7);
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-stats-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.mobile-actions .action-row {
  gap: 8px;
}

.mobile-actions .add-btn {
  padding: 13px;
}

.mobile-drawer-scrim {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(32, 43, 54, 0.24);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

#mobile-drawer-scrim[hidden] {
  display: none !important;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245,239,230,0.64);
  z-index: 100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  width: 480px;
  max-width: 95vw;
  max-height: calc(var(--app-height) - 32px);
  overflow-y: auto;
  box-shadow: 0 28px 72px rgba(109, 85, 52, 0.18);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-caption {
  margin-bottom: 18px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.modal-field {
  margin-bottom: 18px;
  position: relative;
}

.modal-field-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.modal-field-head label,
.modal-field-head .modal-field-hint {
  margin-bottom: 0;
  margin-top: 0;
}

.modal-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-field input,
.modal-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--accent);
}
.modal-field textarea { resize: vertical; min-height: 72px; }

.modal-field select {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, opacity 0.15s;
  font-family: inherit;
}

.modal-field select:focus {
  border-color: var(--accent);
}

.modal-field select:disabled {
  opacity: 0.6;
}

.modal-field-hint {
  margin-top: 8px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.travel-date-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.travel-date-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.travel-date-row-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(35,55,70,0.64);
}

.travel-date-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.travel-date-year,
.travel-date-month {
  min-width: 0;
}

.export-modal {
  width: 640px;
}

.share-scope-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.share-scope-pill:hover {
  border-color: #c6b7a3;
  color: var(--text);
}

.share-scope-pill.active {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.12);
}

.share-scope-pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.share-scope-hint {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.share-preview-shell {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  margin-top: 4px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,252,247,0.8), rgba(245,236,224,0.85)),
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.12), transparent 36%),
    radial-gradient(circle at top right, rgba(var(--emerald-rgb), 0.12), transparent 38%);
  border: 1px solid rgba(216,205,188,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.52);
}

.share-preview-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.share-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 4px;
  z-index: 10;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.search-result {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s;
}
.search-result:hover { background: var(--surface); }
.search-result + .search-result { border-top: 1px solid var(--border); }

.result-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.result-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.type-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.type-country { background: rgba(var(--accent-rgb), 0.16); color: var(--accent); }
.type-state   { background: rgba(57,95,158,0.12); color: var(--indigo); }
.type-city    { background: rgba(var(--emerald-rgb), 0.14); color: var(--emerald); }

.search-no-results {
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.selected-places {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selected-places-empty {
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.32);
}

.selected-place-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(216,205,188,0.9);
  border-radius: 12px;
  background: rgba(255,252,247,0.82);
}

.selected-place-item.is-active {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.08);
}

.selected-place-toggle {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.selected-place-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-place-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selected-place-editor-empty {
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.32);
}

.selected-place-editor-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(216,205,188,0.9);
  border-radius: 12px;
  background: rgba(255,252,247,0.82);
}

.selected-place-editor-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.selected-place-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selected-place-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.selected-place-field-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(35,55,70,0.64);
}

.selected-place-date-fields {
  gap: 10px;
}

.date-entry-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(216,205,188,0.9);
  border-radius: 14px;
  background: rgba(255,255,255,0.38);
}

.date-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.date-entry-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.date-entry-remove-btn,
.date-entry-add-btn {
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216,205,188,0.92);
  background: rgba(255,252,247,0.9);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.date-entry-remove-btn:hover {
  border-color: rgba(196,85,73,0.34);
  background: rgba(196,85,73,0.1);
  color: var(--red);
}

.date-entry-add-btn {
  margin-top: 10px;
}

.date-entry-add-btn:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.selected-place-notes {
  min-height: 76px;
  resize: vertical;
}

.selected-place-remove {
  border: none;
  background: rgba(35,55,70,0.06);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.selected-place-remove:hover {
  background: rgba(196,85,73,0.12);
  color: var(--red);
  transform: scale(1.04);
}

/* Type Pills */
.type-pills {
  display: flex;
  gap: 8px;
}

.type-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.type-pill:hover { border-color: #c6b7a3; color: var(--text); }
.type-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.visited-dot { background: var(--accent); }
.lived-dot   { background: var(--emerald); }
.want-dot    { background: var(--indigo); }

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.btn-primary {
  padding: 9px 22px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff8ef;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #631726; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  padding: 9px 22px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { color: var(--text); border-color: #c6b7a3; }

/* ===== Toasts ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 999;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-info  { background: var(--surface2); border: 1px solid var(--border); color: var(--text); }
.toast-error { background: rgba(196,85,73,0.12); border: 1px solid rgba(196,85,73,0.26); color: var(--red); }

.maplibregl-ctrl-group {
  background: rgba(255,250,243,0.88);
  border: 1px solid rgba(216,205,188,0.9);
  box-shadow: 0 10px 22px rgba(122, 97, 68, 0.12);
  backdrop-filter: blur(10px);
}

.maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(216,205,188,0.9);
}

.maplibregl-ctrl button:not(:disabled):hover {
  background-color: rgba(var(--accent-rgb), 0.08);
}

.maplibregl-ctrl-attrib {
  background: rgba(255,250,243,0.76);
  color: var(--text-muted);
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(216,205,188,0.9);
  border-bottom: none;
}

.maplibregl-ctrl-attrib a {
  color: var(--text);
}


/* ===== Tablet + Mobile Drawer ===== */
@media (max-width: 1024px) {
  .login-logo-mark {
    width: 52px;
    height: 52px;
  }

  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(72vw, 420px);
    max-width: 420px;
    height: var(--app-height);
    background:
      linear-gradient(180deg, #fff9f1, #f7efe2 58%, #f4eadc);
    border-right: 1px solid rgba(210, 195, 176, 0.92);
    border-top: none;
    border-radius: 0 24px 24px 0;
    box-shadow:
      24px 0 64px rgba(78, 58, 37, 0.24),
      inset -1px 0 0 rgba(255,255,255,0.54);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateX(calc(-100% - 18px));
    transition: transform 0.28s ease;
    z-index: 32;
  }

  .sidebar-header {
    padding: calc(16px + env(safe-area-inset-top)) 16px 12px;
  }

  .account-menu {
    width: min(220px, calc(100vw - 24px));
  }

  .mobile-topbar {
    left: 16px;
    right: 16px;
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  #sidebar::before {
    inset: 0 0 auto;
  }

  .mobile-topbar,
  .mobile-map-panel {
    display: flex;
  }

  .map-legend {
    left: 12px;
    right: 12px;
  }

  .map-legend-pill {
    gap: 16px;
    padding: 10px 14px;
  }

  .map-legend-item {
    font-size: 0.78rem;
    gap: 8px;
  }

  .mobile-map-panel {
    display: block;
  }

  .mobile-drawer-scrim:not([hidden]) {
    display: block;
  }

  body.mobile-drawer-open #sidebar {
    transform: translateX(0);
  }

  body.mobile-drawer-open .mobile-topbar,
  body.mobile-drawer-open .mobile-map-panel,
  body.mobile-drawer-open .map-legend {
    opacity: 0;
    pointer-events: none;
  }

  .sidebar-footer {
    display: none;
  }

  .place-item-actions {
    opacity: 1;
  }

  .place-list {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .mobile-map-panel {
    left: auto;
    right: 16px;
    width: min(420px, calc(100vw - 32px));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ===== Phone ===== */
@media (max-width: 640px) {
  #sidebar {
    width: min(86vw, 360px);
    max-width: 360px;
  }

  .mobile-topbar {
    left: 14px;
    right: 14px;
  }

  .mobile-map-panel {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .modal {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    max-height: min(calc(var(--app-height) - 12px), 760px);
  }

  .modal-overlay {
    align-items: flex-end;
  }

  .modal-actions {
    position: sticky;
    bottom: -22px;
    margin: 18px -18px -22px;
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(255,248,239,0.72), rgba(255,248,239,0.98)),
      rgba(255,248,239,0.96);
    border-top: 1px solid rgba(216,205,188,0.9);
    backdrop-filter: blur(14px);
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    max-width: none;
  }

  .map-legend-pill {
    gap: 12px;
    padding: 10px 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .map-legend-item {
    font-size: 0.74rem;
  }
}
