/* Puncto website — Material 3 (Google Sans) */
:root {
  /* "Noto Color Emoji" draws country flags, which Windows shows as two letters ("TR") */
  --font: "Google Sans", "Noto Color Emoji", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shape-xs: 4px; --shape-sm: 8px; --shape-md: 12px; --shape-lg: 16px; --shape-xl: 28px; --shape-full: 999px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --elev-1: 0 1px 2px rgb(0 0 0 / .3), 0 1px 3px 1px rgb(0 0 0 / .15);
  --elev-2: 0 1px 2px rgb(0 0 0 / .3), 0 2px 6px 2px rgb(0 0 0 / .15);
  --elev-3: 0 4px 8px 3px rgb(0 0 0 / .15), 0 1px 3px rgb(0 0 0 / .3);
  /* status colours: «горящий», warning, done — light, and dark below (also when the user picks a mode by hand) */
  --hot-bg: #ffdad4; --hot-fg: #8c1d18; --hot-icon: #b3261e; --hot-soft: #fff1ee;
  --warn-bg: #fff4e5; --warn-fg: #7a4100; --ok-bg: #e7f7ee; --ok-fg: #0f5c35;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --hot-bg: #73241c; --hot-fg: #ffdad4; --hot-icon: #ffb4ab; --hot-soft: rgb(255 180 171 / .1);
    --warn-bg: #4a2a00; --warn-fg: #ffd7a8; --ok-bg: #0f3b25; --ok-fg: #a6eec4; }
}
:root[data-theme="dark"] { --hot-bg: #73241c; --hot-fg: #ffdad4; --hot-icon: #ffb4ab; --hot-soft: rgb(255 180 171 / .1);
  --warn-bg: #4a2a00; --warn-fg: #ffd7a8; --ok-bg: #0f3b25; --ok-fg: #a6eec4; }
/* a picture with a light and a dark version (logos) follows the same switch */
/* (:root raises the weight so a component's own `img { display: block }` cannot show both versions) */
:root .for-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .for-dark { display: revert-layer !important; } :root:not([data-theme="light"]) .for-light { display: none !important; } }
:root[data-theme="dark"] .for-dark { display: revert-layer !important; } :root[data-theme="dark"] .for-light { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 14px/20px var(--font);
  letter-spacing: .25px;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
  -webkit-font-smoothing: antialiased;
}
/* small native things follow the theme: checkboxes and radios, selection, scrollbars, autofill, focus */
:root { accent-color: var(--md-sys-color-primary); }
::selection { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--md-sys-color-on-surface) 26%, transparent) transparent; }
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--md-sys-color-on-surface); caret-color: var(--md-sys-color-primary);
  transition: background-color 100000s 0s; /* keeps the field's own background instead of Chrome's yellow or blue */
}
:is(a, summary, [tabindex]):focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; border-radius: 4px; }
:is(.check input, .share__switch input, .consent input):focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--md-sys-color-on-surface-variant); opacity: .8; }
/* the client's page is always light, whatever the visitor's system says */
body.client, body.client * { scrollbar-color: rgb(16 24 40 / .25) transparent; }
body.client ::selection { background: #d6e4ff; color: #0b1f3a; }
a { color: var(--md-sys-color-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
.icon { flex: none; fill: currentColor; }
img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 24px;
  border: 0; border-radius: var(--shape-full);
  font: 500 14px/20px var(--font); letter-spacing: .1px;
  text-decoration: none !important; white-space: nowrap;
  cursor: pointer; isolation: isolate;
  transition: box-shadow 150ms var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity 150ms; z-index: -1; }
.btn:hover::before { opacity: .08; }
.btn:active::before, .btn:focus-visible::before { opacity: .1; }
.btn:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
.btn:has(.icon:first-child) { padding-left: 16px; }
.btn--filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.btn--filled:hover { box-shadow: var(--elev-1); }
.btn--tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.btn--outlined { background: transparent; color: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); }
.btn--text { background: transparent; color: var(--md-sys-color-primary); padding: 0 12px; }
.btn--text:has(.icon:first-child) { padding: 0 16px 0 12px; }
.btn--text-danger { color: var(--md-sys-color-error); }
.btn--danger { background: transparent; color: var(--md-sys-color-error); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.btn--large { height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--shape-lg); }
.btn--block { width: 100%; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--md-sys-color-on-surface-variant); cursor: pointer; isolation: isolate;
}
.icon-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity 150ms; z-index: -1; }
.icon-btn:hover::before { opacity: .08; }
.icon-btn--danger { color: var(--md-sys-color-error); }

/* ---------- Fields (outlined text field) ---------- */
.field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.field__input {
  width: 100%; height: 56px; padding: 0 16px;
  border: 1px solid var(--md-sys-color-outline); border-radius: var(--shape-xs);
  background: transparent; color: var(--md-sys-color-on-surface);
  font: 400 16px/24px var(--font); outline: none; caret-color: var(--md-sys-color-primary);
}
.field--textarea .field__input { height: auto; min-height: 96px; padding: 16px; resize: vertical; }
.field__input:hover { border-color: var(--md-sys-color-on-surface); }
.field__input:focus { border: 2px solid var(--md-sys-color-primary); padding-left: 15px; }
.field__label {
  position: absolute; left: 12px; top: 28px; transform: translateY(-50%);
  padding: 0 4px; background: var(--field-bg, var(--md-sys-color-surface));
  color: var(--md-sys-color-on-surface-variant); font: 400 16px/24px var(--font);
  pointer-events: none; transition: all 150ms var(--ease);
}
.field--textarea .field__label { top: 28px; }
.field__input:focus + .field__label, .field__input:not(:placeholder-shown) + .field__label { top: 0; font-size: 12px; line-height: 16px; }
.field__input:focus + .field__label { color: var(--md-sys-color-primary); }
.field__hint { padding: 0 16px; font-size: 12px; line-height: 16px; color: var(--md-sys-color-on-surface-variant); }
select.field__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-position: calc(100% - 22px) 26px, calc(100% - 17px) 26px; background-size: 5px 5px; background-repeat: no-repeat; }

.check { display: flex; align-items: center; gap: 16px; min-height: 48px; cursor: pointer; }
.check input[type=checkbox] { appearance: none; position: relative; flex: none; width: 52px; height: 32px; margin: 0; border-radius: var(--shape-full); border: 2px solid var(--md-sys-color-outline); background: var(--md-sys-color-surface-container-highest); cursor: pointer; transition: all 200ms; }
.check input[type=checkbox]::after { content: ""; position: absolute; top: 6px; left: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--md-sys-color-outline); transition: all 200ms var(--ease); }
.check input[type=checkbox]:checked { background: var(--md-sys-color-primary); border-color: var(--md-sys-color-primary); }
.check input[type=checkbox]:checked::after { left: 22px; top: 2px; width: 24px; height: 24px; background: var(--md-sys-color-on-primary); }
.check__text { display: flex; flex-direction: column; }
.check__text small { color: var(--md-sys-color-on-surface-variant); font-size: 13px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ---------- Banners, chips, snackbar ---------- */
.banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--shape-md); }
.banner .icon { margin-top: -2px; }
.banner--error { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.banner--info { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--shape-sm); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); font-weight: 500; text-decoration: none !important; white-space: nowrap; }
.chip.is-selected { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--shape-sm); font: 500 12px/16px var(--font); letter-spacing: .5px; }
.badge--sent { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.badge--picked { gap: 4px; padding-left: 8px; background: var(--hot-bg); color: var(--hot-fg); }
.client-seen { display: inline-flex; align-items: center; gap: 3px; vertical-align: -2px; }
.client-seen--no { opacity: .75; }
.stat--hot { background: var(--hot-bg); color: var(--hot-fg); }
.client-card { display: grid; gap: 16px; }
.tg-alerts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; padding: 10px 12px; border-radius: var(--shape-md); background: var(--warn-bg); color: var(--warn-fg); font-size: 14px; line-height: 20px; }
.tg-alerts span { flex: 1 1 220px; }
.tg-alerts.is-ready { background: var(--ok-bg); color: var(--ok-fg); }
.tg-alerts.is-ready a { color: inherit; font-weight: 500; }
.chip__count { margin-left: 2px; font-weight: 600; }
.leads { display: grid; gap: 10px; }
.lead-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-low); }
.lead-card.is-done { opacity: .7; }
.lead-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--hot-bg); color: var(--hot-icon); }
.lead-card.is-done .lead-card__icon { background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant); }
.lead-card__main { flex: 1; display: grid; gap: 3px; min-width: 0; }
.lead-card__who { font-size: 16px; line-height: 22px; }
.lead-card__way { display: inline-block; margin-left: 4px; white-space: nowrap; padding: 1px 8px; border-radius: var(--shape-full); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font-size: 12px; }
.lead-card__tour { font-size: 14px; line-height: 20px; }
.lead-card__comment { font-size: 14px; line-height: 20px; font-style: italic; color: var(--md-sys-color-on-surface-variant); }
.lead-card__meta { font-size: 13px; line-height: 18px; color: var(--md-sys-color-on-surface-variant); }
.lead-card__action { flex: none; }
@media (max-width: 600px) { .lead-card { flex-wrap: wrap; padding: 14px 16px; } .lead-card__icon { display: none; } .lead-card__main { flex-basis: 100%; } .lead-card__tour b { white-space: nowrap; } .lead-card__action { flex-basis: 100%; } .lead-card__action .btn { width: 100%; } }
.client-card__head { display: flex; align-items: center; gap: 14px; }
.client-card__head .card__title { margin: 0; }
.client-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant); }
.client-card__icon.is-on { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.client-card__icon.is-hot { background: var(--hot-bg); color: var(--hot-icon); }
.client-leads { display: grid; gap: 8px; }
.client-lead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--shape-md); background: var(--hot-soft); }
.client-lead.is-done { background: var(--md-sys-color-surface-container); opacity: .75; }
.client-lead__main { display: grid; gap: 2px; min-width: 0; }
.client-lead__title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.client-lead__title .icon { color: var(--hot-icon); }
.client-lead__who { font-size: 14px; color: var(--md-sys-color-on-surface-variant); }
.client-lead__comment { font-size: 14px; font-style: italic; }
.client-lead form { flex: none; }
.client-dwell { display: grid; gap: 8px; }
.client-dwell__title { font-size: 13px; font-weight: 500; color: var(--md-sys-color-on-surface-variant); }
.client-dwell__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(60px, 3fr) 56px; align-items: center; gap: 12px; font-size: 14px; }
.client-dwell__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-dwell__bar { height: 8px; border-radius: 4px; background: var(--md-sys-color-surface-container-highest); overflow: hidden; }
.client-dwell__bar span { display: block; height: 100%; border-radius: 4px; background: var(--md-sys-color-primary); }
.client-dwell__time { text-align: right; color: var(--md-sys-color-on-surface-variant); }
@media (max-width: 600px) { .client-lead { flex-direction: column; align-items: stretch; } .client-dwell__row { grid-template-columns: minmax(0, 1fr) 56px; } .client-dwell__bar { grid-column: 1 / -1; grid-row: 2; } }
.badge--postponed { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.snackbar {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 24px); opacity: 0;
  min-width: 288px; max-width: calc(100% - 32px); padding: 14px 16px; border-radius: var(--shape-xs);
  background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); box-shadow: var(--elev-3);
  transition: all 250ms var(--ease); pointer-events: none;
}
.snackbar.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cards & lists ---------- */
.card { border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-low); padding: 24px; }
.card--outlined { background: var(--md-sys-color-surface); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.card--elevated { background: var(--md-sys-color-surface-container-low); box-shadow: var(--elev-1); }
.card__title { font: 400 22px/28px var(--font); margin-bottom: 4px; }
.card__subtitle { color: var(--md-sys-color-on-surface-variant); margin-bottom: 16px; }
.muted { color: var(--md-sys-color-on-surface-variant); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.list { display: flex; flex-direction: column; border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-low); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 16px 12px 24px; color: inherit; text-decoration: none !important; }
.list-item + .list-item { border-top: 1px solid var(--md-sys-color-outline-variant); }
a.list-item:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent); }
.list-item__lead { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); font-weight: 500; }
.list-item__body { flex: 1; min-width: 0; }
.list-item__title { font-size: 16px; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item__meta { color: var(--md-sys-color-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item__trail { display: flex; align-items: center; gap: 4px; color: var(--md-sys-color-on-surface-variant); }
.empty { padding: 48px 24px; text-align: center; color: var(--md-sys-color-on-surface-variant); }
.empty .icon { color: var(--md-sys-color-primary); margin-bottom: 12px; }
.empty h2 { font-size: 22px; line-height: 28px; color: var(--md-sys-color-on-surface); margin-bottom: 8px; }

/* ---------- Public layout ---------- */
.public-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; max-width: 1200px; margin: 0 auto; }
.public-bar__actions { display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--md-sys-color-on-surface); text-decoration: none !important; font: 500 22px/28px var(--font); letter-spacing: -.2px; }
.brand img { border-radius: 30%; }
.public-main { max-width: 480px; margin: 0 auto; padding: 24px 16px 64px; }
.public-main--wide { max-width: 1200px; }
.public-footer { padding: 24px; text-align: center; color: var(--md-sys-color-on-surface-variant); font-size: 13px; }

.auth-card { padding: 32px; border-radius: var(--shape-xl); background: var(--md-sys-color-surface-container-low); --field-bg: var(--md-sys-color-surface-container-low); }
.auth-card h1 { font-size: 32px; line-height: 40px; margin-bottom: 8px; }
.auth-card > p { color: var(--md-sys-color-on-surface-variant); margin-bottom: 24px; }
.auth-card .form { margin-top: 8px; }
.auth-alt { margin-top: 24px; text-align: center; color: var(--md-sys-color-on-surface-variant); }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; padding: 48px 8px 32px; }
.hero h1 { font-size: 57px; line-height: 64px; letter-spacing: -.25px; margin-bottom: 16px; }
.hero p { font-size: 18px; line-height: 28px; color: var(--md-sys-color-on-surface-variant); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; padding: 24px; border-radius: 48px; background: var(--md-sys-color-primary-container); }
.mock-card { display: flex; gap: 16px; align-items: center; padding: 16px; margin-bottom: 12px; border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-lowest); box-shadow: var(--elev-1); }
.mock-card:last-child { margin-bottom: 0; }
.mock-card__img { width: 64px; height: 64px; border-radius: var(--shape-md); flex: none; background: linear-gradient(135deg, var(--md-sys-color-tertiary-container), var(--md-sys-color-secondary-container)); display: grid; place-items: center; color: var(--md-sys-color-on-tertiary-container); }
.mock-card b { display: block; font-weight: 500; font-size: 16px; }
.mock-card .price { margin-left: auto; font-weight: 500; font-size: 18px; color: var(--md-sys-color-primary); white-space: nowrap; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.feature { padding: 24px; border-radius: var(--shape-xl); background: var(--md-sys-color-surface-container-low); }
.feature__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: var(--shape-lg); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.feature h3 { font-size: 22px; line-height: 28px; margin-bottom: 8px; }
.feature p { color: var(--md-sys-color-on-surface-variant); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.step { position: relative; padding: 24px; border-radius: var(--shape-xl); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font-weight: 500; }
.section-title { font-size: 36px; line-height: 44px; margin: 64px 0 8px; }

/* ---------- Cabinet layout ---------- */
.cabinet { display: flex; background: var(--md-sys-color-surface); }
.nav-rail {
  position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 96px; height: 100vh; flex: none; padding: 16px 0 24px;
  background: var(--md-sys-color-surface-container);
}
.nav-rail__brand img { display: block; border-radius: 30%; margin-bottom: 20px; }
.nav-rail__items { display: flex; flex-direction: column; gap: 12px; }
.nav-rail__item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; color: var(--md-sys-color-on-surface-variant); font: 500 12px/16px var(--font); letter-spacing: .5px; text-decoration: none !important; }
.nav-rail__indicator { display: grid; place-items: center; width: 56px; height: 32px; border-radius: var(--shape-full); transition: background 150ms; position: relative; }
.nav-rail__badge { position: absolute; top: -2px; left: 32px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--md-sys-color-error); color: var(--md-sys-color-on-error); font: 600 11px/18px var(--font); text-align: center; }
.nav-rail__item:hover .nav-rail__indicator { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.nav-rail__item.is-active { color: var(--md-sys-color-on-surface); }
.nav-rail__item.is-active .nav-rail__indicator { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.nav-rail__logout { margin-top: auto; }
.cabinet-main { flex: 1; min-width: 0; }
.top-bar { display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 16px 32px; }
/* title and content share one column, centred in the space next to the rail */
.cabinet-main > .top-bar, .cabinet-main > .cabinet-content { width: 100%; max-width: 1344px; margin-inline: auto; }
.cabinet-main--narrow > .top-bar, .cabinet-main--narrow > .cabinet-content { max-width: 624px; }
.top-bar__title { font-size: 28px; line-height: 36px; }
.top-bar__agency { color: var(--md-sys-color-on-surface-variant); }
.top-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.cabinet-content { padding: 0 32px 48px; }
.cabinet-content .card { --field-bg: var(--md-sys-color-surface-container-low); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat { padding: 20px 24px; border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-low); }
.stat__value { font-size: 45px; line-height: 52px; color: var(--md-sys-color-primary); }
.stat__label { color: var(--md-sys-color-on-surface-variant); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar .search { flex: 1 1 260px; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: var(--shape-full); background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); }
.toolbar .search input { flex: 1; height: 100%; border: 0; background: transparent; outline: none; color: var(--md-sys-color-on-surface); font: 400 16px/24px var(--font); }

table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px 16px; font: 500 12px/16px var(--font); letter-spacing: .5px; color: var(--md-sys-color-on-surface-variant); border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--md-sys-color-outline-variant); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--md-sys-color-on-surface) 4%, transparent); }

/* ---------- Quote view ---------- */
.offers { display: flex; flex-direction: column; gap: 16px; }
.offer { display: grid; grid-template-columns: 240px 1fr auto; gap: 24px; padding: 16px; border-radius: var(--shape-xl); background: var(--md-sys-color-surface-container-low); }
.offer__img { width: 240px; height: 180px; border-radius: var(--shape-lg); object-fit: cover; background: var(--md-sys-color-surface-container-high); display: grid; place-items: center; color: var(--md-sys-color-outline); }
.offer__num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; margin-bottom: 8px; border-radius: var(--shape-full); background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font-weight: 500; }
.offer__hotel { font-size: 24px; line-height: 32px; margin-bottom: 4px; }
.offer__place { color: var(--md-sys-color-on-surface-variant); margin-bottom: 12px; }
.offer__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.offer__fact { display: inline-flex; align-items: center; gap: 8px; color: var(--md-sys-color-on-surface-variant); }
.offer__fact .icon { color: var(--md-sys-color-primary); }
.offer__comment { margin-top: 12px; padding: 12px 16px; border-radius: var(--shape-md); background: var(--md-sys-color-surface-container-lowest); white-space: pre-line; }
.offer__price { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 160px; }
.offer__price strong { font-size: 28px; line-height: 36px; font-weight: 500; color: var(--md-sys-color-primary); white-space: nowrap; }
.offer__price s { color: var(--md-sys-color-on-surface-variant); }
.offer__price-edit { margin-top: 4px; }
.offer__price-edit form { display: flex; gap: 6px; justify-content: flex-end; }
.offer__price-edit [hidden] { display: none; }
.offer__price-input { width: 110px; padding: 6px 10px; border: 1px solid var(--md-sys-color-outline); border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: right; }
.offer__layover { margin: 4px 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--warn-fg); }
.offer__note { max-width: 170px; font-size: 12px; line-height: 16px; color: var(--md-sys-color-on-surface-variant); }
.offer__operator { color: var(--md-sys-color-on-surface-variant); font-size: 12px; }
.offer__operator--link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: var(--shape-full); color: var(--md-sys-color-primary); font-size: 13px; font-weight: 500; text-decoration: none; }
.offer__operator--link:hover { background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent); }

.code { font-family: "Google Sans Mono", ui-monospace, monospace; padding: 2px 6px; border-radius: var(--shape-xs); background: var(--md-sys-color-surface-container-high); }
.prose h2 { font-size: 24px; line-height: 32px; margin: 32px 0 12px; }
.prose p, .prose li { color: var(--md-sys-color-on-surface-variant); font-size: 16px; line-height: 24px; }
.prose ol, .prose ul { padding-left: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero h1 { font-size: 40px; line-height: 48px; }
  .features, .steps { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .offer__img { width: 100%; height: 200px; }
  .offer__price { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; min-width: 0; }
  .offer__agent { width: 100%; justify-content: space-between; }
}
@media (max-width: 720px) {
  .cabinet { flex-direction: column-reverse; }
  .nav-rail { position: fixed; bottom: 0; left: 0; right: 0; top: auto; z-index: 20; flex-direction: row; width: 100%; height: 80px; padding: 12px 0 16px; }
  .nav-rail__brand, .nav-rail__logout { display: none; }
  .nav-rail__items { flex-direction: row; justify-content: space-around; width: 100%; gap: 0; }
  .nav-rail__item { width: auto; flex: 1; font-size: 11px; }
  .cabinet-main { padding-bottom: 96px; }
  .top-bar { padding: 16px; flex-wrap: wrap; }
  .cabinet-content { padding: 0 16px 32px; }
  .form-row { grid-template-columns: 1fr; }
  .table .hide-sm { display: none; }
  .public-bar { padding: 12px 16px; }
  .public-bar .btn--text { display: none; }
  .auth-card { padding: 24px 20px; }
}

/* ---------- Print (client quote) ---------- */
@media print {
  .public-bar, .public-footer, .no-print, .nav-rail, .top-bar__actions { display: none !important; }
  body { background: #fff; color: #000; }
  .offer { break-inside: avoid; background: #fff; box-shadow: inset 0 0 0 1px #ccc; }
}

.offer__agent { display: flex; align-items: center; gap: 4px; }
@media (max-width: 720px) {
  .nav-rail__item.hide-sm { display: none; }
  .nav-rail__item { min-width: 0; }
  .nav-rail__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat__value { font-size: 36px; line-height: 44px; }
}

/* ---------- Message to client ---------- */
.share__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.share__switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; color: var(--md-sys-color-on-surface-variant); }
.share__switch input { appearance: none; position: relative; flex: none; width: 52px; height: 32px; margin: 0; border-radius: var(--shape-full); border: 2px solid var(--md-sys-color-outline); background: var(--md-sys-color-surface-container-highest); cursor: pointer; transition: all 200ms; }
.share__switch input::after { content: ""; position: absolute; top: 6px; left: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--md-sys-color-outline); transition: all 200ms var(--ease); }
.share__switch input:checked { background: var(--md-sys-color-primary); border-color: var(--md-sys-color-primary); }
.share__switch input:checked::after { left: 22px; top: 2px; width: 24px; height: 24px; background: var(--md-sys-color-on-primary); }
.share__preview {
  margin-top: 16px; padding: 16px 20px; overflow: auto;
  border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-lowest);
  font: 400 15px/22px var(--font); word-break: break-word; transition: opacity 150ms;
}
.share__preview.is-loading { opacity: .4; }
.share__preview { outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 150ms, opacity 150ms; cursor: text; }
.share__preview:hover { box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.share__preview:focus { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.share__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.share__ai { display: flex; flex-wrap: wrap; gap: 4px; }
.split { display: inline-flex; gap: 2px; }
/* the icon half is square, its icon in the middle (plain .btn adds room on the left for a leading icon) */
.split .btn.split__more:has(.icon) { width: 56px; padding: 0; gap: 0; }
.split__more[hidden] { display: none; }
.split:has(.split__more:not([hidden])) .split__main { border-top-right-radius: var(--shape-xs); border-bottom-right-radius: var(--shape-xs); }
.split__more { border-top-left-radius: var(--shape-xs); border-bottom-left-radius: var(--shape-xs); }

.dialog { width: min(520px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 48px)); padding: 0; border: 0; border-radius: var(--shape-xl); background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface); box-shadow: var(--elev-3); overflow: clip; }
.dialog[open] { display: flex; flex-direction: column; animation: dialog-in 200ms var(--ease); }
.dialog::backdrop { background: rgb(0 0 0 / .4); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog__head { display: flex; align-items: flex-start; gap: 16px; padding: 24px 16px 16px 24px; }
.dialog__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.dialog__titles { flex: 1; min-width: 0; }
.dialog__title { margin: 0; font: 400 22px/28px var(--font); }
.dialog__sub { margin: 4px 0 0; color: var(--md-sys-color-on-surface-variant); }
.flights__list { display: grid; gap: 12px; padding: 0 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
.flight-pick { display: grid; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface)); color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); transition: box-shadow 150ms, transform 150ms var(--ease); }
.flight-pick:hover { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.flight-pick:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.flight-pick:active { transform: scale(.99); }
.flight-pick__top { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.flight-pick__tours { padding: 4px 10px; border-radius: var(--shape-sm); background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); font-weight: 500; white-space: nowrap; }
.flight-pick__dates { flex: 1; min-width: 0; color: var(--md-sys-color-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flight-pick__action { display: inline-flex; align-items: center; gap: 6px; color: var(--md-sys-color-primary); font-weight: 500; white-space: nowrap; }
.flight-pick.is-copied .flight-pick__action { color: var(--md-sys-color-tertiary, var(--md-sys-color-primary)); }
.flight-pick__img { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio, 2); border-radius: var(--shape-md); background: #fff; }
.share__ai .icon { color: var(--md-sys-color-tertiary); }
.share__ai [hidden] { display: none; }
.share__editor { position: relative; }
.share__price-saves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.share__price-save { position: absolute; transform: translateY(-50%); padding: 3px 12px; border: 0; border-radius: 999px; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font: 500 13px/20px var(--md-ref-typeface); cursor: pointer; pointer-events: auto; }
.share__price-save:disabled { opacity: .6; cursor: default; }
.share__status { margin-top: 8px; text-align: left; color: var(--md-sys-color-on-surface-variant); font-size: 13px; }
.share__status.is-error { color: var(--md-sys-color-error); }
@media (max-width: 720px) {
  .share__bar .btn--large { width: 100%; }
  .share__bar .split { width: 100%; }
  .share__bar .split__main { flex: 1; width: auto; }
  .share__bar .split__more { width: 56px; flex: none; }
  .share__status { text-align: center; }
}

/* ---------- Auth flow ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field--password .field__input { padding-right: 56px; }
.field__toggle { position: absolute; right: 8px; top: 8px; }
.field.has-error .field__input { border-color: var(--md-sys-color-error); }
.field.has-error .field__input:focus { border-color: var(--md-sys-color-error); }
.field.has-error .field__label { color: var(--md-sys-color-error); }
.field__hint--error { color: var(--md-sys-color-error); }
.auth-link { align-self: flex-start; margin-top: -4px; font-weight: 500; }
.auth-card .btn--large { margin-top: 8px; }
.auth-card .banner { margin-bottom: 16px; }

.steps-bar { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.steps-bar__item { flex: 1; display: flex; flex-direction: column; gap: 6px; color: var(--md-sys-color-on-surface-variant); font: 500 12px/16px var(--font); letter-spacing: .3px; }
.steps-bar__item::before { content: ""; height: 4px; border-radius: 2px; background: var(--md-sys-color-surface-container-highest); }
.steps-bar__item.is-done::before, .steps-bar__item.is-current::before { background: var(--md-sys-color-primary); }
.steps-bar__item.is-current { color: var(--md-sys-color-primary); }
.steps-bar__dot { display: none; }

.code-input input {
  width: 100%; height: 72px; padding: 0 16px;
  border: 1px solid var(--md-sys-color-outline); border-radius: var(--shape-lg);
  background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface);
  font: 500 36px/44px var(--font); letter-spacing: 16px; text-align: center; outline: none;
}
.code-input input:focus { border: 2px solid var(--md-sys-color-primary); }
.code-input input::placeholder { color: var(--md-sys-color-outline-variant); letter-spacing: 16px; }
.verify-help { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--md-sys-color-outline-variant); }
.verify-help__actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0 -12px; }
.verify-change { margin-top: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:disabled::before { display: none; }
.verify-help__actions form { display: contents; }

/* ---------- Cabinet v2 ---------- */
.list-item__title, .list-item__meta { display: block; }
a.list-item__body { color: inherit; text-decoration: none !important; }
.list--plain { background: transparent; border-radius: 0; margin: 0 -24px -8px; }
.list--plain .list-item { padding-left: 24px; padding-right: 16px; }
.badge { background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.section-head h2 { font-size: 22px; line-height: 28px; }
.stat--link { display: block; color: inherit; text-decoration: none !important; transition: background 150ms; }
.stat--link:hover { background: var(--md-sys-color-surface-container); }
.stat--link .stat__label { display: flex; align-items: center; gap: 4px; }

.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.tabs { display: flex; gap: 0; margin: 0 0 24px; border-bottom: 1px solid var(--md-sys-color-outline-variant); overflow-x: auto; scrollbar-width: none; }
.tabs__tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px;
  color: var(--md-sys-color-on-surface-variant); font: 500 14px/20px var(--font); letter-spacing: .1px;
  text-decoration: none !important; white-space: nowrap;
}
.tabs__tab:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent); }
.tabs__tab.is-active { color: var(--md-sys-color-primary); }
.tabs__tab.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--md-sys-color-primary); }
.settings { max-width: none; }

.form-row--action { grid-template-columns: 1fr 1fr auto; align-items: start; }

.quote-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.quote-meta__text { flex: 1; min-width: 220px; }
.quote-meta__link { font-size: 16px; margin-top: 4px; overflow-wrap: anywhere; }
.danger-zone { display: flex; justify-content: flex-end; }

.install-steps { margin: 8px 0 20px; padding-left: 22px; color: var(--md-sys-color-on-surface-variant); font-size: 16px; line-height: 24px; }
.install-steps li { margin: 6px 0; padding-left: 4px; }
.install-steps li::marker { color: var(--md-sys-color-primary); font-weight: 500; }
.install-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.welcome { padding-bottom: 24px; }
.welcome .steps-bar { margin-bottom: 16px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 45px; line-height: 52px; margin-bottom: 8px; }

/* one horizontal rhythm for the public pages: header, content and footer share the same edges */
.public-bar { padding-left: 24px; padding-right: 24px; }
.public-main--wide { padding-left: 24px; padding-right: 24px; }

@media (max-width: 720px) {
  .form-row--action { grid-template-columns: 1fr; }
  .list--plain { margin: 0 -24px -8px; }
  .tabs { margin-left: -16px; margin-right: -16px; padding: 0 8px; }
  .public-bar, .public-main--wide { padding-left: 16px; padding-right: 16px; }
  .prose h1 { font-size: 36px; line-height: 44px; }
}

/* grid fixes: stats fill the content width, form headers sit tight */
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form > .card__title + .card__subtitle { margin-top: -12px; margin-bottom: 0; }
.form > .card__title { margin-bottom: 0; }
.cabinet { min-height: 100vh; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Quote price currency ---------- */
.offer__orig { margin-top: 2px; font-size: 14px; color: var(--md-sys-color-on-surface-variant); white-space: nowrap; }
button.chip { border: 0; background: transparent; font: inherit; font-weight: 500; }
.share__langs { margin-top: 12px; }
.fx { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.fx__rates:not(:has(.fx__rate:not([hidden]))) { display: none; }
.chip--radio { position: relative; cursor: pointer; transition: background 150ms; }
.chip--radio:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.chip--radio.is-selected:hover { background: var(--md-sys-color-secondary-container); }
.chip--radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip--radio:has(input:focus-visible) { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.pick { position: relative; display: inline-flex; align-items: center; height: 32px; border-radius: var(--shape-sm); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background 150ms; }
.pick:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.pick:has(.pick__select:focus-visible) { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.pick__label { padding-left: 12px; font-weight: 400; pointer-events: none; }
.pick__select { appearance: none; field-sizing: content; height: 100%; margin: 0; padding: 0 32px 0 6px; border: 0; border-radius: inherit; outline: 0; font: inherit; color: var(--md-sys-color-on-surface); cursor: pointer; background-color: transparent; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.pick__select option { color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface-container); }
.fx__rates { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fx__rate { display: inline-flex; align-items: center; gap: 6px; height: 32px; color: var(--md-sys-color-on-surface-variant); white-space: nowrap; }
.fx__rate[hidden] { display: none; }
.fx__input { width: 92px; height: 32px; padding: 0 8px; border: 0; border-radius: var(--shape-sm); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); outline: 0; background: var(--md-sys-color-surface); font: inherit; text-align: right; color: var(--md-sys-color-on-surface); }
.fx__input:focus { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.fx__input::placeholder { color: var(--md-sys-color-on-surface-variant); opacity: .8; }

/* ---------- Quote page: client page settings and footer ---------- */
.quote-settings__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
.quote-settings__head::-webkit-details-marker { display: none; }
.quote-settings__head .card__title, .quote-settings__head .card__subtitle { display: block; margin: 0; }
.quote-settings__head .icon { transition: transform 200ms var(--ease); }
.quote-settings[open] .quote-settings__head .icon { transform: rotate(90deg); }
.quote-settings[open] .form { margin-top: 16px; }

/* ---------- Flights on the quote page ---------- */
.share__switches { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
@media (max-width: 600px) { .share__switches { flex-direction: column; align-items: flex-start; } }
.offer__flight { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 24px; padding: 16px 20px; border-radius: var(--shape-lg); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface); }
.offer__flight:not(:first-child) { margin-top: 8px; }
.offer__leg { display: flex; gap: 12px; }
.offer__leg .icon { color: var(--md-sys-color-primary); }
.offer__leg-label { font-weight: 500; }
.offer__carrier { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
.offer__logo { display: block; width: auto; max-height: 18px; max-width: 72px; }
.offers[data-flight="0"] .offer__flight, .offers[data-flight="1"] .offer__city { display: none; }
.offer__noflight { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 8px; font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
.offer__noflight-text { display: inline-flex; align-items: center; gap: 6px; }
.offer__noflight [hidden] { display: none; }
.offer__flight-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; margin-top: 6px; }
.offer__flight-form textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid var(--md-sys-color-outline); border-radius: 12px; background: transparent; color: var(--md-sys-color-on-surface); font: inherit; resize: vertical; }

/* ---------- Client quote page: bright and friendly, nothing of the cabinet ---------- */
body.client { --cq-ink: #1c2230; --cq-soft: #667085; --cq-line: #e6e9ef; --cq-card: #ffffff; --cq-accent: #0b6bcb; --cq-sun: #ff8a3d;
  color-scheme: light; margin: 0; min-height: 100vh; color: var(--cq-ink); font: 400 16px/24px var(--font);
  background: #f6f7f9 linear-gradient(180deg, #dff1ff 0, #fff3e4 340px, #f6f7f9 640px) no-repeat; }
.cq { box-sizing: border-box; max-width: 1080px; margin: 0 auto; padding: 28px 24px 64px; }
.cq-agency { min-height: 28px; margin-bottom: 44px; font-size: 15px; font-weight: 500; letter-spacing: .2px; color: var(--cq-ink); }
.cq-agency img { display: block; max-height: 40px; max-width: 180px; object-fit: contain; }
.cq-hero { padding-bottom: 36px; }
.cq-hero h1 { margin: 0; max-width: 740px; font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: -.8px; color: var(--cq-ink); }
.cq-hero p { max-width: 600px; margin: 14px 0 0; font-size: 18px; line-height: 26px; color: #475467; }
.cq-hero .cq-hero__note { margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .7); font-size: 16px; line-height: 24px; color: var(--cq-ink); white-space: pre-line; }
.cq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.cq-tours { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.cq-group { display: flex; flex-direction: column; gap: 14px; }

.cq-ticket { overflow: hidden; border-radius: 24px; background: var(--cq-card); box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07); }
.cq-dir { padding: 20px 28px; }
.cq-dir + .cq-dir { border-top: 2px dashed var(--cq-line); }
.cq-dir__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; margin-bottom: 14px; }
.cq-dir__label { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--cq-accent); }
.cq-dir__summary { font-size: 13px; line-height: 18px; color: var(--cq-soft); }
.cq-layover { display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 8px 12px; border-radius: 12px; background: #fff4e2; font-size: 14px; line-height: 20px; color: #7a4a00; }
.cq-layover .icon { flex: none; }
.cq-leg__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; min-height: 24px; }
.cq-leg__logo { display: block; flex: none; width: auto; max-width: 150px; }
.cq-leg__way { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.cq-end--to { text-align: right; }
.cq-end__time { font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -.3px; color: var(--cq-ink); white-space: nowrap; }
.cq-end__time.cq-end__time--unknown { display: flex; align-items: center; min-height: 30px; font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; color: var(--cq-soft); white-space: normal; }
.cq-end--to .cq-end__time--unknown { justify-content: flex-end; }
.cq-end__city { margin-top: 2px; font-size: 15px; line-height: 20px; color: var(--cq-ink); overflow-wrap: anywhere; }
.cq-end__code { font-size: 13px; line-height: 18px; color: var(--cq-soft); }
.cq-leg__line { position: relative; display: grid; place-items: center; height: 34px; color: var(--cq-accent); }
.cq-leg__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted #c3cad6; }
.cq-leg__duration { position: absolute; top: calc(50% + 14px); left: 50%; transform: translateX(-50%); font-size: 12px; line-height: 16px; color: var(--cq-soft); white-space: nowrap; }
.cq-leg__line .icon { position: relative; padding: 0 6px; background: var(--cq-card); box-sizing: content-box; transform: rotate(90deg); }
.cq-leg__carrier { font-size: 13px; line-height: 18px; color: var(--cq-soft); }

.cq-tour { overflow: hidden; border-radius: 24px; background: var(--cq-card); box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .07); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.cq-tour:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(16, 24, 40, .05), 0 18px 40px rgba(16, 24, 40, .1); }
.cq-tour__img { display: block; width: 100%; height: 260px; object-fit: cover; }
.cq-tour__body { display: flex; justify-content: space-between; gap: 24px; padding: 24px 28px; }
.cq-tour__main { min-width: 0; }
.cq-tour__stars { margin-bottom: 4px; font-size: 15px; line-height: 18px; letter-spacing: 2px; color: #f5a623; }
.cq-tour h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -.2px; color: var(--cq-ink); overflow-wrap: anywhere; }
.cq-tour__place { margin-top: 4px; font-size: 15px; line-height: 20px; color: var(--cq-soft); }
.cq-tour__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 20px; color: var(--cq-ink); }
.cq-tour__details li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.cq-tour__details .icon { color: var(--cq-sun); }
.cq-tour__details span::first-letter { text-transform: uppercase; }
.cq-tour__comment { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff6ec; font-size: 14px; line-height: 20px; color: var(--cq-ink); }
.cq-tour__note { max-width: 150px; font-size: 12px; line-height: 16px; color: var(--cq-soft); }
.cq-tour__best { padding: 3px 10px; border-radius: 999px; background: #e7f7ee; color: #157f4b; font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.cq-tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 28px; padding: 18px 0 24px; border-top: 1px solid var(--cq-line); }
.cq-tour__price { display: grid; gap: 2px; min-width: 0; }
.cq-tour__price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cq-tour__price strong { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -.4px; white-space: nowrap; color: var(--cq-ink); }
.cq-tour__price s { font-size: 15px; line-height: 20px; color: var(--cq-soft); }
.cq-tour__price .cq-tour__best { align-self: center; }
.cq-tour__price .cq-tour__note { max-width: none; }
.cq-pick { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 52px; padding: 0 20px 0 28px; border: 0; border-radius: 999px; background: var(--cq-accent); color: #fff; font: 500 16px/20px var(--font); letter-spacing: .1px; cursor: pointer; transition: transform 150ms, filter 150ms; }
.cq-pick:hover { filter: brightness(1.07); }
.cq-pick:active { transform: scale(.97); }
.cq-pick:focus-visible { outline: 3px solid color-mix(in srgb, var(--cq-accent) 45%, transparent); outline-offset: 3px; }
/* «Хочу этот тур»: a window in the client page's own look — a sheet from the bottom on phones */
.cq-sheet { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--cq-ink); box-shadow: 0 24px 64px rgba(16, 24, 40, .24); overflow-y: auto; font-family: var(--font); }
.cq-sheet::backdrop { background: rgba(16, 24, 40, .45); backdrop-filter: blur(2px); }
.cq-sheet[open] { animation: dialog-in 200ms var(--ease); }
.cq-sheet form { position: relative; }
.cq-sheet [hidden] { display: none !important; }
.cq-sheet__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f3f5f8; color: var(--cq-soft); cursor: pointer; }
.cq-sheet__close:hover { background: #e8ecf1; color: var(--cq-ink); }
.cq-sheet__body { display: grid; gap: 16px; padding: 28px 28px 24px; }
.cq-sheet__title { margin: 0; padding-right: 44px; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -.2px; }
.cq-sheet__lead { margin: -8px 0 0; font-size: 15px; line-height: 21px; color: var(--cq-soft); }
.cq-sheet__tour { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #f3f6fb; }
.cq-sheet__tour-text { display: grid; gap: 2px; min-width: 0; }
.cq-sheet__tour-text b { font-size: 15px; line-height: 20px; font-weight: 500; }
.cq-sheet__tour-text span { font-size: 13px; line-height: 18px; color: var(--cq-soft); }
.cq-sheet__tour strong { flex: none; font-size: 18px; line-height: 24px; font-weight: 500; color: var(--cq-accent); white-space: nowrap; }
.cq-field { display: grid; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--cq-soft); }
.cq-field small { font-weight: 400; }
.cq-field input, .cq-field textarea { width: 100%; padding: 13px 16px; border: 1px solid #dfe3ea; border-radius: 14px; background: #fff; color: var(--cq-ink); font: 400 16px/22px var(--font); outline: 0; resize: vertical; transition: border-color 150ms, box-shadow 150ms; }
.cq-field input::placeholder, .cq-field textarea::placeholder { color: #9aa3b2; }
.cq-field input:focus, .cq-field textarea:focus { border-color: var(--cq-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cq-accent) 18%, transparent); }
.cq-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cq-way { position: relative; cursor: pointer; }
.cq-way input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.cq-way span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 8px; border: 1px solid #dfe3ea; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--cq-ink); text-align: center; transition: background 150ms, border-color 150ms; }
.cq-way:has(input:checked) span { border-color: var(--cq-accent); background: color-mix(in srgb, var(--cq-accent) 10%, #fff); color: var(--cq-accent); }
.cq-way:has(input:focus-visible) span { outline: 3px solid color-mix(in srgb, var(--cq-accent) 40%, transparent); outline-offset: 2px; }
.cq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cq-sheet__error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: #b3261e; font-size: 14px; line-height: 20px; }
.cq-sheet__submit { width: 100%; height: 54px; border: 0; border-radius: 999px; background: var(--cq-accent); color: #fff; font: 500 16px/20px var(--font); cursor: pointer; }
.cq-sheet__submit:hover { filter: brightness(1.07); }
.cq-sheet__submit:disabled { opacity: .6; cursor: default; }
.cq-sheet__note { margin: -4px 0 0; font-size: 12px; line-height: 16px; color: var(--cq-soft); text-align: center; }
.cq-sheet__done { display: grid; justify-items: center; gap: 8px; padding: 44px 28px 28px; text-align: center; font-size: 15px; line-height: 21px; color: var(--cq-soft); }
.cq-sheet__done-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: #e7f7ee; color: #157f4b; }
.cq-sheet__done b { font-size: 22px; line-height: 28px; font-weight: 500; color: var(--cq-ink); }
.cq-sheet__done .cq-sheet__submit { margin-top: 20px; }
.cq-footnote { margin: 0; padding: 0 8px; font-size: 13px; line-height: 18px; color: var(--cq-soft); }

.cq-manager { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: center; padding: 36px 24px 28px; border-radius: 28px; background: var(--cq-card); text-align: center; box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 32px rgba(16, 24, 40, .08); }
.cq-manager__avatar { flex: none; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #ffb37a, #ff7a59); color: #fff; font-size: 34px; font-weight: 500; }
.cq-manager__text { min-width: 0; max-width: 100%; margin-top: 16px; }
.cq-manager__role { font-size: 13px; line-height: 18px; color: var(--cq-soft); }
.cq-manager__name { font-size: 22px; line-height: 28px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.cq-manager__contacts { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 24px; }
.cq-contact { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border-radius: 18px; background: #f3f5f8; color: var(--cq-ink); font-size: 15px; font-weight: 500; text-decoration: none; text-align: left; transition: background 150ms; }
.cq-contact:hover { background: #e9edf3; }
.cq-contact__logo, .cq-contact__phone { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.cq-contact__phone { background: #16a34a; color: #fff; }
.cq-contact__phone .icon { width: 20px; height: 20px; }
.cq-contact__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  body.client { background: #f6f7f9 linear-gradient(180deg, #dff1ff 0, #fff3e4 280px, #f6f7f9 520px) no-repeat; }
  .cq { padding: 20px 16px 132px; }
  .cq-agency { margin-bottom: 28px; }
  .cq-hero { padding-bottom: 24px; }
  .cq-hero h1 { font-size: 34px; line-height: 40px; letter-spacing: -.5px; }
  .cq-hero p { font-size: 16px; line-height: 24px; }
  .cq-layout { display: block; }
  .cq-tours { gap: 28px; }
  .cq-dir { padding: 16px 20px; }
  .cq-leg__way { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 8px; }
  .cq-end__time { font-size: 24px; line-height: 30px; }
  .cq-end__city { font-size: 14px; }
  .cq-tour, .cq-ticket { border-radius: 20px; }
  .cq-tour__img { height: 190px; }
  .cq-tour__body { flex-direction: column; gap: 14px; padding: 20px; }
  .cq-tour h2 { font-size: 21px; line-height: 26px; }
  .cq-tour__details { grid-template-columns: minmax(0, 1fr); }
  .cq-tour__foot { flex-direction: column; align-items: stretch; gap: 14px; margin: 0 20px; padding: 16px 0 20px; }
  .cq-tour__price strong { font-size: 26px; line-height: 32px; }
  .cq-pick { width: 100%; height: 52px; }
  .cq-sheet { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .cq-sheet[open] { animation: sheet-up 240ms var(--ease); }
  .cq-sheet__body { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
  .cq-manager { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 10; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; text-align: left; box-shadow: 0 -6px 24px rgba(16, 24, 40, .12); }
  .cq-manager__avatar { width: 52px; height: 52px; font-size: 19px; }
  .cq-manager__text { flex: 1; margin-top: 0; }
  .cq-manager__role { font-size: 12px; line-height: 16px; }
  .cq-manager__name { font-size: 16px; line-height: 22px; white-space: nowrap; }
  .cq-manager__contacts { flex-direction: row; width: auto; margin-top: 0; }
  .cq-contact { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; background: none; }
  .cq-contact__text { display: none; }
  .cq-contact__logo, .cq-contact__phone { width: 44px; height: 44px; }
  .cq-contact__phone .icon { width: 24px; height: 24px; }
}
@media print {
  body.client { background: #fff; }
  .cq-manager { position: static; box-shadow: none; }
  .cq-tour, .cq-ticket { break-inside: avoid; box-shadow: inset 0 0 0 1px #ddd; }
}

/* ---------- Profile: photo and Telegram ---------- */
img.list-item__lead { object-fit: cover; }
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.profile-card__avatar { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); font-size: 24px; font-weight: 500; }
.profile-card__icon { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant); }
.profile-card__icon.is-on { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.logo-preview { flex: none; display: grid; place-items: center; width: 120px; height: 72px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); }
.logo-preview img { display: block; max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; }
.profile-card__text { flex: 1; min-width: 200px; }
.profile-card__text .card__subtitle { margin: 2px 0 0; }
.profile-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-card__actions label.btn { cursor: pointer; }

/* ---------- Landing ---------- */
.lp-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; padding: 48px 8px 40px; }
.lp-hero h1 { margin-bottom: 16px; font-size: 56px; line-height: 64px; letter-spacing: -.5px; }
.lp-kicker { margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: #9a6c00; }
.lp-lead { margin: 0 0 32px; font-size: 18px; line-height: 28px; color: var(--md-sys-color-on-surface-variant); }
.lp-demo { padding: 24px; border-radius: 28px; background: linear-gradient(170deg, #dcecff 0%, #eef5ff 48%, #fff0dd 100%); color: #10233f; box-shadow: 0 12px 32px rgba(16, 24, 40, .1); }
.lp-demo__eyebrow { font-size: 13px; line-height: 18px; color: #4d6280; }
.lp-demo__title { margin: 2px 0 16px; font-size: 26px; line-height: 32px; font-weight: 500; }
.lp-ticket, .lp-tour { border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.lp-ticket { padding: 14px 16px; }
.lp-ticket__way { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: start; gap: 8px; }
.lp-ticket__way > div:last-child { text-align: right; }
.lp-ticket__way b { display: block; font-size: 24px; line-height: 30px; font-weight: 500; }
.lp-ticket__way span, .lp-tour small { display: block; font-size: 13px; line-height: 18px; }
.lp-ticket__way small { color: #66788f; font-size: 12px; }
.lp-ticket__way i { display: grid; place-items: center; height: 30px; color: #0b57d0; }
.lp-ticket__way i .icon { transform: rotate(90deg); }
.lp-ticket__wait { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 10px; border-radius: 10px; background: #fff4e2; color: #7a4a00; font-size: 13px; line-height: 18px; }
.lp-tour { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px 16px; }
.lp-tour b { display: block; font-size: 15px; line-height: 20px; font-weight: 500; }
.lp-tour small { color: #66788f; }
.lp-tour strong { flex: none; font-size: 18px; line-height: 24px; font-weight: 500; color: #0b57d0; }
.lp-tour__stars { display: block; font-size: 11px; line-height: 14px; letter-spacing: 1px; color: #f2ad00; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-card { padding: 24px; border-radius: var(--shape-xl); background: var(--md-sys-color-surface-container-low); }
.lp-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: #fff0c9; color: #7a5600; }
.lp-card h3 { margin-bottom: 8px; font-size: 20px; line-height: 26px; }
.lp-card p { margin: 0; color: var(--md-sys-color-on-surface-variant); }
.lp-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 48px 0 16px; padding: 32px; border-radius: 28px; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.lp-final h2 { margin-bottom: 4px; font-size: 28px; line-height: 36px; }
.lp-final p { margin: 0; }
.auth-consent { margin: 0; font-size: 12px; line-height: 18px; color: var(--md-sys-color-on-surface-variant); }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .lp-hero h1 { font-size: 38px; line-height: 46px; }
  .lp-grid { grid-template-columns: 1fr; }
}
.template__input { box-sizing: border-box; width: 100%; padding: 12px 16px; border: 1px solid var(--md-sys-color-outline); border-radius: var(--shape-sm); background: transparent; color: inherit; font: inherit; line-height: 1.6; resize: vertical; }
.template__preview { padding: 12px 16px; border-radius: var(--shape-sm); background: var(--md-sys-color-surface-container); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-shape { flex: none; margin-right: 10px; vertical-align: -5px; }
.top-bar__title .quote-shape { margin-right: 12px; vertical-align: -6px; }
.flag-stack { position: relative; width: 76px; height: 40px; flex: none; --step: 0px; }
.flag-stack--2 { --step: 26px; }
.flag-stack--3 { --step: 18px; }
.flag-stack--4 { --step: 12px; }
.flag-stack--5 { --step: 9px; }
.flag-stack img { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; }
.flag-stack img + img { box-shadow: 0 0 0 2px var(--md-sys-color-surface-container-low); }
.flag-stack img:nth-child(1) { z-index: 5; box-shadow: 0 0 0 2px var(--md-sys-color-surface-container-low); }
.flag-stack img:nth-child(2) { z-index: 4; left: var(--step); }
.flag-stack img:nth-child(3) { z-index: 3; left: calc(var(--step) * 2); }
.flag-stack img:nth-child(4) { z-index: 2; left: calc(var(--step) * 3); }
.flag-stack img:nth-child(5) { z-index: 1; left: calc(var(--step) * 4); }

/* ---------- Admin ---------- */
.adm-scroll { overflow-x: auto; border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-low); }
.adm-scroll .table { font-size: 14px; }
.adm-scroll .table td { white-space: nowrap; }
.adm-scroll .table td.adm-wrap { white-space: normal; min-width: 220px; }
.adm-payload { display: block; max-width: 520px; max-height: 120px; overflow: auto; white-space: pre-wrap; word-break: break-all; font: 12px/16px ui-monospace, monospace; color: var(--md-sys-color-on-surface-variant); }
.adm-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 8px; }
.adm-chart__bar { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: var(--md-sys-color-primary); min-height: 2px; }
.adm-chart__bar.is-zero { background: var(--md-sys-color-outline-variant); }
.adm-chart__axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--md-sys-color-on-surface-variant); }
.adm-two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.adm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.adm-facts dt { color: var(--md-sys-color-on-surface-variant); }
.adm-facts dd { margin: 0; word-break: break-word; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-actions form { margin: 0; }
.adm-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.adm-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-filter select { appearance: none; height: 56px; padding: 0 44px 0 20px; border: 0; border-radius: var(--shape-full); background: var(--md-sys-color-surface-container-high) no-repeat right 20px center / 10px 6px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-size: 5px 5px, 5px 5px; background-position: calc(100% - 24px) 50%, calc(100% - 19px) 50%; color: var(--md-sys-color-on-surface); font: inherit; cursor: pointer; }
.adm-filter select:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
.adm-filter select option { background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface); }
.badge--bad { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.badge--ok { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }

/* ---------- Billing ---------- */
.billing-banner { margin-bottom: 16px; }
.billing-banner a { font-weight: 500; margin-left: 4px; }
.billing-status--grace, .billing-status--expired { box-shadow: inset 0 0 0 2px var(--md-sys-color-error); }
.billing-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.billing-period { position: relative; cursor: pointer; }
.billing-period input { position: absolute; opacity: 0; pointer-events: none; }
.billing-period__body { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--shape-md, 12px); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface); }
.billing-period__body b { font-weight: 500; font-size: 16px; }
.billing-period__body span { color: var(--md-sys-color-on-surface-variant); }
.billing-period input:checked + .billing-period__body { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.billing-period input:focus-visible + .billing-period__body { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row--2 { grid-template-columns: 1fr; } }
.billing-period__deal { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); font-size: 12px; line-height: 20px; vertical-align: 2px; }
.billing-period__body s { margin-left: 4px; opacity: .7; }
.billing-cards { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.billing-cards img { display: block; height: 44px; width: auto; }
.billing-seats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.billing-seats__input { width: 96px; height: 48px; padding: 0 12px; border-radius: var(--shape-xs, 4px); border: 1px solid var(--md-sys-color-outline); background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: 400 16px/24px var(--font); }
.billing-seats .muted { flex-basis: 100%; font-size: 14px; }
.billing-contacts { display: flex; flex-wrap: wrap; gap: 12px; }
.tg-notify { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }

/* ---------- Admin chats ---------- */
.adm-chat { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.adm-chat__main { display: flex; flex-direction: column; height: calc(100dvh - 150px); min-height: 420px; border-radius: var(--shape-lg); background: var(--md-sys-color-surface-container-low); overflow: hidden; }
.adm-thread { flex: 1; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 16px 20px; }
.adm-day { align-self: center; margin: 10px 0 4px; padding: 2px 12px; border-radius: 999px; font-size: 12px; color: var(--md-sys-color-on-surface-variant); background: var(--md-sys-color-surface-container-high); }
.adm-msg { max-width: min(560px, 75%); padding: 7px 12px 6px; border-radius: 18px; background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface); align-self: flex-start; line-height: 1.4; }
.adm-msg--out { align-self: flex-end; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.adm-msg--joined { margin-top: -3px; }
.adm-msg__text { white-space: pre-wrap; word-break: break-word; }
.adm-msg__file { display: block; margin-bottom: 2px; font-weight: 500; }
.adm-msg__time { float: right; margin: 6px 0 -2px 10px; font-size: 11px; line-height: 1; opacity: .6; }
.adm-msg--action { align-self: center; max-width: 90%; padding: 2px 0; background: none; font-size: 12px; color: var(--md-sys-color-on-surface-variant); }
.adm-reply { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface-container); }
.adm-reply textarea { flex: 1; min-height: 44px; max-height: 200px; padding: 11px 16px; border-radius: 22px; border: none; background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface); font: inherit; line-height: 22px; resize: none; outline: none; }
.adm-reply textarea:focus-visible { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.adm-reply__send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); cursor: pointer; }
.adm-reply__send:hover { filter: brightness(1.08); }
.adm-acc { display: flex; flex-direction: column; gap: 4px; }
.adm-acc__name { font-size: 18px; font-weight: 500; }
.adm-acc__facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 4px; font-size: 14px; }
.adm-acc__facts dt { color: var(--md-sys-color-on-surface-variant); }
.adm-acc__facts dd { margin: 0; }
.adm-more { border-top: 1px solid var(--md-sys-color-outline-variant); margin-top: 8px; }
.adm-more > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 4px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; color: var(--md-sys-color-primary); }
.adm-more > summary::-webkit-details-marker { display: none; }
.adm-more > summary::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.adm-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.adm-more__body { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 4px; }
.adm-more__body .adm-filter select { width: 100%; }
.adm-more__body .muted { margin: 0; font-size: 13px; }
.adm-field { display: grid; gap: 4px; }
.adm-field span { font-size: 13px; color: var(--md-sys-color-on-surface-variant); }
.adm-field input, .adm-field select { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: inherit; }
.adm-field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-size: 5px 5px; background-repeat: no-repeat; background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; cursor: pointer; }
.adm-field input:focus-visible, .adm-field select:focus-visible { outline: none; border-color: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-primary); }
.adm-more__body .adm-filter select { height: 44px; }
@media (max-width: 960px) { .adm-chat { grid-template-columns: 1fr; } .adm-chat__main { height: 70dvh; } }

/* ---------- Billing page (bp) ---------- */
.bp { display: flex; flex-direction: column; gap: 12px; }
.bp .stat__value small { font-size: 22px; line-height: 28px; color: var(--md-sys-color-on-surface-variant); }
.bp .stat--hot .stat__value { color: inherit; }
.bp .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bp-renew { display: flex; flex-direction: column; gap: 20px; }
.bp-renew .card__subtitle { margin-bottom: 0; }
.bp-periods.segmented { display: grid; grid-template-columns: repeat(4, 1fr); }
.bp-period { position: relative; cursor: pointer; }
.bp-period input { position: absolute; opacity: 0; pointer-events: none; }
.bp-period span { display: flex; align-items: center; justify-content: center; gap: 4px; height: 40px; border-radius: var(--shape-full); font: 500 14px/20px var(--font); color: var(--md-sys-color-on-surface-variant); white-space: nowrap; transition: background 200ms, color 200ms; }
.bp-period:hover span { color: var(--md-sys-color-on-surface); }
.bp-period small { color: var(--md-sys-color-tertiary); font-size: 12px; }
.bp-period input:checked + span { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.bp-period input:checked + span small { color: inherit; opacity: .85; }
.bp-period input:focus-visible + span { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
.bp-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bp-total__sum { font: 400 36px/44px var(--font); color: var(--md-sys-color-on-surface); white-space: nowrap; }
.bp-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.bp-cards { display: inline-flex; align-items: center; gap: 12px; }
.bp-cards img { height: 24px; width: auto; }
.bp-history-card .card__title { margin-bottom: 12px; }
.bp-history td:first-child { white-space: nowrap; color: var(--md-sys-color-on-surface-variant); }
.bp-history a { display: inline-flex; align-items: center; gap: 4px; }
.bp-help { font-size: 13px; }
@media (max-width: 900px) { .bp-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .bp .stats { grid-template-columns: 1fr 1fr; } .bp .stats .stat:first-child { grid-column: 1 / -1; }
  .bp-period span { font-size: 13px; } .bp-period small { display: none; }
  .bp-pay .btn { width: 100%; } .bp-pay { justify-content: center; }
}

/* ---------- Card payment page (/pay/<token>) ---------- */
.pay { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.pay__head { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.pay__sum { font: 400 40px/48px var(--font); color: var(--md-sys-color-on-surface); white-space: nowrap; }
.pay__step { display: flex; flex-direction: column; gap: 14px; }
.pay__field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--md-sys-color-on-surface-variant); }
.pay__field input { height: 56px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--md-sys-color-outline); background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: 400 20px/28px var(--font); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.pay__field input:focus { outline: 2px solid var(--md-sys-color-primary); border-color: transparent; }
.pay__field--short input { width: 140px; }
.pay__error { padding: 10px 14px; border-radius: 10px; background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); font-size: 14px; }
.pay__cards { display: flex; justify-content: center; gap: 12px; }
.pay__cards img { display: block; height: 24px; width: auto; }
.pay__links { display: flex; justify-content: space-between; flex-wrap: wrap; }
.pay__fine { font-size: 12px; text-align: center; }
.pay__center { text-align: center; }
.pay__title { text-align: center; font-size: 24px; line-height: 32px; margin: 0; }
.pay__done { width: 64px; height: 64px; margin: 8px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.pay__step[hidden], .pay [hidden] { display: none !important; }
.pay__info { font-size: 13px; color: var(--md-sys-color-on-surface-variant); border-top: 1px solid var(--md-sys-color-outline-variant); padding-top: 12px; }
.pay__info summary { cursor: pointer; text-align: center; font-weight: 500; color: var(--md-sys-color-on-surface); }
.pay__info p { margin: 8px 0 0; }

/* ---------- Реклама ---------- */
.promos { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.promos__footer { display: grid; gap: 12px; position: sticky; top: 16px; }
.promos__footer .card__title { margin: 0; }
.promos__footer .card__sub { margin: -8px 0 0; color: var(--md-sys-color-on-surface-variant); }
.promos__footer-text { width: 100%; padding: 12px 14px; border: 0; border-radius: var(--shape-sm); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: inherit; resize: vertical; outline: 0; }
.promos__footer-text:focus { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.promos__footer .btn { justify-self: end; }
.promo-lead { display: grid; place-items: center; background: var(--md-sys-color-tertiary-container, var(--md-sys-color-secondary-container)); color: var(--md-sys-color-on-tertiary-container, var(--md-sys-color-on-secondary-container)); }
@media (max-width: 900px) { .promos { grid-template-columns: 1fr; } .promos__footer { position: static; } }

.promo-new { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.promo-new > .card { padding: 0; overflow: hidden; }
.promo-new > .promo-new__quotes { padding: 20px 24px; }
@media (max-width: 600px) { .promo-new > .promo-new__quotes { padding: 16px; } }
.promo-new__side { position: sticky; top: 16px; display: grid; }
.promo-new__step { display: grid; gap: 12px; padding: 20px 24px; }
.promo-new__side .promo-new__step + .promo-new__step { border-top: 1px solid var(--md-sys-color-outline-variant); }
.promo-new__quotes .promo-new__list { max-height: max(360px, calc(100vh - 250px)); }
.promo-new__head-note { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--md-sys-color-on-surface-variant); }
@media (max-width: 960px) { .promo-new { grid-template-columns: 1fr; } .promo-new__side { position: static; } .promo-new__quotes .promo-new__list { max-height: 420px; } }
.promo-new__head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; }
.promo-new__num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font-size: 13px; font-weight: 600; }
.promo-new__hint { margin: 0; color: var(--md-sys-color-on-surface-variant); font-size: 13px; line-height: 18px; }
.promo-new__foot { display: flex; border-top: 1px solid var(--md-sys-color-outline-variant); align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: var(--md-sys-color-surface-container-low, var(--md-sys-color-surface)); }
@media (max-width: 600px) { .promo-new__step, .promo-new__foot { padding-left: 16px; padding-right: 16px; } }
/* style chips: on the new post and above a post */
.promo-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-style { position: relative; cursor: pointer; }
.promo-style input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.promo-style__label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--shape-sm); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); font-weight: 500; white-space: nowrap; transition: background 150ms; }
.promo-style:hover .promo-style__label { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.promo-style__check { display: none; }
.promo-style:has(input:checked) .promo-style__check { display: inline-flex; }
.promo-style:has(input:checked) .promo-style__label { padding-left: 10px; background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); box-shadow: none; }
.promo-style:has(input:focus-visible) .promo-style__label { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.promo-style:has(input:disabled) { opacity: .5; cursor: default; }
.promo-hot { position: relative; display: inline-flex; cursor: pointer; justify-self: start; }
.promo-hot input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.promo-hot__label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--shape-sm); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); font-weight: 500; white-space: nowrap; transition: background 150ms; }
.promo-hot:hover .promo-hot__label { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.promo-hot:has(input:checked) .promo-hot__label { background: var(--hot-bg); color: var(--hot-fg); box-shadow: none; }
.promo-hot:has(input:focus-visible) .promo-hot__label { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.promo-pick__soon { color: var(--hot-icon); font-weight: 500; }
.promo-pick:has(input:checked) .promo-pick__soon { color: inherit; }
.promo-hot-badge { display: inline-block; padding: 0 8px; margin-right: 4px; border-radius: var(--shape-full); background: var(--hot-bg); color: var(--hot-fg); font-size: 12px; line-height: 20px; font-weight: 500; vertical-align: 1px; }
.promo-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-opt { position: relative; cursor: pointer; }
.promo-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.promo-opt__label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--shape-sm); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); font-weight: 500; white-space: nowrap; transition: background 150ms; }
.promo-opt:hover .promo-opt__label { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.promo-opt__check { display: none; }
.promo-opt:has(input:checked) .promo-opt__check { display: inline-flex; }
.promo-opt:has(input:checked) .promo-opt__label { padding-left: 10px; background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); box-shadow: none; }
.promo-opt:has(input:focus-visible) .promo-opt__label { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.promo-new__search { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: var(--shape-full); background: var(--md-sys-color-surface-container-highest); color: var(--md-sys-color-on-surface-variant); }
.promo-new__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--md-sys-color-on-surface); }
.promo-new__list { display: grid; gap: 4px; max-height: 360px; overflow-y: auto; padding: 4px; margin: -4px; overscroll-behavior: contain; }
.promo-new__empty { margin: 8px 0; color: var(--md-sys-color-on-surface-variant); }
.promo-pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--shape-md); cursor: pointer; transition: background 150ms; }
.promo-pick[hidden] { display: none; }
.promo-pick:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 6%, transparent); }
.promo-pick:has(input:checked) { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.promo-pick:has(input:disabled) { opacity: .5; cursor: default; }
.promo-pick:has(input:focus-visible) { outline: 3px solid var(--md-sys-color-primary); outline-offset: -3px; }
.promo-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.promo-pick__flag { flex: none; font-size: 24px; line-height: 1; }
.promo-pick__body { flex: 1; min-width: 0; display: grid; }
.promo-pick__title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-pick__meta { font-size: 12px; line-height: 16px; color: var(--md-sys-color-on-surface-variant); }
.promo-pick:has(input:checked) .promo-pick__meta { color: inherit; opacity: .8; }
.promo-pick__check { flex: none; display: grid; color: var(--md-sys-color-primary); opacity: 0; transition: opacity 150ms; }
.promo-pick:has(input:checked) .promo-pick__check { opacity: 1; }
.promo-new__options { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-new__wishes { display: grid; gap: 6px; color: var(--md-sys-color-on-surface-variant); font-weight: 500; }
.promo-new__wishes textarea { width: 100%; padding: 10px 12px; border: 0; border-radius: var(--shape-sm); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: 400 14px/20px var(--font); resize: vertical; outline: 0; }
.promo-new__wishes textarea:focus { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 20px; }
.promo-new__count { color: var(--md-sys-color-on-surface-variant); }
.promo-new__left { display: grid; }
.promo-new__quota { font-size: 12px; line-height: 16px; color: var(--md-sys-color-on-surface-variant); opacity: .8; }

.promo__meta { color: var(--md-sys-color-on-surface-variant); }
.promo__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.promo__heading { flex: 1 1 260px; display: grid; gap: 4px; min-width: 0; }
.promo__heading .card__title { margin: 0; }
.promo__top .btn { flex: none; }
.promo-settings { width: min(560px, calc(100vw - 32px)); }
.promo-settings form { display: flex; flex-direction: column; min-height: 0; }
.promo-settings__body { display: grid; gap: 20px; padding: 4px 24px 8px; overflow-y: auto; }
.promo-settings__group { display: grid; gap: 8px; }
.promo-settings__label { font-size: 13px; font-weight: 500; color: var(--md-sys-color-on-surface-variant); }
.promo-settings .promo-hot { justify-self: start; }
/* as Telegram draws them: a quote with a bar on the left, links in the accent colour */
.promo .share__preview blockquote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--md-sys-color-primary); border-radius: 4px var(--shape-sm) var(--shape-sm) 4px; background: color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent); }
.promo .share__preview a { color: var(--md-sys-color-primary); }
.promo .share__ai form { display: contents; }
.promo__writing { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; text-align: center; color: var(--md-sys-color-on-surface-variant); }
.promo__writing .icon { color: var(--md-sys-color-tertiary, var(--md-sys-color-primary)); animation: promo-pulse 1.4s ease-in-out infinite; }
.promo__writing b { color: var(--md-sys-color-on-surface); font-size: 16px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes promo-pulse { 50% { opacity: .35; transform: scale(.9); } }

/* ---------- Tripadvisor next to hotels ---------- */
.hotel-rating:empty { display: none; }
.hotel-rating { margin: 4px 0 8px; }
.hotel-rating__link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--md-sys-color-on-surface-variant); text-decoration: none; }
.hotel-rating__link:hover span { text-decoration: underline; }
.hotel-rating__link img { display: block; height: 16px; width: auto; }
.hotel-rating__link b { color: var(--md-sys-color-on-surface); }
.client .hotel-rating__link { color: var(--cq-soft); }
.client .hotel-rating__link b { color: var(--cq-ink); }
/* agreement at sign-up: a plain checkbox, the text beside it */
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 0; color: var(--md-sys-color-on-surface-variant); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--md-sys-color-primary); cursor: pointer; }
.consent a { color: var(--md-sys-color-primary); }
.consent.has-error { color: var(--md-sys-color-error); }
.consent.has-error input { outline: 2px solid var(--md-sys-color-error); outline-offset: 2px; }
.consent__error { margin: -4px 0 0 32px; color: var(--md-sys-color-error); font-size: 12px; line-height: 16px; }

/* link to the hotel on Booking.com: a folded field on the agent's card, a plain link on the client's */
.offer__booking { margin-top: 8px; }
.offer__booking summary { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; color: var(--md-sys-color-primary); font-weight: 500; cursor: pointer; list-style: none; }
.offer__booking summary::-webkit-details-marker { display: none; }
.offer__booking form { display: flex; gap: 6px; margin-top: 6px; max-width: 360px; }
.offer__booking input[type=url] { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 0; border-radius: var(--shape-sm); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: inherit; outline: 0; }
.offer__booking input[type=url]:focus { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.offer__booking .btn { flex: none; height: 36px; padding: 0 14px; }
.cq-booking { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 8px; font-size: 14px; font-weight: 500; color: #003b95; text-decoration: none; }
.cq-booking:hover { text-decoration: underline; }
.offer__booking-note { margin-left: 4px; color: var(--md-sys-color-on-surface-variant); font-weight: 400; font-size: 12px; }

/* ---------- Admin: our base of hotels ---------- */
.adm-inline { display: inline; margin: 0; }
.hotel-thumb { display: grid; place-items: center; width: 64px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-outline); }
.hotel-lock { color: var(--md-sys-color-outline); }
.hotel-lock.is-locked { color: var(--md-sys-color-primary); background: var(--md-sys-color-primary-container, var(--md-sys-color-secondary-container)); }
.hotel-new { margin-top: 12px; padding: 12px 16px; }
.hotel-new summary { display: inline-flex; align-items: center; gap: 6px; color: var(--md-sys-color-primary); font-weight: 500; cursor: pointer; list-style: none; }
.hotel-new summary::-webkit-details-marker { display: none; }
.hotel-new__form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.hotel-new__form input, .hotel-names__add input, .hotel-links__row input { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--md-sys-color-outline); background: var(--md-sys-color-surface); color: var(--md-sys-color-on-surface); font: inherit; min-width: 0; }
.hotel-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.hotel-edit__main { display: grid; gap: 14px; }
.hotel-edit__image, .hotel-edit__names { display: grid; gap: 10px; align-content: start; }
.hotel-edit__names { grid-column: 1; }
.hotel-edit__delete { grid-column: 1 / -1; }
.adm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hotel-links { display: grid; gap: 6px; }
.hotel-links__row { display: flex; gap: 6px; align-items: center; }
.hotel-links__row input { flex: 1; }
.hotel-links + .btn { justify-self: start; }
.hotel-lock-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.hotel-lock-check input { width: 20px; height: 20px; accent-color: var(--md-sys-color-primary); }
.hotel-lock-check span { display: inline-flex; align-items: center; gap: 6px; }
.hotel-edit__save { display: flex; justify-content: flex-end; }
.hotel-edit__img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; background: var(--md-sys-color-surface-container-high); }
.hotel-edit__img--none { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--md-sys-color-outline); }
.hotel-edit__image-actions { display: flex; gap: 8px; align-items: center; }
.hotel-edit__image-actions label { cursor: pointer; }
.hotel-names { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.hotel-names li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--md-sys-color-surface-container-high); }
.hotel-names__add { display: grid; grid-template-columns: 2fr 1fr auto; gap: 8px; }
.offer__booking--locked { display: inline-flex; align-items: center; gap: 6px; color: var(--md-sys-color-on-surface-variant); font-size: 13px; }
@media (max-width: 900px) {
  .hotel-edit { grid-template-columns: 1fr; }
  .hotel-new__form, .hotel-names__add, .adm-field-row { grid-template-columns: 1fr; }
}
.hotel-merge { grid-template-columns: 1fr auto; }

/* ---------- Admin: hotels list ---------- */
.hotels-bar { display: grid; gap: 10px; margin-bottom: 4px; }
.hotels-bar__search { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: var(--shape-full); background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface-variant); }
.hotels-bar__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px/24px var(--font); color: var(--md-sys-color-on-surface); }
.hotels-bar__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hotels-note { margin: 10px 0 12px; }
.hotels-list { display: grid; border-radius: var(--shape-lg); overflow: hidden; background: var(--md-sys-color-surface-container-low); }
.hotel-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 110px auto; align-items: center; gap: 16px; padding: 10px 16px; }
.hotel-row + .hotel-row { border-top: 1px solid var(--md-sys-color-outline-variant); }
.hotel-row:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 4%, transparent); }
.hotel-row__img { display: block; }
.hotel-row__main { min-width: 0; }
.hotel-row__name { display: block; font-weight: 500; color: var(--md-sys-color-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.hotel-row__name:hover { text-decoration: underline; }
.hotel-row__main .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hotel-row__sites { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.site-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--md-sys-color-outline); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); text-decoration: none; white-space: nowrap; }
.site-chip.is-set { color: var(--md-sys-color-on-secondary-container); background: var(--md-sys-color-secondary-container); box-shadow: none; }
a.site-chip.is-set:hover { text-decoration: underline; }
.hotel-row__seen { font-size: 13px; text-align: right; }
.hotel-row__seen .muted { font-size: 11px; }
.hotel-row__actions { display: flex; gap: 2px; }
@media (max-width: 760px) {
  .hotel-row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img main actions" "img sites sites" "img seen seen"; gap: 6px 12px; }
  .hotel-row__img { grid-area: img; align-self: start; }
  .hotel-row__main { grid-area: main; }
  .hotel-row__actions { grid-area: actions; }
  .hotel-row__sites { grid-area: sites; justify-content: flex-start; }
  .hotel-row__seen { grid-area: seen; text-align: left; }
  .hotel-row__seen .muted { display: inline; margin-left: 6px; }
  .hotel-thumb { width: 56px; height: 40px; }
}
.cq-sites { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0 8px; font-size: 14px; color: var(--cq-soft); }
.cq-sites a { font-weight: 500; color: #003b95; text-decoration: none; }
.cq-sites a:hover { text-decoration: underline; }
