@font-face { font-family: 'GT Logo'; font-display: block; src: url(/fonts/gt-logo.ttf) format('truetype'); }
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}
@font-face { font-family: Oswald; font-weight: 700; font-display: swap; src: url(/fonts/oswald-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Great Vibes'; font-weight: 400; font-display: swap; src: url(/fonts/great-vibes-cyrillic.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Oswald; font-weight: 700; font-display: swap; src: url(/fonts/oswald-latin.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Great Vibes'; font-weight: 400; font-display: swap; src: url(/fonts/great-vibes-latin.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }


@font-face { font-family: Manrope; src: url(/fonts/manrope-cyrillic.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  /* Paper background, pale pink countries, hot pink pins; condensed caps + script accent; photos as polaroids. */
  color-scheme: light;
  --sea: #f0f1ec;
  --land: #ffd4ec;
  --coast: #ffb3dc;
  --ink: #1b1a19;
  --muted: #67625e;
  --line: #e3e2dc;
  --card: #ffffff;
  --blush: #ffe6f4;
  --pink: #e8338f;
  --pink-deep: #c01f74;
  --brand: #ff7eca;
  --brand-ink: #ef4fa6;
  --amber-bg: #fff3dc;
  --amber: #8a5a00;
  --red-bg: #fde8e6;
  --red: #b3261e;
  --green-bg: #e3f5ea;
  --green: #17693a;
  --display: Oswald, Impact, 'Arial Narrow', sans-serif;
  --script: 'Great Vibes', 'Snell Roundhand', cursive;
  --body: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(40, 20, 30, .14);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--sea); color: var(--ink); font: 500 15px/1.45 var(--body); overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pink-deep); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ---- map ---- */
.map { position: fixed; inset: 0; touch-action: none; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; }
.map.dragging { cursor: grabbing; }
.map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; pointer-events: none; padding: 0; border: 0; background: none; will-change: transform; }
.pin-dot {
  display: grid; place-items: center; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; background: var(--pink); color: #fff; border: 2px solid #fff;
  font: 700 calc(var(--s) * .34)/1 var(--display); box-shadow: 0 3px 10px rgba(173, 19, 83, .35);
}
.pin-label {
  position: absolute; top: calc(var(--s) / 2 + 2px); left: 0; transform: translateX(-50%); white-space: nowrap;
  font: 700 11px/1.2 var(--body); color: var(--ink);
  text-shadow: 0 0 3px var(--sea), 0 0 3px var(--sea), 0 0 3px var(--sea), 0 0 6px var(--sea);
}
.zoom { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: grid; gap: 6px; z-index: 2; }
.zoom button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 20px; cursor: pointer; box-shadow: var(--shadow); }
@media (pointer: coarse) { .zoom { display: none; } }

/* ---- top bar ---- */
.topbar {
  position: fixed; top: calc(var(--safe-t) + 12px); left: 16px; right: 16px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { font: 800 15px/1 var(--display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255, 255, 255, .86); border-radius: 999px; backdrop-filter: blur(8px); }
.brand i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.pill-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(8px); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px;
}
.badge { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 800; }

/* ---- home panel ---- */
.panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--card);
  border-radius: 24px 24px 0 0; box-shadow: 0 -8px 34px rgba(90, 20, 55, .12);
  padding: 20px 16px calc(var(--safe-b) + 16px);
}
.panel h1 { font: 700 19px/1.25 var(--display); letter-spacing: -.015em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 16px 0 14px; }
.stat b { display: block; font: 700 22px/1.1 var(--display); color: var(--pink-deep); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--blush); font-weight: 700; font-size: 13px; cursor: pointer; }
.chip em { font-style: normal; color: var(--pink-deep); margin-left: 3px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }

@media (min-width: 760px) {
  .panel { left: 20px; right: auto; bottom: 20px; width: 400px; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
  .panel h1 { font-size: 22px; }
  .chips { flex-wrap: wrap; margin: 0 0 18px; padding: 0; overflow: visible; }
}

/* ---- buttons, status ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 18px; width: 100%;
  border: 0; border-radius: 14px; background: var(--pink); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--pink-deep); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.soft { background: var(--blush); color: var(--pink-deep); }
.btn.soft:hover { background: #fbe0e7; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 11px; width: auto; }
.btn.danger { background: var(--red-bg); color: var(--red); }
.linklike { border: 0; background: none; padding: 0; color: var(--pink-deep); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.status { display: block; padding: 13px 14px; border-radius: 14px; background: var(--amber-bg); color: var(--amber); text-decoration: none; }
.status b { display: block; font-weight: 800; }
.status span { font-size: 14px; }
.status.warn { background: var(--red-bg); color: var(--red); }
.status.ok { background: var(--green-bg); color: var(--green); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--amber-bg); color: var(--amber); white-space: nowrap; }
.tag.confirmed, .tag.approved { background: var(--green-bg); color: var(--green); }
.tag.rejected, .tag.hidden { background: var(--red-bg); color: var(--red); }
.tag.upcoming { background: var(--blush); color: var(--pink-deep); }

/* ---- city sheet ---- */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; max-height: 78dvh; z-index: 4; background: var(--sea);
  border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(90, 20, 55, .2); display: flex; flex-direction: column;
  animation: rise .22s ease-out;
}
@keyframes rise { from { transform: translateY(24px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 16px 12px; }
.sheet-head h2 { font: 700 18px/1.25 var(--display); }
.sheet-head p { color: var(--muted); font-weight: 600; font-size: 14px; }
.close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blush); font-size: 15px; cursor: pointer; color: var(--pink-deep); text-decoration: none; display: grid; place-items: center; }
.sheet-body { overflow-y: auto; padding: 0 16px calc(var(--safe-b) + 16px); display: grid; gap: 10px; overscroll-behavior: contain; }
@media (min-width: 760px) {
  .sheet { left: 20px; right: auto; bottom: 20px; width: 400px; max-height: calc(100dvh - 90px); border-radius: var(--radius); }
}
.locked { text-align: center; padding: 8px 8px 12px; }
.ghosts { display: flex; justify-content: center; margin-bottom: 12px; }
.ghosts i { width: 52px; height: 52px; border-radius: 50%; background: var(--land); border: 3px solid var(--sea); margin-left: -12px; }
.ghosts i:first-child { margin-left: 0; }
.locked p { color: var(--muted); margin-bottom: 14px; }

/* ---- member card ---- */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; border: 1px solid var(--line); }
.card-top { display: flex; gap: 12px; align-items: center; }
.avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, #fbb7cb, #ef6a9c); color: #fff; font: 700 18px/1 var(--display); }
.card-top h3 { font-size: 17px; font-weight: 800; line-height: 1.25; }
.card-top p { color: var(--muted); font-size: 14px; font-weight: 600; }
.quote { font-size: 15px; line-height: 1.45; }
.fact { font-size: 14px; }
.fact b { font-weight: 800; }
.card .btn { margin-top: 2px; }

/* ---- full pages ---- */
.page { position: fixed; inset: 0; z-index: 10; background: var(--sea); overflow-y: auto; overscroll-behavior: contain; }
.page-inner { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 40px); }
.page-inner.wide { max-width: 760px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-head h1 { font: 700 21px/1.2 var(--display); letter-spacing: -.015em; }
.stack { display: grid; gap: 16px; }
.lead { color: var(--muted); font-size: 16px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; }
.steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--pink-deep); font: 700 12px/1 var(--display); }
.section-title { font: 700 15px/1.3 var(--display); margin-top: 12px; }

/* ---- forms ---- */
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 800; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-size: 16px;
}
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { border-color: var(--pink); outline: none; }
.count { text-align: right; color: var(--muted); font-size: 12px; }
.suggest { position: relative; }
.suggest ul { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; margin: 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; }
.suggest button { width: 100%; text-align: left; padding: 11px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.suggest button:hover { background: var(--blush); }
.suggest small { color: var(--muted); font-size: 13px; }
.selected { display: flex; flex-wrap: wrap; gap: 6px; }
.selected button { padding: 6px 10px; border: 0; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.check-list { max-height: 220px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.check-list label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-list label:last-child { border-bottom: 0; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--pink); flex: none; }
.trip-box { display: grid; gap: 8px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.consent { display: flex; gap: 12px; padding: 14px; background: var(--blush); border-radius: 14px; font-size: 14px; cursor: pointer; }
.error { color: var(--red); font-weight: 700; font-size: 14px; }
.photo-row { display: flex; align-items: center; gap: 12px; }
.trip-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.trip-row:last-child { border-bottom: 0; }
.trip-row small { color: var(--muted); display: block; }

/* ---- manager ---- */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button { padding: 9px 14px; border: 0; border-radius: 999px; background: var(--blush); font-weight: 800; cursor: pointer; font-size: 14px; }
.tabs button[aria-selected=true] { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.meta { color: var(--muted); font-size: 14px; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.toolbar .input { flex: 1; }
.member-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 24px); z-index: 30; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; max-width: calc(100vw - 32px); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.dev-note { padding: 12px; border: 1.5px dashed var(--coast); border-radius: 14px; display: grid; gap: 8px; }

.demo-bar { position: fixed; top: calc(var(--safe-t) + 66px); left: 16px; right: 16px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; font-weight: 700; color: var(--muted); pointer-events: none; }
.demo-bar button { pointer-events: auto; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.page, .sheet, .panel { z-index: 3; }
.page { z-index: 10; } .sheet { z-index: 4; }

/* ---- look: paper background, pink countries and pins, condensed caps, script accent, polaroid photos ---- */
.topbar { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: baseline; gap: 6px; padding: 8px 16px 9px; background: rgba(255, 255, 255, .9); font: 700 19px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--brand-ink); }
.brand .script { font: 400 25px/.8 var(--script); text-transform: none; letter-spacing: 0; color: var(--ink); }
.pill-link { background: rgba(255, 255, 255, .9); }
.pill-link.cta { background: var(--pink); color: #fff; white-space: nowrap; box-shadow: 0 6px 18px rgba(200, 35, 122, .3); }
.pill-link.cta:hover { background: var(--pink-deep); }
.pill-link.soft-cta { background: var(--ink); box-shadow: none; }
.search-row { justify-content: flex-start; }
.finder { position: relative; flex: 1 1 auto; max-width: 440px; min-width: 0; }
.finder input {
  width: 100%; height: 44px; padding: 0 16px 0 40px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 16px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(40, 20, 30, .1); -webkit-appearance: none; appearance: none;
}
.finder input::placeholder { color: var(--muted); }
.finder input:focus { outline: 2px solid var(--pink); outline-offset: 0; }
.finder::before { content: ''; position: absolute; left: 15px; top: 13px; width: 11px; height: 11px; border: 2px solid var(--muted); border-radius: 50%; pointer-events: none; }
.finder::after { content: ''; position: absolute; left: 26px; top: 27px; width: 6px; height: 2px; background: var(--muted); transform: rotate(45deg); pointer-events: none; }
.finder ul { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6; margin: 0; padding: 6px; list-style: none; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); max-height: 60dvh; overflow-y: auto; }
.finder li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.finder li a:hover, .finder li a:focus-visible { background: var(--blush); }
.finder li b { font-weight: 800; }
.finder li small { flex: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.finder .kind { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-deep); }
.finder li.none { padding: 12px; color: var(--muted); }
.meta-row { justify-content: flex-start; flex-wrap: wrap; }
.counter { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.counter b { font: 700 16px/1 var(--display); color: var(--brand); }
.counter i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 126, 202, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 126, 202, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 126, 202, 0); } }
@media (prefers-reduced-motion: reduce) { .counter i { animation: none; } }
.demo-bar { position: static; pointer-events: auto; padding: 0; }
.demo-bar span b { color: var(--ink); }

.panel-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.panel-title .script { font: 400 34px/.8 var(--script); color: var(--ink); }
.panel h1, .panel-title h1 { font: 700 32px/1 var(--display); text-transform: uppercase; color: var(--brand-ink); letter-spacing: .01em; }
.stats { grid-template-columns: repeat(3, 1fr); margin: 12px 0 12px; }
.stat b { font: 700 28px/1 var(--display); color: var(--ink); }
.stat span { color: var(--muted); }
a.chip { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip[aria-pressed="true"] em { color: var(--brand); }
.chips.wrap, .empty-city .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.chips.filter { margin: 0 -16px; }
.btn { border-radius: 999px; }
.btn.soft { background: var(--blush); color: var(--pink-deep); }

/* sheets */
.sheet-head { align-items: center; padding: 18px 16px 12px; }
.sheet-title { flex: 1; min-width: 0; }
.sheet-head h2 { font: 700 24px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.sheet-head p a { color: var(--pink-deep); font-weight: 700; }
.sheet.tall { max-height: 92dvh; }
.girls { display: grid; gap: 8px; }
.girl { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.girl:hover { border-color: var(--coast); }
.girl .avatar { width: 54px; height: 54px; }
.girl-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.girl-text b { font-weight: 800; font-size: 16px; }
.girl-text b small { font-weight: 700; color: var(--pink-deep); font-size: 14px; }
.girl-text span { color: var(--muted); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.girl > i { font-style: normal; font-size: 24px; color: var(--muted); }
.empty-city { display: grid; gap: 12px; padding-bottom: 6px; }
.empty-city p { color: var(--muted); }

/* polaroid photos */
.avatar { border-radius: 2px; border: 4px solid #fff; box-shadow: 0 3px 10px rgba(30, 20, 25, .2); background: linear-gradient(135deg, #ffc6e5, var(--pink)); font: 700 19px/1 var(--display); transform: rotate(-2.5deg); }
.ghosts i { border-radius: 2px; border: 4px solid #fff; background: var(--land); box-shadow: 0 3px 10px rgba(30, 20, 25, .15); transform: rotate(-4deg); }
.ghosts i:nth-child(even) { transform: rotate(5deg); }
.profile { display: grid; gap: 14px; padding-bottom: 8px; }
.profile-top { display: flex; align-items: center; gap: 18px; }
.polaroid { flex: none; width: 118px; padding: 7px 7px 24px; background: #fff; box-shadow: 0 8px 22px rgba(30, 20, 25, .2); transform: rotate(-3deg); }
.polaroid img, .polaroid div { display: grid; place-items: center; width: 100%; aspect-ratio: 1; object-fit: cover; background: linear-gradient(135deg, #ffc6e5, var(--pink)); color: #fff; font: 700 38px/1 var(--display); }
.profile h3 { font: 700 34px/1 var(--display); text-transform: uppercase; }
.profile .where { color: var(--muted); font-weight: 700; margin-top: 4px; }
.profile .quote { font-size: 17px; }
.trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.trip { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; }
.trip b { font: 700 21px/1 var(--display); text-transform: uppercase; color: var(--brand); }
.trip span { font-size: 13px; color: #d9d6d2; }

/* pages */
.page-head h1, .section-title { text-transform: uppercase; }
.page-head h1 { font-size: 26px; }
.section-title { font-size: 17px; letter-spacing: .02em; }
.pin-label { font-weight: 800; }
@media (min-width: 760px) {
  .panel-title h1 { font-size: 36px; }
}


/* Girls Travel wordmark and tour covers */
.brand { align-items: center; gap: 8px; padding: 9px 16px 8px; }
.brand .logo { font: 400 21px/1 'GT Logo', 'Times New Roman', serif; letter-spacing: .01em; color: var(--brand-ink); text-transform: none; }
.brand .script { font-size: 22px; }
.brand { min-width: 0; white-space: nowrap; }
.brand .logo { font-size: 19px; white-space: nowrap; }
.trip.has-cover { position: relative; min-height: 92px; align-content: end; background: var(--ink) var(--cover) center / cover; overflow: hidden; }
.trip.has-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 15, 18, .05), rgba(20, 15, 18, .78)); }
.trip.has-cover > * { position: relative; }
.trip.has-cover b { color: #fff; }

/* fixes */
:root { --top-h: 150px; }
.top-actions { flex: none; }
.pill-link .wide { display: none; }
@media (min-width: 420px) { .pill-link .wide { display: inline; } }
.finder { max-width: none; }
@media (min-width: 760px) { .finder { max-width: 440px; } }
.finder input { font-size: 16px; }
.small-link { padding: 7px 13px; font-size: 13px; }
.demo-bar { font-size: 12px; gap: 4px 8px; }
.sheet { max-height: calc(100dvh - var(--top-h) - 10px); }
.sheet-body { grid-auto-rows: max-content; align-content: start; }
.chips.filter { padding-bottom: 2px; }
.sheet.tall { max-height: calc(100dvh - var(--top-h) - 10px); }
@media (min-width: 760px) {
  .sheet, .sheet.tall { top: calc(var(--top-h) + 10px); max-height: none; }
}
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.code-row .input { letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.stack.tight { gap: 8px; }
.profile .occupation { font-weight: 800; margin-top: 6px; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.facts li { position: relative; padding-left: 20px; line-height: 1.4; }
.facts li::before { content: '♥'; position: absolute; left: 0; color: var(--pink); }
.page-head .head-action { margin-left: auto; }

/* ======================================================================
   ТЗ v2 (18 ноября): lighter header, one compact stats block, closed-community card,
   filters, age and privacy, manager's panel. Overrides the prototype rules above.
   ====================================================================== */
.icon { display: inline-grid; place-items: center; flex: none; }
.icon svg { display: block; }

/* header: «GIRLS TRAVEL | Карта» and «Моя анкета» */
.brand { gap: 10px; align-items: center; padding: 9px 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 16px rgba(90, 20, 55, .06); }
.brand .logo { font: 400 21px/1 'GT Logo', var(--display); color: var(--pink); letter-spacing: .01em; }
.brand-sep { width: 1.5px; height: 18px; background: #d9d4d6; border-radius: 1px; }
.brand-map { font: 600 16px/1 var(--body); color: var(--ink); text-transform: none; letter-spacing: 0; }
.pill-link.cta { padding: 11px 16px; font-size: 14px; }
.badge.light { background: #fff; color: var(--pink-deep); }

/* search and «Фильтры» in one row */
.search-row { display: flex; gap: 8px; align-items: center; }
.finder::before, .finder::after { display: none; }
.finder > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.finder input { padding-left: 42px; }
.filter-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 16px rgba(90, 20, 55, .06); border: 1.5px solid transparent;
}
.filter-btn.on { border-color: var(--pink); color: var(--pink-deep); }
.filter-btn .badge { margin-left: 2px; }
.page .search-row .input { flex: 1; }
.page .filter-btn { background: var(--card); border-color: var(--line); box-shadow: none; }
.page .filter-btn.on { border-color: var(--pink); }
@media (max-width: 359px) { .filter-btn span:not(.icon):not(.badge) { display: none; } }

/* compact stats block under the map */
.panel { padding: 16px 16px calc(var(--safe-b) + 14px); display: grid; gap: 12px; }
.panel .headline { font: 700 17px/1.3 var(--body); color: var(--ink); }
.panel .headline b { color: var(--pink); font-weight: 800; }
.panel .stats { grid-template-columns: repeat(3, 1fr); margin: 0; gap: 8px; }
.panel .stat b { font: 700 22px/1.1 var(--display); color: var(--ink); }
.panel .stat span { font-size: 13px; }
.panel .invite { color: var(--muted); font-size: 13px; line-height: 1.4; }
.panel .btn { min-height: 46px; }
.filter-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--blush); font-size: 13px; font-weight: 700; }

/* guest: closed-community card (docs/tz-v2/guest-locked-card.jpg) */
.locked { text-align: left; padding: 0 0 8px; display: grid; gap: 12px; }
.locked-count { font: 700 17px/1.35 var(--body); color: var(--ink) !important; margin: 0 !important; }
.lock-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--blush); }
.lock-card .icon { color: var(--pink-deep); margin-top: 2px; }
.lock-card b { display: block; font-size: 16px; margin-bottom: 4px; }
.lock-card p { color: var(--muted); font-size: 14px; margin: 0 !important; }
.small-link { text-align: center; font-weight: 700; font-size: 14px; }

/* lists and the profile */
.girl-text b { font-size: 15px; }
.girl-text small { color: var(--muted); font-size: 13px; font-weight: 600; }
.profile h3 { font: 700 26px/1.1 var(--display); }
.trip-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.trip-list li { padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.visited { font-size: 14px; line-height: 1.5; }
.preview-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.preview-link span { flex: 1; display: grid; }
.preview-link small { color: var(--muted); }
.preview-link .avatar { width: 46px; height: 46px; }
.readonly { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); font-weight: 700; }

/* calmer page titles */
.page-head h1 { font-size: 22px; }
.section-title { font-size: 15px; }

/* form bits */
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input, .consent input { width: 20px; height: 20px; accent-color: var(--pink); flex: none; }
.consent { align-items: flex-start; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.switch-row:last-child { border-bottom: 0; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row small { color: var(--muted); font-size: 13px; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-row i { flex: none; width: 46px; height: 28px; border-radius: 999px; background: #d9d4d6; position: relative; transition: background .15s; }
.switch-row i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch-row input:checked + i { background: var(--pink); }
.switch-row input:checked + i::after { transform: translateX(18px); }
.switch-row input:focus-visible + i { outline: 2px solid var(--pink); outline-offset: 2px; }
.settings { padding: 4px 16px; gap: 0; }
.danger-link { color: var(--red); }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0 calc(var(--safe-b) + 4px); background: var(--sea); }
.sticky-actions .btn { flex: 1; }
.chip[aria-pressed=true] { background: var(--pink); color: #fff; }
.chip[aria-pressed=true] em { color: #fff; }

/* after sending the form */
.sent { text-align: center; padding-top: 40px; }
.sent-emoji { font-size: 48px; }
.sent h1 { font: 700 20px/1.35 var(--body); }
.sent p { color: var(--muted); }

/* manager's panel */
.tabs { overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; white-space: nowrap; }
.tabs button em { font-style: normal; margin-left: 6px; color: var(--pink-deep); }
.tabs button[aria-selected=true] em { color: #fff; }
.admin-card .card-top h3 { font-size: 16px; }
.facts-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.facts-grid dt { color: var(--muted); }
.facts-grid dd { margin: 0; font-weight: 600; }
.admin-trip { flex-wrap: wrap; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.trip-actions select { max-width: 240px; padding: 8px 10px; font-size: 13px; }
.dir-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dir-row .input { flex: 1 1 160px; }
.tour-top { display: flex; gap: 12px; align-items: center; }
.tour-top h3 { font-size: 16px; font-weight: 800; }
.tour-cover { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.tour-cover.empty { display: grid; place-items: center; background: var(--blush); color: var(--pink-deep); font: 700 26px/1 var(--display); }
.people { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: 0; }
.tag.needs_info, .tag.pending { background: var(--amber-bg); color: var(--amber); }
.tag.blocked { background: var(--ink); color: #fff; }

/* header fits a 360 px phone: smaller logo, compact filter button */
.topbar { left: 12px; right: 12px; }
.brand { padding: 8px 12px; gap: 8px; min-width: 0; }
.brand .logo { font-size: 18px; white-space: nowrap; }
.brand-map { font-size: 15px; }
.pill-link.cta { padding: 10px 14px; }
.filter-btn { padding: 0 12px; gap: 6px; font-size: 13px; }
.finder input { padding-left: 38px; padding-right: 10px; }
.finder > .icon { left: 12px; }
/* 360 px phones: keep «GIRLS TRAVEL | Карта» whole; the typed text stays 16 px so iOS does not zoom in */
@media (max-width: 374px) {
  .brand { padding: 8px 10px; gap: 6px; }
  .brand .logo { font-size: 16px; }
  .brand-map { font-size: 14px; }
  .pill-link.cta { padding: 9px 12px; font-size: 13px; }
  .finder input::placeholder { font-size: 13px; }
  .finder input { padding-right: 6px; }
  .filter-btn { padding: 0 10px; }
}
.profile h3 { font: 800 22px/1.2 var(--body); text-transform: none; letter-spacing: -.01em; }
.sticky-actions { display: grid; gap: 8px; }
.filter-btn { position: relative; }
.filter-btn .badge { position: absolute; top: -6px; right: -4px; margin: 0; min-width: 18px; height: 18px; font-size: 11px; border: 2px solid #fff; }
.dirs summary { display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; list-style: none; }
.dirs summary::-webkit-details-marker { display: none; }
.dirs summary .section-title { margin: 0; }
.dirs[open] summary { margin-bottom: 12px; }
.dir-item { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.dir-item.archived { opacity: .6; }
.dir-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dir-line small { color: var(--muted); }
.dir-actions { display: flex; gap: 12px; font-size: 14px; }
.status .block { display: block; margin-top: 4px; }
