/* Powłoka aplikacji: jedna trasa jest widoczna w danym momencie. */
html.product-mode,
html.product-mode body {
  min-height: 100%;
  background: var(--bg);
}

html.product-mode body {
  margin: 0;
}

html.product-mode:not(.product-legal-route) {
  --product-surface-gradient:
    radial-gradient(
      ellipse 78% 92% at -6% -8%,
      rgba(210, 229, 255, .98) 0%,
      rgba(222, 236, 255, .82) 42%,
      rgba(222, 236, 255, 0) 74%
    ),
    radial-gradient(
      ellipse 74% 96% at -7% 108%,
      rgba(190, 211, 243, .96) 0%,
      rgba(211, 226, 248, .72) 44%,
      rgba(211, 226, 248, 0) 76%
    ),
    radial-gradient(
      ellipse 70% 88% at 105% -7%,
      rgba(243, 211, 213, .96) 0%,
      rgba(249, 229, 232, .76) 43%,
      rgba(249, 229, 232, 0) 75%
    ),
    radial-gradient(
      ellipse 72% 90% at 105% 107%,
      rgba(234, 234, 201, .96) 0%,
      rgba(245, 240, 209, .76) 44%,
      rgba(245, 240, 209, 0) 76%
    ),
    radial-gradient(
      ellipse 62% 58% at 56% 108%,
      rgba(222, 235, 237, .82) 0%,
      rgba(236, 243, 242, 0) 76%
    ),
    #f7f9fc;
}

html.product-desktop:not(.product-legal-route) .d-hero {
  background: var(--product-surface-gradient) !important;
}

html.product-mobile:not(.product-legal-route) .screen {
  background: var(--product-surface-gradient);
}

html.product-desktop:not(.product-legal-route) .topnav,
html.product-mobile:not(.product-legal-route) .appbar,
html.product-mobile:not(.product-legal-route) .tabbar {
  background: #fff;
  background-image: none;
}

.product-mode .page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.product-mode .product-head,
.product-mode .view-title,
.product-mode .view-desc,
.product-mode .sect-sub,
.product-mode .view-caption,
.product-mode .foot {
  display: none !important;
}

.product-mode .rv {
  opacity: 1;
  transform: none;
}

.product-desktop .screen-block,
.product-panel .screen-block {
  display: none;
  margin: 0;
}

.product-desktop .screen-block.product-active,
.product-panel .screen-block.product-active {
  display: block;
}

.product-desktop .browser,
.product-panel .browser {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.product-desktop .browser-bar,
.product-panel .browser-bar {
  display: none;
}

.product-desktop .topnav {
  position: sticky;
  top: 0;
  z-index: 90;
}

.product-desktop [data-product-main] {
  min-height: calc(100vh - 64px);
}

/* `overflow: hidden` creates a programmatically scrollable box. Focusing the
   low-positioned composer then moves this root under the sticky navigation.
   `clip` keeps the same visual crop without creating that hidden scrollport. */
.product-desktop [data-planner-app] {
  overflow: clip;
}

/* W pustym plannerze zostawiamy naturalne miejsce na przyszłą rozmowę.
   Pole odpowiedzi pozostaje blisko dolnej części pierwszego ekranu, ale
   zachowuje bezpieczny odstęp od jego krawędzi i od stopki. */
.product-desktop [data-planner-app]:not(.planner-session-active) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: clamp(28px, 4vh, 40px);
  padding-bottom: clamp(96px, 16vh, 150px) !important;
}

.product-desktop
  [data-planner-app]:not(.planner-session-active)
  > [data-planner-hero] {
  align-self: end;
  margin-top: 0;
}

.product-mobile
  .body:not(.planner-session-active) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  row-gap: 12px;
}

.product-mobile
  .body:not(.planner-session-active)
  > [data-planner-hero] {
  align-self: end;
  margin-top: 0;
}

.product-desktop
  [data-planner-app]:not(.planner-session-active)
  > [data-chat-composer],
.product-mobile
  .body:not(.planner-session-active)
  > [data-chat-composer] {
  margin-top: 0;
}

/* Tekst przykładowy zmienia się wewnątrz planera, ale nigdy nie wyznacza
   szerokości całego pola. Każda powierzchnia zachowuje pełną, responsywną
   szerokość niezależnie od aktualnej długości animowanej frazy. */
.product-desktop .planner-composer {
  width: min(100%, 640px);
  min-width: 0;
  box-sizing: border-box;
}

.product-desktop .planner-composer > [data-chat-input],
.product-mobile [data-chat-composer] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-self: stretch;
}

.product-mode [data-chat-input] [data-typewrite] {
  min-width: 0;
}

.product-mode [data-chat-input] {
  position: relative;
}

.product-mode [data-chat-input].has-planner-mentions {
  flex-wrap: wrap;
  row-gap: 9px;
}

.product-mode .planner-mention-chips {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 2px 2px;
  scrollbar-width: thin;
}

.product-mode .planner-mention-chips[hidden],
.product-mode .planner-mention-menu[hidden] {
  display: none;
}

.product-mode .planner-mention-chips__label {
  flex: 0 0 auto;
  color: var(--slate-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.product-mode .planner-mention-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 3px 4px 3px 3px;
  border: 1px solid rgba(10, 27, 52, .16);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f1f5fa);
  box-shadow: 0 3px 10px rgba(10, 27, 52, .08);
  color: var(--navy);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.product-mode .planner-mention-chip__avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(10, 27, 52, .16);
  border-radius: 6px;
  background: #dbe5f0;
  box-shadow: 0 0 0 1px #fff;
  color: #203e5d;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .035em;
}

.product-mode .planner-mention-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-mode .planner-mention-chip__name {
  padding-right: 1px;
}

.product-mode .planner-mention-chip button {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: rgba(10, 27, 52, .05);
  color: var(--slate-2);
  cursor: pointer;
}

.product-mode .planner-mention-chip button:hover {
  background: var(--navy);
  color: #fff;
}

.product-mode .planner-mention-chip button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.product-mode .planner-mention-chip button:disabled {
  display: none;
}

.product-mode .planner-mention-chip svg {
  width: 13px;
  height: 13px;
}

.product-mode .planner-mention-menu {
  position: absolute;
  z-index: 40;
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  max-height: min(320px, 42dvh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(10, 27, 52, .13);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(10, 27, 52, .18);
  overscroll-behavior: contain;
}

.product-mode .planner-mention-option {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.product-mode .planner-mention-option:hover,
.product-mode .planner-mention-option.is-active,
.product-mode .planner-mention-option[aria-selected="true"] {
  background: #f0f5fb;
}

.product-mode .planner-mention-option__avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(10, 27, 52, .1);
  border-radius: 6px;
  background: #e9f0f8;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.product-mode .planner-mention-option__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-mode .planner-mention-option__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-mode .planner-mention-option__copy strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-mode .planner-mention-option__copy small {
  color: var(--slate-2);
  font-size: 9.5px;
  font-weight: 650;
}

.product-mode .planner-mention-menu__status {
  margin: 0;
  padding: 11px 10px;
  color: var(--slate-2);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.product-mode .planner-mention-menu__status[data-state="error"] {
  color: #a52b24;
}

.product-mode .planner-message-mentions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.product-mode .planner-message-mentions span {
  display: inline-flex;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .88em;
  font-weight: 750;
}

@media (max-width: 620px) {
  .product-mode .planner-mention-menu {
    max-height: min(280px, 38dvh);
  }

  .product-mode .planner-mention-chips {
    margin: -11px -4px -11px 0;
    padding-top: 11px;
    padding-bottom: 13px;
  }

  .product-mode .planner-mention-chip {
    min-height: 34px;
    font-size: 10.5px;
  }

  .product-mode .planner-mention-chip button {
    width: 44px;
    height: 44px;
    margin: -11px;
  }
}

.product-desktop [data-planner-app].planner-session-active {
  height: calc(100dvh - 61px);
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  padding: 24px 40px 20px !important;
  overflow: clip;
}

.planner-session-active > [data-planner-hero] {
  display: none;
}

.product-desktop .planner-session-active [data-chat-conv] {
  flex: 1 1 auto;
  width: min(100%, 640px);
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 8px 2px 20px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(84, 99, 127, .28) transparent;
}

.product-desktop .planner-session-active [data-chat-composer] {
  flex: 0 0 auto;
  width: min(100%, 640px);
  margin: 0 auto !important;
  padding-top: 12px;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.product-mode .planner-signature {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
}

.product-mobile .planner-session-active [data-chat-conv] {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-bottom: 8px;
}

.product-mobile [data-planner-app].planner-session-active {
  overflow: clip;
}

.product-mobile .planner-session-active [data-chat-composer] {
  flex: 0 0 auto;
}

.product-mobile .planner-signature {
  margin-top: 0;
  font-size: 11px;
}

.product-mode .planner-conversation {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.product-mode .planner-turn {
  width: 100%;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 7px;
}

.product-mode .planner-turn + .planner-turn {
  margin-top: 18px;
}

.product-mode .planner-turn--user {
  align-items: flex-end;
}

.product-mode .planner-turn--sponty {
  align-items: flex-start;
}

.product-mode .planner-turn .msg {
  width: fit-content;
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-mode .planner-turn--user .msg-u {
  max-width: min(76%, 460px);
  border-bottom-right-radius: 3px;
}

.product-mode .planner-turn--sponty .msg-s {
  max-width: min(90%, 560px);
  border-bottom-left-radius: 3px;
}

.product-mode .planner-context {
  width: fit-content;
  max-width: min(84%, 520px);
}

.product-mode .planner-context .parsed {
  width: fit-content;
  justify-content: flex-end;
}

.product-mode .planner-context .parsed .chip {
  padding: 5px 8px;
  border-radius: 5px;
}
.product-mode .planner-message-actions { display: flex; justify-content: flex-start; margin-top: 4px; }
.product-mode .planner-message-actions button { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; padding: 5px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--slate-2); font: inherit; font-size: 8.5px; font-weight: 750; cursor: pointer; }
.product-mode .planner-message-actions button:hover { background: rgba(10,27,52,.06); color: var(--navy); }
.product-mode .planner-message-actions button:focus-visible { outline: 2px solid #77aef0; outline-offset: 2px; }
.product-mode .planner-message-actions button:disabled { cursor: default; opacity: .75; }
.product-mode .planner-message-actions button.is-reported { color: #0d6a58; }
.product-mode .planner-message-actions svg { width: 14px; height: 14px; }
.planner-report-host { display: contents; }
.planner-report-dialog { width: min(calc(100vw - 32px),520px); }
.planner-report-status[data-state="success"] { padding: 10px 12px; border-left: 3px solid #0d6a58; background: #f0f8f5; overflow-wrap: anywhere; }

.product-mode .planner-conversation:focus-visible,
.product-mode .planner-conversation button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.product-mode .planner-relaxation-note {
  margin-top: 10px;
  color: var(--slate-2);
  font-size: 11px;
  font-weight: 600;
}

.product-mode .planner-relaxation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.product-mode .planner-relaxation-actions .btn {
  min-height: 34px;
  border-radius: 5px;
}

@media (max-width: 620px) {
  .product-mode .planner-turn + .planner-turn {
    margin-top: 15px;
  }

  .product-mode .planner-turn--user .msg-u {
    max-width: 78%;
  }

  .product-mode .planner-turn--sponty .msg-s {
    max-width: 94%;
  }

  .product-mode .planner-context {
    max-width: 90%;
  }
}

.product-panel .dash {
  min-height: 100vh;
}

.product-panel .dash-side {
  position: sticky;
  top: 0;
  height: 100vh;
}

.product-mobile body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.product-mobile .screen-block,
.product-mobile .board {
  display: contents;
}

.product-mobile .board > div {
  display: none;
}

.product-mobile .board > div.product-active {
  display: block;
}

.product-mobile .phone {
  width: 100vw;
  height: 100dvh;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-mobile .phone::before,
.product-mobile .phone::after,
.product-mobile .notch,
.product-mobile .statusbar {
  display: none;
}

.product-mobile .screen {
  width: 100%;
  height: 100dvh;
  border-radius: 0;
}

.product-mobile .appbar {
  padding-top: max(12px, env(safe-area-inset-top));
}

.product-mobile .tabbar {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.product-mobile .tabbar .tab.active,
.product-mobile .tabbar .tab.active:hover {
  color: var(--coral);
}

.product-mobile .wc-hintbar {
  display: none !important;
}

.product-mode [hidden] {
  display: none !important;
}

.homepage-promotions {
  --top-places-width: min(404px, calc(100vw - 58px));
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 44;
  width: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  text-align: left;
}

.top-places__trigger {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 3;
  width: 45px;
  min-height: 174px;
  padding: 13px 9px;
  border: 0;
  border-radius: 0 7px 7px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  background: var(--navy);
  box-shadow: 8px 10px 28px rgba(10, 27, 52, .18);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(0, -50%);
  transition:
    transform .32s cubic-bezier(.22, 1, .36, 1),
    background-color .18s ease;
}

.top-places__trigger:hover,
.top-places__trigger:focus-visible {
  background: #112846;
}

.top-places__trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--coral);
}

.top-places__trigger-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .025em;
  line-height: 1.12;
}

.top-places__trigger-label strong {
  color: #b8cae0;
  font-weight: inherit;
}

.top-places__count {
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.top-places.is-open .top-places__trigger {
  transform: translate(var(--top-places-width), -50%);
}

.top-places__panel {
  position: fixed;
  inset: 74px auto 24px 0;
  z-index: 2;
  width: var(--top-places-width);
  border: 1px solid rgba(10, 27, 52, .11);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  color: var(--ink);
  background: rgba(252, 253, 255, .985);
  box-shadow: 22px 24px 70px rgba(10, 27, 52, .19);
  opacity: 0;
  pointer-events: auto;
  transform: translateX(calc(-100% - 22px));
  visibility: hidden;
  transition:
    transform .34s cubic-bezier(.22, 1, .36, 1),
    opacity .2s ease,
    visibility 0s linear .34s;
}

.top-places.is-open .top-places__panel {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.top-places__head {
  min-height: 116px;
  padding: 23px 21px 19px;
  border-bottom: 1px solid rgba(10, 27, 52, .09);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(230, 240, 255, .88), transparent 38%),
    #fff;
}

.top-places__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.top-places__head h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.top-places__head p {
  margin: 7px 0 0;
  color: var(--slate);
  font-size: 11.5px;
  font-weight: 520;
  line-height: 1.45;
}

.top-places__close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid rgba(10, 27, 52, .1);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
}

.top-places__close svg {
  width: 15px;
  height: 15px;
}

.top-places__list {
  min-height: 0;
  padding: 9px 11px 13px;
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  flex-direction: column;
  scrollbar-color: rgba(10, 27, 52, .24) transparent;
  scrollbar-width: thin;
}

.homepage-promotion-item {
  min-width: 0;
  animation: homepagePromotionIn .28s ease both;
}

.homepage-promotion {
  width: 100%;
  min-width: 0;
  min-height: 92px;
  padding: 7px;
  border: 1px solid transparent;
  border-bottom-color: rgba(10, 27, 52, .085);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 11px;
  color: inherit;
  background: transparent;
  text-decoration: none;
  transition:
    border-color .18s ease,
    background-color .18s ease,
    transform .18s ease;
}

.homepage-promotion:hover,
.homepage-promotion:focus-visible {
  border-color: rgba(49, 95, 135, .16);
  background: #fff;
  transform: translateX(3px);
}

.homepage-promotion-item:nth-child(2) {
  animation-delay: 35ms;
}

.homepage-promotion-item:nth-child(3) {
  animation-delay: 70ms;
}

.homepage-promotion-item:nth-child(4) {
  animation-delay: 105ms;
}

.homepage-promotion-item:nth-child(5) {
  animation-delay: 140ms;
}

.homepage-promotion__media {
  position: relative;
  min-height: 76px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .8), transparent 36%),
    linear-gradient(145deg, #e6f0ff, #d5e2ee);
}

.homepage-promotion__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.homepage-promotion:hover .homepage-promotion__media img,
.homepage-promotion:focus-visible .homepage-promotion__media img {
  transform: scale(1.035);
}

.homepage-promotion__fallback {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(10, 27, 52, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 18px rgba(10, 27, 52, .09);
}

.homepage-promotion__media .homepage-promotion__fallback img {
  position: static;
  inset: auto;
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  transform: none;
}

.homepage-promotion__body {
  min-width: 0;
  padding: 2px 2px 1px 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.homepage-promotion__organizer {
  max-width: 100%;
  margin: 0 0 3px;
  overflow: hidden;
  color: var(--slate-2);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .07em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.homepage-promotion__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.26;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.homepage-promotion__details {
  min-width: 0;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--slate);
  font-size: 10px;
  font-weight: 560;
  line-height: 1.3;
}

.homepage-promotion__details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homepage-promotion__price {
  margin-top: auto;
  padding-top: 4px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.top-places__scrim {
  display: none;
}

@keyframes homepagePromotionIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .product-mobile .body:not(.planner-session-active) {
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .homepage-promotions {
    position: relative;
    inset: auto;
    z-index: 46;
    width: 100%;
    margin: 9px 0 0;
    padding: 0 2px 2px;
    pointer-events: auto;
  }

  .top-places__trigger,
  .top-places.is-open .top-places__trigger {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(10, 27, 52, .12);
    border-radius: 6px;
    display: inline-flex;
    justify-content: flex-start;
    flex-direction: row;
    gap: 7px;
    color: var(--navy);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 14px rgba(10, 27, 52, .07);
    transform: none;
  }

  .top-places.is-open .top-places__trigger {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .top-places__trigger:hover,
  .top-places__trigger:focus-visible {
    background: #fff;
  }

  .top-places__trigger svg {
    width: 15px;
    height: 15px;
  }

  .top-places__trigger-label {
    writing-mode: initial;
    transform: none;
    font-size: 10px;
    letter-spacing: 0;
  }

  .top-places__trigger-label strong {
    color: var(--slate);
  }

  .top-places__count {
    min-width: 20px;
    height: 20px;
    border-color: rgba(10, 27, 52, .1);
    color: #fff;
    background: var(--navy);
  }

  .top-places__scrim {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    display: block;
    background: rgba(10, 27, 52, .44);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      opacity .22s ease,
      visibility 0s linear .24s;
  }

  .top-places.is-open .top-places__scrim {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }

  .top-places__panel {
    inset: auto 0 0;
    z-index: 2;
    width: 100%;
    max-height: min(78dvh, 690px);
    padding-bottom: env(safe-area-inset-bottom);
    border: 1px solid rgba(10, 27, 52, .11);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -18px 55px rgba(10, 27, 52, .2);
    opacity: 1;
    transform: translateY(105%);
    visibility: hidden;
    transition:
      transform .34s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear .34s;
  }

  .top-places.is-open .top-places__panel {
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .top-places__panel::before {
    content: "";
    width: 34px;
    height: 4px;
    margin: 8px auto -2px;
    border-radius: 2px;
    flex: 0 0 auto;
    background: rgba(10, 27, 52, .17);
  }

  .top-places__head {
    min-height: 94px;
    padding: 15px 18px 14px;
  }

  .top-places__head h2 {
    font-size: 21px;
  }

  .top-places__head p {
    font-size: 10px;
  }

  .top-places__list {
    padding: 7px 10px max(12px, env(safe-area-inset-bottom));
  }

  .homepage-promotion {
    min-height: 86px;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px;
  }

  .homepage-promotion:hover,
  .homepage-promotion:focus-visible {
    transform: none;
  }

  .homepage-promotion__media {
    min-height: 70px;
  }

  .homepage-promotion__title {
    font-size: 12px;
  }

  .homepage-promotion__details {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
  }

  .homepage-promotion__details span {
    min-width: 0;
    max-width: 100%;
  }

  .homepage-promotion__details span + span::before {
    content: "\00b7";
    margin-right: 5px;
  }

  .top-places-open {
    overflow: hidden;
  }

  .top-places-open.product-mobile .body {
    overflow: hidden !important;
  }

  .top-places-open.product-mobile .tabbar {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}

/* Razem: community activities and account notifications */
.product-route-state--razem,
.product-route-state--notifications {
  align-items: flex-start;
  min-height: calc(100vh - 64px);
  padding: 38px clamp(20px, 4vw, 58px) 78px;
  overflow-x: clip;
  overflow-y: visible;
  overscroll-behavior: contain;
}

.razem-shell,
.notifications-page {
  width: min(100%, 1160px);
  margin: 0 auto;
  color: var(--navy);
}

.razem-shell__head,
.notifications-page > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.razem-shell__eyebrow,
.notifications-page > header > div > span,
.razem-section > header > div > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.razem-shell__eyebrow svg { width: 15px; height: 15px; }
.razem-shell__head h1,
.notifications-page h1 {
  margin: 9px 0 6px;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.razem-shell__head p,
.notifications-page > header p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.55;
}

.razem-button {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 15px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .12s ease;
}
.razem-button svg { width: 16px; height: 16px; }
.razem-button:hover { border-color: #aabbd0; background: #f5f8fb; }
.razem-button:active { transform: translateY(1px); }
.razem-button:disabled { cursor: not-allowed; opacity: .52; }
.razem-button:focus-visible,
.razem-icon-button:focus-visible,
.razem-dialog button:focus-visible,
.notification-panel button:focus-visible,
.notification-panel a:focus-visible,
.notification-item:focus-visible { outline: 2px solid #77aef0; outline-offset: 2px; }
.razem-button--primary,
.razem-button--add { border-color: var(--navy); background: var(--navy); color: #fff; }
.razem-button--primary:hover,
.razem-button--add:hover { border-color: #15365f; background: #15365f; }
.razem-button--add { min-width: 112px; flex: 0 0 auto; }
.razem-button--danger { border-color: #9d2e2e; background: #9d2e2e; color: #fff; }

.razem-eligibility {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #ead7a6;
  border-radius: 7px;
  background: #fffbef;
}
.razem-eligibility > svg { width: 22px; height: 22px; color: #9a6900; }
.razem-eligibility strong { display: block; font-size: 11px; }
.razem-eligibility p { margin: 3px 0 0; color: var(--slate); font-size: 10px; line-height: 1.45; }
.razem-eligibility a { color: var(--navy); font-size: 10px; font-weight: 850; }

.razem-section { margin-top: 24px; }
.razem-section > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 2px;
}
.razem-section > header h2 { margin: 4px 0 0; font-family: var(--font-d); font-size: 21px; letter-spacing: -.025em; }
.razem-section > header > small {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 5px;
  background: rgba(10,27,52,.07);
  color: var(--navy);
  font-size: 10px;
  font-weight: 850;
}

.razem-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.razem-card {
  display: flex;
  min-width: 0;
  min-height: 288px;
  padding: 18px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 28px rgba(10,27,52,.045);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.razem-card:hover { border-color: #c1cede; box-shadow: 0 13px 36px rgba(10,27,52,.075); }
.razem-card.is-highlighted { border-color: #77aef0; box-shadow: 0 0 0 4px rgba(119,174,240,.16); }
.razem-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.razem-card__top-actions { display: flex; align-items: center; gap: 5px; }
.razem-card__date { color: var(--coral); font-size: 9px; font-weight: 850; }
.razem-card__places { color: var(--slate-2); font-size: 9px; white-space: nowrap; }
.razem-card__places strong { color: var(--navy); }
.razem-card h2 { margin: 13px 0 7px; font-family: var(--font-d); font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.razem-card__description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--slate);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}
.razem-card__facts { display: grid; gap: 6px; margin: 15px 0; }
.razem-card__facts span { display: flex; align-items: center; gap: 7px; color: var(--slate-2); font-size: 9px; font-weight: 700; }
.razem-card__facts svg { width: 15px; height: 15px; color: var(--navy); }
.razem-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid rgba(10,27,52,.08); }
.razem-host { display: flex; min-width: 0; align-items: center; gap: 8px; }
.razem-host--button { padding: 2px; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.razem-host--button:hover { background: #f2f6fb; }
.razem-host--button:focus-visible { outline: 2px solid #77aef0; outline-offset: 2px; }
.razem-host > span:not(.razem-avatar):not(.razem-reputation) { min-width: 0; }
.razem-host small,.razem-host strong { display: block; }
.razem-host small { color: var(--slate-2); font-size: 7.5px; font-weight: 750; }
.razem-host strong { max-width: 84px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.razem-avatar { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid rgba(10,27,52,.12); border-radius: 6px; background: #edf4fc; color: var(--navy); font-family: var(--font-d); font-weight: 850; }
.razem-avatar--small { width: 34px; height: 34px; font-size: 13px; }
.razem-avatar--medium { width: 44px; height: 44px; font-size: 16px; }
.razem-avatar--large { width: 96px; height: 96px; border-radius: 8px; font-size: 32px; }
.razem-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.razem-reputation { display: inline-flex; align-items: center; gap: 3px; color: #8b6300; font-size: 8px; font-weight: 850; }
.razem-reputation svg { width: 12px; height: 12px; fill: #f4bf32; stroke: #a57800; }
.razem-card__state { display: inline-flex; align-items: center; gap: 5px; color: var(--slate); font-size: 9px; font-weight: 850; }
.razem-card__state svg { width: 15px; height: 15px; }
.razem-card__state.is-accepted { color: #0d6a58; }
.razem-card__footer .razem-button[data-queue-type="waitlist"] { max-width: 154px; line-height: 1.25; text-align: center; }

.razem-own-list { display: grid; gap: 12px; }
.razem-own-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(10,27,52,.045); }
.razem-own-card__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.razem-own-card__head > div > span { color: var(--coral); font-size: 9px; font-weight: 850; }
.razem-own-card__head h3 { margin: 5px 0 4px; font-family: var(--font-d); font-size: 18px; }
.razem-own-card__head p { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--slate-2); font-size: 9px; }
.razem-own-card__head p svg { width: 14px; height: 14px; }
.razem-own-card__head p span { margin-left: 3px; padding-left: 8px; border-left: 1px solid var(--line); }
.razem-own-card__capacity { flex: 0 0 auto; color: var(--navy); font-family: var(--font-d); font-size: 20px; font-weight: 850; text-align: right; }
.razem-own-card__capacity small { display: block; color: var(--slate-2); font-family: var(--font-b); font-size: 8px; }
.razem-meeting-point { display: flex; align-items: center; gap: 10px; padding: 11px 19px; border-bottom: 1px solid #dbe8e4; background: #f4fbf8; }
.razem-meeting-point > svg { width: 17px; height: 17px; color: #0d6a58; }
.razem-meeting-point small,.razem-meeting-point strong { display: block; }
.razem-meeting-point small { color: #3b7569; font-size: 8px; }
.razem-meeting-point strong { margin-top: 2px; font-size: 10px; }
.razem-meeting-point__address { display: block; margin-top: 2px; color: var(--slate); font-size: 9px; }
.razem-member-note { display: flex; align-items: center; gap: 10px; padding: 15px 19px; color: #0d6a58; }
.razem-member-note > svg { width: 20px; height: 20px; }
.razem-member-note > span { min-width: 0; }
.razem-member-note strong,.razem-member-note small { display: block; }
.razem-member-note strong { font-size: 10px; }
.razem-member-note small { margin-top: 2px; color: var(--slate-2); font-size: 8.5px; }
.razem-button--leave { margin-left: auto; border-color: #e3bcbc; color: #922c2c; }
.razem-button--leave:hover { border-color: #cf9999; background: #fff5f5; }
.razem-own-card__management { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.razem-own-card__management > section { min-width: 0; padding: 16px 19px; }
.razem-own-card__management > section + section { border-left: 1px solid var(--line); }
.razem-own-card__management section > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.razem-own-card__management h4 { margin: 0; font-size: 11px; }
.razem-own-card__management section > header span { color: var(--slate-2); font-size: 9px; font-weight: 850; }
.razem-own-card__management ul { margin: 0; padding: 0; list-style: none; }
.razem-person-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 62px; padding: 8px 0; border-top: 1px solid rgba(10,27,52,.07); }
.razem-person-card { display: grid; min-width: 0; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 10px; padding: 3px; border: 0; border-radius: 6px; background: transparent; color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.razem-person-card:hover { background: #f4f7fb; }
.razem-person-card:focus-visible { outline: 2px solid #77aef0; outline-offset: 2px; }
.razem-person-row__identity { min-width: 0; }
.razem-person-row__identity > strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.razem-person-row__identity > span { display: block; margin-top: 3px; }
.razem-person-row__message { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--slate); font-size: 8.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.razem-person-row__actions { display: flex; gap: 5px; }
.razem-no-capacity { align-self: center; max-width: 66px; color: var(--slate-2); font-size: 7.5px; font-weight: 750; line-height: 1.25; text-align: right; }
.razem-icon-button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--navy); cursor: pointer; }
.razem-icon-button svg { width: 16px; height: 16px; }
.razem-icon-button--report { position: relative; width: 30px; height: 30px; border-color: transparent; background: transparent; color: var(--slate); }
.razem-icon-button--report:hover { border-color: #d6e0eb; background: #f3f6fa; color: var(--navy); }
.razem-icon-button--report:hover .friend-action__tooltip,
.razem-icon-button--report:focus-visible .friend-action__tooltip { opacity: 1; transform: translateY(0); }
.razem-icon-button.is-accept { border-color: #b9d7d0; background: #f4fbf8; color: #0d6a58; }
.razem-icon-button.is-decline,.razem-icon-button.is-remove { color: #9d2e2e; }
.razem-inline-empty { margin: 0; padding: 16px 0; border-top: 1px solid rgba(10,27,52,.07); color: var(--slate-2); font-size: 9px; }
.razem-empty { display: grid; justify-items: center; padding: 46px 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.84); text-align: center; }
.razem-empty > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 7px; background: #edf4fc; }
.razem-empty > span svg { width: 22px; height: 22px; }
.razem-empty strong { margin-top: 11px; font-size: 13px; }
.razem-empty p { max-width: 420px; margin: 6px 0 14px; color: var(--slate-2); font-size: 10px; line-height: 1.5; }
.razem-page-status,.razem-form-status { color: var(--slate); font-size: 10px; font-weight: 750; }
.razem-page-status { position: fixed; right: 24px; bottom: 24px; z-index: 330; max-width: 360px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 12px 36px rgba(10,27,52,.16); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .16s ease,transform .16s ease; }
.razem-page-status.is-visible { opacity: 1; transform: translateY(0); }
.razem-page-status[data-state="error"],.razem-form-status[data-state="error"] { color: #9d2e2e; }
.razem-page-status[data-state="success"],.razem-form-status[data-state="success"] { color: #0d6a58; }

.razem-dialog { position: fixed; top: 50%; left: 50%; width: min(calc(100vw - 32px),720px); max-height: calc(100vh - 32px); margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 9px; background: #fff; color: var(--navy); box-shadow: 0 28px 90px rgba(6,19,37,.32); transform: translate(-50%,-50%); }
.razem-confirm-dialog { width: min(calc(100vw - 32px),470px); }
.razem-terms-dialog { width: min(calc(100vw - 32px),520px); }
.razem-person-profile-dialog { width: min(calc(100vw - 32px),580px); }
.razem-dialog::backdrop { background: rgba(6,19,37,.62); backdrop-filter: blur(3px); }
.razem-dialog__surface { position: relative; padding: 25px; }
.razem-dialog__close { position: absolute; top: 13px; right: 13px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--slate); cursor: pointer; }
.razem-dialog__close:hover { border-color: var(--line); background: #f4f6f9; }
.razem-dialog__close svg { width: 18px; height: 18px; }
.razem-dialog__intro { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 13px; padding-right: 34px; }
.razem-dialog__intro > span,.razem-confirm-dialog__icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 7px; background: #edf4fc; }
.razem-dialog__intro > span svg,.razem-confirm-dialog__icon svg { width: 22px; height: 22px; }
.razem-dialog__intro small { color: var(--coral); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.razem-dialog h2 { margin: 3px 0 6px; font-family: var(--font-d); font-size: 23px; line-height: 1.15; letter-spacing: -.03em; }
.razem-dialog__intro p,.razem-confirm-dialog p { margin: 0; color: var(--slate); font-size: 10px; line-height: 1.55; }
.razem-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.razem-field { display: block; min-width: 0; color: var(--navy); font-size: 9px; font-weight: 850; }
.razem-field--wide { grid-column: 1 / -1; }
.razem-field > small { color: var(--slate-2); font-size: 8px; font-weight: 650; }
.razem-field input,.razem-field textarea,.razem-field select { width: 100%; min-height: 42px; margin-top: 5px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy); font: inherit; font-size: 11px; outline: none; }
.razem-field textarea { min-height: 82px; resize: vertical; line-height: 1.45; }
.razem-field input:focus,.razem-field textarea:focus,.razem-field select:focus { border-color: #77aef0; box-shadow: 0 0 0 3px rgba(119,174,240,.16); }
.razem-field input + small { display: block; margin-top: 4px; }
.razem-meeting-picker { position: relative; min-width: 0; }
.razem-meeting-picker__field { display: grid; grid-template-columns: 19px minmax(0,1fr); align-items: center; gap: 8px; min-height: 42px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.razem-meeting-picker__field:focus-within { border-color: #77aef0; box-shadow: 0 0 0 3px rgba(119,174,240,.16); }
.razem-meeting-picker__field svg { width: 17px; height: 17px; color: var(--slate-2); }
.razem-meeting-picker__field input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: 11px; outline: 0; }
.razem-meeting-picker__results { position: absolute; top: 68px; right: 0; left: 0; z-index: 8; max-height: 236px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #bfcddd; border-radius: 6px; background: #fff; box-shadow: 0 16px 42px rgba(10,27,52,.16); }
.razem-meeting-picker__results[hidden] { display: none; }
.razem-meeting-picker__results button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.razem-meeting-picker__results button:last-child { border-bottom: 0; }
.razem-meeting-picker__results button:hover,.razem-meeting-picker__results button:focus-visible,.razem-meeting-picker__results button.is-active { background: #f1f6fc; }
.razem-meeting-picker__results strong,.razem-meeting-picker__results small { display: block; overflow-wrap: anywhere; }
.razem-meeting-picker__results strong { font-size: 10px; }
.razem-meeting-picker__results small { margin-top: 3px; color: var(--slate-2); font-size: 8px; }
.razem-meeting-picker__results svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--coral); }
.razem-meeting-picker__empty { margin: 0; padding: 14px; color: var(--slate-2); font-size: 9px; text-align: center; }
.razem-meeting-picker__status { min-height: 14px; margin: 5px 0 0; color: var(--slate-2); font-size: 8px; line-height: 1.35; }
.razem-meeting-picker__status[data-state="error"] { color: #9d2e2e; }
.razem-meeting-picker__status[data-state="success"] { color: #0d6a58; }
.razem-meeting-picker__attribution { margin: 2px 0 0; color: var(--slate-2); font-size: 7.5px; line-height: 1.35; }
.razem-meeting-picker__attribution a { color: inherit; text-underline-offset: 2px; }
.razem-meeting-picker__attribution a:hover { color: var(--navy); }
.razem-safety-check { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--navy); font-size: 9px; cursor: pointer; }
.razem-safety-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.razem-safety-check > span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--slate-2); }
.razem-safety-check svg { width: 16px; height: 16px; }
.razem-safety-check input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.razem-safety-check input:focus-visible + span { outline: 2px solid #77aef0; outline-offset: 2px; }
.razem-form-status { min-height: 16px; margin-top: 10px; }
.razem-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.razem-confirm-dialog__icon { margin-bottom: 14px; color: #9d2e2e; background: #fff0f0; }
.razem-confirm-dialog h2 { margin-right: 36px; }
.razem-terms-dialog__icon { display: grid; width: 46px; height: 46px; margin-bottom: 14px; place-items: center; border-radius: 7px; background: #edf4fc; color: var(--navy); }
.razem-terms-dialog__icon svg { width: 22px; height: 22px; }
.razem-terms-dialog h2 { margin-right: 36px; }
.razem-terms-dialog > form > p { margin: 0; color: var(--slate); font-size: 10px; line-height: 1.55; }
.razem-terms-check { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; margin-top: 17px; color: var(--navy); font-size: 10px; line-height: 1.45; cursor: pointer; }
.razem-terms-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.razem-terms-check > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: transparent; }
.razem-terms-check svg { width: 17px; height: 17px; }
.razem-terms-check input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.razem-terms-check input:focus-visible + span { outline: 2px solid #77aef0; outline-offset: 2px; }
.razem-terms-check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.razem-person-profile__hero { display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 18px; padding: 4px 40px 20px 0; border-bottom: 1px solid var(--line); }
.razem-person-profile__hero small { color: var(--coral); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.razem-person-profile__hero h2 { margin: 5px 0 7px; overflow-wrap: anywhere; }
.razem-person-profile__facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.razem-person-profile__facts > div { min-width: 0; padding: 0 15px; }
.razem-person-profile__facts > div:first-child { padding-left: 0; }
.razem-person-profile__facts > div + div { border-left: 1px solid var(--line); }
.razem-person-profile__facts dt { color: var(--slate-2); font-size: 8px; font-weight: 750; }
.razem-person-profile__facts dd { margin: 3px 0 0; color: var(--navy); font-size: 11px; font-weight: 850; }
.razem-person-profile__section { padding-top: 16px; }
.razem-person-profile__section h3 { margin: 0 0 6px; font-size: 10px; }
.razem-person-profile__section p,.razem-person-profile__message p { margin: 0; color: var(--slate); font-size: 10px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.razem-person-profile__interests { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: 6px; list-style: none; }
.razem-person-profile__interests li { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9fc; color: var(--navy); font-size: 8.5px; font-weight: 750; }
.razem-person-profile__message { margin-top: 17px; padding: 13px 14px; border-left: 3px solid var(--coral); border-radius: 0 6px 6px 0; background: #fff8f4; }
.razem-person-profile__message small { display: block; margin-bottom: 4px; color: #9b3b17; font-size: 8px; font-weight: 850; }
.razem-person-profile__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.razem-button--report { border-color: #c8d4e1; background: #fff; color: var(--navy); }
.razem-button--report:hover { border-color: #9eb1c6; background: #f4f7fb; }
.razem-button--danger-outline { border-color: #e1bcbc; background: #fff; color: #922b2b; }
.razem-button--danger-outline:hover { border-color: #c98282; background: #fff4f4; }
.razem-button--report svg,.razem-button--danger-outline svg { width: 16px; height: 16px; }

.consumer-report-dialog { width: min(calc(100vw - 32px),520px); }
.consumer-report-fields { display: grid; gap: 12px; margin-top: 20px; }
.consumer-report-status { min-height: 20px; }
.consumer-report-status[data-state="success"] { padding: 10px 12px; border-left: 3px solid #0d6a58; background: #f0f8f5; overflow-wrap: anywhere; }

.razem-skeleton { min-height: 250px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(90deg,rgba(255,255,255,.78),rgba(241,246,252,.96),rgba(255,255,255,.78)); background-size: 220% 100%; animation: profile-loading 1.2s ease-in-out infinite; }
.razem-skeleton--head { min-height: 82px; margin-bottom: 20px; }
.razem-skeleton--wide { min-height: 190px; margin-bottom: 18px; }
.razem-skeleton-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }

[data-notification-trigger] { position: relative; }
.notification-badge { position: absolute; top: -4px; right: -5px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; border: 2px solid #fff; border-radius: 9px; background: var(--coral); color: #fff; font-size: 7px; font-weight: 900; line-height: 1; }
.notification-badge[hidden] { display: none; }
.notification-portal { position: relative; z-index: 520; }
.notification-panel { position: fixed; top: 72px; right: 24px; left: auto; z-index: 522; width: min(calc(100vw - 32px),390px); max-width: none; max-height: min(620px,calc(100vh - 92px)); margin: 0; padding: 0; flex-direction: column; overflow: hidden; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); box-shadow: 0 24px 74px rgba(6,19,37,.24); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .18s ease,transform .18s ease; }
.notification-panel:not([open]) { display: none; }
.notification-panel[open] { display: flex; }
.notification-panel.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.notification-panel::backdrop { background: rgba(6,19,37,.24); backdrop-filter: blur(2px); }
.notification-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px 13px; border-bottom: 1px solid var(--line); }
.notification-panel > header span { color: var(--coral); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.notification-panel h2 { margin: 3px 0 0; font-family: var(--font-d); font-size: 18px; }
.notification-panel > header button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--slate); cursor: pointer; }
.notification-panel > header button:hover { border-color: var(--line); background: #f4f6f9; }
.notification-panel > header svg { width: 18px; height: 18px; }
.notification-panel [data-notification-panel-content] { min-height: 0; overflow-y: auto; }
.notification-panel > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); background: #fafbfd; }
.notification-panel > footer button,.notification-panel > footer a { border: 0; background: transparent; color: var(--slate); font: inherit; font-size: 8.5px; font-weight: 800; cursor: pointer; text-decoration: none; }
.notification-panel > footer a { color: var(--navy); }
.notification-panel > footer button:disabled { cursor: default; opacity: .45; }
.notification-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.notification-list--compact { border: 0; border-radius: 0; }
.notification-item { position: relative; display: grid; width: 100%; grid-template-columns: 38px minmax(0,1fr) 7px; align-items: start; gap: 11px; padding: 13px 15px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #f7f9fc; }
.notification-item.is-unread { background: #f2f7ff; }
.notification-item.is-action-required { background: #fff8f1; }
.notification-item.is-action-required:hover { background: #fff3e7; }
.notification-item.is-action-required .notification-item__icon { background: #ffe4d2; color: #9b3b17; }
.notification-item.is-action-required .notification-item__copy small { color: #9b3b17; font-weight: 800; }
.notification-item__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 6px; background: #e6f0ff; color: var(--navy); }
.notification-item__icon svg { width: 18px; height: 18px; }
.notification-item__copy { min-width: 0; }
.notification-item__copy strong,.notification-item__copy span,.notification-item__copy small { display: block; }
.notification-item__copy strong { font-size: 10px; }
.notification-item__copy span { margin-top: 3px; color: var(--slate); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.notification-item__copy small { margin-top: 5px; color: var(--slate-2); font-size: 7.5px; }
.notification-item > i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--coral); }
.notification-empty { display: grid; justify-items: center; padding: 42px 18px; text-align: center; }
.notification-empty > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 7px; background: #edf4fc; }
.notification-empty svg { width: 20px; height: 20px; }
.notification-empty strong { margin-top: 10px; font-size: 12px; }
.notification-empty p { max-width: 310px; margin: 5px 0 0; color: var(--slate-2); font-size: 9px; line-height: 1.5; }
.notifications-page > header { align-items: flex-end; }
.notifications-page > [data-notifications-page-content] { max-width: 820px; }

@media (max-width: 980px) {
  .razem-card-grid,.razem-skeleton-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .product-mobile .product-route-state--razem,
  .product-mobile .product-route-state--notifications {
    min-height: 0;
    padding: 22px 15px 96px;
    overflow-y: auto;
  }
  .razem-shell__head,.notifications-page > header { align-items: flex-start; gap: 16px; margin-bottom: 20px; }
  .razem-shell__head h1,.notifications-page h1 { font-size: 29px; }
  .razem-shell__head p,.notifications-page > header p { font-size: 11px; }
  .razem-button { min-height: 44px; font-size: 11px; }
  .razem-button--add { min-width: 46px; padding: 9px 11px; }
  .razem-card-grid,.razem-skeleton-grid { grid-template-columns: 1fr; }
  .razem-card { min-height: 0; }
  .razem-own-card__management { grid-template-columns: 1fr; }
  .razem-own-card__management > section + section { border-top: 1px solid var(--line); border-left: 0; }
  .razem-eligibility { grid-template-columns: 32px minmax(0,1fr); }
  .razem-eligibility a { grid-column: 2; }
  .razem-form-grid { grid-template-columns: 1fr; }
  .razem-field--wide { grid-column: auto; }
  .razem-member-note { align-items: flex-start; flex-wrap: wrap; }
  .razem-button--leave { width: 100%; margin-left: 30px; }
  .razem-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .razem-dialog__surface { padding: 21px 17px; }
  .razem-dialog__intro { grid-template-columns: 40px minmax(0,1fr); padding-right: 40px; }
  .razem-dialog__intro > span { width: 40px; height: 40px; }
  .razem-dialog h2 { font-size: 20px; }
  .razem-person-profile__actions { align-items: stretch; flex-direction: column; }
  .razem-person-profile__actions .razem-button { width: 100%; min-height: 44px; }
  .razem-icon-button,.razem-dialog__close { width: 44px; height: 44px; }
  .razem-dialog__close { top: 8px; right: 8px; }
  .razem-shell__eyebrow,.razem-section > header > div > span,
  .razem-card__date,.razem-card__places,.razem-card__facts span,
  .razem-card__state,.razem-host small,.razem-host strong,
  .razem-reputation,.razem-own-card__head > div > span,
  .razem-own-card__head p,.razem-own-card__capacity small,
  .razem-meeting-point small,.razem-meeting-point strong,.razem-meeting-point__address,
  .razem-member-note strong,.razem-member-note small,
  .razem-person-row__identity > strong,.razem-person-row__message,
  .razem-inline-empty,.razem-dialog__intro small,
  .razem-dialog__intro p,.razem-confirm-dialog p,.razem-terms-dialog > form > p,.razem-terms-check,
  .razem-field,.razem-field > small,.razem-meeting-picker__results strong,
  .razem-meeting-picker__results small,.razem-meeting-picker__empty,
  .razem-meeting-picker__status,.razem-meeting-picker__attribution,.razem-safety-check,
  .razem-page-status,.razem-form-status { font-size: 10px; }
  .razem-card__description,.razem-eligibility strong,
  .razem-eligibility p,.razem-eligibility a,
  .razem-own-card__management h4 { font-size: 11px; }
  .razem-meeting-picker__results button { min-height: 44px; }
  [data-notification-trigger],.notification-panel > header button { min-width: 44px; width: 44px; min-height: 44px; height: 44px; }
  .razem-page-status { right: 14px; bottom: 82px; left: 14px; max-width: none; }
  .notification-panel { top: auto; right: 8px; bottom: 74px; left: 8px; width: auto; max-height: min(72dvh,600px); transform: translateY(12px); }
  .notification-panel.is-open { transform: translateY(0); }
  .notification-panel > footer { padding-bottom: calc(11px + env(safe-area-inset-bottom)); }
  .notification-scrim { bottom: 64px; }
}

@media (max-width: 480px) {
  .razem-shell__head,.notifications-page > header { flex-wrap: wrap; }
  .notifications-page > header .razem-button { width: 100%; }
  .razem-card__footer { align-items: flex-end; }
  .razem-card__footer > .razem-button { min-width: 122px; }
  .razem-person-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .razem-person-card { grid-template-columns: 40px minmax(0,1fr); gap: 8px; }
  .razem-avatar--medium { width: 40px; height: 40px; }
  .razem-person-profile__hero { grid-template-columns: 72px minmax(0,1fr); gap: 13px; padding-right: 36px; }
  .razem-avatar--large { width: 72px; height: 72px; font-size: 25px; }
  .razem-person-profile__facts { grid-template-columns: 1fr; }
  .razem-person-profile__facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
  .razem-person-profile__facts > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .razem-person-profile__facts dd { margin: 0; text-align: right; }
  .razem-own-card__head { align-items: flex-start; }
  .razem-dialog__actions .razem-button { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  .top-places__trigger,
  .top-places__panel,
  .top-places__scrim,
  .homepage-promotion-item,
  .homepage-promotion,
  .homepage-promotion__media img {
    animation: none;
    transition: none;
  }
}

.product-route-state {
  min-height: calc(100vh - 64px);
  align-items: center;
  justify-content: center;
  padding: 42px 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(230, 240, 255, .78), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.product-route-state:not([hidden]) {
  display: flex;
}

.product-state-card {
  width: min(100%, 560px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  text-align: center;
}

.product-state-card .crumb {
  justify-content: center;
}

.product-state-card h1 {
  margin: 16px 0 10px;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.product-state-card p {
  margin: 0 auto 22px;
  max-width: 460px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

.product-mobile .product-route-state {
  min-height: 0;
  padding: 24px 18px;
  overflow-y: auto;
}

/* Route shells must start at the top. The generic empty-state centering above
   is only appropriate for short placeholder cards, not scrollable product
   surfaces such as Razem and notifications. */
.product-route-state.product-route-state--razem,
.product-route-state.product-route-state--notifications {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 38px clamp(20px, 4vw, 58px) 78px;
  overflow-x: clip;
  overflow-y: visible;
}

@media (max-width: 720px) {
  .product-mobile .product-route-state.product-route-state--razem,
  .product-mobile .product-route-state.product-route-state--notifications {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    padding: 22px 15px 96px;
    overflow-x: clip;
    overflow-y: auto;
  }
}

.product-mobile .product-state-card {
  padding: 24px 18px;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(10, 27, 52, .10);
}

.product-route-state--profile {
  align-items: flex-start;
  min-height: calc(100vh - 64px);
  padding: 38px clamp(20px, 4vw, 58px) 70px;
  overflow-x: clip;
  overflow-y: visible;
}

.product-route-state--friends {
  align-items: flex-start;
  min-height: calc(100vh - 64px);
  padding: 38px clamp(20px, 4vw, 58px) 78px;
  overflow-x: clip;
  overflow-y: visible;
}
.friends-shell { width: min(100%, 1120px); margin: 0 auto; color: var(--navy); }
.friends-shell__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.friends-shell__head h1 { margin: 0; color: var(--navy); font-family: var(--font-d); font-size: clamp(28px, 4vw, 38px); line-height: 1; letter-spacing: -.035em; }
.friends-shell__head p { margin: 7px 0 0; color: var(--slate); font-size: 13px; }
.friends-shell__privacy { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 3px; color: var(--slate-2); font-size: 10px; font-weight: 800; }
.friends-shell__privacy svg,
.friends-search__field > svg,
.friends-search-results__head svg,
.friend-action svg,
.friend-card__sent svg,
.friends-empty svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.friends-shell__privacy svg { width: 17px; height: 17px; }

.friends-search { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(10,27,52,.055); }
.friends-search > label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 10px; font-weight: 850; }
.friends-search__field { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 5px 6px 5px 15px; border: 1px solid #cfd9e7; border-radius: 7px; background: #fff; transition: border-color .16s ease,box-shadow .16s ease; }
.friends-search__field:focus-within { border-color: #77aef0; box-shadow: 0 0 0 3px rgba(119,174,240,.16); }
.friends-search__field > svg { width: 20px; height: 20px; color: var(--slate-2); }
.friends-search__field input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: 14px; font-weight: 650; outline: 0; }
.product-mode .friends-search__field input:focus-visible { outline: none; }
.friends-search__field input::placeholder { color: #9aa7b9; }
.friends-search__field button,
.friend-action { min-height: 40px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; transition: border-color .16s ease,background-color .16s ease,color .16s ease,transform .12s ease; }
.friends-search__field button { min-width: 96px; border-color: var(--navy); background: var(--navy); color: #fff; }
.friends-search__field button:hover,
.friend-action--primary:hover { background: #15365f; }
.friends-search__field button:active,
.friend-action:active { transform: translateY(1px); }
.friends-search__field button:disabled,
.friend-action:disabled { cursor: wait; opacity: .62; }
.friends-search > p { margin: 7px 0 0; color: var(--slate-2); font-size: 9px; font-weight: 650; }
.friends-search__status { min-height: 0; margin-top: 0; color: var(--slate-2); font-size: 10px; font-weight: 750; }
.friends-search__status:not(:empty) { min-height: 16px; margin-top: 8px; }
.friends-search__status[data-state="error"] { color: #9d2e2e; }
.friends-search__status[data-state="success"] { color: #0d6a58; }

.friends-search-results { margin-top: 14px; overflow: hidden; border: 1px solid #b9d7d0; border-radius: 9px; background: rgba(248,253,251,.98); }
.friends-search-results__head,
.friends-list-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.friends-search-results__head { padding: 14px 16px; border-bottom: 1px solid #d5e8e3; }
.friends-search-results__head span,
.friends-search-results__head strong { display: inline; font-size: 11px; }
.friends-search-results__head span { margin-right: 5px; color: var(--slate-2); }
.friends-search-results__head strong { color: var(--navy); }
.friends-search-results__head button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--slate); cursor: pointer; }
.friends-search-results__head button:hover { background: #e9f4f1; color: var(--navy); }
.friends-search-results__head svg { width: 17px; height: 17px; }

.friends-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 18px 0 10px; }
.friends-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.8); color: var(--slate); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.friends-tab b { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 5px; background: #edf1f6; color: var(--slate); font-size: 9px; }
.friends-tab:hover { border-color: #b8c6d8; color: var(--navy); }
.friends-tab.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.friends-tab.is-active b { background: rgba(255,255,255,.16); color: #fff; }

.friends-list-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(10,27,52,.045); }
.friends-list-panel__head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.friends-list-panel__head h2 { margin: 0; color: var(--navy); font-family: var(--font-d); font-size: 15px; }
.friends-list-panel__head p { margin: 3px 0 0; color: var(--slate-2); font-size: 9px; }
.friends-search-results .friends-list { background: #fff; }

.friend-card { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 82px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.friend-card:last-child { border-bottom: 0; }
.friend-card__avatar { display: grid; width: 54px; height: 54px; place-items: center; overflow: hidden; border: 1px solid rgba(10,27,52,.12); border-radius: 7px; background: #edf4fc; color: var(--navy); font-family: var(--font-d); font-size: 20px; font-weight: 850; }
.friend-card__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.friend-card__identity { min-width: 0; }
.friend-card__identity strong { display: block; overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.friend-card__identity p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: var(--slate-2); font-size: 9px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.friend-card__contacts { display: flex; min-width: 0; margin-top: 9px; flex-wrap: wrap; gap: 6px; }
.friend-card__contact { display: grid; min-width: 0; max-width: min(100%, 290px); grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 6px; padding: 6px 8px; border: 1px solid #d9e3ee; border-radius: 5px; background: #f8fafc; color: var(--navy); text-decoration: none; transition: border-color .16s ease,background-color .16s ease; }
.friend-card__contact:hover { border-color: #aabed4; background: #f0f5fa; }
.friend-card__contact:focus-visible { outline: 2px solid #77aef0; outline-offset: 2px; }
.friend-card__contact span { color: var(--slate-2); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.friend-card__contact b { min-width: 0; overflow: hidden; color: var(--navy); font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.friend-card__actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.friend-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; white-space: nowrap; }
.friend-action svg,
.friend-card__sent svg { width: 15px; height: 15px; }
.friend-action--primary { border-color: var(--navy); background: var(--navy); color: #fff; }
.friend-action--quiet { border-color: transparent; background: transparent; color: var(--slate); }
.friend-action--quiet:hover { background: #f1f4f8; color: var(--navy); }
.friend-action--icon { position: relative; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-color: transparent; background: transparent; }
.friend-action--icon svg { width: 18px; height: 18px; }
.friend-action--remove { color: var(--slate); }
.friend-action--remove:hover { border-color: #d6e0eb; background: #f1f5f9; color: var(--navy); }
.friend-action--danger { border-color: transparent; background: transparent; color: #9d2e2e; }
.friend-action--danger:hover { background: #fff2f2; }
.friend-action--unblock { border-color: #b9d7d0; background: #f4fbf8; color: #0d6a58; }
.friend-action--unblock:hover { border-color: #82b9ad; background: #eaf7f2; }
.friend-action__tooltip { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 4; width: max-content; max-width: 190px; padding: 6px 8px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 9px; font-weight: 780; line-height: 1.25; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .14s ease,transform .14s ease; }
.friend-action__tooltip::after { content: ''; position: absolute; top: 100%; right: 13px; border: 4px solid transparent; border-top-color: var(--navy); }
.friend-action--icon:hover .friend-action__tooltip,
.friend-action--icon:focus-visible .friend-action__tooltip { opacity: 1; transform: translateY(0); }
.friend-action--icon:focus-visible,
.friends-confirm-dialog button:focus-visible { outline: 2px solid #77aef0; outline-offset: 2px; }
.friend-card__sent { display: inline-flex; align-items: center; gap: 5px; color: #0d6a58; font-size: 9px; font-weight: 850; }

.friends-confirm-dialog { position: fixed; top: 50%; left: 50%; width: min(calc(100vw - 32px), 470px); max-height: calc(100vh - 32px); margin: 0; padding: 0; overflow: auto; border: 0; border-radius: 8px; background: #fff; color: var(--navy); box-shadow: 0 28px 90px rgba(6,19,37,.3); transform: translate(-50%,-50%); }
.friends-confirm-dialog[open] { animation: friends-dialog-in .18s ease-out both; }
.friends-confirm-dialog::backdrop { background: rgba(6,19,37,.6); backdrop-filter: blur(3px); animation: friends-backdrop-in .18s ease-out both; }
.friends-confirm-dialog__surface { position: relative; padding: 26px; }
.friends-confirm-dialog__close { position: absolute; top: 14px; right: 14px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--slate); cursor: pointer; }
.friends-confirm-dialog__close:hover { border-color: var(--line); background: #f4f6f9; color: var(--navy); }
.friends-confirm-dialog__close svg,
.friends-confirm-dialog__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.friends-confirm-dialog__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 7px; background: #edf4fc; color: var(--navy); }
.friends-confirm-dialog__icon[data-tone="danger"] { background: #fff0f0; color: #9d2e2e; }
.friends-confirm-dialog h2 { margin: 16px 42px 0 0; color: var(--navy); font-family: var(--font-d); font-size: 23px; line-height: 1.16; letter-spacing: -.025em; }
.friends-confirm-dialog p { margin: 9px 0 0; color: var(--slate); font-size: 12px; line-height: 1.6; }
.friends-confirm-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }
.friends-confirm-dialog__actions .friend-action { min-width: 104px; }
.friends-confirm-dialog__actions .friend-action--confirm-danger { border-color: #9d2e2e; background: #9d2e2e; color: #fff; }
.friends-confirm-dialog__actions .friend-action--confirm-danger:hover { border-color: #812323; background: #812323; }

@keyframes friends-dialog-in {
  from { opacity: 0; transform: translate(-50%,calc(-50% + 8px)) scale(.985); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}

@keyframes friends-backdrop-in {
  from { background: rgba(6,19,37,0); }
  to { background: rgba(6,19,37,.6); }
}

@media (prefers-reduced-motion: reduce) {
  .friends-confirm-dialog[open],
  .friends-confirm-dialog::backdrop,
  .friend-action__tooltip {
    animation: none;
    transition: none;
  }
}

.friends-empty { display: grid; justify-items: center; padding: 42px 20px; text-align: center; }
.friends-empty > span { display: grid; width: 44px; height: 44px; margin-bottom: 11px; place-items: center; border-radius: 7px; background: #edf4fc; color: var(--navy); }
.friends-empty svg { width: 22px; height: 22px; }
.friends-empty strong { color: var(--navy); font-size: 13px; }
.friends-empty p { max-width: 440px; margin: 6px 0 0; color: var(--slate-2); font-size: 10px; line-height: 1.55; }
.friends-empty .friend-action { margin-top: 14px; }

.friends-skeleton { border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(90deg,rgba(255,255,255,.78),rgba(241,246,252,.95),rgba(255,255,255,.78)); background-size: 220% 100%; animation: profile-loading 1.2s ease-in-out infinite; }
.friends-skeleton--head { min-height: 72px; margin-bottom: 16px; }
.friends-skeleton--search { min-height: 112px; margin-bottom: 18px; }
.friends-skeleton--list { min-height: 280px; }
.friends-shell--error { padding: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

.profile-settings {
  width: min(100%, 1120px);
  margin: 0 auto;
  color: var(--navy);
}

.profile-settings__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.profile-settings__head .crumb {
  justify-content: flex-start;
}

.profile-settings__head h1,
.profile-settings--error h1 {
  margin: 12px 0 7px;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.profile-settings__head h1:focus,
.profile-settings--error h1:focus {
  outline: none;
}

.profile-settings__head p,
.profile-settings--error p {
  max-width: 690px;
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.65;
}

.profile-settings__updated {
  flex: 0 0 auto;
  padding-bottom: 5px;
  color: var(--slate-2);
  font-size: 11px;
  font-weight: 700;
}

.account-profile {
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 28px rgba(10, 27, 52, .055);
}

.account-identity-required {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #f2c5a8;
  border-radius: 7px;
  background: #fff8f1;
  color: var(--navy);
}

.account-identity-required > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: #ffe4d2;
  color: #9b3b17;
}

.account-identity-required svg { width: 20px; height: 20px; }
.account-identity-required strong { display: block; font-family: var(--font-d); font-size: 14px; }
.account-identity-required p { margin: 3px 0 0; color: var(--slate); font-size: 10px; line-height: 1.5; }

.account-profile__head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.account-profile__avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(10, 27, 52, .12);
  border-radius: 8px;
  background: #edf4fc;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
}

.account-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-profile__head h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 18px;
}

.account-profile__head p {
  max-width: 650px;
  margin: 5px 0 0;
  color: var(--slate-2);
  font-size: 11px;
  line-height: 1.55;
}

.account-profile__facts {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
  color: var(--slate-2);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.account-profile__facts strong {
  color: var(--navy);
  font-size: 12px;
}

.account-profile__facts .is-provided {
  color: #0d6a58;
}

.account-profile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-field-with-privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.account-field-with-privacy--wide {
  grid-column: 1 / -1;
}

.account-field {
  display: block;
  min-width: 0;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.account-field input,
.account-field textarea,
.account-field select {
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.account-field input {
  min-height: 42px;
  padding: 8px 10px;
}

.account-field select {
  min-height: 42px;
  padding: 8px 10px;
}

.account-field textarea {
  min-height: 78px;
  padding: 10px;
  resize: vertical;
  line-height: 1.5;
}

.account-field small {
  display: block;
  margin-top: 4px;
  color: var(--slate-2);
  font-size: 8.5px;
  font-weight: 600;
}

.account-field small.account-field__optional {
  display: inline;
  margin: 0 0 0 4px;
  font-size: inherit;
}

.account-privacy {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--slate-2);
}

.account-privacy legend,
.account-privacy--fixed > span {
  display: block;
  margin: 0 0 5px;
  padding: 0;
  color: var(--slate-2);
  font-size: 9px;
  font-weight: 800;
}

.account-privacy__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.account-privacy--four .account-privacy__options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-privacy__options label {
  display: block;
  cursor: pointer;
}

.account-privacy__options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.account-privacy__options label > span,
.account-privacy--fixed strong {
  display: grid;
  width: 100%;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--slate-2);
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.account-privacy--fixed strong {
  width: 42px;
  margin-left: auto;
  color: var(--navy);
}

.account-privacy svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-privacy__options input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.account-privacy__options input:focus-visible + span {
  outline: 2px solid #77aef0;
  outline-offset: 2px;
}

.account-surname-privacy {
  min-width: 0;
  color: var(--slate-2);
  cursor: pointer;
}

.account-surname-privacy__label {
  display: block;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
}

.account-surname-privacy__control {
  min-height: 42px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.account-surname-privacy__control strong {
  color: var(--navy);
  font-size: 9px;
  line-height: 1.2;
}

.account-surname-privacy input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.account-surname-privacy__control i {
  position: relative;
  width: 36px;
  height: 22px;
  flex: 0 0 36px;
  border: 1px solid #cfd8e5;
  border-radius: 11px;
  background: #e7ebf1;
  transition: border-color .16s ease, background-color .16s ease;
}

.account-surname-privacy__control i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 27, 52, .18);
  content: '';
  transition: transform .16s ease;
}

.account-surname-privacy input:checked + i {
  border-color: var(--navy);
  background: var(--navy);
}

.account-surname-privacy input:checked + i::after {
  transform: translateX(14px);
}

.account-surname-privacy input:focus-visible + i {
  outline: 2px solid #77aef0;
  outline-offset: 2px;
}

.account-surname-privacy > small {
  display: block;
  margin-top: 4px;
  color: var(--slate-2);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.35;
}

.account-reputation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.account-reputation__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  background: #fff4cf;
  color: #9a6900;
  font-size: 18px;
}

.account-reputation span,
.account-reputation strong,
.account-reputation small {
  display: block;
}

.account-reputation span {
  color: var(--slate-2);
  font-size: 9px;
  font-weight: 800;
}

.account-reputation strong {
  margin-top: 1px;
  color: var(--navy);
  font-size: 13px;
}

.account-reputation small {
  margin-top: 2px;
  color: var(--slate-2);
  font-size: 8px;
  line-height: 1.35;
}

.account-phone-field {
  display: grid;
  grid-template-columns: minmax(260px, 430px);
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d6e0ec;
  border-radius: 7px;
  background: #f7faff;
}

.account-phone-field__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.account-phone-field__head strong,
.account-phone-field__head p {
  display: block;
}

.account-phone-field__head strong {
  color: var(--navy);
  font-size: 11px;
}

.account-phone-field__head p {
  max-width: 650px;
  margin: 3px 0 0;
  color: var(--slate-2);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.account-phone-field__head > span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(10, 27, 52, .12);
  border-radius: 4px;
  background: #fff;
  color: var(--slate-2);
  font-size: 8px;
  font-weight: 850;
}

.account-phone-field__head > span.is-provided {
  border-color: rgba(13, 106, 88, .18);
  color: #0d6a58;
}

.account-phone-field > label {
  display: block;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.account-phone-field__input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.account-phone-field__input:focus-within {
  border-color: #77aef0;
  box-shadow: 0 0 0 3px rgba(119, 174, 240, .18);
}

.account-phone-field__input:has(input[aria-invalid="true"]) {
  border-color: #b52f2f;
}

.account-phone-field__input b {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid var(--line);
  background: #f2f6fb;
  color: var(--navy);
  font-size: 11px;
}

.account-phone-field__input input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  outline: 0;
}

.account-phone-field > small {
  display: block;
  color: var(--slate-2);
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1.45;
}
.account-contact-privacy {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.account-contact-privacy > header > span,
.account-contact-privacy > header > p,
.account-contact-privacy__item strong,
.account-contact-privacy__item small {
  display: block;
}

.account-contact-privacy > header > span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 850;
}

.account-contact-privacy > header > p {
  margin: 3px 0 0;
  color: var(--slate-2);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.account-contact-privacy__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.account-contact-privacy__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #dfe6ef;
  border-radius: 6px;
  background: #fff;
}

.account-contact-privacy__item strong {
  color: var(--navy);
  font-size: 10px;
}

.account-contact-privacy__item small {
  margin-top: 3px;
  color: var(--slate-2);
  font-size: 8.5px;
  line-height: 1.4;
}

.account-contact-privacy .account-privacy__options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-discovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  cursor: pointer;
}
.account-discovery__copy strong,
.account-discovery__copy small { display: block; }
.account-discovery__copy strong { color: var(--navy); font-size: 11px; }
.account-discovery__copy small {
  max-width: 680px;
  margin-top: 3px;
  color: var(--slate-2);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}
.account-discovery input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.account-discovery__switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  border: 1px solid #cfd8e5;
  border-radius: 12px;
  background: #e7ebf1;
  transition: border-color .16s ease, background-color .16s ease;
}
.account-discovery__switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 27, 52, .18);
  content: '';
  transition: transform .16s ease;
}
.account-discovery input:checked + .account-discovery__switch { border-color: var(--navy); background: var(--navy); }
.account-discovery input:checked + .account-discovery__switch::after { transform: translateX(18px); }
.account-discovery input:focus-visible + .account-discovery__switch { outline: 2px solid #77aef0; outline-offset: 2px; }

.account-photo {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 142px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.account-photo__preview {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(10, 27, 52, .12);
  border-radius: 7px;
  background: #edf4fc;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 800;
}

.account-photo__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-photo__copy > span {
  display: block;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.account-photo__copy p {
  margin: 3px 0 8px;
  color: var(--slate-2);
  font-size: 9px;
}

.account-photo__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-photo__change,
.account-photo__actions button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.account-photo__change {
  display: inline-flex;
  align-items: center;
}

.account-photo__change input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.account-photo__change:focus-within {
  outline: 2px solid #77aef0;
  outline-offset: 2px;
}

.account-photo__actions button {
  color: #8d2424;
}

.account-photo__copy small {
  display: block;
  min-height: 14px;
  margin-top: 6px;
  color: var(--slate-2);
  font-size: 8.5px;
  font-weight: 700;
}

.account-photo__copy small[data-kind="success"] {
  color: #0d6a58;
}

.account-photo__copy small[data-kind="error"] {
  color: #8d2424;
}

.account-field input:focus,
.account-field textarea:focus,
.account-field select:focus {
  border-color: #77aef0;
  box-shadow: 0 0 0 3px rgba(119, 174, 240, .18);
}

.account-profile__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.account-profile__status {
  color: var(--slate-2);
  font-size: 10px;
  font-weight: 700;
}

.account-profile__status[data-kind="success"] {
  color: #0d6a58;
}

.account-profile__status[data-kind="error"] {
  color: #8d2424;
}

.account-profile[data-busy="true"] {
  opacity: .72;
}

.preference-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .76);
}

.preference-summary > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 15px 18px;
}

.preference-summary > div + div {
  border-left: 1px solid var(--line);
}

.preference-summary strong {
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 22px;
}

.preference-summary span {
  color: var(--slate-2);
  font-size: 11px;
  font-weight: 700;
}

.preferences-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preference-section {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 28px rgba(10, 27, 52, .055);
}

.preference-section--wide {
  grid-column: 1 / -1;
}

.preference-section__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.preference-section__head > span {
  flex: 0 0 auto;
  color: var(--coral);
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.preference-section h2,
.preference-learned-group h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.preference-section__head p,
.preference-learned-group p {
  margin: 4px 0 0;
  color: var(--slate-2);
  font-size: 11px;
  line-height: 1.5;
}

.preference-tag-editor + .preference-tag-editor {
  margin-top: 17px;
}

.preference-tag-editor > label,
.preference-select,
.preference-notes {
  display: block;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.preference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 8px;
  margin: 8px 0;
}

.preference-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 8px 5px 10px;
  border: 1px solid rgba(10, 27, 52, .15);
  border-radius: 5px;
  background: #f6f9fd;
  color: var(--navy);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.preference-tag:hover {
  border-color: rgba(255, 107, 92, .55);
  background: #fff6f4;
}

.preference-tag > span:last-child {
  color: var(--coral);
  font-size: 15px;
  line-height: 1;
}

.preference-tag-input {
  display: flex;
  gap: 7px;
}

.preference-tag-input input,
.preference-field-grid input,
.preference-select select,
.preference-notes textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.preference-tag-input input {
  min-height: 38px;
  padding: 8px 11px;
}

.preference-tag-input button {
  min-width: 72px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.preference-tag-input input:focus,
.preference-field-grid input:focus,
.preference-select select:focus,
.preference-notes textarea:focus {
  border-color: #77aef0;
  box-shadow: 0 0 0 3px rgba(119, 174, 240, .18);
}

.preference-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.preference-choice-grid--single {
  grid-template-columns: 1fr;
}

.preference-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.preference-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.preference-choice span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--slate);
  font-size: 11px;
  font-weight: 700;
}

.preference-choice input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.preference-choice input:focus-visible + span {
  outline: 2px solid #77aef0;
  outline-offset: 2px;
}

.preference-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preference-field-grid label {
  position: relative;
  color: var(--slate-2);
  font-size: 10px;
  font-weight: 800;
}

.preference-field-grid input {
  min-height: 42px;
  margin-top: 5px;
  padding: 8px 38px 8px 10px;
}

.preference-field-grid label > span {
  position: absolute;
  right: 10px;
  bottom: 13px;
  color: var(--slate-2);
  font-size: 9px;
  pointer-events: none;
}

.preference-field--wide {
  grid-column: 1 / -1;
}

.preference-select {
  margin-top: 15px;
}

.preference-select select {
  min-height: 42px;
  margin-top: 6px;
  padding: 8px 10px;
}

.preference-range {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 9px;
  color: var(--slate-2);
  font-size: 9px;
  font-weight: 800;
}

.preference-range input {
  width: 100%;
  accent-color: var(--coral);
}

.preference-range output {
  min-width: 38px;
  color: var(--navy);
  font-size: 11px;
  text-align: right;
}

.preference-notes {
  margin-top: 18px;
}

.preference-notes textarea {
  min-height: 86px;
  margin-top: 6px;
  padding: 10px;
  resize: vertical;
  line-height: 1.5;
}

.preference-notes > span {
  display: block;
  margin-top: 4px;
  color: var(--slate-2);
  font-size: 9px;
  font-weight: 600;
  text-align: right;
}

.preference-section--learned {
  background: rgba(245, 249, 255, .92);
}

.preference-learned-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preference-learned-group {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(10, 27, 52, .10);
  border-radius: 7px;
  background: rgba(255, 255, 255, .86);
}

.preference-learned-group h3 {
  font-size: 13px;
}

.preference-learned-group ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.preference-learned-group li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(10, 27, 52, .07);
}

.preference-learned-group li > span {
  min-width: 0;
}

.preference-learned-group strong,
.preference-learned-group small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preference-learned-group strong {
  color: var(--navy);
  font-size: 11px;
}

.preference-learned-group small {
  margin-top: 2px;
  color: var(--slate-2);
  font-size: 8.5px;
}

.preference-learned-group li > button {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.preference-learned-group .preference-learned-empty {
  display: block;
  color: var(--slate-2);
  font-size: 10px;
  line-height: 1.55;
}

.preference-learned-grid--evidence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preference-learned-grid--evidence li {
  flex-wrap: wrap;
  align-items: flex-start;
}

.preference-learned-grid--evidence strong {
  font-size: 13px;
}

.preference-learned-grid--evidence small {
  overflow: visible;
  white-space: normal;
  font-size: 11px;
  line-height: 1.45;
}

.preference-learned-grid--evidence li > button {
  font-size: 11px;
}

.preferences-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 2px 10px;
}

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

.preferences-reset,
.profile-settings__footer button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--slate-2);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.preferences-reset:hover {
  color: #b52f2f;
}

.preferences-reset-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(181, 47, 47, .22);
  border-radius: 7px;
  background: #fff7f6;
}

.preferences-reset-confirm[hidden] {
  display: none;
}

.preferences-reset-confirm strong,
.preferences-reset-confirm span {
  display: block;
}

.preferences-reset-confirm strong {
  color: var(--navy);
  font-size: 12px;
}

.preferences-reset-confirm span {
  margin-top: 3px;
  color: var(--slate);
  font-size: 10px;
  line-height: 1.5;
}

.preferences-reset-confirm > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.preferences-status {
  min-height: 0;
  color: var(--slate);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.preferences-status.is-visible {
  min-height: 34px;
  margin-top: 9px;
  padding: 9px 11px;
  border-left: 3px solid var(--navy);
  background: rgba(255, 255, 255, .78);
}

.preferences-status[data-kind="success"] {
  border-left-color: #16866f;
  color: #0d6a58;
}

.preferences-status[data-kind="error"] {
  border-left-color: #b52f2f;
  color: #8d2424;
}

.account-deletion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(145, 38, 38, .18);
  border-radius: 7px;
  background: rgba(255, 250, 249, .9);
}

.account-deletion > div > span,
.account-deletion h2,
.account-deletion p {
  display: block;
  margin: 0;
}

.account-deletion > div > span,
.account-deletion-dialog__eyebrow {
  color: #9b2b2b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-deletion h2 {
  margin-top: 3px;
  color: var(--navy);
  font-size: 15px;
}

.account-deletion p {
  max-width: 780px;
  margin-top: 5px;
  color: var(--slate);
  font-size: 10px;
  line-height: 1.55;
}

.account-deletion__open {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(155, 43, 43, .42);
  border-radius: 5px;
  background: #fff;
  color: #922727;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.account-deletion__open:hover,
.account-deletion__open:focus-visible {
  border-color: #922727;
  background: #fff5f3;
}

.account-deletion-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 24px 72px rgba(7, 27, 52, .28);
  transform: translate(-50%, -50%);
}

.account-deletion-dialog::backdrop {
  background: rgba(5, 20, 40, .58);
  backdrop-filter: blur(3px);
}

.account-deletion-dialog__form {
  position: relative;
  padding: 28px;
}

.account-deletion-dialog__close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.account-deletion-dialog h2 {
  margin: 7px 44px 0 0;
  font-size: 25px;
  letter-spacing: -.035em;
}

.account-deletion-dialog p {
  margin: 10px 0 20px;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.6;
}

.account-deletion-dialog label {
  display: block;
  color: var(--navy);
  font-size: 10px;
  font-weight: 750;
}

.account-deletion-dialog input {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.account-deletion-dialog input:focus {
  border-color: #9b2b2b;
  outline: 3px solid rgba(155, 43, 43, .12);
  outline-offset: 0;
}

.account-deletion-dialog__status {
  min-height: 18px;
  margin-top: 8px;
  color: var(--slate);
  font-size: 9.5px;
  font-weight: 700;
}

.account-deletion-dialog__status[data-kind="error"] {
  color: #922727;
}

.account-deletion-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.account-deletion-dialog__confirm {
  min-width: 150px;
  min-height: 44px;
  padding: 10px 16px;
  border-color: #922727;
  background: #922727;
  color: #fff;
  white-space: nowrap;
}

.account-deletion-dialog__confirm:hover:not(:disabled) {
  background: #791f1f;
}

.account-deletion-dialog__confirm:disabled {
  border-color: #d7dce4;
  background: #e9edf2;
  color: #8793a4;
  cursor: not-allowed;
}

.profile-settings__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--slate-2);
  font-size: 9px;
}

.profile-settings__footer button {
  color: var(--navy);
}

.preferences-form[data-busy="true"] {
  opacity: .72;
}

.profile-settings--loading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-skeleton,
.profile-skeleton-grid > div {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(255,255,255,.78), rgba(241,246,252,.95), rgba(255,255,255,.78));
  background-size: 220% 100%;
  animation: profile-loading 1.2s ease-in-out infinite;
}

.profile-skeleton--heading {
  min-height: 88px;
}

.profile-skeleton--summary {
  min-height: 54px;
}

.profile-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@keyframes profile-loading {
  to { background-position: -120% 0; }
}

.profile-settings--error {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

@media (max-width: 760px) {
  .product-mobile .product-route-state--friends,
  .product-route-state--friends {
    padding: 22px 14px 104px;
  }

  .friends-shell__head {
    display: block;
    margin-bottom: 17px;
  }

  .friends-shell__head h1 {
    font-size: 29px;
  }

  .friends-shell__head p {
    font-size: 11px;
    line-height: 1.5;
  }

  .friends-shell__privacy {
    margin-top: 10px;
  }

  .friends-search {
    padding: 15px;
  }

  .friends-search__field {
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .friends-search__field button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
  }

  .friends-tabs {
    display: flex;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .friends-tabs::-webkit-scrollbar {
    display: none;
  }

  .friends-tab {
    min-width: 112px;
    flex: 0 0 auto;
  }

  .friend-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }

  .friend-card__avatar {
    width: 48px;
    height: 48px;
  }

  .friend-card__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding-top: 2px;
  }

  .friend-card__contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .friend-card__contact {
    width: 100%;
    max-width: none;
  }

  .friend-card__actions .friend-action--primary {
    flex: 1 1 auto;
  }

  .friend-card__actions .friend-action--icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .friend-action__tooltip {
    display: none;
  }

  .friend-card__sent {
    margin-right: auto;
  }

  .friends-search-results__head {
    align-items: flex-start;
  }

  .friends-search-results__head span,
  .friends-search-results__head strong {
    display: block;
  }

  .friends-search-results__head strong {
    margin-top: 2px;
  }

  .friends-confirm-dialog__surface {
    padding: 22px 18px 18px;
  }

  .friends-confirm-dialog h2 {
    font-size: 21px;
  }

  .friends-confirm-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .friends-confirm-dialog__actions .friend-action {
    width: 100%;
    min-width: 0;
  }

  .account-discovery {
    gap: 12px;
  }

  .product-mobile .product-route-state--profile,
  .product-route-state--profile {
    padding: 22px 14px 92px;
  }

  .profile-settings__head {
    display: block;
  }

  .profile-settings__updated {
    display: block;
    margin-top: 10px;
  }

  .account-profile {
    padding: 18px 15px;
  }

  .account-profile__head {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .account-profile__avatar {
    width: 48px;
    height: 48px;
  }

  .account-profile__facts {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
  }

  .account-profile__grid,
  .account-field-with-privacy {
    grid-template-columns: 1fr;
  }

  .account-photo {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .account-photo__preview {
    width: 60px;
    height: 60px;
  }

  .account-photo .account-privacy {
    grid-column: 1 / -1;
  }

  .account-phone-field {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .account-phone-field__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .account-contact-privacy__grid,
  .account-contact-privacy__item {
    grid-template-columns: 1fr;
  }

  .account-contact-privacy__item {
    gap: 9px;
  }

  .account-privacy--fixed strong {
    margin-left: 0;
  }

  .account-field-with-privacy--wide {
    grid-column: auto;
  }

  .account-profile__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-profile__actions .btn {
    width: 100%;
  }

  .preference-summary {
    grid-template-columns: 1fr;
  }

  .preference-summary > div {
    padding: 11px 14px;
  }

  .preference-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .preferences-layout,
  .preference-learned-grid,
  .profile-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .preference-section--wide {
    grid-column: auto;
  }

  .preference-section {
    padding: 18px 15px;
  }

  .preference-choice-grid {
    grid-template-columns: 1fr;
  }

  .preference-range {
    grid-template-columns: auto 1fr auto;
  }

  .preference-range output {
    grid-column: 1 / -1;
    text-align: center;
  }

  .preferences-actions,
  .preferences-reset-confirm {
    align-items: stretch;
    flex-direction: column;
  }

  .preferences-actions__primary,
  .preferences-reset-confirm > div:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .preferences-actions .btn,
  .preferences-reset-confirm .btn {
    width: 100%;
  }

  .account-deletion {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .account-deletion__open {
    width: 100%;
  }

  .account-deletion-dialog__form {
    padding: 24px 18px 18px;
  }

  .account-deletion-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-deletion-dialog__actions .btn {
    width: 100%;
  }

  .profile-settings__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-skeleton,
  .profile-skeleton-grid > div {
    animation: none;
  }
}

.event-detail-view {
  min-height: calc(100vh - 64px);
  padding: 34px clamp(22px, 5vw, 72px) 58px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 82% 10%, rgba(230, 240, 255, .76), transparent 27%),
    linear-gradient(180deg, #fff 0%, #f6f8fb 100%);
}

.event-detail-view:not([hidden]) {
  display: block;
}

.event-detail-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.event-detail-back {
  width: fit-content;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.event-detail-back svg {
  width: 14px;
  height: 14px;
}

.event-detail-card {
  border: 1px solid rgba(10, 27, 52, .1);
  border-radius: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 27, 52, .12);
}

.event-detail-media {
  position: relative;
  min-height: 610px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--navy);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .8), transparent 35%),
    linear-gradient(150deg, #e6f0ff, #cbd9e8);
  font-family: var(--font-d);
  font-size: 76px;
  font-weight: 800;
}

.event-detail-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(10, 27, 52, .22));
  pointer-events: none;
}

.event-detail-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-media__fallback {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(10, 27, 52, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 32px rgba(10, 27, 52, .12);
}

.event-detail-media .event-detail-media__fallback img {
  position: static;
  inset: auto;
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.event-detail-content {
  min-width: 0;
  padding: 40px 38px 34px;
  display: flex;
  flex-direction: column;
}

.event-detail-category {
  width: fit-content;
  margin-bottom: 11px;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.event-detail-content h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 780;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.event-detail-content h1:focus,
.event-detail-state h1:focus {
  outline: none;
}

.event-detail-organizer {
  margin: 14px 0 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.5;
}

.event-detail-organizer strong {
  color: var(--navy);
}

.event-detail-facts {
  margin-top: 27px;
  padding: 18px 0;
  border-top: 1px solid rgba(10, 27, 52, .09);
  border-bottom: 1px solid rgba(10, 27, 52, .09);
  display: grid;
  gap: 13px;
}

.event-detail-facts > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.event-detail-facts svg {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 2px;
  color: var(--teal-dark);
}

.event-detail-facts span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.event-detail-facts small {
  color: var(--slate-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-detail-facts strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
}

.event-detail-facts em {
  margin-top: 2px;
  color: var(--slate);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.35;
}

.event-detail-description {
  margin-top: 24px;
}

.event-detail-description h2 {
  margin: 0 0 9px;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 760;
}

.event-detail-description p {
  margin: 0 0 8px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.65;
}

.event-attendance {
  margin-top: 24px;
  padding: 17px;
  border: 1px solid rgba(10, 27, 52, .12);
  border-left: 3px solid var(--teal-dark);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(230, 240, 255, .62), rgba(255, 255, 255, .96));
}

.event-attendance__copy {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.event-attendance__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: rgba(13, 106, 88, .1);
}

.event-attendance__icon svg {
  width: 17px;
  height: 17px;
}

.event-attendance__copy small {
  display: block;
  color: var(--slate-2);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.event-attendance__copy h2,
.event-attendance-dialog h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 17px;
  line-height: 1.2;
}

.event-attendance__copy p,
.event-attendance-dialog p {
  margin: 6px 0 0;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.55;
}

.event-attendance > .btn {
  min-height: 42px;
  margin-top: 14px;
}

.event-attendance__status {
  min-height: 15px;
  margin: 8px 0 0;
  color: var(--slate-2);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.event-attendance__status[data-kind="success"] {
  color: #0d6a58;
}

.event-attendance__status[data-kind="error"] {
  color: #8d2424;
}

.event-attendance-dialog {
  width: min(calc(100vw - 32px), 480px);
  max-height: calc(100vh - 32px);
  margin: 0;
  padding: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 26px 90px rgba(10, 27, 52, .28);
}

.event-attendance-dialog::backdrop {
  background: rgba(6, 19, 37, .58);
  backdrop-filter: blur(3px);
}

.event-attendance-dialog > div {
  padding: 25px;
}

.event-attendance-dialog h2 {
  margin-top: 13px;
  font-size: 24px;
}

.event-attendance-dialog p {
  font-size: 13px;
}

.event-attendance-dialog__actions {
  margin-top: 21px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.event-detail-actions {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-detail-actions .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.event-detail-note {
  margin: 16px 0 0;
  color: var(--slate-2);
  font-size: 11px;
  line-height: 1.55;
}

.event-detail-claim {
  margin: 8px 0 0;
  color: var(--slate-2);
  font-size: 11px;
  line-height: 1.55;
}

.event-detail-claim a {
  color: var(--navy);
  font-weight: 750;
  text-underline-offset: 2px;
}

.event-detail-claim a:hover {
  text-decoration-thickness: 2px;
}

.event-detail-action-status {
  min-height: 0;
  margin: 10px 0 0;
  color: var(--slate-2);
  font-size: 10px;
  font-weight: 700;
}

.event-detail-action-status[data-kind="success"] {
  color: #0d6a58;
}

.event-detail-action-status[data-kind="error"] {
  color: #8d2424;
}

.event-detail-loading {
  min-height: 560px;
  border: 1px solid rgba(10, 27, 52, .09);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #fff;
}

.event-detail-loading__media,
.event-detail-loading > div span {
  position: relative;
  overflow: hidden;
  background: #edf1f6;
}

.event-detail-loading__media::after,
.event-detail-loading > div span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .72), transparent 70%);
  transform: translateX(-100%);
  animation: eventDetailLoading 1.35s ease infinite;
}

.event-detail-loading > div {
  padding: 56px 42px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.event-detail-loading > div span {
  height: 16px;
  border-radius: 3px;
}

.event-detail-loading > div span:nth-child(1) {
  width: 32%;
}

.event-detail-loading > div span:nth-child(2) {
  width: 92%;
  height: 42px;
}

.event-detail-loading > div span:nth-child(3) {
  width: 66%;
}

.event-detail-loading > div span:nth-child(4) {
  width: 78%;
  margin-top: 38px;
}

.event-detail-loading p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.event-detail-shell--state {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
}

.event-detail-state {
  width: min(100%, 560px);
  padding: 36px;
  border: 1px solid rgba(10, 27, 52, .1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 58px rgba(10, 27, 52, .1);
  text-align: center;
}

.event-detail-state h1 {
  margin: 11px 0 10px;
  color: var(--navy);
  font-family: var(--font-d);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.event-detail-state p {
  margin: 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.65;
}

.event-detail-state .event-detail-actions {
  justify-content: center;
}

@keyframes eventDetailLoading {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 760px) {
  .product-mobile .event-detail-view {
    min-height: 0;
    padding: 18px 13px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .event-detail-back {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .event-detail-card {
    grid-template-columns: 1fr;
  }

  .event-detail-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    font-size: 52px;
  }

  .event-detail-content {
    padding: 23px 18px 22px;
  }

  .event-detail-content h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .event-detail-facts {
    margin-top: 22px;
    padding: 15px 0;
  }

  .event-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .event-detail-actions .btn {
    width: 100%;
  }

  .event-attendance > .btn {
    width: 100%;
  }

  .event-attendance-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .event-attendance-dialog__actions .btn {
    width: 100%;
  }

  .event-detail-loading {
    min-height: 540px;
    grid-template-columns: 1fr;
  }

  .event-detail-loading__media {
    min-height: 220px;
  }

  .event-detail-loading > div {
    padding: 30px 22px;
  }

  .event-detail-state {
    padding: 29px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-detail-loading__media::after,
  .event-detail-loading > div span::after {
    animation: none;
  }
}

.product-role-switch {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 120;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(10, 27, 52, .10);
  border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 26px rgba(10, 27, 52, .14);
  backdrop-filter: blur(12px);
}

.product-role-switch button {
  border: 0;
  border-radius: 5px;
  padding: 8px 11px;
  background: transparent;
  color: var(--slate);
  font: 700 11px/1 var(--font-b);
  cursor: pointer;
}

.product-role-switch button.on {
  background: var(--navy);
  color: #fff;
}

.product-mode a,
.product-mode button,
.product-mode .btn,
.product-mode .tab,
.product-mode .icon-act,
.product-mode .back,
.product-mode .plan-card,
.product-mode .mini-plan {
  cursor: pointer;
}

.product-mode :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 70%, white);
  outline-offset: 3px;
}

/* Pole planera ma własny stan focus na całym komponencie. */
.product-mode [data-chat-input] [data-typewrite]:focus-visible {
  outline: none;
}

.product-mode [data-chat-input]:focus-within {
  border-color: var(--focus);
  box-shadow: var(--shadow-m);
}

@media (max-width: 820px) {
  .product-panel .dash {
    display: block;
    min-height: 100dvh;
  }

  .product-panel .dash-side {
    position: sticky;
    top: 0;
    z-index: 105;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 56px 10px 10px;
    display: block;
  }

  .product-panel .dash-side .logo,
  .product-panel .dash-side > div:last-child,
  .product-panel .dash-nav .sect {
    display: none !important;
  }

  .product-panel .dash-nav {
    display: flex;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
  }

  .product-panel .dash-nav::-webkit-scrollbar {
    display: none;
  }

  .product-panel .dash-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 11px;
    white-space: nowrap;
  }

  .product-panel .dash-main {
    min-width: 0;
    padding: 18px 14px 40px;
    overflow: hidden;
  }

  .product-panel .dash-head {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .product-panel .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .product-panel .dash-main [style*="grid-template-columns"]:not(.stat-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .product-panel .panel {
    min-width: 0;
    overflow-x: auto;
  }

  .product-panel .table {
    min-width: 700px;
  }

  .product-panel .modal {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .product-panel .modal-veil {
    padding: 14px;
  }

  .product-panel .product-role-switch {
    position: fixed;
    top: 9px;
    left: 10px;
    right: auto;
  }

  .product-panel .wc-hintbar {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-mode *,
  .product-mode *::before,
  .product-mode *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
