/* AURIUX: темная полоса сверху, светлая рабочая область, фиолетовый акцент, оранжево-фиолетовая волна как на auriux.io */
:root {
  --ax-ink: #121216;
  --ax-ink2: #1b1b22;
  --ax-orange: #f2792b;
  --ax-violet: #6a4ff0;
  --ax-line: rgba(20, 20, 30, .08);
  --ax-muted: #6b6b76;
  --ax-bg: #f5f5f7;
  --ax-card: #fff;
  --ax-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dark {
  --ax-line: rgba(255, 255, 255, .09);
  --ax-muted: #a1a1aa;
  --ax-bg: #0d0d10;
  --ax-card: #16161b;
}
html, body { background: var(--ax-bg) !important; }
.fi-body { background: var(--ax-bg); }

/* Логотип: широкий тонкий капслок */
.ax-logo {
  font-family: "Unbounded", Inter, sans-serif;
  font-weight: 300;
  letter-spacing: .32em;
  font-size: 17px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.ax-logo-sub {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .02em;
  white-space: nowrap;
}
.fi-logo { display: flex !important; align-items: center; height: auto !important; }

/* Верхняя полоса */
.fi-topbar, .fi-topbar > nav, .fi-topbar-ctn {
  background: var(--ax-ink) !important;
  box-shadow: none !important;
  border: 0 !important;
}
.fi-topbar-ctn { position: sticky; top: 0; z-index: 30; }
.fi-topbar-ctn::after, .fi-topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--ax-orange), #c2459a 45%, var(--ax-violet));
  opacity: .9;
  pointer-events: none;
}
.fi-topbar .fi-topbar-item-btn, .fi-topbar .fi-topbar-item > a, .fi-topbar .fi-topbar-item > button { color: rgba(255, 255, 255, .7) !important; background: transparent !important; }
.fi-topbar .fi-topbar-item-btn:hover, .fi-topbar .fi-topbar-item > a:hover { color: #fff !important; background: rgba(255, 255, 255, .06) !important; }
.fi-topbar .fi-topbar-item-label { color: inherit !important; }
.fi-topbar .fi-topbar-item-icon, .fi-topbar .fi-icon { color: rgba(255, 255, 255, .55) !important; }
.fi-topbar .fi-topbar-item.fi-active .fi-topbar-item-btn,
.fi-topbar .fi-topbar-item.fi-active > a { color: #fff !important; background: rgba(255, 255, 255, .09) !important; }
.fi-topbar .fi-topbar-item.fi-active .fi-icon { color: #fff !important; }
.fi-topbar .fi-icon-btn { color: rgba(255, 255, 255, .7) !important; }
.fi-topbar .fi-user-avatar { outline: 1px solid rgba(255, 255, 255, .2); }
.fi-topbar .fi-badge { background: var(--ax-orange) !important; color: #fff !important; --tw-ring-color: transparent !important; }

/* Заголовки страниц */
.fi-header-heading { font-weight: 650; letter-spacing: -.02em; }
.fi-main { padding-top: 8px; }

/* Карточки и таблицы спокойнее */
.fi-section, .fi-ta-ctn { border-radius: 14px !important; box-shadow: 0 1px 2px rgba(16, 16, 24, .04) !important; }
.fi-ta-header-cell { font-size: 12px; text-transform: none; color: var(--ax-muted); }
.ax-line .fi-ta-text-item-label { font-weight: 500; }
.ax-status .fi-ta-text-description { max-width: 300px; }
.fi-ta-text-description { font-size: 12px; }

/* Вход */
.fi-simple-layout { background: radial-gradient(1200px 500px at 70% 110%, rgba(242, 121, 43, .28), transparent 60%), radial-gradient(900px 500px at 10% 120%, rgba(106, 79, 240, .35), transparent 60%), var(--ax-ink) !important; }
.fi-simple-main { border-radius: 18px !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .35) !important; }
.fi-simple-header .ax-logo { color: var(--ax-ink); font-size: 22px; }
.fi-simple-header .ax-logo-sub { display: block; border: 0; padding: 0; margin: 10px 0 0; text-align: center; color: var(--ax-muted); font-size: 13px; }
.fi-simple-header .fi-logo { flex-direction: column; }
.dark .fi-simple-header .ax-logo { color: #fff; }

/* Ссылки и списки в предупреждениях */
.ax-link { color: var(--ax-violet); text-decoration: underline; text-underline-offset: 2px; }
.ax-dups { margin: 8px 0 0; padding-left: 18px; list-style: disc; }
.ax-dups li { margin: 2px 0; }
.ax-mono { font-family: var(--ax-mono); font-size: .92em; }
.ax-muted { color: var(--ax-muted); font-size: 13px; }

/* Сводка отчета */
.ax-sum {
  background: var(--ax-card);
  border: 1px solid var(--ax-line);
  border-radius: 16px;
  padding: 20px 22px 18px;
}
.ax-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ax-muted); font-size: 13px; }
.ax-chip { background: rgba(106, 79, 240, .1); color: var(--ax-violet); font-weight: 600; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.ax-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.ax-steps { display: flex; gap: 0; margin: 18px 0 4px; padding: 0; list-style: none; counter-reset: s; }
.ax-step { flex: 1; position: relative; padding-top: 18px; font-size: 13px; color: var(--ax-muted); }
.ax-step::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--ax-line); }
.ax-step i { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ax-card); border: 2px solid #cfcfd6; z-index: 1; }
.ax-step span { display: block; padding-right: 12px; }
.ax-step small { display: block; font-size: 12px; opacity: .8; }
.ax-step.done { color: inherit; }
.ax-step.done::before { background: var(--ax-violet); }
.ax-step.done i { background: var(--ax-violet); border-color: var(--ax-violet); }
.ax-step.cur { color: inherit; font-weight: 600; }
.ax-step.cur i { border-color: var(--ax-orange); background: var(--ax-orange); box-shadow: 0 0 0 4px rgba(242, 121, 43, .18); }
.ax-step.skip { opacity: .55; }
.ax-step.skip::before { background: var(--ax-violet); }
.ax-step.skip i { border-color: var(--ax-violet); }
.ax-step:last-child::before { right: auto; width: 0; }

.ax-kpis { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 12px; margin-top: 18px; }
.ax-kpi { border: 1px solid var(--ax-line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.ax-kpi span { display: block; font-size: 12px; color: var(--ax-muted); }
.ax-kpi b { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ax-kpi small { display: block; font-size: 12px; color: var(--ax-muted); margin-top: 4px; line-height: 1.35; }
.ax-kpi-main { background: linear-gradient(135deg, #17151f, #241a3b 55%, #3a1f2a); border: 0; color: #fff; position: relative; overflow: hidden; }
.ax-kpi-main span, .ax-kpi-main small { color: rgba(255, 255, 255, .65); }
.ax-kpi-main b { font-size: 26px; }
.ax-kpi-main::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 140px; background: radial-gradient(closest-side, rgba(242, 121, 43, .55), transparent); filter: blur(6px); }
.ax-kpi-warn { border-color: rgba(242, 121, 43, .45); background: rgba(242, 121, 43, .05); }
.ax-kpi-warn b { color: #c4561a; }
.dark .ax-kpi-warn b { color: #f59a5c; }

.ax-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; margin-top: 14px; background: var(--ax-line); }
.ax-bar i { display: block; height: 100%; }
.ax-bar .h { background: var(--ax-violet); }
.ax-bar .a { background: #b9b2f5; }
.ax-bar .u { background: var(--ax-orange); }
.ax-match { margin-top: 10px; font-size: 13px; color: var(--ax-muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.ax-match b { color: inherit; font-weight: 600; }
.ax-check { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.ax-note-warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(242, 121, 43, .08); color: #a24812; font-size: 13px; }

.ax-tabs-wrap { margin-top: 4px; }
.ax-tabs-wrap .fi-tabs { overflow-x: auto; }

/* Окно подтверждения */
.ax-confirm dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.ax-confirm dt { font-size: 12px; color: var(--ax-muted); }
.ax-confirm dd { margin: 0; font-size: 14px; }
.ax-warns { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(242, 121, 43, .08); font-size: 13px; }
.ax-warns ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.ax-confirm .ax-muted { margin-top: 12px; }
.ax-hist { font-size: 12px; color: var(--ax-muted); }
.ax-hist b { display: block; color: inherit; margin-bottom: 4px; }

/* Кабинет правообладателя */
.ax-bal { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.ax-filter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ax-card); border: 1px solid var(--ax-line); }
.ax-filter button { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--ax-muted); }
.ax-filter button.on { background: var(--ax-ink); color: #fff; }
.ax-info { margin-top: 10px; font-size: 13px; color: var(--ax-muted); }
.ax-pending { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(242, 121, 43, .55); background: rgba(242, 121, 43, .05); font-size: 13px; }
.ax-pending b { font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .ax-kpis { grid-template-columns: 1fr 1fr; }
  .ax-check { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .ax-sum { padding: 16px 14px; border-radius: 14px; }
  .ax-kpis, .ax-bal { grid-template-columns: 1fr; gap: 8px; }
  .ax-kpi b { font-size: 20px; }
  .ax-kpi-main b { font-size: 22px; }
  .ax-steps { flex-direction: column; gap: 8px; margin-top: 14px; }
  .ax-step { padding: 0 0 0 22px; }
  .ax-step::before { display: none; }
  .ax-step i { top: 3px; }
  .ax-step small { display: inline; margin-left: 6px; }
  .ax-logo-sub { display: none; }
  .ax-confirm dl { grid-template-columns: 1fr; }
}

/* Начисления */
.ax-acc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ax-select { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ax-muted); }
.ax-select select { min-width: 280px; max-width: 100%; border: 1px solid var(--ax-line); border-radius: 10px; padding: 8px 34px 8px 12px; font-size: 14px; background-color: var(--ax-card); color: inherit; }
.ax-kpis-3 { grid-template-columns: repeat(4, 1fr); }
.ax-hw { max-height: 60vh; overflow: auto; }
.ax-hw table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ax-hw th { text-align: left; font-weight: 500; color: var(--ax-muted); padding: 6px 8px; position: sticky; top: 0; background: var(--ax-card); }
.ax-hw td { padding: 7px 8px; border-top: 1px solid var(--ax-line); font-variant-numeric: tabular-nums; }
.ax-hw td:not(:first-child), .ax-hw th:not(:first-child) { text-align: right; white-space: nowrap; }
@media (max-width: 640px) { .ax-select { width: 100%; flex-direction: column; align-items: stretch; } .ax-select select { min-width: 0; width: 100%; } }

/* Главная кнопка: сплошной фиолетовый с белым текстом */
.fi-btn.fi-color-primary:not(.fi-outlined) { background-color: var(--ax-violet) !important; color: #fff !important; }
.fi-btn.fi-color-primary:not(.fi-outlined) .fi-icon { color: #fff !important; }
.fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-disabled):not([disabled]):hover { background-color: #5a3fe0 !important; }
.fi-btn.fi-color-primary:not(.fi-outlined).fi-disabled, .fi-btn.fi-color-primary:not(.fi-outlined)[disabled] { opacity: .45; }

/* Меню сверху в одну строку */
@media (min-width: 1024px) {
  .fi-topbar .fi-topbar-item-icon { display: none !important; }
  .fi-topbar nav ul, .fi-topbar-nav-groups { gap: 2px !important; flex-wrap: nowrap !important; }
  .fi-topbar .fi-topbar-item-btn { padding-inline: 12px !important; }
}
.ax-line { min-width: 250px; }
@media (max-width: 1100px) { .ax-kpis-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ax-kpis-3 { grid-template-columns: 1fr; } .ax-line { min-width: 220px; } .ax-status { min-width: 170px; } }
.ax-step.fin i { background: var(--ax-violet); border-color: var(--ax-violet); box-shadow: 0 0 0 4px rgba(106, 79, 240, .18); }
.ax-step.fin { color: inherit; font-weight: 600; }

/* ===== Каталог и импорт треков ===== */
[x-cloak] { display: none !important; }
.ax-hidden { display: none; }
.ax-err-text { color: #c42b36; font-size: 13px; }
.dark .ax-err-text { color: #f2737c; }
.ax-note-info { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(106, 79, 240, .08); color: #4b33c9; font-size: 13px; }
.ax-note-err { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(224, 67, 79, .08); color: #a8232e; font-size: 14px; }
.ax-chip-m { background: rgba(31, 157, 99, .12); color: #17784b; }
.ax-chip-ai { background: rgba(242, 121, 43, .14); color: #b0510f; }
.ax-chip-r { background: rgba(79, 123, 247, .12); color: #2f5bd6; }

/* Плеер превью с волной */
.ax-pl { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.ax-pl-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ax-ink); color: #fff; transition: transform .15s, background .15s; }
.ax-pl-btn:hover { background: var(--ax-violet); }
.ax-pl-btn:active { transform: scale(.94); }
.ax-pl-btn svg { width: 15px; height: 15px; fill: currentColor; }
.ax-pl-spin { animation: ax-spin .8s linear infinite; }
@keyframes ax-spin { to { transform: rotate(360deg); } }
.ax-pl-wave { position: relative; flex: 1; height: 34px; cursor: pointer; min-width: 120px; border-radius: 4px; }
.ax-pl-wave:focus-visible { outline: 2px solid var(--ax-violet); outline-offset: 2px; }
.ax-pl-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ax-pl-bg { fill: #cfcfd8; }
.dark .ax-pl-bg { fill: #3a3a46; }
.ax-pl-fg { fill: var(--ax-violet); transition: clip-path .12s linear; }
.ax-pl.is-on .ax-pl-btn { background: var(--ax-violet); }
.ax-pl-time { flex: none; width: 34px; text-align: right; font-size: 12px; color: var(--ax-muted); font-variant-numeric: tabular-nums; }
.ax-pl-lg { gap: 14px; }
.ax-pl-lg .ax-pl-btn { width: 44px; height: 44px; }
.ax-pl-lg .ax-pl-btn svg { width: 19px; height: 19px; }
.ax-pl-lg .ax-pl-wave { height: 52px; }

.ax-wcell { display: flex; align-items: center; gap: 12px; min-width: 300px; }
.ax-cover-sm { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: linear-gradient(135deg, #241a3b, #6a4ff0 60%, #f2792b); }
.ax-cover-wait { opacity: .35; animation: ax-pulse 1.4s ease-in-out infinite; }
@keyframes ax-pulse { 50% { opacity: .15; } }
.ax-noaudio { font-size: 12px; }
.ax-wtitle { min-width: 220px; }

/* Карточка трека: аудио */
.ax-audio { display: flex; gap: 20px; align-items: flex-start; }
.ax-cover-lg { width: 168px; height: 168px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 8px 24px rgba(16, 16, 24, .12); }
.ax-audio-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ax-audio-head b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.ax-audio-head span { display: block; font-size: 13px; }
.ax-files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ax-line); border-radius: 12px; }
.ax-files li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.ax-files li + li { border-top: 1px solid var(--ax-line); }
.ax-ft { flex: none; font: 600 11px/1 var(--ax-mono); padding: 6px 7px; border-radius: 6px; background: rgba(106, 79, 240, .1); color: var(--ax-violet); min-width: 42px; text-align: center; }
.ax-fmeta { flex: 1; min-width: 0; }
.ax-fmeta b { display: block; font-size: 14px; font-weight: 600; }
.ax-fmeta small { display: block; font-size: 12px; color: var(--ax-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-fdl { flex: none; font-size: 13px; font-weight: 600; color: var(--ax-violet); padding: 6px 10px; border-radius: 8px; }
.ax-fdl:hover { background: rgba(106, 79, 240, .08); }
.ax-fnote { margin: 0; font-size: 12px; }
.ax-history { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.ax-history li { display: grid; grid-template-columns: 130px 120px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ax-line); }
.ax-history li:first-child { border-top: 0; }
.ax-history time { color: var(--ax-muted); font-variant-numeric: tabular-nums; }
.ax-hwho { font-weight: 600; }
.ax-history s { color: var(--ax-muted); }

/* Новый импорт */
.ax-imp-start { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ax-imp-form { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.ax-imp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ax-imp-help { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 16px; padding: 20px; font-size: 13px; line-height: 1.5; }
.ax-imp-help h3 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
.ax-imp-help ol { margin: 0; padding-left: 18px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; color: var(--ax-muted); }
.ax-imp-help ol b { color: var(--ax-ink); font-weight: 600; }
.dark .ax-imp-help ol b { color: #fff; }
.ax-imp-dl { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ax-imp-ex { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #17151f, #241a3b 55%, #3a1f2a); position: relative; overflow: hidden; }
.ax-imp-ex::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 160px; height: 110px; background: radial-gradient(closest-side, rgba(242, 121, 43, .5), transparent); pointer-events: none; }
.ax-imp-ex:hover { filter: brightness(1.12); }
.ax-imp-ex .ax-ic { width: 22px; height: 22px; flex: none; }
.ax-imp-ex b { display: block; font-size: 14px; }
.ax-imp-ex small { display: block; font-size: 12px; opacity: .7; line-height: 1.35; }

/* Предпросмотр импорта */
.ax-ichips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ax-ichips span { font-size: 13px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--ax-line); color: var(--ax-muted); }
.ax-ichips b { color: var(--ax-ink); font-weight: 650; font-size: 15px; margin-right: 2px; font-variant-numeric: tabular-nums; }
.dark .ax-ichips b { color: #fff; }
.ax-ichips .g { border-color: rgba(31, 157, 99, .35); background: rgba(31, 157, 99, .06); }
.ax-ichips .g b { color: #17784b; }
.ax-ichips .r { border-color: rgba(224, 67, 79, .35); background: rgba(224, 67, 79, .05); }
.ax-ichips .r b { color: #c42b36; }
.ax-ichips .w { border-color: rgba(242, 121, 43, .4); background: rgba(242, 121, 43, .05); }
.ax-ichips .w b { color: #c4561a; }
.ax-ichips .v { border-color: rgba(106, 79, 240, .35); background: rgba(106, 79, 240, .06); }
.ax-ichips .v b { color: var(--ax-violet); }
.ax-prog { margin-top: 16px; }
.ax-prog-t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; }
.ax-prog .ax-bar { margin-top: 8px; }
.ax-prog .ax-bar .h { transition: width .4s ease; }
.ax-iwav { display: flex; flex-direction: column; gap: 2px; max-width: 240px; min-width: 180px; }
.ax-fname { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-iwav small { font-size: 12px; color: var(--ax-muted); }
.ax-icover { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ax-icover img, .ax-cover-std { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.ax-cover-std { display: grid; place-items: center; color: rgba(255, 255, 255, .85); font: 300 15px/1 Unbounded, Inter, sans-serif; background: linear-gradient(135deg, #241a3b, #6a4ff0 60%, #f2792b); }
.ax-icover small { font-size: 11px; color: var(--ax-muted); }
.ax-istat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 260px; max-width: 380px; }
.ax-istat .ax-pl { width: 100%; }
.ax-sb { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ax-sb.ok { background: rgba(31, 157, 99, .1); color: #17784b; }
.ax-sb.err { background: rgba(224, 67, 79, .1); color: #c42b36; }
.ax-sb.wait { background: rgba(106, 79, 240, .1); color: var(--ax-violet); }
.ax-why { font-size: 12.5px; line-height: 1.4; color: #a8232e; white-space: normal; }
.dark .ax-why { color: #f2939a; }
.ax-why.wn { color: #a24812; }
.ax-why.fx { color: var(--ax-muted); }
.ax-itrack { min-width: 170px; }
.ax-imeta { min-width: 170px; max-width: 240px; }
.ax-mlist { margin: 6px 0 0; padding-left: 18px; list-style: disc; text-align: left; color: #a8232e; }
.ax-files-bad h3 { font-size: 15px; font-weight: 650; margin: 0 0 4px; }
.ax-files-bad ul { list-style: none; margin: 12px 0 0; padding: 0; }
.ax-files-bad li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--ax-line); }
.ax-files-bad li b { display: block; font-size: 13px; font-weight: 600; }
.ax-files-bad li small { display: block; font-size: 12.5px; color: #a8232e; }

@media (max-width: 1100px) {
  .ax-imp-start { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ax-imp-form { padding: 16px 14px; }
  .ax-audio { flex-direction: column; }
  .ax-cover-lg { width: 120px; height: 120px; }
  .ax-history li { grid-template-columns: 1fr; gap: 2px; }
  .ax-ichips span { font-size: 12px; padding: 6px 10px; }
  .ax-pl { min-width: 200px; }
}
.ax-qfix { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--ax-violet); padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(106, 79, 240, .35); background: rgba(106, 79, 240, .04); }
.ax-qfix:hover { background: rgba(106, 79, 240, .1); }
.ax-qfix-g { color: var(--ax-muted); border-color: var(--ax-line); background: transparent; }
.ax-mrow { display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 100%; padding: 2px 0; }
.ax-mhead b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ax-mhead small { display: block; font-size: 12px; color: var(--ax-muted); }
.ax-mid { display: inline-block; font: 600 11px/1 var(--ax-mono); padding: 4px 7px; border-radius: 6px; margin-bottom: 4px; }
.ax-mrow .ax-pl { min-width: 0; width: 100%; }
.ax-mrow .ax-istat { min-width: 0; max-width: none; }
@media (max-width: 767px) { .ax-istat .ax-why { font-size: 12px; } }
/* Экран отчета: пояснение сопоставления в 1-2 строки, полный текст во всплывающей подсказке */
.ax-status { min-width: 230px; }
.ax-status .fi-ta-text-description { max-width: 300px; }
.ax-inline-badge { display: inline-flex; }
.ax-mnote { display: block; margin-top: 4px; font-size: 12px; color: var(--ax-muted); line-height: 1.35; white-space: normal; }
@media (max-width: 767px) {
  /* Кнопки строк на телефоне только значком, чтобы строка помещалась без прокрутки вбок */
  .fi-ta-actions .fi-btn { font-size: 0 !important; gap: 0 !important; padding-inline: 8px !important; }
  .fi-ta-actions .fi-btn .fi-icon { width: 18px !important; height: 18px !important; }
}
@media (max-width: 767px) {
  .ax-mrow { white-space: normal; max-width: calc(100vw - 132px); }
  .ax-mhead b, .ax-mhead small { overflow-wrap: anywhere; }
}
.ax-iwav small { white-space: normal; }
.ax-iwav { max-width: 230px; padding-right: 6px; }
@media (max-width: 640px) {
  .ax-audio { align-items: stretch; }
  .ax-audio-main { width: 100%; }
  .ax-files li { padding: 10px; gap: 8px; }
  .ax-files .ax-fmeta small { white-space: normal; }
}

/* Телефон: логотип в верхней полосе рядом с меню */
@media (max-width: 1023px) {
  .fi-topbar-start { display: flex !important; margin-inline-end: 0 !important; }
  .fi-topbar-start .fi-logo { margin-inline-start: 0 !important; }
}
/* Телефон: строки таблиц карточками вместо широкой таблицы */
.ax-mtop { display: block; font: 500 11.5px/1.3 var(--ax-mono); color: var(--ax-muted); margin-bottom: 2px; }
.ax-mfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ax-mval { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-mval small { display: inline; margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--ax-muted); }
@media (max-width: 767px) { .ax-mcard { max-width: calc(100vw - 64px); } }
/* Счетчик фильтров "0" не показываем: активные фильтры и так видны строкой над таблицей */
.fi-ta-filters-dropdown .fi-icon-btn-badge-ctn, .fi-ta-filters-trigger-action-ctn .fi-icon-btn-badge-ctn { display: none !important; }
@media (max-width: 767px) {
  /* Вкладки переносятся на вторую строку, а не уезжают за край */
  .fi-tabs { flex-wrap: wrap !important; overflow-x: visible !important; row-gap: 4px; }
  /* Карточки строк с отступом как у шапки таблицы */
  .fi-ta-cell:has(.ax-mrow) { padding-inline: 16px !important; padding-block: 12px !important; }
  /* Кнопки от 44 px под палец */
  .fi-topbar .fi-user-menu-trigger, .fi-topbar .fi-dropdown-trigger > button, .fi-topbar-open-sidebar-btn, .fi-topbar-close-sidebar-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .ax-pl-btn { width: 44px !important; height: 44px !important; flex: none; }
  .ax-filter button { min-height: 40px; padding: 8px 14px; }
}
@media (max-width: 767px) { .ax-select select { min-height: 44px; } }
@media (max-width: 767px) {
  .ax-select select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b6b76'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
  .fi-ta-actions .fi-link { min-height: 44px; display: inline-flex; align-items: center; }
}
/* Ноутбук 1024-1279: меню в одну строку и таблица отчета без обрезанной колонки "Начисление" */
.fi-topbar .fi-topbar-item-label { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .fi-topbar .ax-logo-sub { display: none; }
  .fi-topbar-start { margin-inline-end: 12px !important; }
  .fi-topbar .fi-topbar-item-btn { padding-inline: 8px !important; font-size: 13px; }
  .fi-topbar-nav-groups { margin-inline: 0 !important; }
  .fi-ta-header-cell, .fi-ta-cell { padding-inline: 10px !important; }
  .ax-line { min-width: 190px; }
  .ax-status { min-width: 170px; }
  .ax-status .fi-ta-text-description { max-width: 210px; }
}
@media (max-width: 1279px) { .ax-work { max-width: 150px; } }
@media (min-width: 1024px) and (max-width: 1179px) {
  .fi-topbar .fi-topbar-item-btn { padding-inline: 6px !important; font-size: 12.5px; }
  .fi-topbar > nav { padding-inline: 12px !important; }
  .ax-line { min-width: 160px; }
  .ax-status { min-width: 150px; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .fi-topbar .fi-topbar-item-label { font-size: 13px; } }
@media (min-width: 1024px) and (max-width: 1179px) { .fi-topbar .fi-topbar-item-label { font-size: 12.5px; } }
@media (min-width: 1280px) and (max-width: 1399px) {
  .fi-topbar .ax-logo-sub { display: none; }
  .fi-topbar .fi-topbar-item-btn { padding-inline: 10px !important; }
}
/* Кабинет: корректировки в балансе */
.ax-adj { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ax-line); font-size: 13px; }
.ax-adj ul { margin: 8px 0 0; padding: 0; list-style: none; }
.ax-adj li { display: grid; grid-template-columns: 84px 120px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--ax-line); color: var(--ax-muted); }
.ax-adj li span:nth-child(2) { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-adj li .neg { color: #c2343f; } .ax-adj li .pos { color: #1f8a57; }
@media (max-width: 640px) { .ax-adj li { grid-template-columns: auto 1fr; } .ax-adj li span:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  /* Ссылки в строках таблицы на телефоне тоже только значком */
  .fi-ta-actions .fi-link { font-size: 0 !important; gap: 0 !important; min-width: 44px; justify-content: center; }
  .fi-ta-actions .fi-link .fi-icon { width: 20px !important; height: 20px !important; }
}
