:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #69645f;
  --soft-muted: #918b84;
  --line: #e7e2dc;
  --paper: #f6f3ef;
  --surface: #ffffff;
  --surface-warm: #fff9f2;
  --orange: #ff7900;
  --orange-dark: #c95000;
  --yellow: #ffc53d;
  --teal: #168e8a;
  --pink: #c93672;
  --green: #3f8f5a;
  --purple: #7357c5;
  --shadow: 0 14px 35px rgba(32, 25, 18, .1);
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}

button, input, select, textarea { font: inherit; }
button { letter-spacing: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(255, 121, 0, .28);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }

.app-header {
  position: relative;
  z-index: 1000;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.brand-button {
  position: relative;
  width: 226px;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.brand-button img {
  position: absolute;
  left: -12px;
  top: 50%;
  width: 250px;
  height: 250px;
  object-fit: contain;
  object-position: left center;
  transform: translateY(-50%);
}

.main-nav { height: 100%; display: flex; justify-content: center; gap: 6px; }
.nav-button {
  position: relative;
  height: 100%;
  min-width: 92px;
  border: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 720;
  cursor: pointer;
}
.nav-button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: transparent;
}
.nav-button:hover, .nav-button.active { color: var(--ink); }
.nav-button.active::after { background: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.beta-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 121, 0, .35);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff3e7;
  color: #8f3d00;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  white-space: nowrap;
}

.install-app-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(255, 121, 0, .42);
  border-radius: 999px;
  background: rgba(255, 121, 0, .12);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.install-app-button:hover,
.install-app-button:focus-visible {
  background: #ff7900;
  color: #111;
}

.install-app-button svg { width: 17px; height: 17px; }

.install-guide-hero {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  margin: 22px 0;
  padding: 18px;
  border-radius: 20px;
  background: #f7f2eb;
}

.install-guide-hero img { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; }
.install-guide-hero strong { display: block; margin-bottom: 6px; font-size: 17px; }
.install-guide-hero p { margin: 0; color: #5f5a54; line-height: 1.55; }
.install-steps { display: grid; gap: 10px; padding-left: 22px; line-height: 1.5; }
.install-note { display: flex; gap: 9px; align-items: center; color: #42643f; font-weight: 700; }
.install-note svg { width: 19px; }
.account-button, .icon-button {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.location-badge {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 700;
}
.location-badge svg { width: 17px; color: var(--orange-dark); }
.account-button:hover, .app-header .icon-button:hover { background: var(--paper); }

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: inherit;
}
.icon-button svg { width: 19px; height: 19px; }
.icon-button.compact { width: 32px; height: 32px; }
.notification-dot {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
}

.account-button {
  height: 48px;
  display: grid;
  grid-template-columns: 34px auto 18px;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  padding: 0 8px;
  color: #fff;
  text-align: left;
}
.avatar, .large-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 850;
}
.avatar { width: 34px; height: 34px; }
.account-copy { display: grid; gap: 1px; }
.account-copy strong { font-size: 13px; }
.account-copy small { color: var(--muted); font-size: 11px; }
.account-button > svg { width: 16px; }

.account-menu {
  position: absolute;
  top: 62px;
  right: 20px;
  width: 230px;
  border: 1px solid #dfdad4;
  border-radius: 8px;
  padding: 7px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.account-menu button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.account-menu button:hover { background: var(--paper); }
.account-menu svg { width: 18px; color: var(--orange-dark); }
.account-menu button[hidden] { display: none; }

.app-main { height: calc(100vh - var(--header-height)); }
.view { display: none; height: 100%; }
.view.active { display: block; }

.explore-layout { height: 100%; display: grid; grid-template-columns: 440px minmax(0, 1fr); }
.results-panel {
  z-index: 500;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 22px 20px 30px;
  background: var(--surface);
}
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, p { letter-spacing: 0; }
.panel-heading h1, .page-header h1, .workspace-header h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
}
.mobile-map-toggle { display: none; }

.search-box {
  height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid #cdc7c0;
  border-radius: 8px;
  padding: 0 10px 0 13px;
  background: #fff;
}
.search-box:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,121,0,.11); }
.search-box svg { width: 20px; color: var(--muted); }
.search-box input { min-width: 0; border: 0; outline: 0; color: var(--ink); }
.search-box input::placeholder { color: #918b84; }

.horizontal-scroll-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 4px;
  margin-top: 15px;
}
.horizontal-scroller {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
}
.horizontal-scroller.dragging { scroll-behavior: auto; cursor: grabbing; user-select: none; }
.horizontal-scroller::-webkit-scrollbar { display: none; }
.scroll-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(28, 24, 20, .08);
  cursor: pointer;
  transition: opacity .16s ease, visibility .16s ease, border-color .16s ease;
}
.scroll-arrow:hover { border-color: var(--orange); color: var(--orange-dark); }
.scroll-arrow.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.scroll-arrow svg { width: 17px; }
.category-scroller {
  display: flex;
  gap: 8px;
  padding: 0 2px 7px;
}
.filter-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: #4a4642;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.filter-chip svg { width: 16px; }
.filter-chip:hover { border-color: #b8b0a8; }
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }

.results-toolbar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.results-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.results-toolbar strong { color: var(--ink); }
.results-toolbar select, .event-controls select {
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 28px 0 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.result-list { display: grid; gap: 11px; }
.result-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.result-card:hover, .result-card.selected { border-color: rgba(255,121,0,.7); box-shadow: 0 8px 22px rgba(39,31,24,.09); transform: translateY(-1px); }
.card-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eee;
}
.card-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.28), transparent 55%); }
.card-visual img { position: relative; width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 9px 10px rgba(0,0,0,.15)); }
.card-visual img.cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.visual-boardgames { background: #dff3ee; }
.visual-manga { background: #ffe0cb; }
.visual-collectibles { background: #e8e1fa; }
.visual-gaming { background: #dbe9f7; }
.visual-event { background: #ffe4ef; }
.event-date-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  min-width: 42px;
  border-radius: 6px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
  text-align: center;
}
.event-date-badge strong { color: var(--pink); font-size: 17px; line-height: 1; }
.event-date-badge small { font-size: 9px; font-weight: 850; text-transform: uppercase; }
.card-content { min-width: 0; padding: 11px 12px; }
.card-meta-row { display: flex; justify-content: space-between; gap: 8px; }
.type-label { color: var(--orange-dark); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.favorite-card-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f5f2ef;
  color: #655f59;
  cursor: pointer;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.favorite-card-button svg { width: 16px; }
.favorite-card-button.active { background: #ffe8e6; color: #c62828; box-shadow: 0 0 0 1px #f3b7b1 inset; }
.favorite-card-button.active svg { fill: currentColor; }
.card-content h2 { margin: 0 0 4px; overflow: hidden; font-size: 16px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.rating-row { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: 11px; }
.rating-row svg { width: 14px; fill: var(--yellow); color: #e19f00; }
.rating-row strong { color: var(--ink); }
.card-location { margin: 8px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.card-location strong { color: var(--ink); }

.empty-state { padding: 38px 18px; border: 1px dashed #d6cfc8; border-radius: 8px; background: var(--surface-warm); text-align: center; }
.empty-state img { width: 84px; height: 84px; object-fit: contain; }
.empty-state h2 { margin: 10px 0 6px; font-size: 18px; }
.empty-state p { margin: 0; color: var(--muted); line-height: 1.45; }

.map-panel { position: relative; min-width: 0; background: #d7e6e1; }
#map { position: absolute; inset: 0; z-index: 1; }
.mobile-list-button { display: none; }
.map-toolbar { position: absolute; z-index: 450; top: 16px; left: 50%; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); }
.map-toolbar button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8d1ca;
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(0,0,0,.13);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.map-toolbar button[hidden] { display: none; }
.map-toolbar .map-search-button { border-color: var(--orange); background: var(--orange); color: #17120e; }
.map-toolbar .map-search-button svg { color: #17120e; }
.map-toolbar svg { width: 17px; color: var(--orange-dark); }
.map-summary {
  position: absolute;
  z-index: 450;
  left: 16px;
  bottom: 22px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd6cf;
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 5px 16px rgba(0,0,0,.1);
  color: #4d4843;
  font-size: 11px;
  font-weight: 750;
}
.map-legend {
  position: absolute;
  z-index: 450;
  right: 16px;
  bottom: 22px;
  display: flex;
  gap: 13px;
  border: 1px solid #ddd6cf;
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(255,255,255,.94);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.map-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.business-dot { background: var(--orange); }
.event-dot { background: var(--pink); }
.friki-pin {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,.25);
  color: #fff;
  transform: rotate(-45deg);
}
.friki-pin svg { width: 18px; height: 18px; transform: rotate(45deg); }
.leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 14px; }
.map-popup { min-width: 210px; }
.map-popup .popup-kicker { margin: 0 0 3px; color: var(--orange-dark); font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.map-popup .popup-title { margin: 0; color: var(--ink); font-size: 15px; font-weight: 850; line-height: 1.25; }
.map-popup .popup-copy { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.map-popup-actions { display: flex; gap: 7px; margin-top: 10px; }
.map-popup-actions button, .map-popup-actions a { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; padding: 0 9px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.map-popup-actions button { border-color: var(--orange); background: var(--orange); }
.popup-kicker { margin: 0 0 4px; color: var(--orange-dark); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.popup-title { margin: 0 0 5px; font-size: 15px; font-weight: 850; }
.popup-copy { margin: 0; color: var(--muted); font-size: 12px; }

.page-view { overflow-y: auto; padding: 34px clamp(22px, 5vw, 72px) 70px; }
.page-header, .workspace-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto 24px; }
.page-header p:not(.eyebrow), .workspace-header > div > p { max-width: 650px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.compact-header { align-items: center; }

.primary-button, .secondary-button, .text-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}
.primary-button { border: 1px solid var(--orange); background: var(--orange); color: #fff; }
.primary-button:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.secondary-button { border: 1px solid #ccc5be; background: #fff; color: var(--ink); }
.secondary-button:hover { border-color: var(--ink); }
.text-button { min-height: auto; border: 0; padding: 5px; background: transparent; color: var(--orange-dark); }
.primary-button svg, .secondary-button svg, .text-button svg { width: 17px; }

.event-controls { max-width: 1240px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto 18px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; padding: 3px; background: #fff; }
.segmented button { min-height: 34px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 5px; padding: 0 11px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.segmented button.active { background: var(--ink); color: #fff; }
.segmented svg { width: 16px; }
.events-content { max-width: 1240px; margin: 0 auto; }
.event-list { display: grid; gap: 10px; }
.event-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 190px auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  background: #fff;
  cursor: pointer;
}
.event-row:hover { border-color: rgba(255,121,0,.7); }
.date-tile { display: grid; place-items: center; min-height: 70px; border-radius: 7px; background: #fff2e6; }
.date-tile strong { color: var(--orange-dark); font-size: 27px; line-height: 1; }
.date-tile span { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.event-info h2 { margin: 0; font-size: 17px; }
.event-info p, .event-venue p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.event-venue strong { font-size: 13px; }
.event-row .favorite-card-button { justify-self: end; }

.calendar-view { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.calendar-header h2 { margin: 0; font-size: 18px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(80px, 1fr)); }
.calendar-day-name { padding: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.calendar-cell { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.muted { background: #faf8f5; color: #aaa49e; }
.calendar-cell > span { font-size: 12px; font-weight: 750; }
.calendar-event { margin-top: 7px; border-left: 3px solid var(--pink); border-radius: 4px; padding: 5px 6px; background: #fff0f5; color: #6e2142; font-size: 10px; font-weight: 750; }

.profile-grid, .business-dashboard-grid, .admin-grid { max-width: 1240px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 auto; }
.profile-card, .dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px;
  background: #fff;
}
.identity-card { min-height: 116px; display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 14px; }
.large-avatar { width: 68px; height: 68px; font-size: 24px; }
.identity-card h2 { margin: 0 0 4px; }
.identity-card p { margin: 0; color: var(--muted); }
.identity-card .icon-button { border-color: var(--line); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-title h2 { margin: 0; font-size: 17px; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.full-span { grid-column: 1 / -1; }
.interest-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.interest-button { min-height: 36px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: #fff; color: var(--muted); font-weight: 700; cursor: pointer; }
.interest-button.active { border-color: #f3b37e; background: #fff4e9; color: var(--orange-dark); }
.interest-button svg { width: 15px; }
.saved-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 16px; }
.saved-item { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 7px; padding: 8px; }
.saved-item .card-visual { min-height: 58px; border-radius: 5px; }
.saved-item img { width: 42px; height: 42px; }
.saved-item h3 { margin: 0 0 4px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.saved-item p { margin: 0; color: var(--muted); font-size: 11px; }

.workspace-header { align-items: center; }
.workspace-scroll-shell {
  max-width: 1240px;
  margin: -3px auto 20px;
}
.workspace-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.workspace-tabs button {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.workspace-tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: transparent; }
.workspace-tabs button.active { color: var(--ink); }
.workspace-tabs button.active::after { background: var(--orange); }
.workspace-tabs svg { width: 16px; }
.business-tab-panel { max-width: 1240px; margin: 0 auto; }
.business-tab-panel[hidden] { display: none; }
.business-access-state { max-width: 760px; margin: 0 auto; }
.workspace-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 750; }
.workspace-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #fff0e3; color: var(--orange-dark); }
.workspace-icon.dark { background: #252525; color: #fff; }
.workspace-icon svg { width: 18px; }
.dashboard-stats { max-width: 1240px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 auto 16px; }
.stat-card { min-height: 112px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 17px; background: #fff; }
.stat-card.interactive { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.stat-card.interactive:hover { border-color: #d4a984; box-shadow: 0 7px 18px rgba(52, 34, 18, .08); transform: translateY(-1px); }
.stat-card.interactive:focus-visible { outline: 3px solid rgba(255, 121, 0, .28); outline-offset: 2px; }
.stat-card p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.stat-card strong { font-size: 25px; }
.stat-card small { display: block; margin-top: 6px; color: var(--green); font-weight: 750; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: var(--paper); color: var(--orange-dark); }
.stat-icon svg { width: 18px; }
.business-dashboard-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.business-profile-form { max-width: 1240px; margin: 0 auto; }
.business-form-grid { margin-top: 22px; }
.coordinate-actions { align-items: start; }
.coordinate-actions .secondary-button { width: max-content; max-width: 100%; }
.coordinate-actions small { color: var(--soft-muted); line-height: 1.4; }
.status-pill { min-height: 29px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 0 9px; background: #eef8f1; color: #2f7547; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-pill svg { width: 14px; }
.media-manager { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.media-manager h3 { margin: 0 0 4px; font-size: 14px; }
.media-manager p { margin: 0; color: var(--muted); font-size: 12px; }
.media-preview-list { grid-column: 1 / -1; display: flex; gap: 9px; min-height: 76px; align-items: center; }
.media-preview { position: relative; width: 88px; height: 70px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-preview button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(17,17,17,.78); color: #fff; cursor: pointer; }
.media-preview svg { width: 13px; }
.media-empty { color: var(--soft-muted); font-size: 12px; }
.management-list { display: grid; margin-top: 14px; }
.management-item { min-height: 76px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; }
.management-item:first-child { border-top: 0; }
.management-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; background: var(--paper); color: var(--orange-dark); }
.management-icon svg { width: 18px; }
.management-item h3 { margin: 0 0 4px; font-size: 14px; }
.management-item p { margin: 0; color: var(--muted); font-size: 11px; }
.management-actions { display: flex; gap: 7px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-option { min-width: 0; padding: 18px; border-left: 1px solid var(--line); }
.plan-option:first-child { border-left: 0; }
.plan-option.current { background: var(--surface-warm); }
.plan-option h3 { margin: 0; font-size: 16px; }
.plan-option .plan-price { margin: 9px 0; font-size: 22px; font-weight: 850; }
.plan-option .plan-price small { color: var(--muted); font-size: 11px; font-weight: 650; }
.plan-option p { min-height: 38px; margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.business-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.business-card-head .card-visual { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 7px; }
.business-card-head img { width: 44px; height: 44px; }
.business-card-head h2 { margin: 0 0 4px; font-size: 17px; }
.business-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.completion-row { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #ece8e3; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.preview-actions { display: flex; gap: 8px; margin-top: 17px; }
.chart { height: 190px; display: flex; align-items: flex-end; gap: 8px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.chart .compact-empty { align-self: stretch; width: 100%; }
.chart-bar { position: relative; flex: 1; min-width: 10px; border-radius: 4px 4px 0 0; background: #ffd8b7; }
.chart-bar.highlight { background: var(--orange); }
.chart-bar::after { content: attr(data-label); position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); color: var(--soft-muted); font-size: 9px; }
.task-list, .moderation-list, .activity-list { display: grid; margin-top: 8px; }
.task-item, .moderation-item, .activity-item { min-height: 62px; display: grid; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.task-item:first-child, .moderation-item:first-child, .activity-item:first-child { border-top: 0; }
.task-item { grid-template-columns: 34px 1fr auto; }
.task-check { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff2e6; color: var(--orange-dark); }
.task-check svg { width: 15px; }
.task-item h3, .moderation-item h3, .activity-item h3 { margin: 0 0 3px; font-size: 13px; }
.task-item p, .moderation-item p, .activity-item p { margin: 0; color: var(--muted); font-size: 11px; }

.admin-view { background: #f1f2f3; }
.admin-tabs-shell { max-width: 1240px; margin: 0 auto 16px; }
.admin-tabs { width: 100%; display: flex; gap: 4px; margin: 0; border-bottom: 1px solid #d8dadd; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs [role="tab"] { position: relative; min-height: 43px; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; border: 0; padding: 0 13px; background: transparent; color: var(--muted); font-weight: 780; text-decoration: none; cursor: pointer; scroll-snap-align: start; }
.admin-tabs [role="tab"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: transparent; }
.admin-tabs [role="tab"].active { color: var(--ink); }
.admin-tabs [role="tab"].active::after { background: var(--orange); }
.admin-tabs [role="tab"]:focus-visible { outline: 3px solid rgba(255, 121, 0, .28); outline-offset: -3px; }
.admin-tabs svg { width: 16px; }
.admin-tab-panel { max-width: 1240px; margin: 0 auto; }
.admin-content-panel { min-height: 300px; }
.admin-secondary-panel { min-height: 0; margin-top: 14px; }
.admin-content-list { display: grid; margin-top: 14px; }
.admin-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, auto)); align-items: end; gap: 9px; margin-bottom: 12px; }
.admin-toolbar > label { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.admin-toolbar input, .admin-toolbar select { width: 100%; min-height: 39px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.admin-search { position: relative; }
.admin-search > svg { position: absolute; left: 10px; bottom: 10px; width: 17px; height: 17px; color: var(--soft-muted); pointer-events: none; }
.admin-search input { padding-left: 34px; }
.admin-content-list [data-admin-results] { display: grid; }
.admin-pagination { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 11px; font-weight: 750; }
.admin-pagination:empty { min-height: 0; }
.admin-pagination .icon-button { width: 32px; height: 32px; }
.admin-content-item { min-height: 78px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 12px 0; }
.admin-content-item blockquote { margin: 7px 0 0; border-left: 3px solid var(--line); padding-left: 9px; color: var(--muted); font-size: 12px; }
.admin-last-action { display: block; margin-top: 6px; color: var(--soft-muted); font-size: 10px; }
.admin-data-warning, .admin-map-ready { display: flex; align-items: center; gap: 5px; width: fit-content; margin-top: 6px; font-size: 10px; font-weight: 750; }
.admin-data-warning { color: #9a551b; }
.admin-map-ready { color: #267142; }
.admin-data-warning svg, .admin-map-ready svg { width: 14px; height: 14px; }
.admin-content-item:first-child { border-top: 0; }
.admin-content-item h3 { margin: 0 0 4px; font-size: 14px; }
.admin-content-item h3 > svg { width: 16px; height: 16px; margin-right: 6px; color: var(--orange-dark); vertical-align: -3px; }
.admin-content-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.admin-content-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.status-chip { min-height: 24px; display: inline-flex; align-items: center; border-radius: 999px; margin-left: 7px; padding: 0 8px; background: var(--paper); color: var(--muted); font-size: 10px; font-weight: 800; vertical-align: middle; }
.status-chip.approved { background: #eaf7ee; color: #267142; }
.status-chip.pending { background: #fff1df; color: #9a551b; }
.status-chip.rejected, .status-chip.suspended, .status-chip.cancelled { background: #f9e9e8; color: #a43a32; }
.admin-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.admin-detail-grid div { border: 1px solid var(--line); border-radius: 7px; padding: 10px; }
.admin-detail-grid strong, .admin-detail-grid span { display: block; }
.admin-detail-grid strong { margin-bottom: 4px; font-size: 11px; }
.admin-detail-grid span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.admin-detail-grid .full-span { grid-column: 1 / -1; }
.admin-detail-section { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 13px; }
.admin-detail-section h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 13px; }
.admin-detail-section h3 span { min-width: 24px; border-radius: 12px; padding: 3px 7px; background: var(--paper); text-align: center; font-size: 10px; }
.admin-detail-section p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-detail-section ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.admin-detail-section li, .admin-request-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 6px; padding: 7px 9px; background: var(--paper); font-size: 11px; }
.admin-detail-section li span, .admin-request-row > span { color: var(--muted); text-align: right; }
.admin-request-row div { display: flex; gap: 8px; }
.admin-user-actions { align-items: flex-end; }
.admin-role-control { min-width: 150px; display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.admin-role-control select { min-height: 36px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; background: #fff; }
.legal-document-list { display: grid; gap: 9px; margin: 18px 0; }
.legal-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 11px; background: var(--surface-warm); color: var(--ink); font-size: 12px; line-height: 1.45; }
.legal-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--orange); }
.legal-check strong, .legal-check small { display: block; }
.legal-check small { margin-top: 3px; color: var(--muted); }
.legal-check a { color: var(--orange-dark); font-weight: 800; }
.status-chip.active, .status-chip.resolved { background: #e7f7ee; color: #1d7046; }
.status-chip.quarantined, .status-chip.in_review { background: #fff2cc; color: #775a00; }
.status-chip.deletion_requested, .status-chip.open { background: #eaf2ff; color: #315d9b; }
.status-chip.deleted { background: #ece9e7; color: #635b55; }
.status-chip.inactive, .status-chip.draft { background: #f0ece8; color: #625b55; }
.status-chip.archived { background: #e9edf2; color: #4b5d70; }
.plan-capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.plan-capability-grid .switch-field { min-width: 0; }
.legal-context-fieldset { margin: 0; border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.legal-context-fieldset legend { padding: 0 5px; font-size: 12px; font-weight: 850; }
.legal-context-fieldset > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.legal-context-fieldset .legal-document-list { margin-bottom: 0; }
.legal-ready { margin: 0; }
.admin-legal-grid { display: grid; }
.admin-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); }
.admin-route-notice { max-width: 1240px; margin: 0 auto 16px; }
.admin-shortcuts { max-width: 1240px; margin: 0 auto 16px; }
.admin-shortcuts .section-title { margin-bottom: 10px; }
.admin-shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.admin-shortcut-grid button { min-width: 0; min-height: 50px; display: grid; grid-template-columns: 20px minmax(0, 1fr) 16px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; font-weight: 800; text-align: left; cursor: pointer; }
.admin-shortcut-grid button:hover { border-color: #d4a984; background: var(--surface-warm); }
.admin-shortcut-grid button:focus-visible { outline: 3px solid rgba(255, 121, 0, .28); outline-offset: 2px; }
.admin-shortcut-grid button svg { width: 18px; height: 18px; color: var(--orange-dark); }
.admin-shortcut-grid button svg:last-child { width: 15px; height: 15px; color: var(--soft-muted); }
.admin-shortcut-grid button span { min-width: 0; overflow-wrap: anywhere; }
.wide-panel { min-width: 0; }
.count-badge { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #ffe7d2; color: var(--orange-dark); font-size: 11px; font-weight: 850; }
.moderation-item { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 10px 0; }
.moderation-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--paper); color: var(--orange-dark); }
.moderation-icon svg { width: 17px; }
.moderation-actions { display: flex; gap: 7px; }
.small-button { min-height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; }
.small-button.approve { border-color: #b8d9c2; background: #eef8f1; color: #2f7547; }
.small-button.danger { border-color: #e7c5c1; color: #a43a32; }
.danger-button { background: #a7352d; color: #fff; }
.danger-button:hover { background: #8f2b25; }
.coverage-list { display: grid; gap: 15px; margin-top: 20px; }
.coverage-item { display: grid; gap: 7px; }
.coverage-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.coverage-copy strong { color: var(--ink); }
.coverage-track { height: 7px; border-radius: 999px; background: #ebe7e2; }
.coverage-track span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.activity-item { grid-template-columns: 32px 1fr auto; padding: 8px 0; }
.activity-dot { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #f0ece8; color: var(--muted); }
.activity-dot svg { width: 14px; }
.activity-item time { color: var(--soft-muted); font-size: 10px; }

.mobile-nav { display: none; }

.app-loading {
  position: fixed;
  z-index: 2500;
  inset: var(--header-height) 0 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: rgba(246, 243, 239, .96);
  color: var(--muted);
  font-weight: 750;
}
.app-loading svg { width: 30px; height: 30px; color: var(--orange-dark); animation: loading-spin .9s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }

.system-state > svg { width: 30px; height: 30px; color: var(--orange-dark); }
.system-state .secondary-button { margin-top: 16px; }
.inline-feedback { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; border: 1px solid #e6c4bf; border-radius: 7px; padding: 10px 12px; background: #fff4f2; color: #8d332c; }
.inline-feedback > svg { width: 18px; flex: 0 0 auto; }
.inline-feedback > span { min-width: 0; flex: 1; }
.inline-feedback .text-button { color: inherit; }
.plan-availability { display: inline-flex; min-height: 32px; align-items: center; color: var(--soft-muted); font-size: 11px; font-weight: 750; }
.plan-availability.current { color: var(--green); }

.modal-backdrop {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 13, 11, .62);
  backdrop-filter: blur(3px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  width: min(580px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(0,0,0,.3);
}
.modal-close { position: absolute; z-index: 2; top: 10px; right: 10px; border-color: rgba(0,0,0,.08); background: rgba(255,255,255,.9); }
.detail-visual { min-height: 185px; display: grid; place-items: center; }
.detail-visual img { width: 135px; height: 135px; object-fit: contain; filter: drop-shadow(0 14px 17px rgba(0,0,0,.18)); }
.detail-visual img.cover-image { width: 100%; height: 280px; object-fit: cover; filter: none; }
.modal-body { padding: 22px; }
.modal-body .eyebrow { margin-right: 50px; }
.modal-body h2 { margin: 0; padding-right: 40px; font-size: 24px; }
.modal-body > p { color: var(--muted); line-height: 1.55; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 18px 0; }
.detail-fact { display: flex; gap: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 11px; }
.detail-fact svg { width: 17px; flex: 0 0 auto; color: var(--orange-dark); }
.detail-fact strong { display: block; font-size: 12px; }
.detail-fact span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.coordinate-notice { display: block; margin-top: 6px; color: #9a551b; font-size: 10px; line-height: 1.4; }
.detail-promotions { display: grid; gap: 8px; margin: 18px 0; }
.detail-promotions h3 { margin: 0; font-size: 14px; }
.promotion-banner { display: grid; gap: 4px; border-left: 3px solid var(--orange); padding: 10px 12px; background: var(--surface-warm); }
.promotion-banner strong { font-size: 13px; }
.promotion-banner span { color: var(--muted); font-size: 11px; }
.promotion-banner code { width: max-content; border: 1px dashed #dc9a62; padding: 3px 6px; color: var(--orange-dark); font-weight: 800; }
.modal-actions { display: flex; gap: 9px; }
.modal-actions { flex-wrap: wrap; }
.modal-actions > * { flex: 1; }
.modal-actions [data-share] { flex: 0 0 44px; padding: 0; }
.favorite-detail-button.active { border-color: #e6a19a; background: #ffe8e6; color: #c62828; }
.favorite-detail-button.active svg { fill: currentColor; }
.detail-fact a { color: var(--orange-dark); font-weight: 800; text-decoration: none; }
.detail-fact a:hover, .detail-fact a:focus-visible { text-decoration: underline; }
.form-modal { padding: 26px; }
.form-modal h2 { margin: 0 0 6px; font-size: 23px; }
.form-modal > p { margin: 0 0 20px; color: var(--muted); line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #4c4742; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #d6d0c9;
  border-radius: 7px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
}
.field input, .field select { height: 42px; }
.field textarea { min-height: 92px; padding-top: 10px; resize: vertical; }
.form-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.login-options { display: grid; gap: 9px; margin: 18px 0; }
.login-option { min-height: 54px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 7px; padding: 0 12px; background: #fff; color: var(--ink); font-weight: 750; cursor: pointer; text-align: left; }
.login-option:hover { border-color: var(--orange); background: var(--surface-warm); }
.login-option svg { width: 19px; color: var(--orange-dark); }
.compact-empty { min-height: 110px; padding: 16px; }
.compact-empty h3 { margin: 0 0 5px; font-size: 14px; }
.notification-list { display: grid; margin-top: 16px; }
.notification-item { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; border: 0; border-top: 1px solid var(--line); padding: 12px 4px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.notification-item:first-child { border-top: 0; }
.notification-item.unread { background: #fff8f1; }
.notification-state { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--orange-dark); }
.notification-state svg { width: 15px; }
.notification-item strong, .notification-item small, .notification-item time { display: block; }
.notification-item strong { margin-bottom: 3px; font-size: 13px; }
.notification-item small { color: var(--muted); line-height: 1.45; }
.notification-item time { margin-top: 4px; color: var(--soft-muted); font-size: 10px; }

.toast {
  position: fixed;
  z-index: 4000;
  left: 50%;
  bottom: 24px;
  max-width: min(440px, calc(100vw - 32px));
  transform: translate(-50%, 130%);
  border-radius: 7px;
  padding: 11px 15px;
  background: #171717;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform .22s ease;
}
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .app-header { grid-template-columns: 215px 1fr auto; gap: 10px; padding: 0 16px; }
  .brand-button { width: 205px; }
  .brand-button img { left: -18px; width: 238px; height: 238px; }
  .account-copy { display: none; }
  .account-button { grid-template-columns: 34px 16px; }
  .explore-layout { grid-template-columns: 390px minmax(0, 1fr); }
  .saved-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  :root { --header-height: 64px; }
  body { overflow: hidden; }
  .app-header { grid-template-columns: 1fr auto; padding: 0 13px; }
  .install-app-button { width: 40px; padding: 0; justify-content: center; }
  .install-app-button span { display: none; }
  .beta-badge { position: absolute; left: 50%; top: 7px; min-height: 24px; transform: translateX(-50%); padding: 0 8px; font-size: 10px; }
  .brand-button { width: 190px; height: 48px; }
  .brand-button img { left: -22px; width: 228px; height: 228px; }
  .main-nav, .location-badge, #favorites-button, .account-copy, .account-button > svg { display: none; }
  .account-button { display: grid; grid-template-columns: 34px; padding: 0; }
  .account-menu { top: 56px; right: 9px; }
  .app-main { height: calc(100dvh - var(--header-height) - 66px - env(safe-area-inset-bottom)); }
  .explore-layout { grid-template-columns: 1fr; }
  .results-panel { border-right: 0; padding: 18px 16px 26px; }
  .panel-heading h1 { font-size: 24px; }
  .mobile-map-toggle { display: inline-grid; border: 1px solid var(--line); }
  .horizontal-scroll-shell { margin-left: -8px; margin-right: -8px; }
  .map-panel { display: none; position: fixed; z-index: 900; inset: var(--header-height) 0 calc(66px + env(safe-area-inset-bottom)); }
  .map-panel.mobile-visible { display: block; }
  .map-panel.mobile-visible .map-toolbar { top: 12px; }
  .map-toolbar { width: calc(100% - 24px); justify-content: center; flex-wrap: wrap; }
  .map-toolbar button { min-height: 38px; padding: 0 10px; font-size: 12px; }
  .map-summary { left: auto; right: 16px; bottom: 70px; }
  .mobile-list-button { position: absolute; z-index: 460; left: 16px; bottom: 18px; min-height: 40px; display: none; align-items: center; gap: 7px; border: 0; border-radius: 7px; padding: 0 13px; background: #111; color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
  .map-panel.mobile-visible .mobile-list-button { display: inline-flex; }
  .mobile-list-button svg { width: 17px; }
  .mobile-nav { position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; height: calc(66px + env(safe-area-inset-bottom)); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); background: #fff; }
  .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; cursor: pointer; }
  .mobile-nav button.active { color: var(--orange-dark); }
  .mobile-nav svg { width: 20px; height: 20px; }
  .page-view { padding: 22px 16px 40px; }
  .page-header, .workspace-header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .page-header h1, .workspace-header h1 { font-size: 25px; }
  .page-header > button, .workspace-header > button { width: 100%; }
  .event-controls { align-items: stretch; flex-direction: column; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; justify-content: center; }
  .event-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 11px; }
  .date-tile { min-height: 58px; }
  .event-venue { grid-column: 2 / -1; }
  .calendar-view { overflow-x: auto; }
  .calendar-grid { min-width: 720px; }
  .profile-grid, .business-dashboard-grid, .admin-grid { grid-template-columns: 1fr; }
  .admin-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-scroll-shell { margin-left: -8px; margin-right: -8px; padding: 0; }
  .workspace-tabs { padding: 0 2px; }
  .admin-tabs-shell { margin-left: -8px; margin-right: -8px; }
  .admin-tabs { padding: 0 2px; }
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-toolbar .admin-search { grid-column: 1 / -1; }
  .full-span { grid-column: auto; }
  .saved-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moderation-item { grid-template-columns: 34px minmax(0, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-option:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .plan-option:nth-child(4) { border-top: 1px solid var(--line); }
  .moderation-actions { grid-column: 2; }
  .admin-content-item { grid-template-columns: 1fr; }
  .admin-content-actions { justify-content: flex-start; }
  .plan-capability-grid { grid-template-columns: 1fr; }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: calc(100dvh - 24px); border-radius: 8px 8px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 430px) {
  .brand-button { width: 170px; }
  .brand-button img { left: -22px; width: 210px; height: 210px; }
  .result-card { grid-template-columns: 94px minmax(0, 1fr); }
  .card-content { padding: 10px; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .stat-card { min-height: 96px; }
  .admin-shortcut-grid button { padding-left: 9px; padding-right: 9px; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-toolbar .admin-search { grid-column: auto; }
  .admin-content-item { grid-template-columns: 1fr; }
  .admin-content-actions { justify-content: flex-start; }
  .admin-detail-section li, .admin-request-row { align-items: flex-start; flex-direction: column; }
  .admin-detail-section li span { text-align: left; }
  .identity-card { grid-template-columns: 58px 1fr auto; }
  .large-avatar { width: 58px; height: 58px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .media-manager { grid-template-columns: 1fr; }
  .media-preview-list { grid-column: auto; overflow-x: auto; }
  .management-item { grid-template-columns: 38px minmax(0, 1fr); }
  .management-actions { grid-column: 2; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-option, .plan-option:nth-child(3), .plan-option:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .plan-option:first-child { border-top: 0; }
  .detail-facts { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .section-title > button, .section-title > .section-actions { max-width: 100%; }
  .form-modal, .modal-body { padding-left: 18px; padding-right: 18px; }
  .coordinate-actions .secondary-button { width: 100%; white-space: normal; }
  .inline-feedback { align-items: flex-start; flex-wrap: wrap; }
}

/* Social profile and passport */
.profile-workspace { max-width: 1240px; margin: 0 auto; }
.profile-tabs-shell { margin-bottom: 16px; }
.profile-tabs { display: flex; min-width: 0; gap: 4px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; touch-action: pan-x; }
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs button { min-height: 42px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; border: 0; border-bottom: 3px solid transparent; padding: 0 12px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 780; cursor: pointer; }
.profile-tabs button.active { border-bottom-color: var(--orange); color: var(--ink); }
.profile-tabs svg { width: 16px; }
.profile-panel { min-height: 380px; }
.profile-overview-grid, .achievement-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-identity .large-avatar, .avatar-editor .large-avatar, .public-profile .large-avatar { overflow: hidden; }
.large-avatar img, .review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-level-card { min-height: 116px; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; }
.profile-level-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e8f5f1; color: #16796f; }
.profile-level-card strong, .profile-level-card small { display: block; }
.profile-level-card small { margin-top: 3px; color: var(--muted); }
.profile-level-card .level-track { grid-column: 1 / -1; }
.level-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e9e7e4; }
.level-track span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.profile-bio { margin: 16px 0 0; color: #4b4742; line-height: 1.6; }
.compact-profile-empty { min-height: 190px; display: grid; align-content: center; justify-items: center; padding: 24px; color: var(--muted); text-align: center; }
.compact-profile-empty > svg { width: 28px; height: 28px; margin-bottom: 8px; color: var(--orange-dark); }
.compact-profile-empty h3 { margin: 0; color: var(--ink); font-size: 16px; }
.compact-profile-empty p { max-width: 440px; margin: 7px 0 0; line-height: 1.5; }
.mini-activity { display: grid; margin-top: 13px; }
.mini-activity > div, .mini-activity > button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 0; border-top: 1px solid var(--line); padding: 10px 0; background: transparent; color: inherit; text-align: left; }
.mini-activity > button { cursor: pointer; }
.mini-activity svg { width: 16px; color: #16796f; }
.mini-activity strong, .mini-activity small { display: block; }
.mini-activity small { margin-top: 2px; color: var(--soft-muted); }
.passport-layout { display: grid; gap: 16px; }
.passport-hero { min-height: 190px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; border-radius: 8px; padding: 24px 34px; background: #23221f; color: #fff; }
.passport-hero h2 { margin: 0; font-size: 28px; }
.passport-hero p:last-child { color: #c9c5be; }
.passport-hero img { width: 150px; height: 150px; object-fit: contain; }
.passport-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.passport-stats > div { min-height: 105px; display: grid; place-items: center; align-content: center; border-left: 1px solid var(--line); }
.passport-stats > div:first-child { border-left: 0; }
.passport-stats svg { width: 19px; color: var(--orange-dark); }
.passport-stats strong { margin-top: 5px; font-size: 22px; }
.passport-stats span { color: var(--muted); font-size: 11px; }
.passport-list { display: grid; margin-top: 13px; }
.passport-item { width: 100%; min-height: 68px; display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line); padding: 9px 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.passport-item > svg:first-child { color: #16796f; }
.passport-item strong, .passport-item span { display: block; }
.passport-item span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.achievement-grid, .mission-list { display: grid; gap: 10px; margin-top: 14px; }
.achievement-item { min-height: 86px; display: grid; grid-template-columns: 40px 1fr; gap: 11px; border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.achievement-item > svg { width: 25px; color: #16796f; }
.achievement-item.locked { opacity: .58; filter: grayscale(.7); }
.achievement-item strong, .achievement-item span { display: block; }
.achievement-item p { margin: 4px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.achievement-item span { color: var(--orange-dark); font-size: 10px; font-weight: 800; }
.mission-list article { border-top: 1px solid var(--line); padding: 12px 0; }
.mission-list article > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.mission-list p { color: var(--muted); font-size: 11px; }
.settings-summary { display: grid; gap: 10px; margin-top: 18px; }
.settings-summary span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.settings-summary svg { width: 17px; color: #16796f; }
.avatar-editor { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 14px; margin-bottom: 20px; }
.avatar-editor > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.avatar-editor small { width: 100%; color: var(--soft-muted); }
.profile-interest-field, .privacy-fieldset { border: 0; margin: 0; padding: 0; }
.profile-interest-field legend, .privacy-fieldset legend { margin-bottom: 8px; color: #4c4742; font-size: 12px; font-weight: 800; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.privacy-grid label { min-height: 38px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; cursor: pointer; }
.privacy-grid label:has(input:checked) { border-color: #efaa71; background: #fff5ec; }
.privacy-grid input { accent-color: var(--orange); }
.privacy-grid svg { width: 15px; }
.switch-field { grid-template-columns: 18px 1fr; align-items: center; }
.switch-field input { accent-color: var(--orange); }
.upload-field small { color: var(--soft-muted); line-height: 1.4; }
.danger-text { color: #a43a32; }
.public-profile-heading { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 14px; }
.public-profile-heading h2 { padding: 0; }
.public-profile-heading p { margin: 3px 0 0; color: var(--muted); }
.profile-nickname { display: block; margin-bottom: 3px; color: var(--orange-dark); font-size: 11px; font-weight: 850; }
.section-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.profile-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.profile-summary-card > div { min-width: 0; display: flex; align-items: center; gap: 11px; }
.profile-summary-card > div > svg { flex: 0 0 auto; color: #16796f; }
.profile-summary-card small, .profile-summary-card strong { display: block; }
.profile-summary-card small { color: var(--muted); }
.nickname-input { display: grid; grid-template-columns: 34px 1fr; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.nickname-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 2px #ff790020; }
.nickname-input span { display: grid; place-items: center; align-self: stretch; background: #f1f0ee; color: var(--muted); font-weight: 850; }
.nickname-input input { border: 0; border-radius: 0; }
.nickname-input input:focus { outline: 0; box-shadow: none; }
.attendance-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0; border: 1px solid #bddbd4; border-radius: 8px; padding: 13px; background: #f1faf7; }
.attendance-panel h3, .attendance-panel p { margin: 0; }
.attendance-panel h3 { font-size: 14px; }
.attendance-panel p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.attendance-actions { display: flex; gap: 7px; }
.attendance-button { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #a9cec5; border-radius: 7px; padding: 0 10px; background: #fff; color: #176d65; font-weight: 760; cursor: pointer; }
.attendance-button.active { border-color: #176d65; background: #176d65; color: #fff; }
.attendance-button svg { width: 15px; }
.reviews-section { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 18px; }
.reviews-section h3 { margin: 0; }
.review-list { display: grid; gap: 9px; margin-top: 13px; }
.review-item { border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.review-heading { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; }
.review-avatar { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #ece8e2; font-weight: 800; }
.review-heading strong, .review-heading span { display: block; }
.review-heading span { color: #b76613; font-size: 12px; letter-spacing: 0; }
.review-heading small { color: var(--soft-muted); }
.review-item > p { margin: 10px 0 0; color: #4b4742; font-size: 12px; line-height: 1.5; }
.review-actions { display: flex; justify-content: flex-end; margin-top: 7px; }
.review-actions button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.review-actions svg { width: 13px; }
.review-form { display: grid; gap: 9px; margin-top: 15px; border-radius: 8px; padding: 13px; background: #f6f5f3; }
.review-form h4, .review-form p { margin: 0; }
.review-form textarea { min-height: 80px; }
.review-rating { display: flex; align-items: center; gap: 9px; }
.review-rating label { font-size: 11px; font-weight: 800; }
.review-rating select { min-height: 34px; }
.review-status { color: var(--orange-dark); font-size: 11px; }
.ticket-button { text-decoration: none; }
.admin-content-item blockquote { margin: 8px 0 0; border-left: 3px solid #d9d4cd; padding-left: 9px; color: var(--muted); font-size: 12px; }
.admin-content-item h3 > svg { width: 17px; margin-right: 7px; vertical-align: middle; color: #16796f; }
.admin-media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.admin-media-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.admin-media-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-media-grid article div { padding: 9px; }
.admin-media-grid strong, .admin-media-grid span { display: block; }
.admin-media-grid span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.event-thumb { position: relative; overflow: hidden; }
.event-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-thumb:has(img)::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.event-thumb:has(img) strong, .event-thumb:has(img) span { position: relative; z-index: 1; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.management-icon.has-image { overflow: hidden; border-radius: 7px; }
.management-icon.has-image img { width: 100%; height: 100%; object-fit: cover; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.privacy-toggle { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; background: #f1f0ee; color: var(--soft-muted); font-size: 10px; font-weight: 750; cursor: pointer; }
.privacy-toggle:has(input:checked) { border-color: #efaa71; background: #fff2e6; color: var(--orange-dark); }
.privacy-toggle input { width: 14px; height: 14px; accent-color: var(--orange); }
.privacy-toggle svg { width: 14px; height: 14px; }
.privacy-toggle .privacy-state { font-size: 10px; }
.privacy-toggle .eye-open { display: none; }
.privacy-toggle input:checked ~ .eye-open { display: block; }
.privacy-toggle input:checked ~ .eye-closed { display: none; }
.privacy-toggle.privacy-locked { border-color: #efaa71; background: #fff2e6; color: var(--orange-dark); cursor: default; }
.privacy-toggle.privacy-locked .eye-open { display: block; }
.avatar-editor > .privacy-toggle { grid-column: 1 / -1; width: max-content; }
.visibility-choice-grid .privacy-toggle { min-height: 42px; }
.saved-sections, .event-status-sections, .achievement-sections { display: grid; gap: 16px; }
.saved-manage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.saved-manage-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 7px; padding: 7px; }
.saved-manage-item > button { min-width: 0; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 9px; border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; }
.saved-manage-item img { width: 52px; height: 48px; border-radius: 5px; object-fit: cover; }
.saved-manage-item strong, .saved-manage-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-manage-item small { margin-top: 3px; color: var(--muted); }
.saved-manage-item > div { display: flex; gap: 4px; }
.list-compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.list-compact-item { min-width: 0; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 10px; background: #fff; text-align: left; cursor: pointer; }
.list-compact-item svg { color: #16796f; }
.list-compact-item strong, .list-compact-item small { display: block; }
.list-compact-item small { margin-top: 3px; color: var(--muted); }
.event-status-list { display: grid; margin-top: 12px; }
.event-status-list article { min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) 130px; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.event-status-list article > button { min-width: 0; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.event-status-list article > button svg { color: #16796f; }
.event-status-list strong, .event-status-list small { display: block; }
.event-status-list small { margin-top: 3px; color: var(--muted); }
.event-status-list select { min-height: 36px; }
.passport-document { --passport-accent: #ff7900; position: relative; overflow: hidden; min-height: 330px; border: 2px solid var(--passport-accent); border-radius: 7px; padding: 28px; background: #fff; box-shadow: inset 0 0 0 5px #f1eee9; }
.passport-document::after { content: "FRIKIMAP · ANDORRA · FRIKIMAP · ANDORRA"; position: absolute; right: -70px; bottom: 38px; transform: rotate(-34deg); color: color-mix(in srgb, var(--passport-accent) 16%, transparent); font-size: 18px; font-weight: 900; letter-spacing: 0; }
.theme-cyan { --passport-accent: #168eaa; } .theme-red { --passport-accent: #aa3b43; } .theme-pink { --passport-accent: #c93672; } .theme-yellow { --passport-accent: #bd8518; } .theme-violet { --passport-accent: #7357c5; } .theme-blue { --passport-accent: #2675a3; } .theme-green { --passport-accent: #27805f; } .theme-coral { --passport-accent: #b44d3a; } .theme-orange { --passport-accent: #d96500; }
.passport-cover-mark { position: absolute; right: 22px; top: 22px; width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid var(--passport-accent); border-radius: 50%; color: var(--passport-accent); }
.passport-cover-mark svg { width: 28px; }
.passport-document-head { display: flex; justify-content: space-between; gap: 80px; border-bottom: 2px solid var(--passport-accent); padding: 0 72px 14px 0; }
.passport-document-head span, .passport-document-head p { color: var(--muted); font-size: 10px; font-weight: 800; }
.passport-document-head h2 { margin: 5px 0; font-size: 24px; }
.passport-number { white-space: nowrap; align-self: end; }
.passport-identity-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 180px; gap: 18px; align-items: center; padding-top: 20px; }
.passport-photo { width: 110px; height: 130px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #ece9e3; color: var(--passport-accent); font-size: 38px; font-weight: 900; }
.passport-photo img { width: 100%; height: 100%; object-fit: cover; }
.passport-identity-row small, .passport-identity-row strong { display: block; }
.passport-identity-row small { margin-top: 7px; color: var(--muted); font-size: 9px; }
.passport-code { align-self: stretch; display: grid; align-content: end; justify-items: center; color: var(--passport-accent); }
.passport-code svg { width: 48px; }
.passport-code span { max-width: 180px; margin-top: 12px; overflow-wrap: anywhere; color: #555; font-family: monospace; font-size: 11px; }
.passport-interests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.passport-interests span { border: 1px solid var(--passport-accent); border-radius: 999px; padding: 4px 8px; color: var(--passport-accent); font-size: 10px; font-weight: 800; }
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.theme-options button { min-height: 54px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: #fff; color: var(--muted); cursor: pointer; }
.theme-options button.active { border-color: var(--orange); background: #fff2e6; color: var(--orange-dark); }
.theme-options svg { width: 18px; }
.passport-stats-wide { grid-template-columns: repeat(7, 1fr); }
.passport-stats-wide > div { min-height: 92px; }
.stamp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.stamp-grid article { min-height: 120px; display: grid; justify-items: center; align-content: center; border: 1px dashed #b9b4ad; border-radius: 50%; padding: 12px; text-align: center; }
.stamp-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--passport-accent, #d96500); border-radius: 50%; color: var(--passport-accent, #d96500); }
.stamp-grid strong, .stamp-grid small { display: block; margin-top: 5px; }
.stamp-grid small { color: var(--muted); font-size: 9px; }
.passport-cta { margin: 16px auto 0; }
.achievement-item { grid-template-columns: 46px 1fr; }
.achievement-medal { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #e8f5f1; color: #16796f; }
.achievement-progress-label { display: flex; justify-content: space-between; margin: 8px 0 5px; color: var(--muted); font-size: 10px; }
.achievement-progress-label b { color: var(--orange-dark); }
.lists-manager { display: grid; gap: 10px; margin-top: 14px; }
.lists-manager > article { border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.list-manager-head { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; }
.list-manager-head > svg { color: #16796f; }
.list-manager-head strong, .list-manager-head span { display: block; }
.list-manager-head span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.list-manager-head > div:last-child { display: flex; gap: 4px; }
.list-items { display: grid; margin-top: 9px; border-top: 1px solid var(--line); }
.list-items > div { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.list-items > div > button:first-child { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--ink); text-align: left; }
.list-position { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e8f5f1; color: #16796f; font-size: 10px; font-weight: 850; }
.list-order-actions { display: flex; flex: 0 0 auto; gap: 2px; }
.list-items button:disabled { opacity: .25; cursor: default; }
.list-description { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.list-items button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.list-items button svg { width: 14px; }
.list-items > small { padding-top: 10px; color: var(--muted); }
.profile-message-list { display: grid; margin-top: 14px; }
.profile-message-list button { min-height: 64px; display: grid; grid-template-columns: 32px 1fr 8px; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line); padding: 8px 4px; background: transparent; text-align: left; cursor: pointer; }
.profile-message-list button.unread { background: #fff8f1; }
.profile-message-list button > svg { color: #16796f; }
.profile-message-list strong, .profile-message-list small { display: block; }
.profile-message-list small { margin-top: 4px; color: var(--muted); }
.profile-message-list b { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.message-toolbar { display: grid; grid-template-columns: auto minmax(130px, 190px) 1fr; align-items: center; gap: 8px; margin-top: 15px; }
.message-toolbar label { color: var(--muted); font-size: 11px; font-weight: 800; }
.message-toolbar button { justify-self: end; }
.settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.setting-list { display: grid; margin: 15px 0; }
.setting-list label { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.setting-list label span { display: flex; align-items: center; gap: 8px; }
.setting-list svg { width: 17px; color: #16796f; }
.setting-list input { width: 18px; height: 18px; accent-color: var(--orange); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.danger-zone h2, .danger-zone p { margin: 0; }
.danger-zone p { margin-top: 4px; color: var(--muted); }
.private-public-profile { min-height: 320px; display: grid; place-content: center; justify-items: center; text-align: center; }
.private-public-profile > svg { width: 34px; color: var(--muted); }
.public-passport { margin-top: 18px; border: 2px solid var(--passport-accent); border-radius: 7px; padding: 15px; }
.public-passport > div:first-child { display: flex; align-items: center; gap: 10px; color: var(--passport-accent); }
.public-passport > div:first-child svg { width: 28px; }
.public-passport small, .public-passport strong { display: block; }
.public-passport-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 12px; border-top: 1px solid var(--line); }
.public-passport-stats > div { min-height: 74px; display: grid; place-items: center; align-content: center; }
.public-passport-stats svg { width: 16px; color: var(--passport-accent); }
.public-passport-stats strong, .public-passport-stats span { display: block; }
.public-passport-stats span { color: var(--muted); font-size: 9px; }
.public-achievements { margin-top: 18px; }
.public-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.public-profile-section { margin-top: 20px; }
.public-route-list, .public-review-list { display: grid; gap: 8px; margin-top: 10px; }
.public-route-list article { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 10px 0; }
.public-route-list svg { color: #16796f; }
.public-route-list strong, .public-route-list small { display: block; }
.public-route-list small { margin-top: 3px; color: var(--muted); }
.public-review-list article { border-top: 1px solid var(--line); padding: 10px 0; }
.public-review-list article > span { margin-left: 8px; color: var(--orange-dark); }
.public-review-list p { margin: 5px 0 0; color: var(--muted); }

@media (max-width: 780px) {
  .profile-tabs-shell { margin-left: -8px; margin-right: -8px; }
  .profile-overview-grid, .achievement-layout { grid-template-columns: 1fr; }
  .profile-overview-grid .full-span { grid-column: auto; }
  .passport-hero { min-height: 160px; padding: 20px; }
  .passport-hero img { width: 110px; height: 110px; }
  .passport-stats { grid-template-columns: repeat(2, 1fr); }
  .passport-stats > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .passport-stats > div:nth-child(4) { border-top: 1px solid var(--line); }
  .attendance-panel { align-items: stretch; flex-direction: column; }
  .attendance-actions { width: 100%; }
  .attendance-button { flex: 1; justify-content: center; }
  .admin-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saved-manage-grid, .settings-layout { grid-template-columns: 1fr; }
  .message-toolbar { grid-template-columns: 1fr; }
  .message-toolbar button { justify-self: stretch; }
  .profile-summary-card, .danger-zone { align-items: flex-start; flex-direction: column; }
  .section-actions { justify-content: flex-start; }
  .list-compact-grid, .theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passport-identity-row { grid-template-columns: 90px 1fr; }
  .passport-photo { width: 90px; height: 110px; }
  .passport-code { grid-column: 1 / -1; justify-items: start; }
  .passport-document-head { gap: 20px; }
  .passport-stats-wide { grid-template-columns: repeat(2, 1fr); }
  .passport-stats-wide > div { border-top: 1px solid var(--line); }
  .stamp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-passport-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .profile-tabs button { min-height: 40px; padding: 0 10px; }
  .profile-identity { grid-template-columns: 54px 1fr auto; }
  .profile-identity .large-avatar { width: 54px; height: 54px; }
  .passport-hero img { width: 84px; height: 84px; }
  .passport-hero h2 { font-size: 22px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .review-heading { grid-template-columns: 34px 1fr; }
  .review-heading small { grid-column: 2; }
  .field-label-row { align-items: flex-start; flex-direction: column; }
  .passport-document { padding: 18px; }
  .passport-document-head { padding-right: 55px; }
  .passport-document-head h2 { font-size: 19px; }
  .passport-number { display: none; }
  .theme-options { grid-template-columns: 1fr; }
  .event-status-list article { grid-template-columns: 1fr; padding: 9px 0; }
  .event-status-list select { width: 100%; }
  .danger-zone { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .app-loading svg { animation: none; }
}
