:root {
  /* своя палитра, не зависим от темы Telegram */
  color-scheme: dark;
  --bg: #26292B;
  --bg2: #111317;
  --field: #15181E;
  --control: #282C35;
  --raised: #4E5565;
  --stroke: #373C46;
  --divider: #ffffff14;
  --dock: #14161C;
  --text: #E2E8F0;
  --heading: #FFFFFF;
  --hint: #A1AEC0;
  --btn: #E0E5EE;
  --btn-text: #12151A;
  --ok-rgb: 34 123 79;
  --ok: rgb(var(--ok-rgb));
  --ok-text: #9CE4BC;
  --ok-surface: #1D3F33;
  --notice-bg: #FFCB70;
  --notice-text: #573800;
  --bad: #8B1E2D;
  --bad-text: #FFABB2;
  --bad-surface: #40242C;
  --radius: 28px;
  --pill-radius: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Roboto, Helvetica, Arial, sans-serif;
  --font-screen-title: clamp(25px, 8vw, 31px);
  --font-title: 20.5px;
  --font-section: 19px;
  --font-body: 14.5px;
  --font-description: 14px;
  --font-control: 15.5px;
  --font-caption: 13px;
  --font-nav: 11px;
  --heading-tracking: -.025em;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg2: #E7F3F3;
  --field: #F3F3F5;
  --control: #F0F1F4;
  --raised: #AAB4C2;
  --stroke: #DCE3E0;
  --divider: #11111314;
  --dock: #FFFFFF;
  --text: #1E293B;
  --heading: #0F172A;
  --hint: #52647C;
  --btn: #111113;
  --btn-text: #FFFFFF;
  --ok-rgb: 34 123 79;
  --ok: #1E6B45;
  --ok-text: #1E6B45;
  --ok-surface: #1E6B4517;
  --notice-bg: #FFF0C2;
  --notice-text: #573800;
  --bad: #8B1E2D;
  --bad-text: #8B1E2D;
  --bad-surface: #8B1E2D14;
  --radius: 20px;
}
:root[data-theme="light"] body,
:root[data-theme="light"] html { background: var(--bg2); color: var(--text); }
:root[data-theme="light"] .card { box-shadow: none; }
:root[data-theme="light"] button.ghost { background: #E3E3E7; color: var(--text); box-shadow: none; }
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea { box-shadow: none; }
:root[data-theme="light"] .tabs { border-top-color: #E2E8F0; }
:root[data-theme="light"] .booking-summary {
  --text: #F3F4F6;
  --heading: #FFFFFF;
  --hint: #B0B7C2;
  --ok-surface: #27523B;
  --ok-text: #B6F2CB;
  background: #25282D;
}
:root[data-theme="light"] .booking-summary .event-type-badge { background: #3A3D43; color: #FFFFFF; }
:root[data-theme="gray"] {
  color-scheme: dark;
  --bg: #363A42;
  --bg2: #25282D;
  --field: #2C3037;
  --control: #41464F;
  --raised: #AAB4C2;
  --stroke: #505661;
  --divider: #ffffff18;
  --dock: #2B2E34;
  --text: #E5E7EB;
  --heading: #FFFFFF;
  --hint: #B7BEC9;
  --btn: #D9DEE6;
  --btn-text: #202329;
  --ok-rgb: 54 151 103;
  --ok: rgb(var(--ok-rgb));
  --ok-text: #A8E5C1;
  --ok-surface: #294637;
  --bad: #A52A3A;
  --bad-text: #FFB4BA;
  --bad-surface: #4B2D33;
  --radius: 24px;
}
:root[data-theme="gray"] .booking-summary {
  --text: #F3F4F6;
  --heading: #FFFFFF;
  --hint: #D1D5DB;
  background: #555B66;
}
:root[data-theme="gray"] body.model-map-active,
:root[data-theme="gray"] body.model-map-active #app,
:root[data-theme="gray"] body.model-map-active .mapscreen { background: var(--bg2); }
:root[data-theme="gray"] body.model-map-active .maphead .seg { background: var(--control); }
:root[data-theme="gray"] body.model-map-active .maphead .seg span { color: var(--hint); }
:root[data-theme="gray"] body.model-map-active .maphead .seg span.on { background: var(--btn); color: var(--btn-text); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg2); color: var(--text);
  font: 400 var(--font-body)/1.4 var(--font-sans); }
body { font-feature-settings: "cv02", "cv03", "cv04", "cv11"; }
#app { min-height: 100vh; padding-bottom: 76px; }
.page { padding: 12px; max-width: 640px; margin: 0 auto;
  padding-top: calc(12px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px)); }
h1 { font-size: var(--font-screen-title); font-weight: 800; margin: 6px 4px 12px; }
h2 { margin: 18px 6px 8px; }
h2, h3, .card > b, .sheet > b { font-size: var(--font-section); font-weight: 700; }
h1, h2, h3, .card > b, .sheet > b, .big {
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: var(--heading-tracking);
}
.past-heading { color: var(--bad-text); }
.card { background: var(--bg); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px var(--divider); }
.event-move-response-actions { margin-bottom: 12px; }
.card.tap { cursor: pointer; }
.row { display: flex; gap: 8px; align-items: center; }
.late-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.late-options-grid button { width: 100%; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.hint { color: var(--hint); font-size: var(--font-description); }
.small { font-size: var(--font-caption); }
.big { font-size: var(--font-title); font-weight: 700; }
.back { color: var(--hint); font-size: 17px; }
.mt { margin-top: 10px; }
.grow { flex: 1; }
.center { text-align: center; }
.loading-reopen { margin-top: 24px; }
.app-version { text-align: center; margin: 20px 0; }

button { font: inherit; border: 0; border-radius: var(--pill-radius); padding: 12px 16px; cursor: pointer;
  background: var(--btn); color: var(--btn-text); font-size: var(--font-control); font-weight: 600; }
button.block { width: 100%; }
button.ghost { background: var(--control); color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke); }
button.danger { background: transparent; color: var(--bad-text); }
button.booking-cancel-action { background: transparent; color: var(--bad-text); box-shadow: inset 0 0 0 1.5px var(--bad-text); }
button.ok { background: var(--ok); color: #fff; }
button.warn { background: var(--notice-bg); color: var(--notice-text); }
button:active { transform: scale(.98); }
button.sm { padding: 8px 12px; font-size: 14px; }
button:disabled { opacity: .5; }

label.f { display: block; margin: 12px 2px 6px; font-size: var(--font-description); font-weight: 500; color: var(--hint); }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--field);
  border: 0; border-radius: 15px; padding: 11px 12px; box-shadow: inset 0 0 0 1px var(--stroke); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--hint); outline-offset: 2px; }
input:is([type="checkbox"], [type="radio"], [type="file"]) { box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--hint); opacity: 1; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: var(--pill-radius); background: var(--control); font-size: 14px;
  cursor: pointer; user-select: none; }
.chip.on { background: var(--btn); color: var(--btn-text); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 8px; background: var(--field);
  font-size: 12px; margin: 2px 4px 2px 0; }
.badge { display: inline-block; padding: 3px 9px; border-radius: var(--pill-radius); font-size: var(--font-caption); font-weight: 600; }
.badge.ok { background: var(--ok-surface); color: var(--ok-text); }
.badge.warn { background: var(--notice-bg); color: var(--notice-text); }
.booking-reminder-mark { display: inline-flex; width: 15px; height: 15px; margin-right: 5px; align-items: center; justify-content: center; border-radius: 50%; background: var(--notice-text); color: var(--notice-bg); font-size: 11px; font-weight: 800; line-height: 1; }
.badge.bad { background: var(--bad-surface); color: var(--bad-text); }
.oktext { color: var(--ok-text); } .badtext { color: var(--bad-text); }
.badge.info { background: var(--control); color: var(--text); }
.new-responses { margin-bottom: 8px; }
.new-responses .badge { background: var(--ok); color: #fff; }
.old-requests-link { display: block; width: auto; margin: 16px 4px; padding: 6px 0; border: 0; background: none; box-shadow: none; color: var(--hint); font-size: 13px; font-weight: 600; text-align: left; }

.photos { display: flex; gap: 6px; overflow-x: auto; margin: 10px -2px 4px; }
.photos img { width: 104px; height: 130px; object-fit: cover; border-radius: 10px; flex: none; }
.photos.client-model-photos img { width: 75%; max-width: 260px; height: auto; aspect-ratio: 4 / 5; }
.uploader { display: flex; gap: 8px; }
.slot { width: 96px; height: 120px; border-radius: 10px; background: var(--field); display: flex;
  align-items: center; justify-content: center; flex-direction: column; color: var(--hint);
  font-size: 12px; position: relative; overflow: hidden; cursor: pointer; text-align: center; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .x { position: absolute; top: 4px; right: 4px; background: #0008; color: #fff; border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.slot .plus { font-size: 26px; line-height: 1; }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--dock);
  border-top: 1px solid var(--divider); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 5; }
.tabs a { position: relative; flex: 1; text-align: center; color: var(--hint); font-size: var(--font-nav); font-weight: 500; letter-spacing: var(--heading-tracking); text-decoration: none; padding: 4px 0; }
.tabs a.on { color: var(--heading); font-weight: 700; }
.tabs a .i { display: flex; justify-content: center; height: 26px; align-items: center; margin-bottom: 1px; }
.nav-count { position: absolute; top: 0; left: calc(50% + 9px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 10px; background: var(--ok); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.nav-attention { position: absolute; top: 0; left: calc(50% - 25px); width: 17px; height: 17px; border-radius: 50%; background: var(--notice-bg); color: var(--notice-text); font-size: 12px; font-weight: 800; line-height: 17px; text-align: center; }
:root[data-theme="light"] .nav-attention { background: #A87800; color: #FFFFFF; }
.booking-alert { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--notice-bg); color: var(--notice-text); font-weight: 800; }
.booking-message { display: flex; align-items: baseline; gap: 8px; width: fit-content; max-width: 85%; margin-top: 8px; padding: 8px 10px; border-radius: 15px 15px 15px 4px; background: var(--control); }
.booking-message.mine { flex-direction: row-reverse; margin-left: auto; border-radius: 15px 15px 4px 15px; background: var(--ok-surface); }
.booking-message.new { background: var(--notice-bg); color: var(--notice-text); }
.booking-message-body, .model-note-text { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.booking-message time { flex: none; white-space: nowrap; color: var(--hint); font-size: var(--font-nav); }
.booking-message.new time { color: var(--notice-text); }
.warning-text { color: var(--hint); }
.booking-photo { width: 92px; height: 110px; object-fit: cover; border-radius: 9px; margin-right: 8px; }
.fresh-profile-photo { max-width: 230px; }
.fresh-profile-photo img { display: block; }
.booking-message-input { display: block; width: 100%; min-height: 48px; }
.booking-title { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.booking-title h1 { min-width:0; }
.venue-jump { display:inline-flex; align-items:center; gap:4px; flex:none; max-width:64%; padding:8px 10px; border:1px solid #b8d3c8; border-radius:11px; background:#eef8f4; color:var(--text); font-size:14px; font-weight:650; cursor:pointer; }
.venue-jump-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.venue-jump-chevron { flex:none; color:var(--hint); font-size:18px; line-height:12px; }
.booking-support-row { margin:18px 0 8px; }
button.booking-support { max-width:100%; background:var(--bad); color:#fff; font-weight:500; letter-spacing:var(--heading-tracking); }
.profile-delete-row { margin: 18px 0 6px; }
button.profile-delete {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
}
.profile-edit-primary { margin-bottom: 12px; }
.profile-pause-options > b { color: var(--heading); }
.profile-pause-options .row { gap: 8px; }
.profile-pause-options button { min-width: 0; padding-inline: 8px; white-space: nowrap; }
.profile-setting-block > summary { list-style: none; }
.profile-setting-block > summary::-webkit-details-marker { display: none; }
.profile-achievements { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--divider); }
.profile-achievements > summary, .profile-settings > summary { color: var(--heading); font-weight: 700; cursor: pointer; }
.profile-settings-body { display: grid; gap: 10px; margin-top: 12px; }
.profile-setting-block { min-width: 0; padding: 12px; border-radius: 16px; background: var(--field); }
.profile-setting-block > b { color: var(--heading); }
.profile-setting-block > summary { color: var(--heading); font-weight: 700; cursor: pointer; }
.profile-setting-block .f { color: var(--hint); }
.profile-title-row { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 6px 4px 12px; }
.profile-title-row h1 { margin: 0; }
.theme-dot-buttons { display: flex; align-items: center; gap: 8px; }
.theme-dot { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: transparent; }
.theme-dot::before { content: ''; width: 23px; height: 23px; border-radius: 50%; box-shadow: 0 0 0 1px #777; }
.theme-dot.dark::before { background: #111; }
.theme-dot.gray::before { background: #888; }
.theme-dot.light::before { background: #fff; }
.theme-dot:focus-visible { outline: 2px solid var(--hint); outline-offset: 1px; }
.maps-link { display:inline-block; color:var(--text); font-size:12px; font-weight:700; text-decoration:none; white-space:nowrap; }
.request-address { align-items:flex-start; gap:8px; }
.request-address > .hint { flex:1; min-width:0; }
.fresh-photo-request {
  --heading: #352100;
  --text: #352100;
  --hint: #573800;
  --field: #FFE1A4;
  --control: #FFE1A4;
  --stroke: #926930;
  --btn: #352100;
  --btn-text: #fff;
  background: var(--notice-bg);
  color: var(--text);
}
.dot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad);
  color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

.fab { position: fixed; right: 16px; bottom: calc(max(84px, var(--app-nav-height, 76px) + 12px) + var(--app-viewport-gap, 0px)); z-index: 6; border-radius: 28px; padding: 14px 20px;
  box-shadow: 0 4px 14px #0003; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; }
.filters select { width: auto; padding: 8px 10px; font-size: 14px; background: var(--bg); }
.filters .chip { background: var(--bg); white-space: nowrap; }
.filters .chip.on { background: var(--btn); }
.feed-filter-line { display: flex; justify-content: flex-end; margin: 2px 4px 8px; }
.feed-filter-toggle { font-size: 13px; padding: 6px 2px; }
.haircut-heading { align-items: flex-start; min-height: 20px; }
.haircut-title-block { min-width: 0; }
.haircut-helper { margin: 0 0 3px; line-height: 1.2; }

.stars span { font-size: 30px; cursor: pointer; color: #c8c8c8; }
.stars span.on { color: #f5b301; }
.venue-stars { display: flex; flex-wrap: wrap; }
.venue-stars button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: var(--hint);
  font-size: 30px;
}
.venue-stars button.on { color: #f5b301; }
.empty { text-align: center; color: var(--hint); padding: 40px 20px; }
.empty .i { font-size: 44px; }
.empty-haircut-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 14px;
  padding: 10px 24px;
  border-radius: var(--pill-radius);
  background: var(--ok);
  box-shadow: inset 0 0 0 1px #ffffff38;
  color: #fff;
  font-size: var(--font-control);
  font-weight: 700;
}
:root[data-theme="gray"] .empty-haircut-link { background: #227B4F; }
.empty-haircut-link:focus-visible { outline: 2px solid var(--ok-text); outline-offset: 3px; }
.modal { position: fixed; inset: 0; background: #0006; display: flex; align-items: flex-end; z-index: 20; }
.modal .sheet { background: var(--bg); width: 100%; border-radius: var(--radius) var(--radius) 0 0; padding: 16px;
  max-height: 80vh; overflow: auto; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.toast { position: fixed; left: 12px; right: 12px; top: 12px; z-index: 30; background: #222e; color: #fff;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.toast.success { background: var(--ok); box-shadow: 0 6px 24px #0003; }
.toast.success b, .toast.tip b { display: block; margin-bottom: 2px; }
.toast.notice, .toast.tip {
  top: calc(12px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  padding: 14px 16px;
  font-weight: 650;
  box-shadow: 0 6px 24px #0003;
}
.hero { text-align: center; padding: 30px 10px 10px; }
.hero .i { font-size: 54px; }
.role { display: block; text-align: left; width: 100%; margin-top: 10px; background: var(--bg);
  color: var(--text); padding: 16px; font-weight: 400; }
.role b { display: block; font-size: 17px; margin-bottom: 4px; }
hr { border: 0; border-top: 1px solid #8882; margin: 12px 0; }

.ldot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.chip.on .ldot { box-shadow: 0 0 0 1.5px #fff; }
.st { display: inline-block; margin-right: 10px; white-space: nowrap; }
.metro-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; white-space: nowrap; scrollbar-width: none; }
.metro-scroll::-webkit-scrollbar { display: none; }
.chips.metro-scroll { flex-wrap: nowrap; }
.chips.metro-scroll > .chip, .feed-card-place > span { flex: none; }
.dropdown { margin-top: 6px; background: var(--bg); border: 1px solid var(--stroke); border-radius: 10px; overflow: hidden; }
.opt { padding: 10px 12px; border-bottom: 1px solid var(--divider); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt .hint { margin-left: 6px; }
.photos.lg img { width: 62%; max-width: 260px; height: auto; aspect-ratio: 4 / 5; }
.photos.lg img:only-child { width: 100%; max-width: none; aspect-ratio: 1 / 1; }
.seg { display: flex; background: var(--bg); border-radius: var(--pill-radius); padding: 3px; margin: 0 2px 10px; }
.seg span { flex: 1; text-align: center; padding: 8px; border-radius: var(--pill-radius); font-size: 14px; font-weight: 600; color: var(--hint); cursor: pointer; }
.seg span.on { background: var(--btn); color: var(--btn-text); }

/* ---- карточка модели (стиль Hinge / Bumble) ---- */
.card.flush { padding: 0 0 14px; overflow: hidden; }
.card.flush > :not(.mcard) { margin-left: 14px; margin-right: 14px; }
.card.flush > .mcard:last-child { margin-bottom: -14px; }
.mcard { background: var(--bg); }
.mphoto { position: relative; aspect-ratio: 1 / 1; background: #1c1c1e; overflow: hidden; }
.strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.nophoto { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #3a3a3e, #232326); color: #57575c; padding-bottom: 70px; }
.nophoto div { color: #a1a1a6; font-size: 14px; margin-top: 8px; }
.ov-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.ov-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.35) 60%, transparent); }
.glass { background: rgba(0,0,0,.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 20px; }
.mname { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: var(--heading-tracking); margin-bottom: 6px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.pill { background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff;
  font-size: 13px; padding: 5px 11px; border-radius: 20px; white-space: nowrap; }
.pill.hair-missing { white-space: normal; line-height: 1.25; }
.pill .ldot { box-shadow: 0 0 0 1.5px rgba(255,255,255,.8); }
.mbody { padding: 12px 14px 0; }
.card.flush .row.mt { margin-top: 12px; }
.card.flush > button.block, .card.flush > .row { width: calc(100% - 28px); }
.card.flush > button.block { display: block; margin-top: 12px; }

a { color: var(--text); font-weight: 600; text-decoration: none; }
a:active { opacity: .6; }
.chip.sm { padding: 5px 10px; font-size: 13px; }
.vrow { display: flex; align-items: center; gap: 7px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--divider); cursor: pointer; }
.vava { width: 21px; height: 21px; border-radius: 50%; object-fit: cover; flex: none; }
.vava.ph { background: #111113; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; line-height: 1; }
.vava.ph > span { transform: translateY(1px); }
.booking-list-card { position: relative; }
.booking-request-card > .row:first-child { min-height: 26px; }
.booking-request-card.has-new-message > .row:first-child { padding-right: 160px; }
.booking-request-card .big { min-width: 0; overflow-wrap: anywhere; }
.booking-message-badge { position: absolute; top: 14px; right: 14px; }
.organizer-message-badge { margin-bottom: 6px; }
.venue-rating-side { min-width: 33px; font-size: 13px; }
.venue-pin { display:block; width:14px; height:14px; flex:none; object-fit:contain; }
.venue-booking-open { white-space: nowrap; }
.catalog-search { margin-bottom: 10px; }
.vname { color: var(--heading); font-weight: 700; letter-spacing: var(--heading-tracking); }
.vtitle { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.vname { min-width: 0; overflow-wrap: anywhere; }
.vrating { flex: none; color: var(--ok-text); font-size: 14px; font-weight: 700; white-space: nowrap; }
.chev { color: var(--hint); font-size: 22px; }
.slotrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.slotrow .cap { width: 64px; flex: none; text-align: center; }
.x2 { color: var(--hint); padding: 6px; cursor: pointer; }
.slotpick { display: flex; align-items: center; padding: 12px; border-radius: 12px; background: var(--field); margin-bottom: 6px; cursor: pointer; }
:root[data-theme="dark"] .request-view .slotpick:not(.on) { background: #3A3D43; }
.slotpick.on { background: var(--control); color: var(--heading); box-shadow: inset 0 0 0 1px var(--hint); }
.slotpick.on .hint { color: #ffffffb0; }
:root[data-theme="light"] .request-view .slotpick.on .hint { color: #111113; }
.slotpick.off { opacity: .45; cursor: default; }
.danger-link { color: var(--bad-text); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; }
h2.row { display: flex; }
.closex { font-size: 20px; color: var(--hint); }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 72vw; max-width: 300px; height: calc(min(72vw, 300px) * 1.25); object-fit: cover; border-radius: 16px; scroll-snap-align: center; }
.venue-gallery img { width: 50vw; max-width: 210px; height: calc(min(50vw, 210px) * 1.25); }
.dt { display: flex; gap: 8px; }
.dtf { position: relative; flex: 1; background: var(--field); border-radius: 10px; padding: 11px 12px; font-variant-numeric: tabular-nums; }
.dtf.t { flex: 0 0 84px; text-align: center; }
.dtf input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.slothead { display: flex; align-items: center; gap: 10px; margin: 18px 6px 4px; }
.event-past-slots { margin-top: 14px; }
.event-past-slots > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--pill-radius);
  background: var(--control);
  color: var(--text);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.event-past-slots > summary::-webkit-details-marker { display: none; }
.event-past-slots > summary:focus-visible { outline: 2px solid var(--hint); outline-offset: 2px; }
.event-past-slots > summary > span { font-size: 22px; line-height: 1; }
.event-past-slots[open] > summary > span { transform: rotate(90deg); }
.stepper { display: flex; align-items: center; background: var(--bg); border-radius: 12px; overflow: hidden; }
.stepper span { width: 38px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; user-select: none; }
.stepper span:active { background: var(--field); }
.stepper b { min-width: 26px; text-align: center; }
.glass.trust.ok { background: rgb(var(--ok-rgb) / 85%); }
.glass.trust.warn { background: rgba(168,120,0,.88); }
.glass.trust.bad { background: rgba(139,30,45,.88); }
.rating-tap { cursor: pointer; pointer-events: auto; }
.rating-sheet { max-width: 640px; margin: 0 auto; }
.modal.glass-info-modal { background: #090c132b; padding: 0 10px; }
.modal.glass-info-modal .sheet {
  --glass-solid: var(--bg);
  max-width: 640px;
  margin: 0 auto max(10px, var(--app-bottom-inset, 0px));
  padding: 20px;
  border-radius: 34px;
}
:root:not([data-theme="light"]) .modal.glass-info-modal .sheet {
  --hint: #C1CAD6;
}
.rating-summary { margin: 14px 0; }
.rating-summary .badge { font-size: 15px; padding: 6px 11px; }
.rating-close { width: 36px; height: 36px; padding: 0; background: var(--field); color: var(--text); font-size: 25px; line-height: 1; }
.badge.warn.rating-tap, .rating-summary .badge.warn { background: #F3E3B5; color: #6E4A00; }
:root[data-theme="light"] .badge.warn.rating-tap,
:root[data-theme="light"] .rating-summary .badge.warn { background: var(--notice-bg); color: var(--notice-text); }
.slotpick .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hint); margin-right: 12px; flex: none; }
.slotpick.on .radio { border: 6px solid #fff; }
:root[data-theme="light"] .request-view .slotpick.on .radio { border-color: #111113; }
.live { display: inline-flex; align-items: center; gap: 8px; margin: -6px 4px 12px; font-size: 13px; font-weight: 600; color: var(--ok-text); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #1E9E5A; box-shadow: 0 0 0 0 rgba(30,158,90,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,158,90,.45); } 70% { box-shadow: 0 0 0 8px rgba(30,158,90,0); } 100% { box-shadow: 0 0 0 0 rgba(30,158,90,0); } }
.vbadge { margin-top: 3px; font-size: 11px; padding: 2px 8px; }
.card.dim .mphoto { filter: grayscale(.6) brightness(.9); }
button:disabled.ghost { opacity: 1; color: var(--hint); }

.guide { display: flex; gap: 6px; margin-bottom: 12px; }
.gtile { flex: 1; background: var(--field); border-radius: 12px; padding: 8px 4px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gtile b { font-size: 12px; margin-top: 2px; }
.gtile.ok b { color: var(--ok-text); }
.gtile.no b { color: var(--bad-text); }
.gtile span { font-size: 11px; color: var(--hint); line-height: 1.25; margin-top: 2px; }
.privacy { margin-top: 12px; font-size: 12px; color: var(--text); background: var(--field); border-radius: 10px; padding: 9px 11px; display: flex; gap: 8px; align-items: flex-start; }
.privacy svg { flex: none; margin-top: 1px; }
.nudge, .toast.notice, .toast.tip { border: 1px solid #765726; background: #342914; color: #FFE2A9; }
:root[data-theme="light"] .nudge,
:root[data-theme="light"] .toast.notice,
:root[data-theme="light"] .toast.tip { border-color: #E8D79E; background: var(--notice-bg); color: var(--notice-text); }
.dots { position: absolute; left: 0; right: 0; top: 48px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots.bottom { top: auto; bottom: 12px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 3px rgba(0,0,0,.3); }
.dots i.on { background: #fff; }
.mname .more { font-weight: 400; opacity: .8; margin-left: 6px; }
.mview { position: relative; border-radius: 18px; overflow: hidden; background: #1c1c1e; aspect-ratio: 1 / 1; }
.strip.big, .nophoto.big { height: 100%; }
.nophoto.big { padding-bottom: 0; }
.stats4 { display: flex; margin-top: 10px; }
.stats4 div { flex: 1; text-align: center; }
.stats4 b { display: block; font-size: 20px; }
.stats4 span { font-size: 11px; color: var(--hint); }
.hrow { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--divider); cursor: pointer; }
.hrow:last-child { border-bottom: 0; }
.photorow { display: flex; gap: 10px; align-items: stretch; }
.photorow .uploader { flex: none; }
.gside { flex: 1; display: flex; gap: 10px; align-items: center; min-width: 0; }
.gside svg { flex: none; }

.link { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: var(--font-description); color: var(--hint); text-decoration: underline; cursor: pointer; width: auto; }
.link.danger { color: var(--bad-text); }

html, body { overscroll-behavior: none; }
.nudge-line { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--ok-surface); color: var(--text); font-size: 13px; }
.rule { margin: 0 4px 12px; padding: 9px 11px; border-radius: 12px; background: var(--ok-surface); color: var(--ok-text); font-size: 12px; line-height: 1.35; }
.nudge-line a { font-weight: 600; white-space: nowrap; }
.card.small.profile-photo-tip { background: var(--control); padding: 10px 12px; }
.profile-photo-tip a { font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.prio { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--ok); color: #fff; }
.progress { height: 8px; border-radius: 4px; background: var(--control); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.srctable { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.srctable td, .srctable th { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--divider); }
.srctable td:first-child, .srctable th:first-child { text-align: left; word-break: break-all; }
.glass.prio-g { background: rgb(var(--ok-rgb) / 85%); color: #fff; }
.prio.locked { background: var(--control); color: var(--hint); }
.supply { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; padding: 12px 14px; border-radius: 14px; background: #111113; color: #fff; font-size: 14px; line-height: 1.35; }
.supply .pulse { flex: none; animation-duration: 3s; }
.model-tour { min-height: calc(100vh - 24px); display: flex; align-items: center; justify-content: center; }
.model-tour-shell { width: min(100%, 430px); text-align: center; margin: 12px auto; padding: 14px 16px 18px; overflow: hidden; }
.tour-kicker { margin: 0 0 10px; color: var(--hint); font-size: var(--font-caption); font-weight: 600; }
.model-tour h1 { margin: 16px 0 8px; }
.model-tour p { margin: 0 auto; max-width: 330px; }
.tour-preview { min-height: 300px; padding: 12px; border-radius: 18px; background: var(--bg2); text-align: left; animation: tourSlide .22s ease; touch-action: pan-y; user-select: none; }
.tour-phonebar { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--hint); font-size: 10px; }
.tour-preview-title { margin-bottom: 8px; color: var(--heading); font-size: var(--font-section); font-weight: 700; letter-spacing: var(--heading-tracking); }
.tour-supply { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 12px; background: #111113; color: #fff; font-size: 11px; }
.tour-event-preview, .tour-booking-card { margin-top: 10px; padding: 12px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--divider); }
.tour-event-preview.muted { opacity: .65; }
.tour-helper { color: var(--hint); font-size: 10px; }
.tour-event-preview b, .tour-booking-card>b { display: block; margin: 3px 0 8px; font-size: 18px; }
.tour-meta { margin-top: 5px; color: var(--hint); font-size: var(--font-nav); }
.tour-place { margin-top: 5px; color: var(--text); font-size: 11px; font-weight: 600; }
.tour-rating { color: var(--ok-text); }
.tour-action { width: 100%; margin-top: 10px; padding: 8px 12px; font-size: 12px; }
.tour-confirm-row { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--ok-text); font-size: 11px; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.tour-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #C7C7CB; cursor: pointer; }
.tour-dots button.active { width: 20px; border-radius: 6px; background: var(--ok); }
@keyframes tourSlide { from { opacity: .4; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tour-preview { animation: none; } }
.field-help { display: flex; justify-content: flex-start; align-items: baseline; gap: 4px; }
.field-help label.f { display: inline; margin: 12px 0 6px; }
.field-help .link { color: var(--hint); font-size: 13px; font-weight: 400; padding: 0; flex: none; }
.haircut-filters { display: flex; flex-wrap: nowrap; gap: 6px; margin: 8px 0; overflow-x: auto; scrollbar-width: none; }
.haircut-filters::-webkit-scrollbar { display: none; }
.haircut-filters .chip { flex: none; white-space: nowrap; }
.haircut-filters .chip.on { background: var(--btn); color: var(--btn-text); }
.haircut-feed .haircut-filters, .mapscreen .haircut-filters { gap: clamp(4px, 1.5vw, 6px); }
.haircut-feed .haircut-filters .chip, .mapscreen .haircut-filters .chip { flex: 1 0 auto; padding: 6px 4px; font-size: 15px; text-align: center; }
.haircut-feed-title { margin-bottom: 6px; }
.feed-card { padding: 10px 12px; margin-bottom: 8px; box-shadow: none; }
.feed-card-layout { display: grid; grid-template-columns: 74px minmax(0, 1fr); }
.feed-card-layout.feed-card-open-layout { grid-template-columns: 74px minmax(0, 1fr); }
.feed-card-date { display: block; padding-top: 2px; line-height: 1.2; }
.feed-card-date span { display: block; color: var(--hint); font-size: var(--font-caption); font-weight: 500; }
.feed-card-date strong { display: block; color: var(--heading); font-size: 18px; letter-spacing: var(--heading-tracking); white-space: nowrap; }
.feed-card-open-time strong { font-size: 14px; line-height: 1.25; white-space: normal; }
.feed-card-layout .feed-card-content { grid-column: 2; padding-left: 10px; border-left: 1px solid var(--divider); }
.feed-card .chips { margin-top: 0; }
.feed-card .feed-card-times { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 4px; margin-top: 6px; }
.feed-card-times .chip { flex: none; font-weight: 600; }
:root[data-theme="dark"] .feed-card-times .chip:not(.on),
:root[data-theme="dark"] .organizer-request-times .time-chip:not(.on),
:root[data-theme="dark"] button.organizer-booking-time {
  background: #3A3D43;
  color: #F3F4F6;
  border-color: #565B65;
}
:root[data-theme="dark"] button.organizer-booking-time { box-shadow: inset 0 0 0 1px #565B65; }
.chip.time-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  border: 1px solid var(--stroke);
  white-space: nowrap;
}
.chip.time-chip.full { opacity: .78; }
.chip.time-chip.full .time-label { text-decoration: line-through; text-decoration-thickness: 1px; }
.chip.previous-time-chip { cursor: default; opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }
.chip.time-chip:not(.on) { color: var(--text); }
.feed-card-times .time-chip > span > span { font-size: 15px; line-height: 1; }
.haircut-load-error, .map-load-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--font-description);
}
.haircut-load-error > b, .map-load-error > b { font-size: inherit; }
.haircut-load-error > button, .map-load-error > button { flex: none; }
.map-load-error { position: absolute; z-index: 550; top: 58px; left: 12px; right: 12px; }
.feed-card-status, .feed-card .booking-status-button { margin-top: 5px; max-width: 100%; }
.feed-card-markers { gap: 6px; margin-bottom: 5px; }
.event-type-badge { cursor: pointer; flex: 0 0 auto; width: auto; max-width: none; min-width: max-content; padding: 2px 7px; font-size: 11px; line-height: 1.15; text-align: center; white-space: nowrap; }
:root[data-theme="dark"] .event-type-badge {
  background: #3A3D43;
  color: #F3F4F6;
  box-shadow: inset 0 0 0 1px #ffffff24;
}
.request-type-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: -2px 0 8px; }
.request-type-header .request-type-status { flex: 0 1 auto; min-width: 0; white-space: normal; line-height: 1.2; }
.request-type-header .event-type-badge { flex: 0 0 auto; width: auto; max-width: none; margin: 0 0 0 auto; }
.feed-card-haircut { margin-top: 5px; line-height: 1.25; overflow-wrap: anywhere; }
.feed-card-haircut b { color: var(--heading); font-size: var(--font-section); font-weight: 700; letter-spacing: var(--heading-tracking); }
.feed-card-place { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; }
.feed-card-place .feed-card-venue-pin { width: 13px; height: 16px; object-fit: contain; flex: none; align-self: center; }
.feed-card-place .ldot { width: 7px; height: 7px; margin-right: 3px; }
button.booking-status-button { min-height: 0; text-align: left; cursor: pointer; }
.booking-history-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 0; }
.booking-history-item .hint { flex: none; }
.visit-countdown { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.visit-countdown .pulse { flex: none; animation-duration: 3s; }
.visit-countdown .link { margin-left: auto; font-size: inherit; }
@media (prefers-reduced-motion: reduce) { .visit-countdown .pulse { animation: none; } }
.supply b { color: #6FD49B; font-weight: 700; }

.mapscreen { position: fixed; inset: 0 0 calc(var(--app-nav-height, 76px) + var(--app-viewport-gap, 0px)) 0; background: var(--bg2); color: var(--text); display: flex; flex-direction: column; }
body.model-map-active, body.model-map-active #app { background:#000; }
body.model-map-active .mapscreen { background:#000; color:#fff; }
body.model-map-active .maphead h1 { color:inherit; }
body.model-map-active .maphead .seg { background:#242424; }
body.model-map-active .maphead .seg span { color:#bbb; }
body.model-map-active .maphead .seg span.on { background:#f2f2ef; color:#111; }
.past-event-card { filter: grayscale(1); opacity:.62; cursor:default; }
.youtube-frame { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:12px; background:#000; }
.youtube-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.maphead { padding: calc(12px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px)) 12px 0; }
.maphead .chip { background: var(--control); color: var(--text); } .maphead .chip.on { background: var(--btn); color: var(--btn-text); }
.maphead .supply { margin-bottom: 4px; }
.mapbox { flex: 1; position: relative; overflow: hidden; }
.lmap { position: absolute; inset: 0; background: #1a1b1c; }
.lmap .leaflet-control-attribution { background: #0009; color: #888; font-size: 9px; } .lmap .leaflet-control-attribution a { color: #aaa; }
.lmkw { background: none; border: 0; }
.lmk { position: relative; width: 30px; height: 30px; }
.lmk b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #33A36B; color: #fff; font: 800 13px var(--font-sans); border: 2.5px solid #0C0D0D; box-shadow: 0 2px 10px #0008; transition: transform .15s; }
.lmk.on b { transform: scale(1.25); background: #3DBA7A; box-shadow: 0 0 0 8px #33A36B40, 0 2px 10px #0008; }
.lmk span { position: absolute; left: 34px; top: 7px; white-space: nowrap; font: 700 11px var(--font-sans); color: #fff; text-shadow: 0 0 3px #000, 0 0 6px #000; pointer-events: none; }
.mlabel { font: 600 10px var(--font-sans); fill: #C9CDCB; pointer-events: none; } .mlabel.strong { fill: #fff; font-size: 11px; }
.mnum { font: 800 12px var(--font-sans); fill: #fff; pointer-events: none; }
.mk { cursor: pointer; }
.zoombtns { position: absolute; right: 12px; bottom: 24px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.zoombtns button { width: 42px; height: 42px; border-radius: 14px; background: #1E1F1F; color: #fff; font-size: 22px; padding: 0; border: 1px solid #ffffff14; }
.mapempty { z-index: 500; position: absolute; left: 16px; right: 16px; top: 40%; text-align: center; color: #9AA19D; font-size: 14px; }
.mapsheet { z-index: 600; position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: 46%; overflow: auto; background: var(--bg); color: var(--text); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 10px 40px #0007; }
.msitem { padding: 10px 0; border-top: 1px solid var(--divider); cursor: pointer; } .msitem:first-of-type { border-top: 0; }
.chip.full { opacity: .45; text-decoration: line-through; }
.mrow { padding: 12px 14px; } .mrow b { font-size: 16px; }
.badge.sm { font-size: 11px; padding: 2px 7px; vertical-align: 2px; }
.urgent-link { color: var(--ok-text); font-weight: 600; font-size: 14px; cursor: pointer; }
.bal { display: flex; gap: 8px; margin-top: 10px; } .bal div { flex: 1; background: var(--field); border-radius: 12px; padding: 10px; }
.bal b { display: block; font-size: 22px; } .bal span { font-size: 12px; color: var(--hint); }
.tone { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.tone.ok { background: var(--ok-surface); color: var(--ok-text); } .tone.need_models { background: var(--bad-surface); color: var(--bad-text); } .tone.need_requests { background: #342914; color: var(--notice-bg); }

.mthumb { width: 56px; height: 70px; border-radius: 12px; object-fit: cover; flex: none; background: var(--control); }
.tl { padding: 2px 14px; }
.tlrow { display: flex; align-items: center; gap: 8px; min-height: 42px; border-bottom: 1px solid var(--divider); font-size: 14px; cursor: pointer; }
.tlrow:last-child { border-bottom: 0; }
.tlrow.dim { opacity: .45; }
.tdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #bbb; }
.tdot.ok { background: #2E9E62; } .tdot.okl { background: #9BD3B3; } .tdot.bad { background: #D9534F; } .tdot.info { background: #5B8DEF; } .tdot.warn { background: var(--notice-bg); }
.tname { font-size: 14px; white-space: nowrap; }
.tstar { font-size: 12px; color: var(--notice-bg); white-space: nowrap; }
.tcontact { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tst { font-size: 12px; color: var(--hint, #8a8f8c); white-space: nowrap; }
.tmore { padding: 6px 2px 6px 8px; font-size: 18px; line-height: 1; color: var(--hint); cursor: pointer; }
button.danger { color: var(--bad-text); }
.blk { margin: 10px 6px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hint, #8a8f8c); } .blk.ok { color: #2E9E62; }
.prio .pi { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .prio:not(.locked) .pi { fill: currentColor; stroke-width: 1.5; }

.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 14px; background: var(--control); color: var(--hint); text-align: center; cursor: pointer; }
.bdg small { font-size: 11px; line-height: 1.2; font-weight: 600; }
.bdg .bi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bdg.on { background: var(--ok-surface); color: var(--ok-text); }
.afternudge { border: 1.5px solid #33A36B55; }
.pairc { border: 1.5px solid #33A36B55; }
.pairtag { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 8px; background: var(--ok-surface); color: var(--ok-text); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tlrow .pairtag { margin-top: 0; }
.hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hcell { display: flex; flex-direction: column; gap: 3px; }
.hph { aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--field); border: 1.5px dashed var(--stroke); display: flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 4px; }
.hph img { width: 100%; height: 100%; object-fit: cover; }
.hadd { display: flex; flex-direction: column; align-items: center; font-size: 28px; color: #8a8f8c; } .hadd small { font-size: 12px; }

.citybtn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; margin: 0 0 12px; padding: 18px 18px; border-radius: 18px; background: var(--bg); color: var(--text); border: 0; font: inherit; cursor: pointer; }
.citybtn b { display: block; font-size: 18px; } .citybtn span { display: block; font-size: 13px; color: var(--hint); margin-top: 3px; }
.citybtn i { font-style: normal; font-size: 26px; color: var(--hint); }
.citybtn.main { background: var(--raised); color: var(--heading); } .citybtn.main span { color: #B9BDBA; } .citybtn.main i { color: #3DBA7A; }
:root[data-theme="gray"] .citybtn.main,
:root[data-theme="gray"] .citybtn.main b { color: #202329; }
:root[data-theme="gray"] .citybtn.main span { color: #41464F; }
:root[data-theme="gray"] .citybtn.main i { color: #1E6B45; }
:root[data-theme="light"] .citybtn.main { background: #111113; color: #FFFFFF; }
:root[data-theme="light"] .citybtn.main span { color: #D1D5DB; }
:root[data-theme="light"] .citybtn.main i { color: #8FDBD9; }
.citycard { margin-top: 0; }
.citystat { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; padding: 16px 18px; border-radius: 18px; background: #111113; color: #fff; }
.citystat b { font-size: 34px; color: #3DBA7A; line-height: 1; } .citystat span { font-size: 14px; line-height: 1.3; color: #D8DBD9; }

.seg.dark { background: var(--control); } .seg.dark span { color: var(--hint); } .seg.dark span.on { background: var(--btn); color: var(--btn-text); }
.seg3 { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; }
.seg3 span { flex: 1; text-align: center; padding: 9px 14px; border-radius: 20px; background: var(--control); font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; cursor: pointer; }
.seg3 span.on { background: var(--btn); color: var(--btn-text); }
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scard { background: var(--bg); border-radius: var(--radius); padding: 8px 8px 12px; cursor: pointer; }
.scard b { display: block; color: var(--heading); font-size: var(--font-description); font-weight: 700; letter-spacing: var(--heading-tracking); margin: 8px 4px 0; }
.sph { aspect-ratio: 1; border-radius: 12px; background: var(--control); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sph img { width: 100%; height: 100%; object-fit: cover; }
.sbig { border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; background: var(--bg); } .sbig img { width: 100%; display: block; }
.reference-viewer { position: relative; touch-action: pan-y; }
.reference-nav { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 48px; padding: 0; transform: translateY(-50%); border: 1px solid #ffffff55; border-radius: 16px; background: #111317b8; color: #fff; font-size: 30px; line-height: 1; }
.reference-nav.previous { left: 10px; }
.reference-nav.next { right: 10px; }
.vthumb { width: 56px; height: 56px; border-radius: 12px; background: #111113; color: #3DBA7A; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.svideo { width: 100%; border-radius: 16px; background: #000; margin-bottom: 12px; }
.modal.full { background: #000E; display: flex; align-items: center; justify-content: center; } .modal.full img { max-width: 100%; max-height: 100%; }
.mini { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--control); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--hint); cursor: pointer; }
.mini img { width: 100%; height: 100%; object-fit: cover; } .mini span { position: absolute; top: 2px; right: 4px; color: #fff; text-shadow: 0 0 4px #000; font-size: 14px; }
.card .chip { background: var(--control); } .card .chip.on { background: var(--btn); color: var(--btn-text); }
.pdisc { margin: 6px 0 2px; font-size: 20px; font-weight: 800; color: var(--ok-text); }
.btnlink { display: block; text-align: center; padding: 14px; border-radius: 14px; background: var(--btn); color: var(--btn-text); font-weight: 600; text-decoration: none; }

.card.solo { border: 1.5px solid #F28C28; background: #F28C2810; }
.card.solo b:first-child { color: var(--notice-bg); }

.pill.off { opacity: .6; }
.nudge.fillme { cursor: pointer; }
.lmap.osm .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.85) contrast(.9); }
.lmap.osm.s-mid .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(1.35) contrast(.7); }
.lmap.osm.s-gray .leaflet-tile-pane { filter: grayscale(1) brightness(1.02) contrast(.9); }
.lmap.osm.s-color .leaflet-tile-pane { filter: none; }
.lmap.s-gray, .lmap.s-color { background: #e8e8e8; }
.mapstyles { position: absolute; left: 10px; top: 10px; z-index: 500; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 70px); }
.mapstyles span { background: #000b; color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 14px; }
.mapstyles span.on { background: #2fbf71; }
.tmove { font-size: 12px; font-weight: 600; color: var(--ok-text); padding: 6px 0 6px 8px; white-space: nowrap; cursor: pointer; }
button.ok2 { border-color: var(--ok-text); color: var(--ok-text); font-weight: 600; }
.lmap.minimap { position: relative; height: 170px; border-radius: 14px; overflow: hidden; margin-top: 12px; }
.lpin { width: 22px; height: 22px; border-radius: 50%; background: #F28C28; border: 3px solid #fff; box-shadow: 0 2px 8px #0006; }
body.kb .page { padding-bottom: 55vh; }
body.kb .tabs { display: none; }
.slotmore { align-self: center; margin-left: 6px; font-size: 22px; }
.clientline { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #F28C2814; font-size: 13px; cursor: pointer; }
.clientline.ok { background: var(--ok-surface); color: var(--ok-text); }

.zoom { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.zoom .zstrip { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.zoom .zstrip::-webkit-scrollbar { display: none; }
.zoom .zstrip img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.zoom .closex { position: absolute; top: 14px; right: 16px; color: #fff; font-size: 22px; }

.refrow { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.refitem { flex: 0 0 151px; border-radius: 12px; border: 2px solid transparent; background: var(--control); color: var(--text); overflow: hidden; font-size: 12px; padding: 0; }
.refitem.on { border-color: #2fbf71; }
.refitem img, .refitem .refph { width: 100%; height: 113px; object-fit: cover; display: block; background: var(--control); }
.refitem span { display: block; padding: 4px 6px; line-height: 1.25; }
.reference-library-filter { display: flex; gap: 6px; margin: 0 4px 12px; }
:is(#app, #client-app) .reference-library-filter button.chip { background: var(--control); color: var(--text); }
:is(#app, #client-app) .reference-library-filter button.chip.on { background: var(--btn); color: var(--btn-text); }
.visit-confirm-action { margin-bottom: 12px; }
.booking-visit-info { gap: 8px; align-items: baseline; }
.booking-visit-info > .hint { min-width: 0; overflow-wrap: anywhere; }
.visit-memo-link { flex: none; color: var(--text); font-size: var(--font-caption); white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.visit-memo-content p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.visit-memo-gallery { margin: 12px -12px 0; }
.visit-memo-uploads .uploader { flex-wrap: wrap; }
.booking-summary .visit-memo-edit-link { background: var(--control); color: var(--text); padding: 10px 14px; }
.visit-memo-model-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 0 10px; padding: 3px 9px; border-radius: var(--pill-radius); background: var(--control); background-image: var(--surface-light); box-shadow: var(--surface-rim); color: var(--text); font-size: var(--font-caption); font-weight: 600; line-height: 1.35; text-decoration: none; }
.refview { display: flex; gap: 10px; align-items: center; margin-top: 10px; background: var(--field); border-radius: 12px; padding: 8px; }
.refview img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.refimgs { display: flex; gap: 4px; flex: none; }
.refimgs img { width: 40px; height: 40px; }


/* Защита обычного сохранения не заменяет серверную проверку прав. */
body:not(.media-owner) img,
body:not(.media-owner) video,
body:not(.media-owner) [data-private-photo] {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
.private-photo-note { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0; font-size: 11px; line-height: 1.45; color: var(--hint); }
.private-photo-note svg { flex: 0 0 16px; margin-top: 1px; }
.private-photo-note b { font-weight: 500; color: var(--text); }
.private-photo-modal { background: #000e; align-items: center; justify-content: center; }
.private-photo-view { position: relative; width: min(100%, 720px); padding: 16px; padding-top: calc(42px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.private-photo-view > img { display: block; max-width: 100%; max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px - var(--app-bottom-inset)); object-fit: contain; border-radius: 14px; margin: auto; }
.private-photo-view .private-photo-note { color: #d7d7db; max-width: 440px; margin: 12px auto 0; }
.private-photo-view .private-photo-note b { color: #fff; }
.private-photo-view .closex { position: absolute; right: 16px; top: calc(4px + env(safe-area-inset-top, 0px)); color: #fff; background: transparent; font-size: 30px; padding: 4px 10px; min-width: 44px; min-height: 44px; }
:root { --app-bottom-inset: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px)); }
#app { padding-bottom: calc(var(--app-nav-height, 76px) + 24px + var(--app-viewport-gap, 0px)); }
.tabs { padding-bottom: calc(6px + var(--app-bottom-inset)); }
.modal .sheet { padding-bottom: calc(16px + var(--app-bottom-inset)); }
@media (pointer: coarse) { input, select, textarea { font-size: 16px; } }

html { scroll-padding-bottom: calc(var(--app-nav-height, 76px) + 24px + var(--app-viewport-gap, 0px)); }
.tabs { bottom: var(--app-viewport-gap, 0px); }
.page.profile-modes { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 16px; padding-bottom: 24px; }
.profile-modes > button { width: 100%; margin-top: 0; }
.page-bottom-action { margin-bottom: 12px; }
.row > .grow { min-width: 0; }
.contact-search-result { border-top: 1px solid #0001; padding-top: 12px; }
.contact-search-photo { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.contact-search-result b, .contact-search-result .hint { overflow-wrap: anywhere; }
.contact-search-result .link { padding: 4px 0; font-size: 13px; }

input[type="checkbox"] { accent-color: var(--ok-text); }

.booking-detail-theme {
  --ok: #175E3B;
  --bad: #952332;
}
.booking-detail-theme .card { padding: 18px; }
.booking-haircut-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.booking-haircut-copy { flex: 1 1 auto; min-width: 0; }
.booking-haircut-head .event-type-badge { flex: 0 0 auto; width: auto; max-width: none; margin: 0 0 0 auto; }
.booking-summary {
  --text: #F3F4F6;
  --heading: #FFFFFF;
  --hint: #B0B7C2;
  background: #555B66;
  color: var(--text);
}
.booking-detail-theme .venue-jump {
  background: var(--control); border-color: var(--stroke); border-radius: var(--pill-radius);
  font-size: var(--font-caption); font-weight: 700; letter-spacing: var(--heading-tracking);
}
.booking-detail-theme .warning-text { font-size: var(--font-description); }
.booking-detail-theme .booking-message-send,
.booking-detail-theme .sheet > textarea + button,
.booking-detail-theme .sheet > a.block,
.booking-status-sheet > button.block { margin-top: 16px; }
.booking-detail-theme :is(button.block, button.grow) { min-height: 44px; }
.booking-detail-theme .booking-message-send:disabled { opacity: 1; background: var(--control); color: var(--hint); box-shadow: inset 0 0 0 1px var(--stroke); }
.booking-invite-actions-pair {
  display: grid; grid-template-columns: minmax(0, 61fr) minmax(0, 39fr); gap: 8px; margin-top: 10px;
}
.booking-invite-actions-pair > button { margin-top: 0; padding-inline: 8px; }
.tabs-glass {
  --glass-solid: var(--dock);
  --glass-blur: 12px;
  --dock-glass-gap: max(8px, var(--app-bottom-inset));
  --dock-glass-active: color-mix(in srgb, var(--dock) 82%, var(--heading) 18%);
  --dock-glass-label: #C5CEDA;
  left: max(10px, env(safe-area-inset-left, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  max-width: 540px;
  margin-inline: auto;
  gap: 5px;
  padding: 6px 7px calc(6px + var(--dock-glass-gap));
  background: transparent;
  border: 0;
}
:root[data-theme="light"] .tabs-glass {
  --dock-glass-active: color-mix(in srgb, var(--dock) 88%, #111113 12%);
  --dock-glass-label: #4A596B;
}
.tabs-glass::before {
  content: "";
  position: absolute;
  inset: 0 0 var(--dock-glass-gap);
  border-radius: var(--pill-radius);
  pointer-events: none;
}
:is(.tabs-glass, .modal.glass-info-modal) {
  --glass-tint: rgb(34 35 39 / 72%);
  --glass-edge: rgb(231 236 245 / 16%);
  --glass-rim: rgb(241 246 255 / 27%);
  --glass-reflection: rgb(228 236 248 / 15%);
  --glass-shadow: rgb(8 11 17 / 26%);
}
:root[data-theme="gray"] :is(.tabs-glass, .modal.glass-info-modal) {
  --glass-tint: rgb(47 49 54 / 78%);
}
:root[data-theme="light"] :is(.tabs-glass, .modal.glass-info-modal) {
  --glass-tint: rgb(243 249 250 / 86%);
  --glass-edge: rgb(105 131 148 / 24%);
  --glass-rim: rgb(255 255 255 / 91%);
  --glass-reflection: rgb(255 255 255 / 69%);
  --glass-shadow: rgb(49 79 100 / 17%);
}
.modal.glass-info-modal .sheet,
.tabs-glass::before {
  border: 1px solid var(--glass-edge);
  background:
    radial-gradient(ellipse at 26% 0, var(--glass-reflection), transparent 64%) top / 100% 9px no-repeat,
    radial-gradient(ellipse at 76% 100%, var(--glass-reflection), transparent 65%) bottom / 100% 10px no-repeat,
    var(--glass-solid);
  box-shadow:
    inset 0 1px 2px var(--glass-rim),
    inset 0 -1px 3px var(--glass-rim),
    inset 0 -6px 14px var(--glass-shadow),
    0 6px 22px var(--glass-shadow);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .modal.glass-info-modal .sheet,
  .tabs-glass::before {
    background-color: var(--glass-tint);
    -webkit-backdrop-filter: blur(var(--glass-blur, 17px)) saturate(130%);
    backdrop-filter: blur(var(--glass-blur, 17px)) saturate(130%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .modal.glass-info-modal .sheet,
  .tabs-glass::before {
    background-color: var(--glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.tabs.tabs-glass a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--pill-radius);
  color: var(--dock-glass-label);
}
.tabs.tabs-glass a.on {
  border-radius: var(--pill-radius);
  background: var(--dock-glass-active);
  box-shadow: inset 0 1px 1px var(--glass-reflection), inset 0 0 0 1px var(--glass-edge);
  color: var(--heading);
}
.tabs-glass a.on svg { stroke-width: 2.1px; }
.tabs-glass .nav-count { box-shadow: 0 0 0 1px var(--dock); }

.client-booking-link { padding: 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--stroke); gap: 10px; }
.client-booking-link > div { min-width: 0; overflow-wrap: anywhere; }
.client-booking-link > span { flex-shrink: 0; color: var(--ok-text); }

/* Slightly deepen the surfaces and filters on the haircut selection screen. */
.haircut-feed .feed-card {
  background-color: color-mix(in srgb, var(--bg) 95%, #000 5%);
}
.haircut-feed .haircut-filters .chip {
  background-color: color-mix(in srgb, var(--control) 95%, #000 5%);
}
.haircut-feed .haircut-filters .chip.on {
  background-color: color-mix(in srgb, var(--btn) 95%, #000 5%);
}

/* Shared surface lighting for both mini apps. */
:root {
  --surface-light: linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(0 0 0 / 2.5%));
  --surface-rim: inset 0 0 0 1px rgb(255 255 255 / 10%);
  --field-shade: rgb(0 0 0 / 12%);
  --field-depth: rgb(0 0 0 / 32%);
}
:root[data-theme="gray"] {
  --surface-rim: inset 0 0 0 1px rgb(255 255 255 / 12%);
  --field-depth: rgb(0 0 0 / 24%);
}
:root[data-theme="light"] {
  --surface-light: linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(30 41 59 / 4%));
  --surface-rim: inset 0 0 0 1px rgb(30 41 59 / 9%);
  --field-shade: rgb(30 41 59 / 5%);
  --field-depth: rgb(30 41 59 / 10%);
}
:root[data-theme="light"] :is(.booking-summary, .citybtn.main, button.booking-support) {
  --surface-rim: inset 0 0 0 1px rgb(255 255 255 / 10%);
}
:is(#app, #client-app) :is(
  .card, .seg, .seg > .on, .chip, .slotpick, .venue-jump, .citybtn,
  .mapsheet, .client-booking-link, .profile-setting-block,
  .modal:not(.glass-info-modal) > .sheet, .btnlink,
  button.booking-support, button.block:not(.danger), button.grow:not(.danger)
) {
  background-image: var(--surface-light);
}
:is(#app, #client-app) :is(
  .card:not(.nudge, .solo), .seg, .seg > .on, .chip:not(.time-chip, .reference-library-filter .on),
  .slotpick:not(.on), .citybtn, .btnlink, .modal:not(.glass-info-modal) > .sheet,
  button.block:not(.ghost, .danger, :disabled), button.grow:not(.ghost, .danger, :disabled),
  button.booking-support
) {
  box-shadow: var(--surface-rim);
}
:root[data-theme="light"] #app button.ghost:is(.block, .grow):not(.danger, .booking-cancel-action, :disabled) {
  box-shadow: var(--surface-rim);
}
:is(#app, #client-app) :is(textarea, input:not([type]), input:is([type="text"], [type="tel"], [type="search"], [type="number"], [type="password"], [type="url"], [type="email"])) {
  background-image: linear-gradient(180deg, var(--field-shade), transparent 55%);
  box-shadow: inset 0 2px 5px var(--field-depth), inset 0 0 0 1px var(--stroke);
}

/* Deepen neutral surfaces app-wide while semantic status colors stay intact. */
:is(#app, #client-app) .card:not(.nudge, .solo, .booking-summary, .fresh-photo-request) {
  background-color: color-mix(in srgb, var(--bg) 95%, #000 5%);
}
:is(#app, #client-app) :is(.seg, .mapsheet, .modal:not(.glass-info-modal) > .sheet, .citybtn:not(.main)) {
  background-color: color-mix(in srgb, var(--bg) 95%, #000 5%);
}
:is(#app, #client-app) :is(.profile-setting-block, .client-booking-link, .slotpick:not(.on)) {
  background-color: color-mix(in srgb, var(--field) 95%, #000 5%);
}
:is(#app, #client-app) :is(.chip:not(.ok, .warn, .bad, .time-chip), button.ghost:not(.danger, .warn, .ok)) {
  background-color: color-mix(in srgb, var(--control) 95%, #000 5%);
}
:root[data-theme="dark"] :is(#app, #client-app) .request-view .slotpick:not(.on) {
  background-color: color-mix(in srgb, #3A3D43 95%, #000 5%);
}
:is(#app, #client-app) :is(.seg > .on, .chip.on:not(.ok, .warn, .bad, .time-chip)) {
  background-color: color-mix(in srgb, var(--btn) 95%, #000 5%);
}

.toast.validation { top: calc(12px + var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px)); background: #ffe083; color: #382700; border: 1px solid #d5a92a; box-shadow: 0 6px 24px #0005; padding: 14px 16px; font-weight: 650; }

/* Пустая лента: небольшая кнопка подписки, не на всю ширину */
.feed-watch-btn { margin-top: 14px; display: inline-flex; width: auto; }

/* Аналитика владельца: число крупно, пояснение рядом */
.an-row { padding: 10px 0; border-bottom: 1px solid var(--divider); }
.an-row:last-of-type { border-bottom: 0; }
.an-row > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.an-row b { font-size: 24px; }
.an-row span { color: var(--hint); font-size: 14px; }
