/* 🧭 Кабінет покупця v2 (26.09.2026): вкладки однією смугою (як у кабінеті бренду), компактна шапка,
   фільтри замовлень смугою, картки без зайвих кнопок, тонке питання про промокоди. Лише токени теми. */
:root { --cab-track: color-mix(in srgb, var(--color-border) 55%, var(--color-bg)); --cab-soft: color-mix(in srgb, var(--color-accent) 13%, var(--color-surface)); }

/* ── Вкладки: доріжка + акцентна «пігулка» ── */
.dash-tabs-row { display: flex !important; flex-wrap: nowrap !important; gap: 4px !important; margin: 14px 16px 0; padding: 4px !important;
  background: var(--cab-track); border: 0 !important; border-radius: 12px; overflow-x: auto !important; scrollbar-width: none; justify-content: flex-start !important; }
.dash-tabs-row::-webkit-scrollbar { display: none; }
.dash-tab { flex: 1 0 auto !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  padding: 9px 14px !important; margin: 0 !important; border: 1px solid transparent !important; border-radius: 9px !important;
  background: transparent !important; color: var(--color-text-muted) !important; font-weight: 600 !important; font-size: 0.9rem !important; box-shadow: none !important; width: auto !important; }
.dash-tab:hover { background: color-mix(in srgb, var(--color-surface) 60%, transparent) !important; color: var(--color-text) !important; }
.dash-tab.active { background: var(--cab-soft) !important; color: var(--color-accent) !important;
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)) !important; box-shadow: none !important; }
@media (max-width: 768px) {
  .dash-tabs-row { display: flex !important; grid-template-columns: none !important; margin: 10px 10px 0; }
  .dash-tab { flex: 0 0 auto !important; min-width: 30%; padding: 9px 12px !important; font-size: 0.84rem !important; }
}

/* ── Шапка на телефоні: компактна ── */
@media (max-width: 760px) {
  .dash-hero { padding: 14px 0 30px !important; }
  .dash-hero__inner { gap: 12px; }
  .dash-avatar { width: 44px; height: 44px; font-size: 1.05rem; box-shadow: none; }
  .dash-hero__name { font-size: 1.15rem; line-height: 1.25; }
  .dash-hero__email { font-size: 0.8rem; }
  .dash-hero__logout { display: none !important; }   /* «Вийти» — унизу профілю */
}
.dash-profile-exit { max-width: 680px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid var(--color-border); text-align: center; }
.dash-profile-exit .btn { color: var(--color-text-muted); }

/* ── Фільтри замовлень: смуга статусів (гортається) + місяць компактно ── */
@media (max-width: 768px) {
  .ord-filter { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 8px !important; margin-bottom: 12px; }
  .ord-filter__pills { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 6px; width: 100%; padding-bottom: 2px; }
  .ord-filter__pills::-webkit-scrollbar { display: none; }
  .ord-pill { flex: none; padding: 7px 12px; font-size: 0.82rem; }
  .ord-filter__status { display: none !important; }
  .ord-filter__month { width: auto !important; margin-left: 0 !important; padding: 7px 34px 7px 12px; font-size: 0.82rem; }
}

/* ── Картка замовлення: компактніша; дії — лише в розгорнутій (крім «Оплатити ще раз») ── */
.order-card__actions { display: none !important; }
.order-card--open .order-card__actions, .order-card__actions--urgent { display: flex !important; gap: 8px; flex-wrap: wrap; align-items: center; }
.order-card { border-radius: 14px; margin-bottom: 10px; background: var(--color-surface); }
@media (max-width: 768px) {
  .order-card__main { padding: 12px 14px !important; }
  .order-card__actions { padding: 10px 14px !important; }
  .order-card__actions .btn { flex: 1 1 auto !important; padding: 9px 14px !important; font-size: 0.84rem !important; }
  .dash-section { padding: 12px 10px 16px !important; }
}

/* ── Питання про промокоди — тонкий рядок ── */
#cli-mk-ask { padding: 10px 14px !important; gap: 10px !important; margin: 10px 0 12px !important; border-style: solid !important; border-width: 1px !important;
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border)) !important; }
#cli-mk-ask > span:first-child { font-size: 1.2rem !important; }
#cli-mk-ask .btn { padding: 7px 12px !important; font-size: 0.82rem !important; }
@media (max-width: 760px) {
  #cli-mk-ask > div { min-width: 0 !important; flex: 1 1 60% !important; }
  #cli-mk-ask > div > div + div { display: none; }        /* довгий опис — ховаємо на телефоні */
  #cli-mk-ask > div > div:first-child { font-size: 0.86rem !important; }
}

/* плашка «Перегляд як клієнт» не закриває поле вводу Помічника */
body.nyt-conc-open #nyt-imp-bar { display: none !important; }

/* Фільтр статусу селектом (кастомна обгортка .nyt-sel одразу після пігулок) — на телефоні дублює смугу, ховаємо */
@media (max-width: 768px) {
  .ord-filter__pills + .nyt-sel { display: none !important; }
  .ord-filter__pills + .nyt-sel + .nyt-sel { width: auto !important; flex: 0 0 auto; }
  /* дата і «код» — одним рядком: картка нижча */
  .order-card__main > div:first-child .order-card__meta { display: inline; }
  .order-card__main > div:first-child .order-card__meta + .order-card__meta::before { content: " · "; }
  .order-card__num { font-size: 0.92rem; margin-bottom: 2px; }
}

/* Картка замовлення: без подвійних відступів (раніше 12+10+10+12+14px від краю екрана до тексту) */
.order-card { padding: 0 !important; }
@media (max-width: 768px) {
  .dash-body { padding-left: 0 !important; padding-right: 0 !important; }
  .dash-section { padding: 12px 8px 16px !important; }
  .order-card__main { padding: 12px 12px !important; gap: 4px 10px !important; }
  .order-card:not(.order-card--open) .order-card__main > div:first-child .order-card__meta + .order-card__meta { display: none; }   /* «код» — у розгорнутій */
}

/* ═══ 📦 Розгорнуте замовлення v2 (26.09): без «коробки в коробці», компактні реквізити, кнопки на всю ширину ═══ */
.csub { padding: 12px 0; border-top: 1px dashed var(--color-border); }
.csub:first-of-type { border-top: 0; }
.csub__h { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.csub__ttnwait { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 8px; }
.csub__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.csub__acts > * { flex: 1 1 auto; justify-content: center; }
@media (min-width: 761px) {
  .csub { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
  .csub__acts { justify-content: flex-end; } .csub__acts > * { flex: 0 0 auto; }
}
@media (max-width: 560px) { .nyt-steps { padding-top: 10px !important; padding-left: 0 !important; padding-right: 0 !important; } }

.creq { margin: 10px 0 4px; padding: 12px; border-radius: 12px; background: var(--color-warning-bg); border: 1px solid color-mix(in srgb, var(--color-warning-fg, #b45309) 25%, transparent); color: var(--color-text); }
.creq__h { font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.creq__h b { margin-left: auto; font-size: 1rem; }
.creq__hint { font-size: 0.74rem; color: var(--color-text-muted); margin: 2px 0 8px; }
.creq__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l cp" "v cp"; align-items: center; column-gap: 10px; width: 100%; text-align: left;
  padding: 8px 10px; margin: 0 0 6px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.creq__row:hover { border-color: var(--color-accent); }
.creq__row.is-copied { border-color: var(--color-success, #16a34a); background: var(--color-success-bg); }
.creq__l { grid-area: l; font-size: 0.72rem; color: var(--color-text-muted); }
.creq__v { grid-area: v; font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }
.creq__v--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creq__cp { grid-area: cp; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--color-bg); font-size: 1rem; }
.creq__paid { margin-top: 10px; }
.creq__acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.creq__acts .btn { flex: 1 1 auto; justify-content: center; padding: 11px 16px; font-size: 0.9rem; }
.creq__note { font-size: 0.76rem; color: var(--color-text-muted); margin-top: 8px; line-height: 1.45; }
@media (max-width: 760px) {
  .order-details { padding: 0 12px 14px !important; }
  .order-card--open .order-details { padding-top: 10px !important; }
  .order-details__row--full span:last-child { text-align: left !important; }
  .creq__acts > * { flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* ═══ 🎟 Квиток v2 (26.09): компактна шапка, одна головна дія, решта — «⋯ Ще» (шторка на телефоні) ═══ */
.ev-ticket__morebtn { display: none; }
.ev-ticket__more { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-ticket__more .btn { padding: 7px 13px; font-size: 0.82rem; }
@media (max-width: 760px) {
  .ev-ticket { border-radius: 16px; box-shadow: none; }
  .ev-ticket__top { flex-direction: row !important; gap: 12px; padding: 12px 12px 0; align-items: flex-start; }
  .ev-ticket__banner { flex: 0 0 84px !important; height: 84px !important; border-radius: 12px; align-self: flex-start; }
  .ev-ticket__banner img { object-fit: cover; }
  .ev-ticket__status { top: auto; bottom: 4px; left: 4px; right: 4px; text-align: center; padding: 2px 4px; font-size: 0.6rem; box-shadow: none; }
  .ev-ticket__info { padding: 0; text-align: left; }
  .ev-ticket__title { font-size: 1.02rem; }
  .ev-ticket__meta { margin-bottom: 6px; font-size: 0.78rem; }
  .ev-ticket__grid { grid-template-columns: 1fr !important; gap: 3px; margin-bottom: 0; }
  .ev-ticket__block { background: none; padding: 0; font-size: 0.8rem; gap: 6px; line-height: 1.35; }
  .ev-ticket__block .lbl { display: none; }
  .ev-ticket__block:nth-child(4) { display: none; }          /* «Статус події» — уже на обкладинці */
  .ev-ticket__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; }
  .ev-ticket__actions > .ev-ticket__ttn, .ev-ticket__actions > .ev-ticket__cta { grid-column: 1 / -1; margin: 0 !important; }
  .ev-ticket__actions > .ev-ticket__cta + .ev-ticket__morebtn, .ev-ticket__actions > .ev-ticket__morebtn { grid-column: 1 / -1; }
  .ev-ticket__morebtn { display: flex; justify-content: center; padding: 9px 14px; font-size: 0.86rem; }
  .ev-ticket__more { display: none !important; }
  .ev-ticket__materials { margin: 0 12px 12px; }
}
.cli-sheet { position: fixed; inset: 0; z-index: 100040; background: rgba(12,10,8,.45); display: flex; align-items: flex-end; animation: cliDimIn .2s ease-out; }
.cli-sheet.is-closing { animation: cliDimOut .22s ease-in forwards; pointer-events: none; }
@keyframes cliDimIn { from { background-color: rgba(12,10,8,0); } } @keyframes cliDimOut { to { background-color: rgba(12,10,8,0); } }
.cli-sheet__p { position: relative; width: 100%; max-height: 85vh; overflow-y: auto; background: var(--color-surface); color: var(--color-text); border-radius: 20px 20px 0 0;
  padding: 16px 12px calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(0,0,0,.2); animation: cliUp .34s cubic-bezier(.22,1,.36,1); }
.cli-sheet.is-closing .cli-sheet__p { animation: cliDown .22s cubic-bezier(.4,0,1,1) forwards; }
@keyframes cliUp { from { transform: translateY(100%); } } @keyframes cliDown { to { transform: translateY(100%); } }
.cli-sheet__p::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--color-border); }
.cli-sheet__h { display: flex; align-items: center; gap: 10px; padding: 6px 6px 10px; border-bottom: 1px solid var(--color-border); margin-bottom: 6px; }
.cli-sheet__h b { flex: 1; font-family: var(--font-heading); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-sheet__x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--color-bg); color: var(--color-text-muted); cursor: pointer; font-size: 1rem; }
.cli-sheet__list { display: flex; flex-direction: column; }
.cli-sheet__i { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 8px; border: 0; border-radius: 10px; background: none; color: var(--color-text);
  font: inherit; font-size: 0.95rem; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; animation: cliItem .3s cubic-bezier(.22,1,.36,1) both; }
.cli-sheet__i:active, .cli-sheet__i:hover { background: var(--color-bg); }
@keyframes cliItem { from { opacity: 0; transform: translateY(8px); } }
.cli-sheet__i:nth-child(2) { animation-delay: .03s; } .cli-sheet__i:nth-child(3) { animation-delay: .06s; } .cli-sheet__i:nth-child(n+4) { animation-delay: .09s; }
@media (prefers-reduced-motion: reduce) { .cli-sheet, .cli-sheet__p, .cli-sheet__i { animation: none !important; } }

/* ═══ 💬 Чати покупця v2 (26.09): одна смуга фільтрів ═══ */
.cch-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 10px; border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.cch-filters::-webkit-scrollbar { display: none; }
.cch-f { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-muted); font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.cch-f.is-on { background: color-mix(in srgb, var(--color-accent) 13%, var(--color-surface)); color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); }
.cch-f__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-accent); color: var(--color-on-accent, #fff); font-size: 0.7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* ═══════════ 🧭 Хаб кабінету (26.09) ═══════════ */
.dash-hero { display: none !important; }
.dash-tabs-row { display: none !important; }
.cab-hub { margin: 18px 0 16px; }
@keyframes cabIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes cabSlide { from { opacity: 0; transform: translateX(28px); } }
@keyframes cabFade { from { opacity: 0; } }
.cab-me { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--color-accent) 22%, var(--color-border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 16%, var(--color-surface)), var(--color-surface) 70%); animation: cabIn .4s cubic-bezier(.22,1,.36,1) both; }
.cab-me__ava { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent, #fff); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.3rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--color-accent) 35%, transparent); }
.cab-me__t { flex: 1; min-width: 0; }
.cab-me__hi { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.2; color: var(--color-text); }
.cab-me__c { font-size: 0.86rem; color: var(--color-text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-me__gear { flex: none; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--color-border); background: var(--color-surface); font-size: 1.15rem; cursor: pointer; transition: transform .2s; }
.cab-me__gear:hover { transform: rotate(40deg); }
.cab-alert { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--color-warning-fg, #b45309) 30%, transparent);
  background: var(--color-warning-bg); color: var(--color-warning-fg, #92400e); font: inherit; font-size: 0.9rem; text-align: left; cursor: pointer; animation: cabIn .4s .1s cubic-bezier(.22,1,.36,1) both; }
.cab-alert[hidden] { display: none; }
.cab-alert b { flex: 1; font-weight: 700; }
.cab-alert i { font-style: normal; font-size: 1.3rem; }
.cab-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cab-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 12px 12px; border-radius: 18px; border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-text); font: inherit; text-align: left; cursor: pointer; min-width: 0;
  transition: transform .18s, border-color .18s, box-shadow .18s, background-color .18s; animation: cabIn .4s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(60ms + var(--i, 0) * 45ms); }
.cab-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-border)); }
.cab-tile:active { transform: scale(.97); }
.cab-tile.is-on { border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border)); background: color-mix(in srgb, var(--color-accent) 9%, var(--color-surface)); }
.cab-tile__ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 8px;
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg)); }
.cab-tile__t { font-weight: 700; font-size: 0.95rem; }
.cab-tile__s { font-size: 0.74rem; color: var(--color-text-muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cab-tile__b { position: absolute; top: 10px; right: 10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--color-danger, #dc2626); color: #fff; font-size: 0.72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.cab-tile__b[hidden] { display: none; }
.cab-sec-bar { display: none; }
@media (max-width: 1000px) { .cab-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 📱 Телефон: або плитки (cab-home), або один розділ на весь екран (cab-in-sec) */
@media (max-width: 760px) {
  .cab-hub { margin: 12px 0 8px; }
  .cab-me { padding: 14px; border-radius: 20px; }
  .cab-me__ava { width: 48px; height: 48px; font-size: 1.1rem; }
  .cab-me__hi { font-size: 1.15rem; }
  .cab-tiles { gap: 8px; }
  .cab-tile { padding: 12px 10px 10px; border-radius: 16px; }
  .cab-tile__ic { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; }
  .cab-tile__t { font-size: 0.88rem; }
  .cab-tile__s { font-size: 0.7rem; }
  body.cab-home .dash-card { display: none; }
  body.cab-in-sec .cab-hub { display: none; }
  body.cab-in-sec #cli-mk-ask { display: none !important; }
  .cab-hub.cab-fade { animation: cabFade .25s ease-out; }
  .dash-card.cab-slide { animation: cabSlide .32s cubic-bezier(.22,1,.36,1); }
  body.cab-in-sec .cab-sec-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; padding: 10px 10px; margin: 0 0 4px;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border); border-radius: var(--border-radius-lg, 16px) var(--border-radius-lg, 16px) 0 0; }
  .cab-sec-bar__back { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-bg);
    color: var(--color-text); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
  .cab-sec-bar b { flex: 1; min-width: 0; font-family: var(--font-heading); font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:has(.dash-chat-grid--open) .cab-sec-bar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .cab-me, .cab-alert, .cab-tile, .cab-hub.cab-fade, .dash-card.cab-slide { animation: none !important; } }

/* ── Фільтри замовлень: спокійна смуга (як вкладки), місяць — у тому ж рядку ── */
.ord-filter { flex-wrap: nowrap !important; flex-direction: row !important; align-items: center !important; gap: 8px !important; }
.ord-filter__pills { flex: 1 1 auto; min-width: 0; display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 4px !important;
  padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--color-border) 55%, var(--color-bg)); }
.ord-filter__pills::-webkit-scrollbar { display: none; }
.ord-pill { flex: none; border: 1px solid transparent !important; background: transparent !important; color: var(--color-text-muted) !important; border-radius: 9px !important;
  padding: 7px 12px !important; font-size: 0.84rem !important; font-weight: 600 !important; }
.ord-pill.active { background: color-mix(in srgb, var(--color-accent) 13%, var(--color-surface)) !important; color: var(--color-accent) !important;
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)) !important; }
.ord-filter__pills + .nyt-sel { display: none !important; }
.ord-filter > .nyt-sel:last-child { flex: none; width: auto !important; }
.ord-filter > .nyt-sel:last-child .nyt-sel__btn, .ord-filter > .nyt-sel:last-child button { padding: 8px 30px 8px 10px !important; font-size: 0.8rem !important; min-height: 0 !important; }
/* веб: статуси розтягуються на всю ширину доріжки, місяць — тієї ж висоти */
@media (min-width: 761px) {
  .ord-filter__pills .ord-pill { flex: 1 1 auto; justify-content: center; text-align: center; }
  .ord-filter > .nyt-sel:last-child .nyt-sel__btn, .ord-filter > .nyt-sel:last-child button { min-height: 44px !important; border-radius: 12px !important; }
}

/* ═══════════ 🎟 Квитки v3 (26.09): квиток «з корінцем» ═══════════ */
.tk-filter { display: flex !important; gap: 4px !important; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--color-border) 55%, var(--color-bg)); margin: 0 0 14px !important; }
.tk-filter .ev-fpill { flex: 1 1 auto; border: 1px solid transparent !important; background: transparent !important; color: var(--color-text-muted) !important; border-radius: 9px !important; padding: 8px 12px !important; }
.tk-filter .ev-fpill.active { background: color-mix(in srgb, var(--color-accent) 13%, var(--color-surface)) !important; color: var(--color-accent) !important; border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)) !important; }
.ev-ticket-grid { gap: 12px !important; }
.ev-ticket.tk { display: flex !important; flex-direction: row !important; align-items: stretch; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); box-shadow: none; overflow: hidden; position: relative; }
.tk--past { opacity: .88; }
.tk__stub { flex: 0 0 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; position: relative;
  background: color-mix(in srgb, var(--color-accent) 11%, var(--color-surface)); border-right: 2px dashed color-mix(in srgb, var(--color-accent) 30%, var(--color-border)); color: var(--color-accent); }
.tk__stub b { font-family: var(--font-heading); font-size: 2rem; line-height: 1; }
.tk__stub span { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.tk__stub small { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 6px; font-weight: 600; }
.tk__main { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.tk__head { display: flex; align-items: flex-start; gap: 10px; }
.tk__title { flex: 1; min-width: 0; margin: 0 !important; font-family: var(--font-heading); font-size: 1.12rem !important; line-height: 1.25; text-align: left !important; }
.tk__st { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.tk__meta { font-size: 0.8rem; color: var(--color-text-muted); }
.tk__rows { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.86rem; color: var(--color-text); }
.tk__rows a { color: var(--color-text); text-decoration: none; border-bottom: 1px dashed var(--color-border); }
.tk__rows a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.tk__acts { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 8px !important; padding: 6px 0 0 !important; }
.tk__cta { padding: 8px 16px !important; font-size: 0.86rem !important; }
.tk__more { display: flex !important; flex-wrap: wrap; gap: 4px; }
.tk__a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 9px; border: 0; background: var(--color-bg); color: var(--color-text); font: inherit; font-size: 0.8rem; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tk__a:hover { background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg)); color: var(--color-accent); }
.tk__cover { flex: 0 0 190px; position: relative; background: var(--color-bg); }
.tk__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tk .ev-ticket__materials { margin: 4px 0 0 !important; }
@media (max-width: 760px) {
  .ev-ticket.tk { border-radius: 16px; }
  .tk__stub { flex-basis: 64px; padding: 12px 4px; }
  .tk__stub b { font-size: 1.6rem; }
  .tk__cover { display: none; }
  .tk__main { padding: 12px; }
  .tk__title { font-size: 1rem !important; }
  .tk__head { flex-wrap: wrap; }
  .tk__acts { display: grid !important; grid-template-columns: 1fr auto; }
  .tk__cta { justify-content: center; }
  .tk__acts > .ev-ticket__morebtn { display: flex !important; padding: 8px 14px !important; font-size: 0.86rem !important; }
  .tk__more { display: none !important; }
}

.tk__acts > .ev-ticket__morebtn { grid-column: auto !important; }
.tk .ev-ticket__materials { display: inline-block; align-self: flex-start; border: 0 !important; margin: 2px 0 0 !important; overflow: visible; }
.tk .ev-ticket__materials > summary { display: inline-flex; padding: 6px 10px; border-radius: 9px; font-size: 0.8rem; background: var(--color-bg); }
.tk .ev-ticket__materials > summary::after { margin-left: 6px; }
.tk .ev-ticket__materials[open] { display: block; }
.tk .ev-ticket__materials-body { border-top: 0 !important; padding: 8px 0 0 !important; }

/* ═══ 👤 Профіль — підвкладки (26.09) ═══ */
.pf { max-width: 720px; margin: 0 auto; }
.pf-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--color-border) 55%, var(--color-bg)); overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tab { flex: 1 0 auto; padding: 9px 14px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--color-text-muted); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pf-tab.is-on { background: color-mix(in srgb, var(--color-accent) 13%, var(--color-surface)); color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); }
.pf-pane { display: none; animation: cabFade .2s ease-out; }
.pf-pane.is-on { display: block; }
.pf-h { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 12px; }
.pf-sub { font-size: 0.84rem; color: var(--color-text-muted); margin: -6px 0 14px; }
.pf-pane[data-p="delivery"] > div[style*="border-top"] { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.pf-pane[data-p="delivery"] > div[style*="border-top"] > div:first-child { display: none; }
.pf-save { width: 100%; justify-content: center; margin-top: 20px; }
.pf[data-pane="security"] .pf-form, .pf[data-pane="look"] .pf-form { display: none; }
.pf .dash-profile-exit { border-top: 1px solid var(--color-border); }
@media (max-width: 760px) { .pf-tab { flex: 0 0 auto; min-width: 30%; padding: 9px 12px; font-size: 0.84rem; } .pf-h { font-size: 1.02rem; } }

/* ═══ 📦 Розгорнуте замовлення — веб: дві колонки (продавець/оплата ліворуч, підсумок праворуч) (26.09) ═══ */
.od-sum__h { display: none; }
@media (min-width: 900px) {
  .order-card--open .od-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; padding: 16px 20px 18px !important; }
  .od-sum { order: 2; position: sticky; top: 90px; padding: 14px 16px; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); }
  .od-sum__h { display: block; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 6px; }
  .od-sum .order-details__row { font-size: 0.84rem; }
  .od-subs { order: 1; min-width: 0; }
  .od-subs > .order-details__section:first-child { margin-top: 0 !important; }
  .od-subs .nyt-steps { padding-top: 34px !important; }
  .od-subs .nyt-tl-cat { width: 32px; bottom: 26px; }
}

/* ✨ Чат покупця: анімація відкриття/закриття розмови (26.09) */
@keyframes cchIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes cchSlideIn { from { transform: translateX(100%); } }
@keyframes cchSlideOut { to { transform: translateX(100%); } }
@keyframes cchMsg { from { opacity: 0; transform: translateY(6px); } }
#client-chat-active.cch-open { animation: cchIn .28s cubic-bezier(.22,1,.36,1); }
.cch-msg-in { animation: cchMsg .3s cubic-bezier(.22,1,.36,1) both; }
@media (max-width: 760px) {
  .dash-chat-grid--open #client-chat-active.cch-open { animation: cchSlideIn .34s cubic-bezier(.22,1,.36,1); }
  #client-chat-active.cch-closing { animation: cchSlideOut .2s cubic-bezier(.4,0,1,1) forwards; }
}
@media (prefers-reduced-motion: reduce) { #client-chat-active.cch-open, .cch-msg-in, #client-chat-active.cch-closing { animation: none !important; } }

/* ═══ 📦 Замовлення «як чат»: відкрите — окремим екраном (26.09) ═══ */
.ord-backbar { display: none; }
#dash-orders.ord-focus .ord-backbar { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.ord-backbar button { flex: none; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.ord-backbar button:hover { border-color: var(--color-accent); color: var(--color-accent); }
.ord-backbar b { font-family: var(--font-heading); font-size: 1.1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dash-orders.ord-focus .ord-filter, #dash-orders.ord-focus #cli-tg-nudge, #dash-orders.ord-focus #ord-filter-empty,
#dash-orders.ord-focus .order-card:not(.is-focus) { display: none !important; }
#dash-orders.ord-focus .order-card.is-focus { border-color: color-mix(in srgb, var(--color-accent) 30%, var(--color-border)); }
#dash-orders.ord-focus .order-card.is-focus .order-card__arrow { display: none; }
@keyframes ordIn { from { opacity: 0; transform: translateX(24px); } }
.order-card.ord-in { animation: ordIn .3s cubic-bezier(.22,1,.36,1); }
@media (max-width: 760px) {
  body:has(#dash-orders.ord-focus) .cab-sec-bar { display: none !important; }
  /* фільтр на телефоні — одна смуга статусів на всю ширину (місяць на телефоні не показуємо) */
  .ord-filter > .nyt-sel:last-child { display: none !important; }
  .ord-filter__pills { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .order-card.ord-in { animation: none; } }

/* футер — завжди нижче першого екрана (короткі розділи/плитки не «підтягують» його вгору) */
body > main, main#account-root, #account-root { min-height: calc(100dvh - 60px); }

/* 🎟 кнопки квитка: головна — в один рядок; матеріали — дрібні чипи, як інші дії */
.tk__cta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tk .ev-ticket__materials-body { gap: 4px !important; }
.tk .ev-ticket__materials-body .btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px !important; border-radius: 9px !important; border: 0 !important;
  background: var(--color-bg) !important; color: var(--color-text) !important; font-size: 0.8rem !important; font-weight: 600; box-shadow: none !important; }
.tk .ev-ticket__materials-body .btn:hover { background: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg)) !important; color: var(--color-accent) !important; }
@media (max-width: 760px) {
  .tk__cta { font-size: 0.84rem !important; padding: 9px 12px !important; }
  .tk__acts > .ev-ticket__morebtn { border-color: var(--color-border) !important; color: var(--color-text) !important; background: var(--color-bg) !important; }
}
#dash-orders.ord-focus .order-card.is-focus .order-card__num { display: none; }

/* 🧾 «Підсумок» на вебі — як квитанція (26.09) */
@media (min-width: 900px) {
  .od-sum { padding: 16px 18px 14px !important; background: var(--color-surface) !important; }
  .od-sum__h { font-family: var(--font-body) !important; font-size: 0.74rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 10px !important; }
  .od-sum .order-details__row { border-bottom: 0 !important; padding: 5px 0 !important; font-size: 0.88rem !important; gap: 10px; }
  .od-sum .order-details__row > span:first-child { color: var(--color-text) !important; }
  .od-sum .order-details__row > span:first-child a { font-weight: 600; }
  .od-sum .order-details__row--full { padding-top: 10px !important; }
  .od-sum .order-details__row--full > span:first-child, .od-sum .order-details__row:not(:first-of-type):not(.order-details__row--full) > span:first-child { color: var(--color-text-muted) !important; font-size: 0.78rem; }
  .od-sum .order-details__row--full > span:last-child { font-size: 0.86rem; line-height: 1.45; }
  .od-sum .order-details__row[style*="font-weight:700"] { margin-top: 10px !important; padding-top: 12px !important; border-top: 1px dashed var(--color-border) !important; font-size: 1.05rem !important; }
  .od-sum .order-details__row[style*="font-weight:700"] > span:first-child { color: var(--color-text) !important; font-size: 0.95rem; }
  .od-sum .order-details__row[style*="font-weight:700"] > span:last-child { color: var(--color-accent); font-size: 1.2rem; font-family: var(--font-heading); }
}

/* 📎 квитанція обовʼязкова: підсвітка, якщо натиснули «Я оплатив(ла)» без неї; ✓ — коли додано */
@keyframes rcNeed { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.creq__acts label.is-need { border-color: var(--color-danger, #dc2626) !important; color: var(--color-danger, #dc2626) !important; animation: rcNeed .3s 2; }
.creq__acts label.is-ok { border-style: solid !important; border-color: var(--color-success, #16a34a) !important; color: var(--color-success-fg, #15803d) !important; background: var(--color-success-bg) !important; }
/* кнопки дій продавця — один стиль, одна висота */
.csub__acts > * { min-height: 42px; border-radius: 12px !important; padding: 9px 16px !important; font-size: 0.88rem !important; font-weight: 600 !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; box-shadow: none !important; }
.csub__acts > button[onclick^="clientConfirmReceived"] { background: var(--color-accent) !important; border: 1px solid var(--color-accent) !important; color: var(--color-on-accent, #fff) !important; }
.csub__acts > button[onclick^="clientWriteToVendor"] { background: var(--color-surface) !important; border: 1px solid var(--color-border) !important; color: var(--color-text) !important; }
.csub__acts > button[onclick^="clientWriteToVendor"]:hover { border-color: var(--color-accent) !important; color: var(--color-accent) !important; }

/* 🚚 ТТН — картка відстеження (26.09). «Статус доставки» — лише Нова Пошта */
.ctrk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-bg); }
.ctrk__ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--color-surface); }
.ctrk__t { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; }
.ctrk__t small { font-size: 0.72rem; color: var(--color-text-muted); }
.ctrk__t b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92rem; letter-spacing: .02em; overflow-wrap: anywhere; }
.ctrk__cp { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-surface); cursor: pointer; font-size: 0.95rem; }
.ctrk__cp.is-copied { border-color: var(--color-success, #16a34a); background: var(--color-success-bg); }
.ctrk__go { flex: none; padding: 8px 12px; border-radius: 10px; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.ctrk__go:hover { border-color: var(--color-accent); color: var(--color-accent); }
.ctrk__st { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--color-border); }
.ctrk__chip { padding: 5px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--color-info-bg); color: var(--color-info-fg); }
.ctrk__chip.is-ok { background: var(--color-success-bg); color: var(--color-success-fg); }
.ctrk__chip.is-err { background: var(--color-warning-bg); color: var(--color-warning-fg); font-weight: 500; }
.ctrk__btn { margin-left: auto; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.ctrk__btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* 📎 Матеріали події: кнопка на всю ширину, файли — компактним списком по рядку */
.tk .ev-ticket__materials { display: block !important; width: 100%; align-self: stretch !important; }
.tk .ev-ticket__materials > summary { display: flex !important; width: 100%; box-sizing: border-box; padding: 9px 12px !important; }
.tk .ev-ticket__materials-body { display: flex !important; flex-direction: column; gap: 2px !important; padding: 6px 0 0 !important; }
.tk .ev-ticket__materials-body .btn { display: flex !important; width: 100%; justify-content: flex-start; box-sizing: border-box; padding: 8px 12px !important; border-radius: 8px !important; }

/* ➡️ стрілки на смугах, що гортаються (телефон) */
.pf-tabs, .ord-filter__pills, .tk-filter { --st-bg: color-mix(in srgb, var(--color-border) 55%, var(--color-bg)); }
.cch-filters { --st-bg: var(--color-surface); }
@keyframes stNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@media (max-width: 760px) {
  .st-more::after, .st-less::before { position: sticky; z-index: 3; flex: 0 0 40px !important; min-width: 40px !important; align-self: stretch; pointer-events: none;
    display: flex; align-items: center; font-size: 1.35rem; font-weight: 800; line-height: 1; color: var(--color-accent); }
  .st-more::after { content: "›"; right: 0; margin-left: -40px; justify-content: flex-end; padding-right: 9px;
    background: radial-gradient(circle at calc(100% - 14px) 50%, color-mix(in srgb, var(--color-accent) 16%, var(--st-bg)) 13px, transparent 14px), linear-gradient(to right, transparent, var(--st-bg) 45%); }
  .st-less::before { content: "‹"; left: 0; margin-right: -40px; justify-content: flex-start; padding-left: 9px;
    background: radial-gradient(circle at 14px 50%, color-mix(in srgb, var(--color-accent) 16%, var(--st-bg)) 13px, transparent 14px), linear-gradient(to left, transparent, var(--st-bg) 45%); }
  .st-nudge.st-more::after { animation: stNudge .7s ease-in-out .4s 2; }
}
@media (prefers-reduced-motion: reduce) { .st-nudge.st-more::after { animation: none; } }

/* чати на вебі: колонка списку вузька — фільтри переносяться, нічого не обрізається */
@media (min-width: 761px) { .cch-filters { flex-wrap: wrap; overflow: visible; } .cch-filters .cch-f { flex: 1 1 auto; justify-content: center; } }

/* 📎→✅ спершу квитанція, потім «Я оплатив(ла)» (кнопка неактивна, доки немає квитанції) */
.creq__acts--steps { flex-direction: column; align-items: stretch !important; }
.creq__acts--steps > label { justify-content: center; padding: 10px 12px !important; font-size: 0.86rem !important; border-radius: 12px !important; }
.creq__acts--steps > .creq__paid-btn { width: 100%; }
.creq__paid-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.3); }
.creq__lock { font-size: 0.74rem; color: var(--color-text-muted); text-align: center; }
.creq__acts.is-ready .creq__lock { display: none; }

/* 💳 Рядок стану оплати (переказ підтверджено / накладений / картка) */
.cpay { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; font-size: 0.86rem; line-height: 1.45; border: 1px solid transparent; }
.cpay__ic { flex: none; font-size: 1rem; line-height: 1.3; }
.cpay--ok { background: var(--color-success-bg); color: var(--color-success-fg); border-color: color-mix(in srgb, var(--color-success-fg, #15803d) 20%, transparent); }
.cpay--info { background: var(--color-info-bg); color: var(--color-info-fg); border-color: color-mix(in srgb, var(--color-info-fg, #075985) 18%, transparent); }
.cpay--wait { background: var(--color-warning-bg); color: var(--color-warning-fg); border-color: color-mix(in srgb, var(--color-warning-fg, #92400e) 20%, transparent); }

/* ═══ 🧾 «Підсумок» v2 + розділення продавців (26.09) ═══ */
.od-its { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 10px; }
.od-it { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.od-it__img { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--color-bg); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border: 1px solid var(--color-border); }
.od-it__img img { width: 100%; height: 100%; object-fit: cover; }
.od-it__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.od-it__t b { font-size: 0.86rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.od-it:hover .od-it__t b { color: var(--color-accent); }
.od-it__t small { font-size: 0.74rem; color: var(--color-text-muted); }
.od-it__p { flex: none; font-size: 0.86rem; font-weight: 600; }
.od-kv { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-top: 1px solid var(--color-border); font-size: 0.86rem; }
.od-kv > span { font-size: 0.74rem; color: var(--color-text-muted); }
.od-kv small { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.4; }
.od-ok { font-style: normal; font-size: 0.76rem; font-weight: 700; color: var(--color-success-fg); }
.od-kv--code { flex-direction: row; align-items: center; justify-content: space-between; }
.od-code { border: 1px solid var(--color-border); background: var(--color-bg); border-radius: 8px; padding: 4px 8px; font: inherit; font-family: ui-monospace, monospace; font-size: 0.76rem; cursor: pointer; color: var(--color-text); }
.od-code.is-copied { border-color: var(--color-success, #16a34a); background: var(--color-success-bg); }
@media (min-width: 900px) { .od-sum { margin-top: 30px; } }     /* вирівняно з першою карткою продавця (під підписом «Продавець») */
.csub--multi { margin-bottom: 18px !important; }
.csub__n { display: inline-flex; margin: -2px 0 8px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: .02em;
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface)); color: var(--color-accent); }
@media (min-width: 761px) { .csub--multi { border-left: 3px solid color-mix(in srgb, var(--color-accent) 45%, var(--color-border)) !important; border-top-left-radius: 4px !important; border-bottom-left-radius: 4px !important; } }
@media (max-width: 760px) { .csub--multi { padding: 14px 0 !important; border-top: 2px solid color-mix(in srgb, var(--color-accent) 30%, var(--color-border)) !important; } .csub--multi:first-of-type { border-top: 0 !important; } }

.cli-sheet__p { overscroll-behavior: contain; }
@media (min-width: 900px) { .od-grid:has(.csub--multi) .od-sum { margin-top: 56px; } }
/* 📎 матеріали — по центру, як інші кнопки квитка */
.tk .ev-ticket__materials > summary { justify-content: center; }
.tk .ev-ticket__materials > summary::after { margin-left: 8px !important; }
.tk .ev-ticket__materials-body .btn { justify-content: center !important; }

/* 📇 контакти організатора: 📋 біля кожного рядка */
.ev-org__line { display: flex; align-items: stretch; gap: 8px; }
.ev-org__line > .ev-org__row { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ev-org__cp { flex: none; width: 44px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-bg); cursor: pointer; font-size: 1rem; }
.ev-org__cp.is-copied { border-color: var(--color-success, #16a34a); background: var(--color-success-bg); }
#ev-org-overlay .btn--full { width: 100%; justify-content: center; }

/* 💬 фільтри чатів — однаковий розмір кнопок */
.cch-f { min-width: 96px; height: 38px; justify-content: center; padding: 0 14px !important; box-sizing: border-box; }
@media (max-width: 760px) { .cch-f { flex: 0 0 calc(40% - 4px) !important; min-width: 0; } }

/* ═══ 📎 Матеріали події — кнопка в квитку + вікно / шторка (26.09) ═══ */
.tk__matbtn { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border);
  background: var(--color-bg); color: var(--color-text); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease; }
.tk__matbtn span { flex: 1; }
.tk__matbtn b { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent); font-size: 0.74rem; display: inline-flex; align-items: center; justify-content: center; }
.tk__matbtn i { font-style: normal; font-size: 1.2rem; color: var(--color-text-muted); line-height: 1; }
.tk__matbtn:hover { border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border)); background: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface)); }
.evm-ov { position: fixed; inset: 0; z-index: 10200; background: rgb(var(--color-ink-deep-rgb) / .5); display: flex; align-items: center; justify-content: center; padding: 18px; animation: evmFade .18s ease-out; }
.evm-ov.is-closing { animation: evmFadeOut .2s ease-in forwards; }
@keyframes evmFade { from { opacity: 0; } }
@keyframes evmFadeOut { to { opacity: 0; } }
.evm { width: 100%; max-width: 520px; max-height: min(80vh, 640px); display: flex; flex-direction: column; background: var(--color-surface); color: var(--color-text); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28); animation: evmIn .22s cubic-bezier(.22,1,.36,1); }
@keyframes evmIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.evm__head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--color-border); }
.evm__head h3 { margin: 0; font-family: var(--font-heading); font-size: 1.15rem; }
.evm__head small { display: block; margin-top: 3px; color: var(--color-text-muted); font-size: 0.82rem; }
.evm__x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); cursor: pointer; font-size: 0.9rem; }
.evm__list { overflow-y: auto; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.evm__row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-bg); }
.evm__ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--color-surface); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.evm__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.evm__t b { font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evm__t small { font-size: 0.74rem; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evm__cp { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-surface); cursor: pointer; }
.evm__cp.is-copied { border-color: var(--color-success, #16a34a); background: var(--color-success-bg); }
.evm__go { flex: none; padding: 8px 14px !important; font-size: 0.84rem !important; white-space: nowrap; }
@media (max-width: 760px) {
  .evm-ov { align-items: flex-end; padding: 0; }
  .evm { max-width: none; border-radius: 20px 20px 0 0; max-height: 85vh; padding-bottom: env(safe-area-inset-bottom, 0px); animation: evmUp .3s cubic-bezier(.22,1,.36,1); }
  .evm-ov.is-closing .evm { animation: evmDown .2s ease-in forwards; }
  .evm__head { padding-top: 22px; }
  .evm__head::before { content: ''; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--color-border); }
  .evm__go { padding: 8px 11px !important; }
}
@keyframes evmUp { from { transform: translateY(100%); } }
@keyframes evmDown { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .evm, .evm-ov { animation: none !important; } }

/* ═══ 📣 Плашки над блоками кабінету: «непрочитані» + «Підключіть Telegram» (26.09, кольори теми) ═══ */
#dash-unread-note:empty, #dash-tg-note:empty { display: none; }
.cab-note { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; animation: cabNoteIn .3s cubic-bezier(.22,1,.36,1); }
@keyframes cabNoteIn { from { opacity: 0; transform: translateY(-4px); } }
.cab-note__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--color-surface); }
.cab-note__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; line-height: 1.4; }
.cab-note__t small { font-size: 0.8rem; opacity: .85; }
.cab-note__btn { flex: none; padding: 9px 16px !important; font-size: 0.84rem !important; white-space: nowrap; text-decoration: none; }
.cab-note__x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; font-size: 0.95rem; }
.cab-note__x:hover { opacity: 1; background: var(--color-surface); }
.cab-note--warn { background: var(--color-warning-bg); color: var(--color-warning-fg); border-color: color-mix(in srgb, var(--color-warning-fg, #92400e) 22%, transparent); }
.cab-note--info { background: var(--color-info-bg); color: var(--color-info-fg); border-color: color-mix(in srgb, var(--color-info-fg, #075985) 20%, transparent); }
@media (max-width: 560px) {
  /* телефон: іконка · текст · ✕ — першим рядом, кнопка на всю ширину — другим */
  .cab-note { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 10px; }
  .cab-note__ic { grid-column: 1; grid-row: 1; }
  .cab-note__t { grid-column: 2; grid-row: 1; }
  .cab-note__x { grid-column: 3; grid-row: 1; align-self: start; }
  .cab-note__btn { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: center; display: flex !important; }
}
@media (prefers-reduced-motion: reduce) { .cab-note { animation: none; } }

.cab-hub .cab-note { margin: 0 0 10px; }

/* ═══ 🔐 Вхід у кабінет — новий вигляд (26.09) ═══ */
.auth2 { padding: 28px 0 56px; background: var(--color-bg); }
.auth2__card { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 50px rgb(var(--color-ink-deep-rgb, 40 30 24) / .10); }
.auth2__side { position: relative; padding: 36px 30px; background: linear-gradient(160deg, color-mix(in srgb, var(--color-accent) 16%, var(--color-surface)), color-mix(in srgb, var(--color-accent) 4%, var(--color-surface)));
  display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.auth2__side-t { font-family: var(--font-heading); font-size: 1.55rem; line-height: 1.15; color: var(--color-text); }
.auth2__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.auth2__perks li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; font-weight: 600; color: var(--color-text); }
.auth2__perks li span { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--color-surface); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.auth2__cat { position: absolute; right: -10px; bottom: -14px; width: 150px; opacity: .95; pointer-events: none; }
.auth2__main { padding: 32px 32px 24px; min-width: 0; }
.auth2__head { margin-bottom: 20px; }
.auth2__head h2 { font-family: var(--font-heading); font-size: 1.6rem; margin: 0 0 4px; }
.auth2__head p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.auth2__g { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 44px; }
.auth2__g #gsi-btn { display: flex; justify-content: center; }
.auth2__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; color: var(--color-text-muted); font-size: 0.8rem; }
.auth2__or::before, .auth2__or::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.auth2 .auth-tabs { margin-bottom: 18px; }
.auth2 .auth-tab { padding: 10px 12px; font-size: 0.92rem; }
.auth2 #login-step-1 > p:first-child, .auth2 #reg-step-1 > p:first-child { font-size: 0.84rem !important; margin-bottom: 14px !important; }
.auth2 .form-group input { border-radius: 12px; min-height: 48px; }
.auth2 .form-group input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.auth2 .btn-primary { min-height: 50px; border-radius: 14px; }
.auth2__legal { margin: 18px 0 0; font-size: 0.74rem; line-height: 1.5; color: var(--color-text-muted); text-align: center; }
.auth2__legal a { color: var(--color-accent); }
@media (max-width: 760px) {
  .auth2 { padding: 14px 0 90px; }
  .auth2__card { grid-template-columns: minmax(0, 1fr); border-radius: 20px; box-shadow: none; }
  .auth2__side { display: none; }
  .auth2__main { padding: 22px 18px 18px; }
  .auth2__head { margin-bottom: 16px; text-align: center; }
  .auth2__head h2 { font-size: 1.35rem; }
  .auth2__or { margin: 14px 0 12px; }
}
/* 26.09: під час входу «Помічник» не перекриває форму */
body:has(.auth2) #nyt-conc-btn { display: none !important; }
