/* Радикс · кабинет и вход (M4): /my, /login, /my/delete, /my/deleted, удаление карты.
   Макет — design/Radix Cabinet.dc.html (экраны 11a–11d, ширина 390). Только токены радикса
   (radix.css); без атрибутов style (CSP). Мини-колесо — .rx-mini из wheel.css. */

.cabinet-page { gap: var(--rx-s-8); }

/* --- вход --- */
.cabinet-login { display: flex; flex-direction: column; gap: var(--rx-s-4); }
.cabinet-login__form { display: flex; flex-direction: column; gap: var(--rx-s-4); }
.cabinet-login__or { margin: 0; text-align: center; }
.cabinet-email { color: var(--rx-text); font-weight: 600; overflow-wrap: anywhere; }

/* --- шапка кабинета --- */
.cabinet__intro { gap: var(--rx-s-1); }
.cabinet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--rx-s-4); }
.cabinet__logout { margin: 0; }
.cabinet__logout .rx-btn--text { color: var(--rx-text-2); font-weight: 500; }
.cabinet__logout .rx-btn--text:hover { color: var(--rx-text); }
.cabinet__email { margin: 0; overflow-wrap: anywhere; }

/* --- карты --- */
.cabinet__charts { display: flex; flex-direction: column; gap: var(--rx-s-2); }
.cabinet-charts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--rx-s-2); }
.cabinet-chart { display: flex; flex-direction: column; gap: 2px; }
.cabinet-chart__link {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 20px; gap: 14px; align-items: center;
  padding: var(--rx-s-4); border: 1px solid var(--rx-line); border-radius: var(--rx-r-l);
  background: var(--rx-surface-1); color: var(--rx-text); transition: border-color var(--rx-dur);
}
.cabinet-chart__link:hover { color: var(--rx-text); border-color: rgba(242,240,234,.3); }
.cabinet-chart__wheel { width: 64px; height: 64px; }
.cabinet-chart__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cabinet-chart__title { font: 600 22px/1.1 var(--rx-serif); }
.cabinet-chart__meta { font-size: 13px; color: var(--rx-text-2); font-variant-numeric: tabular-nums; }
.cabinet-chart__tag { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--rx-text-2); }
.cabinet-chart__tag--paid { color: var(--rx-gold); }
.cabinet-chart__tag--pending { color: var(--rx-blue); }
/* «Данные исправлены <дата>» — после «Ошибки в данных рождения» (radix.web.cabinet.fixed_note). */
.cabinet-chart__fixed { font-size: 12px; color: var(--rx-text-2); font-variant-numeric: tabular-nums; }
.cabinet-chart__chevron { width: 20px; height: 20px; fill: none; stroke: var(--rx-text-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cabinet-chart__delete { align-self: flex-end; min-height: 32px; display: inline-flex; align-items: center; padding: 0 4px; font-size: 13px; color: var(--rx-text-3); }
.cabinet-chart__delete:hover { color: var(--rx-error); }
.cabinet-new {
  height: 48px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(242,240,234,.24); border-radius: var(--rx-r-m);
  color: var(--rx-text); font-size: 15px; font-weight: 600;
}
.cabinet-new:hover { color: var(--rx-text); border-color: rgba(242,240,234,.5); }
.cabinet-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: var(--rx-s-8) var(--rx-s-5); border: 1px dashed rgba(242,240,234,.2); border-radius: var(--rx-r-l);
}
.cabinet-empty__title { margin: 0; font: 600 24px/1.2 var(--rx-serif); }
.cabinet-empty__text { margin: 0; color: var(--rx-text-2); text-wrap: pretty; }

/* --- разделы --- */
.cabinet-section { display: flex; flex-direction: column; gap: 10px; }
.cabinet-section__title { margin: 0; font: 600 12px/1.3 var(--rx-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rx-blue); }
.cabinet-section__title--muted { color: var(--rx-text-2); }
.cabinet-section__text { margin: 0; color: var(--rx-text-2); text-wrap: pretty; }
.cabinet-section form { margin: 0; }

/* --- покупки и чеки --- */
.cabinet-orders { border: 1px solid var(--rx-line); border-radius: var(--rx-r-l); background: var(--rx-surface-1); }
.cabinet-order { margin: 0; padding: var(--rx-s-4); display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid rgba(242,240,234,.08); }
.cabinet-order--empty { color: var(--rx-text-2); }
.cabinet-order__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--rx-s-3); }
.cabinet-order__title { font-size: 15px; font-weight: 600; }
.cabinet-order__sum { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cabinet-order__meta { margin: 0; font-size: 13px; line-height: 1.45; color: var(--rx-text-2); font-variant-numeric: tabular-nums; }
.cabinet-order__links { display: flex; flex-wrap: wrap; gap: var(--rx-s-4); }
.cabinet-order__links:empty { display: none; }
.cabinet-order__links a { min-height: 32px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; }
.cabinet-orders__note { margin: 0; padding: 14px var(--rx-s-4); font-size: 13px; line-height: 1.5; color: var(--rx-text-2); }

/* --- данные и удаление --- */
.cabinet-data__link { min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; }
.cabinet-danger {
  height: 52px; display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 0 var(--rx-s-6); border: 1px solid rgba(239,143,128,.5); border-radius: var(--rx-r-m);
  background: transparent; color: var(--rx-error); font: 600 15px/1.2 var(--rx-sans); cursor: pointer;
  transition: background var(--rx-dur);
}
.cabinet-danger:hover { color: var(--rx-error); background: rgba(239,143,128,.08); }
.cabinet-danger--solid { border-color: var(--rx-error); background: var(--rx-error); color: var(--rx-on-gold); font-size: 16px; }
.cabinet-danger--solid:hover { color: var(--rx-on-gold); background: #F3A597; }
.cabinet-confirm__text { text-wrap: pretty; }
.cabinet-confirm__actions { margin: 0; display: flex; flex-direction: column; gap: var(--rx-s-3); }

/* --- данные удалены --- */
.cabinet-done { align-items: center; text-align: center; padding-top: var(--rx-s-16); }
.cabinet-done .page__intro { align-items: center; }
.cabinet-done .page__actions { justify-content: center; }
.cabinet-done__mark { width: 56px; height: 56px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cabinet-done__mark circle { stroke: rgba(242,240,234,.3); stroke-width: 1; }
.cabinet-done__mark path { stroke: var(--rx-gold); }
/* CRM 2.0: «Включить письма» (CRM_CABINET_OPTIN) — галочка, ссылка на текст согласия, кнопка. */
.cabinet-optin { display: grid; gap: 12px; justify-items: start; margin: 12px 0 0; }
