/* ============================================================
   FlowBiz — кабинет в стиле приложения
   ============================================================ */

:root {
  --bg: #f4f0ea;
  --surface: #ffffff;
  --surface-2: #faf6f2;
  --ink: #241a17;
  --muted: #8a7a72;
  --line: #ece1d8;
  --line-strong: #ddcec3;

  --brand: #c92a2a;
  --brand-dark: #a61e1e;
  --brand-soft: #fbe9e7;

  --leaf: #3f7d4e;
  --leaf-soft: #e9f4ec;

  --plum: #241a17;
  --plum-2: #3a2a24;

  --amber: #a45c11;
  --amber-soft: #fdf1df;

  --danger: #b42318;
  --danger-soft: #fdecea;

  --radius: 20px;
  --radius-sm: 12px;

  --shadow: 0 18px 40px -30px rgba(60, 30, 20, 0.35);
}

body.page-app {
  background: var(--bg);
}

.page-app h1,
.page-app h2,
.page-app h3,
.appbar,
.income-card,
.quick,
.tabbar {
  font-family: var(--font-sans);
}

.page-app h1,
.page-app h2,
.page-app h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- каркас ---------- */

.app {
  width: min(820px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 112px;
}

.app-main {
  padding: 2px 16px 24px;
}

/* ---------- шапка ---------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(244, 240, 234, 0.94);
  backdrop-filter: blur(12px);
}

.appbar__shop {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.appbar__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex: none;
}

.appbar__name {
  max-width: 140px;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.appbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #8a5a12;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.appbar__pill.is-on {
  background: #e8f3e9;
  color: #3f7d4e;
}

.appbar__pill .icon {
  width: 13px;
  height: 13px;
}

.appbar__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex: none;
}

.appbar__actions .appbar__pill {
  margin-left: 0;
}

.appbar__bell {
  position: relative;
}

.appbar__bell b {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.appbar__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
}

.appbar__icon .icon {
  width: 17px;
  height: 17px;
}

/* ---------- заголовок страницы ---------- */

.app-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 6px;
}

.app-head h1 {
  font-size: 24px;
}

.app-head p {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.app-head__actions {
  flex: none;
}

.section-label {
  margin: 22px 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- доход ---------- */

.income-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(140deg, #d03434 0%, #bd2424 55%, #a91c1c 100%);
  color: #fff;
  box-shadow: 0 26px 44px -34px rgba(160, 30, 20, 0.9);
}

.income-card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.income-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.income-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.income-card__tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.06em;
}

.income-card__note {
  margin-top: 2px;
  font-size: 10.5px;
  opacity: 0.72;
}

.income-card__value {
  margin: 6px 0 14px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.income-card__button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 700;
}

.income-card__button .icon {
  width: 15px;
  height: 15px;
}

.income-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 16px;
}

.income-card__stats div {
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.income-card__stats span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.income-card__stats strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.income-card__foot {
  margin-top: 12px;
  font-size: 10.5px;
  text-align: center;
  opacity: 0.72;
}

.income-card--compact .income-card__value {
  font-size: 34px;
  margin-bottom: 0;
}

/* ---------- сайт ---------- */

.section-label + .site-card {
  margin-top: 0;
}

.site-card {
  margin-top: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.site-card__row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 18px;
}

.site-card__row:hover {
  background: var(--surface-2);
}

.site-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

.site-card__icon .icon {
  width: 20px;
  height: 20px;
}

.site-card__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.site-card__copy strong {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.site-card__copy span {
  font-size: 11.5px;
  color: var(--muted);
}

.site-card__link {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

.site-card__link .icon {
  width: 15px;
  height: 15px;
}

.site-card__actions {
  display: grid;
  gap: 5px;
  padding: 4px 5px 5px;
}

.site-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 15px;
  background: var(--surface-2);
}

.site-action:hover {
  background: #f5eee8;
}

.site-action__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  flex: none;
}

.site-action__icon .icon {
  width: 18px;
  height: 18px;
}

.site-action__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.site-action__copy strong {
  font-size: 13px;
  font-weight: 700;
}

.site-action__copy em {
  font-size: 10.5px;
  font-style: normal;
  color: var(--muted);
}

.site-action > .icon {
  margin-left: auto;
  color: var(--muted);
}

/* ---------- быстрые действия ---------- */

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

.quick {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 104px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px -24px rgba(60, 30, 20, 0.5);
}

.quick:hover {
  border-color: var(--line-strong);
}

.quick__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.quick__icon .icon {
  width: 18px;
  height: 18px;
}

.quick strong {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.quick em {
  font-size: 10.5px;
  font-style: normal;
  color: var(--muted);
}

/* ---------- карточки ---------- */

.page-app .card {
  margin: 0 0 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px -26px rgba(60, 30, 20, 0.5);
}

.page-app .card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page-app .card__head h2 {
  font-size: 16px;
}

.page-app .card__head p {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.page-app .card__head .btn {
  flex: none;
}

.page-app .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-app .badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-app .empty {
  padding: 26px 12px;
}

.page-app .empty__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
}

.page-app .empty h3 {
  font-size: 15px;
}

.page-app .empty p {
  max-width: 38ch;
  margin: 5px auto 12px;
  font-size: 12px;
  color: var(--muted);
}

.page-app .form-error {
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
}

/* ---------- формы ---------- */

.page-app .form {
  display: grid;
  gap: 14px;
}

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

.page-app .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-app .field > span,
.page-app .field__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.page-app .field em {
  font-size: 11px;
  font-style: normal;
  color: var(--danger);
}

.page-app .input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}

.page-app .input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.page-app textarea.input {
  min-height: 74px;
  resize: vertical;
}

.page-app .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.page-app .btn--primary {
  background: var(--brand);
  color: #fff;
}

.page-app .btn--primary:hover {
  background: var(--brand-dark);
}

.page-app .btn--outline {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.page-app .btn--ghost {
  background: var(--surface-2);
  color: var(--ink);
}

.page-app .btn--xs {
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 10.5px;
}

.page-app .btn--sm {
  padding: 8px 11px;
  font-size: 11.5px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 8px;
}

.page-app .icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.page-app .icon-btn--danger {
  color: var(--danger);
  border-color: #f3d3cf;
}

.page-app .icon-btn .icon {
  width: 16px;
  height: 16px;
}

/* ---------- выбор фото ---------- */

.thumb-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.thumb-field legend {
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

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

.thumb {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.thumb input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.thumb img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
}

.thumb span {
  display: block;
  padding: 4px 2px;
  font-size: 9.5px;
  text-align: center;
  color: var(--muted);
}

.thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ---------- списки ---------- */

.product-list,
.order-list,
.client-list,
.month-list,
.summary-row {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-row,
.order-row,
.client-row,
.month-row {
  border-bottom: 1px solid var(--line);
}

.product-row:last-child,
.order-row:last-child,
.client-row:last-child,
.month-row:last-child {
  border-bottom: 0;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.product-row__image {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
}

.product-row__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.product-row__copy strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-row__copy span {
  font-size: 10.5px;
  color: var(--muted);
}

.product-row form {
  margin-left: 0;
  flex: none;
}

.product-row__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: none;
}

.product-row__actions form {
  margin: 0;
}

/* ---------- заказы ---------- */

.order-row {
  padding: 11px 0;
}

.order-row__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.order-row__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.order-row__copy strong {
  font-size: 12.5px;
  font-weight: 700;
}

.order-row__copy span {
  font-size: 10.5px;
  color: var(--muted);
}

.order-row__amount {
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.order-row__date {
  font-size: 10px;
  color: var(--muted);
}

.order-row__meta form {
  margin-left: auto;
}

/* ---------- месяцы ---------- */

.month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}

.month-row__copy {
  display: flex;
  flex-direction: column;
}

.month-row__copy strong {
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
}

.month-row__copy span {
  font-size: 10.5px;
  color: var(--muted);
}

.month-row__nums {
  text-align: right;
}

.month-row__nums strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.month-row__nums span {
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------- клиенты ---------- */

.client-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.client-row__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.client-row__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.client-row__copy strong {
  font-size: 12.5px;
  font-weight: 700;
}

.client-row__copy span {
  font-size: 10.5px;
  color: var(--muted);
}

.client-row__meta {
  margin-left: auto;
  text-align: right;
}

.client-row__meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.client-row__meta span {
  font-size: 10px;
  color: var(--muted);
}

/* ---------- сводка ---------- */

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.summary-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-row--4 .summary-chip {
  padding: 9px 8px;
}

.summary-row--4 .summary-chip span {
  font-size: 9px;
}

.summary-row--4 .summary-chip strong {
  font-size: 15px;
}

.summary-chip {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.summary-chip span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.summary-chip strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 700;
}

/* ---------- выход ---------- */

.logout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logout-row strong {
  display: block;
  font-size: 13px;
}

.logout-row span {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- нижняя навигация ---------- */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  width: min(820px, 100%);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -16px 34px -26px rgba(60, 30, 20, 0.55);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.tabbar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}

.tabbar__item .icon {
  width: 21px;
  height: 21px;
}

.tabbar__item.is-active {
  color: var(--brand);
}

.tabbar__item b {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  transform: translateX(8px);
}

.tabbar__add {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -23px auto 0;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 24px -12px rgba(180, 30, 20, 0.7);
}

.tabbar__add .icon {
  width: 22px;
  height: 22px;
}

/* ---------- адаптив ---------- */

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .app-head h1 {
    font-size: 22px;
  }
}

@media (max-width: 430px) {
  .appbar__pill span {
    display: inline;
  }

  .appbar__pill {
    padding: 6px 8px;
    font-size: 9.5px;
  }

  .appbar__name {
    max-width: 130px;
  }

  .income-card__value {
    font-size: 34px;
  }
}

@media (min-width: 900px) {
  .app {
    padding-top: 8px;
  }

  .appbar {
    padding-inline: 20px;
    border-radius: 0 0 18px 18px;
  }

  .app-main {
    padding-inline: 20px;
  }
}

/* ---------- страница товаров ---------- */

.products-page {
  padding-top: 14px;
}

.products-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.products-back .icon {
  width: 15px;
  height: 15px;
}

.products-title {
  margin: 18px 0 2px;
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.products-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.products-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 54px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.products-search .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
}

.products-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.products-search input::placeholder {
  color: #a3938a;
}

.products-cat {
  position: relative;
  display: block;
  margin-top: 10px;
  padding: 11px 92px 11px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.products-cat__label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.products-cat__value {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.products-cat__count {
  position: absolute;
  top: 50%;
  right: 42px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transform: translateY(-50%);
}

.products-cat__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.products-cat__chevron .icon {
  width: 16px;
  height: 16px;
}

.products-cat select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.products-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  margin-top: 10px;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 16px 28px -18px rgba(180, 30, 20, 0.8);
}

.products-add .icon {
  width: 19px;
  height: 19px;
}

.page-app .products-list-card {
  margin: 16px 0 12px;
}

.product-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.admin-product-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 30px -28px rgba(60, 30, 20, 0.5);
}

.admin-product-card[hidden] {
  display: none;
}

.apc__top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.apc__photo {
  width: 80px;
  height: 100px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2);
  flex: none;
}

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

.apc__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.apc__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.apc__sub {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.apc__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.apc__meta .icon {
  width: 12px;
  height: 12px;
}

.apc__meta .badge {
  padding: 2px 6px;
  font-size: 9px;
}

.apc__price {
  flex: none;
  padding-top: 1px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.apc__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.apc__metric {
  min-width: 0;
}

.apc__metric > span {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.apc__metric > strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.apc__metric > strong.markup {
  color: var(--amber);
}

.apc__metric > strong.profit {
  color: var(--leaf);
}

.apc__metric > strong.loss {
  color: var(--danger);
}

.apc__actions {
  display: flex;
  gap: 8px;
}

.apc__open {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.apc__actions form {
  flex: none;
}

.apc__delete {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.apc__delete .icon {
  width: 17px;
  height: 17px;
}

/* ---------- карточки товаров: 2 в ряд ---------- */

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.admin-product-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 30px -28px rgba(60, 30, 20, 0.5);
}

.apc__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}

.apc__media > a {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

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

.apc__media form {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
}

.apc__status {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.apc__status.ok {
  color: var(--leaf);
}

.apc__status.draft {
  color: var(--amber);
}

.apc__delete {
  position: static;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--danger);
  cursor: pointer;
  box-shadow: 0 4px 12px -6px rgba(40, 20, 15, 0.5);
}

.apc__delete .icon {
  width: 19px;
  height: 19px;
}

.apc__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px 10px;
}

.apc__title-row {
  display: flex;
  align-items: flex-start;
  gap: 3px;
}

.apc__title {
  display: -webkit-box;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.apc__price {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.apc__cat {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apc__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.apc__metric > span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.apc__metric > strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.apc__metric > strong.markup {
  color: var(--amber);
}

.apc__metric > strong.profit {
  color: var(--leaf);
}

.apc__metric > strong.loss {
  color: var(--danger);
}

.apc__fill {
  margin-top: 1px;
  color: var(--brand);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
}

.apc__open {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  margin-top: 6px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- заявки ---------- */

.requests-page {
  padding-top: 14px;
}

.req-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.req-tab {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f1ec;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.req-tab b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.req-tab.is-active {
  border-color: #e8b8b4;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.req-tab.is-active b {
  background: var(--brand);
  color: #fff;
}

.req-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.req-card {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 30px -28px rgba(60, 30, 20, 0.5);
}

.req-card__arrow {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}

.req-card__arrow .icon {
  width: 17px;
  height: 17px;
}

.req-card__top {
  display: flex;
  gap: 11px;
  padding-right: 26px;
}

.req-card__photo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--surface-2);
  flex: none;
}

.req-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.req-card__photo--empty {
  color: var(--brand);
}

.req-card__photo--empty .icon {
  width: 22px;
  height: 22px;
}

.req-card__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.req-card__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.req-card__name strong {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.req-card__name .badge {
  padding: 2px 6px;
  font-size: 9px;
}

.req-card__phone {
  color: var(--muted);
  font-size: 12px;
}

.req-card__product {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.req-card__date {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.req-card__date .icon {
  width: 12px;
  height: 12px;
}

.req-card__open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px -16px rgba(180, 30, 20, 0.8);
}

.req-card__open .icon {
  width: 15px;
  height: 15px;
}

.req-empty {
  margin-top: 14px;
  padding: 30px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.req-empty h3 {
  margin-top: 8px;
  font-size: 15px;
}

.req-empty p {
  max-width: 36ch;
  margin: 5px auto 12px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- окно заявки ---------- */

body.req-modal-open {
  overflow: hidden;
}

.req-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 30px;
}

.req-modal[hidden] {
  display: none;
}

.req-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 12, 9, 0.48);
  backdrop-filter: blur(3px);
}

.req-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.4);
}

.req-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.req-modal__eyebrow {
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.req-modal__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}

.req-modal__close .icon {
  width: 15px;
  height: 15px;
}

.req-modal__panel h2 {
  margin: 12px 0 2px;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.req-modal__date {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.req-modal__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.req-modal__phone .icon {
  color: var(--brand);
}

.req-modal__product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.req-modal__product span {
  width: 100%;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.req-modal__product strong {
  font-size: 13px;
  font-weight: 700;
}

.req-modal__product em {
  margin-left: auto;
  color: var(--brand);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.req-modal__comment {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}

.req-modal__photo {
  width: 100%;
  max-height: 260px;
  margin-top: 10px;
  border-radius: 14px;
  object-fit: cover;
}

.req-modal__status {
  margin-top: 12px;
}

.req-modal__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border: 0;
  border-radius: 15px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.req-modal__action .icon {
  width: 17px;
  height: 17px;
}

.req-modal__action--ghost {
  background: var(--surface-2);
  color: var(--ink);
}

.req-modal__hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

.req-modal__link {
  display: block;
  margin-top: 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.req-modal__order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7f5;
  border: 1px solid var(--line);
}

.req-modal__order span {
  width: 100%;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.req-modal__order strong {
  font-size: 13px;
  font-weight: 700;
}

.req-modal__order a {
  margin-left: auto;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
}

.req-edit {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.req-edit summary {
  padding: 12px 14px;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.req-edit summary::-webkit-details-marker {
  display: none;
}

.req-edit summary::before {
  content: '+ ';
}

.req-edit[open] summary::before {
  content: '− ';
}

.req-edit__form {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.req-edit__row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.req-edit__form .btn {
  justify-self: start;
}

.req-edit textarea.input {
  min-height: 74px;
  resize: vertical;
}

.req-delete {
  margin-top: 10px;
}

.req-delete__button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #fff1f1;
  color: #b3261e;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 420px) {
  .req-edit__row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .req-modal {
    align-items: center;
    padding: 20px;
  }

  .req-modal__panel {
    border-radius: 24px;
    max-height: 84vh;
  }
}

/* ---------- клиенты ---------- */

.clients-page {
  padding-top: 14px;
}

.clients-sort {
  position: relative;
  display: block;
  margin-top: 10px;
  padding: 11px 46px 11px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}

.clients-sort__label {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.clients-sort__value {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.clients-sort__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.clients-sort__chevron .icon {
  width: 16px;
  height: 16px;
}

.clients-sort select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.clients-list {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.clients-list[hidden] {
  display: none;
}

.clients-list .client-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.clients-list .client-row:last-child {
  border-bottom: 0;
}

.clients-list .client-row:hover {
  background: var(--surface-2);
}

.client-row[hidden] {
  display: none;
}

.client-row__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.client-row__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.client-row__copy strong {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.client-row__phone {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.client-row__phone .icon {
  width: 12px;
  height: 12px;
}

.client-row__stats {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.client-row__stats strong {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.client-row__stats span {
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.client-row > .icon {
  color: var(--muted);
  flex: none;
  transform: rotate(-90deg);
}

.client-detail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.client-edit-btn .icon {
  width: 14px;
  height: 14px;
}

.client-info {
  margin-top: 14px;
}

.client-info__row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.client-info__row:last-of-type {
  border-bottom: 0;
}

.client-info__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

.client-info__icon--social {
  background: #eef0fb;
  color: #5b63b7;
}

.client-info__icon--note {
  background: var(--amber-soft);
  color: var(--amber);
}

.client-info__icon .icon {
  width: 18px;
  height: 18px;
}

.client-info__row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.client-info__row span {
  color: var(--muted);
  font-size: 10px;
}

.client-info__row strong,
.client-info__row a {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.client-info__since {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.client-history__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.client-history__row:last-child {
  border-bottom: 0;
}

.client-history__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.client-history__copy strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.client-history__copy span {
  color: var(--muted);
  font-size: 10.5px;
}

.client-history__amount {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.client-history__row > .icon {
  color: var(--muted);
  flex: none;
  transform: rotate(-90deg);
}

.client-history__empty {
  margin: 0;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.client-edit-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.client-edit-form .btn {
  width: 100%;
  height: 48px;
}

/* ---------- сообщения ВК ---------- */

.messages-page {
  padding-top: 14px;
}

.msg-error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #f0c9c5;
  border-radius: 12px;
  background: #fff4f2;
  color: var(--danger);
  font-size: 11.5px;
}

.msg-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.msg-list-pane {
  min-width: 0;
}

.msg-search {
  margin-top: 0;
}

.msg-conversations {
  overflow-y: auto;
  max-height: 65vh;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.msg-conv {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.msg-conv:last-child {
  border-bottom: 0;
}

.msg-conv:hover,
.msg-conv.is-active {
  background: var(--brand-soft);
}

.msg-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-conv__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.msg-conv__line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.msg-conv__line strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.msg-conv__line time {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.msg-conv__last {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.msg-conv__badge {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  flex: none;
}

.msg-list-empty {
  padding: 26px 14px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.msg-chat-pane {
  min-width: 0;
}

.msg-chat {
  display: flex;
  flex-direction: column;
  height: min(66vh, 620px);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.msg-chat__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.msg-chat__back {
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  flex: none;
}

.msg-chat__back .icon {
  width: 15px;
  height: 15px;
}

.msg-chat__who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.msg-chat__who strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.msg-chat__who span {
  color: var(--muted);
  font-size: 9.5px;
}

.msg-chat__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  background: #fbf8f5;
}

.msg-bubble {
  position: relative;
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 14px;
  background: #f1ece8;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.msg-bubble.is-in {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-bubble.is-out {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--brand);
  color: #fff;
}

.msg-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.msg-bubble time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  text-align: right;
}

.msg-bubble.is-out time {
  color: rgba(255, 255, 255, 0.7);
}

.msg-bubble__photo {
  display: block;
  margin: -1px -3px 5px;
}

.msg-bubble__photo img {
  display: block;
  width: 100%;
  max-width: 230px;
  max-height: 280px;
  border-radius: 10px;
  object-fit: cover;
}

.msg-bubble__video {
  position: relative;
}

.msg-bubble__video > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  transform: translate(-50%, -50%);
}

.msg-bubble__attach {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.msg-chat__empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 30px 20px;
  color: var(--muted);
  text-align: center;
}

.msg-chat__empty strong {
  color: var(--ink);
  font-size: 13px;
}

.msg-chat__empty span {
  font-size: 11px;
}

.msg-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 360px;
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.msg-chat-empty__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.msg-chat-empty__icon .icon {
  width: 24px;
  height: 24px;
}

.msg-chat-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.msg-chat-empty span {
  max-width: 30ch;
  font-size: 11.5px;
}

/* ---------- полноэкранная переписка ---------- */

.page-app--bare {
  overflow: hidden;
}

.app--bare {
  width: 100%;
  min-height: 100dvh;
  padding-bottom: 0;
}

.app-main--bare {
  max-width: none;
  padding: 0;
}

.messages-page--chat {
  height: 100dvh;
  padding: 0;
  overflow: hidden;
}

.msg-chat-back {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 13px 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px -16px rgba(60, 30, 20, 0.7);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.msg-chat-back .icon {
  width: 16px;
  height: 16px;
}

.msg-bare {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 820px;
  height: 100dvh;
  margin: 0 auto;
  padding-top: 56px;
  box-sizing: border-box;
}

.msg-bare .msg-chat__messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 12px 14px 96px;
  border-radius: 0;
}

.msg-bare .msg-composer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 9px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 28px -24px rgba(60, 30, 20, 0.55);
}

.msg-composer {
  padding: 9px 12px 10px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.msg-composer__row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.msg-composer__icon,
.msg-composer__send {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  flex: none;
  cursor: pointer;
}

.msg-composer__icon {
  background: var(--surface-2);
  color: var(--muted);
}

.msg-composer__send {
  background: var(--brand);
  color: #fff;
}

.msg-composer__icon .icon,
.msg-composer__send .icon {
  width: 17px;
  height: 17px;
}

.msg-composer textarea {
  flex: 1;
  min-width: 0;
  max-height: 110px;
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 15px;
  outline: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  resize: none;
}

.msg-composer textarea::placeholder {
  color: var(--muted);
}

.msg-composer__hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.msg-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--surface-2);
}

.msg-preview[hidden] {
  display: none;
}

.msg-preview img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
}

.msg-preview span {
  flex: 1;
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.msg-preview button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

@media (max-width: 699px) {
  .msg-layout {
    display: block;
  }

  .msg-chat-pane {
    display: none;
  }

  .msg-layout.has-chat .msg-list-pane {
    display: none;
  }

  .msg-layout.has-chat .msg-chat-pane {
    display: block;
  }

  .msg-chat {
    height: calc(100dvh - 250px);
    min-height: 380px;
  }

  .msg-chat__back {
    display: grid;
  }

  .msg-conversations {
    max-height: none;
  }
}

/* ---------- склад «В наличии» ---------- */

.inventory-page {
  padding-top: 14px;
}

.inv-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.inv-tab {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f1ec;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}

.inv-tab b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.inv-tab.is-active {
  border-color: #e8b8b4;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.inv-tab.is-active b {
  background: var(--brand);
  color: #fff;
}

.inv-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 52px;
  margin-top: 12px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 26px -18px rgba(180, 30, 20, 0.8);
}

.inv-add .icon {
  width: 18px;
  height: 18px;
}

.inv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.inv-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 30px -28px rgba(60, 30, 20, 0.5);
}

.inv-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.inv-card__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.inv-card__name strong {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.inv-card__name span {
  color: var(--muted);
  font-size: 10.5px;
}

.inv-qty {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}

.inv-qty--out {
  background: var(--amber-soft);
  color: var(--amber);
}

.inv-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.inv-card__stats > div {
  min-width: 0;
}

.inv-card__stats span {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inv-card__stats strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.inv-card__note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.inv-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-top: 10px;
  border: 1px solid #f0c9c5;
  border-radius: 11px;
  background: #fff7f5;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.inv-card--written {
  box-shadow: none;
}

.inv-card__order {
  display: inline-block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  text-decoration: underline;
}

.inv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 30px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.inv-empty strong {
  margin-top: 4px;
  font-size: 14px;
}

.inv-empty > span:not(.empty__icon) {
  max-width: 32ch;
  color: var(--muted);
  font-size: 11.5px;
}

.inv-empty .btn {
  margin-top: 8px;
}

.inv-form {
  margin-top: 14px;
}

.inv-form .btn,
.order-form .btn {
  width: 100%;
  height: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field__error {
  display: block;
  margin-top: 4px;
  color: var(--danger);
  font-size: 10px;
  font-style: normal;
}

.inv-writeoff__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}

.inv-writeoff__info span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inv-writeoff__info strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- новый заказ ---------- */

.orders-new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  flex: none;
}

.orders-new .icon {
  width: 13px;
  height: 13px;
}

.order-form {
  margin-top: 14px;
}

.order-stock {
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-2);
}

.order-stock__head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 8px;
}

.order-stock__head strong {
  font-size: 13px;
  font-weight: 700;
}

.order-stock__head span {
  color: var(--muted);
  font-size: 10.5px;
}

.order-stock__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.order-stock__row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  flex: none;
}

.order-stock__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.order-stock__copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.order-stock__copy span {
  color: var(--muted);
  font-size: 9.5px;
}

.order-stock__qty {
  width: 56px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  text-align: center;
  flex: none;
}

.order-stock__empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.order-form__hint {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 430px) {
  .inv-card__stats {
    gap: 4px;
  }

  .inv-card__stats strong {
    font-size: 11px;
  }

  .orders-new {
    padding: 0 8px;
    font-size: 9.5px;
  }
}

.products-empty {
  margin-top: 16px;
  padding: 30px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.products-empty strong {
  display: block;
  font-size: 14px;
}

.products-empty span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.product-row[hidden] {
  display: none;
}

/* ---------- уведомления ---------- */

.notifications-page {
  padding-top: 14px;
}

.notif-read-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.notif-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
}

.notif-card.is-unread {
  border-color: #e8b8b4;
  background: #fffbfa;
}

.notif-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

.notif-card__icon .icon {
  width: 18px;
  height: 18px;
}

.notif-card__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.notif-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.notif-card__title strong {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notif-card__title em {
  flex: none;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.notif-card__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notif-card time {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.notif-card__dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 30px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.notif-empty strong {
  margin-top: 4px;
  font-size: 14px;
}

.notif-empty > span:not(.empty__icon) {
  max-width: 34ch;
  color: var(--muted);
  font-size: 11.5px;
}

/* ---------- карточки заказов ---------- */

.order-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 30px -30px rgba(60, 30, 20, 0.5);
}

.order-card + .order-card {
  margin-top: 10px;
}

.order-card__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.order-card__photo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 70px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--brand);
  flex: none;
}

.order-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-card__photo .icon {
  width: 22px;
  height: 22px;
}

.order-card__copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.order-card__copy > strong {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.order-card__copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.order-card__date {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 9.5px !important;
}

.order-card__date .icon {
  width: 11px;
  height: 11px;
}

.order-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: none;
}

.order-card__amount {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.order-card__right .badge {
  font-size: 9px;
}

.order-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-card__metrics > div {
  min-width: 0;
}

.order-card__metrics span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-card__metrics strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.order-card__metrics strong.is-profit {
  color: var(--leaf);
}

.order-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.order-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.order-card__foot form {
  margin-left: auto;
  flex: none;
}

/* ============================================================
   Push-уведомления
   ============================================================ */

.appbar__pill {
  text-decoration: none;
}

.push-card {
  scroll-margin-top: 20px;
}

.push-body {
  display: grid;
  gap: 12px;
}

.push-state {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.push-devices {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.push-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.push-explain {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.push-explain strong {
  font-size: 14px;
}

.push-explain p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.push-help {
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: var(--amber-soft);
  color: #6f4210;
  font-size: 13px;
  line-height: 1.5;
}

.push-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.push-banner__copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.push-banner__copy strong {
  font-size: 13.5px;
}

.push-banner__copy span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.push-banner__close,
.push-toast__close {
  flex: none;
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.push-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--plum);
  color: #fff;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
}

.push-toast__copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.push-toast__copy strong {
  font-size: 13.5px;
}

.push-toast__copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.push-toast a {
  flex: none;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.push-toast__close {
  color: rgba(255, 255, 255, 0.7);
}

.order-card.is-focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft), var(--shadow);
}

.order-focus-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .push-banner {
    flex-wrap: wrap;
  }

  .push-banner__copy {
    flex-basis: 100%;
  }

  .push-toast {
    bottom: 84px;
  }
}

/* hidden должен побеждать display у кнопок и сеток карточки */
.push-card [hidden],
.push-banner[hidden],
.push-toast[hidden] {
  display: none !important;
}
