/* Fluff System — الصفحات الخاصة: الأرباح، أداء الفريق (مملوك لوكيل: dashboard & pages)
   نفس لغة الداشبورد (Flowkit + زجاج): الكروت بتستخدم توكنز --fxd-* المعرّفة في dashboard.css
   (اللي بدورها بتقرا --fx-glass-* من base.css). كل الكلاسات هنا fx-pg-. */

/* ---------- ألوان دلالية (--tone) ---------- */
.fx-pg-tone--primary { --tone: var(--primary-600); }
.fx-pg-tone--success { --tone: var(--success-600); }
.fx-pg-tone--danger  { --tone: var(--danger-600); }
.fx-pg-tone--warning { --tone: var(--warning-500); }
.fx-pg-tone--info    { --tone: var(--info-600); }
.fx-pg-tone--gray    { --tone: var(--gray-500); }
.dark .fx-pg-tone--primary { --tone: var(--primary-400); }
.dark .fx-pg-tone--success { --tone: var(--success-400); }
.dark .fx-pg-tone--danger  { --tone: var(--danger-400); }
.dark .fx-pg-tone--warning { --tone: var(--warning-400); }
.dark .fx-pg-tone--info    { --tone: var(--info-400); }
.dark .fx-pg-tone--gray    { --tone: var(--gray-400); }

.fx-pg-text--success { color: var(--success-600); }
.fx-pg-text--danger  { color: var(--danger-600); }
.dark .fx-pg-text--success { color: var(--success-400); }
.dark .fx-pg-text--danger  { color: var(--danger-400); }
.fx-pg-muted { color: var(--fx-muted); }
.fx-pg-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.fx-pg-num--lg { font-size: 1.05rem; font-weight: 700; }

/* ---------- هيكل الصفحة ---------- */
.fx-pg { display: flex; flex-direction: column; gap: 20px; }

.fx-pg-stats { display: grid; gap: var(--fxd-gap, 16px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-pg-stats .fx-pg-stat-wide { grid-column: span 2; }
@media (min-width: 768px) {
    .fx-pg-stats--profit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fx-pg-stats--team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .fx-pg-stats--team { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.fx-pg-grid { display: grid; gap: var(--fxd-gap, 16px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: stretch; }
@media (min-width: 1100px) {
    .fx-pg-grid--main { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* ---------- الكارت ---------- */
.fx-pg-card {
    background: var(--fxd-bg, var(--fx-surface));
    border: 1px solid var(--fxd-border, var(--fx-border));
    border-radius: var(--fxd-radius, 10px);
    box-shadow: var(--fxd-shadow, var(--fx-shadow)), var(--fxd-highlight, 0 0 transparent);
    -webkit-backdrop-filter: var(--fxd-backdrop, blur(16px) saturate(160%));
    backdrop-filter: var(--fxd-backdrop, blur(16px) saturate(160%));
    padding: 20px;
    min-width: 0;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .fx-pg-card { background: var(--fxd-bg-solid, var(--fx-surface)); }
}
.fx-pg-card--flush { padding: 0; overflow: hidden; }
.fx-pg-card--flush > .fx-pg-card__head { padding: 18px 20px 14px; margin: 0; }
.fx-pg-card--flush > .fx-pg-empty { margin: 0 20px 20px; }

.fx-pg-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fx-pg-card__icon {
    position: relative;
    flex: none; display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: var(--fxd-radius-sm, 8px);
    color: var(--primary-600);
    background: color-mix(in srgb, var(--primary-500) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-500) 14%, transparent);
}
.dark .fx-pg-card__icon { color: var(--primary-400); background: color-mix(in srgb, var(--primary-400) 14%, transparent); }
.fx-pg-card__icon svg { width: 19px; height: 19px; }
.fx-pg-card__title { margin: 0; font-size: .975rem; font-weight: 700; line-height: 1.4; color: var(--fxd-ink, inherit); }
.fx-pg-card__sub { margin: 2px 0 0; font-size: .78rem; color: var(--fx-muted); line-height: 1.5; }

.fx-pg-empty {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 28px 16px; text-align: center; font-size: .875rem; color: var(--fx-muted);
    border: 1px dashed var(--fxd-border, var(--fx-border)); border-radius: var(--fxd-radius-sm, 8px);
}
.fx-pg-empty svg { width: 20px; height: 20px; flex: none; opacity: .7; }

/* ---------- تنبيه قفل الشهر ---------- */
.fx-pg-callout {
    --tone: var(--warning-500);
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; font-size: .9rem; line-height: 1.7;
    border: 1px solid color-mix(in srgb, var(--tone) 32%, transparent);
    border-inline-start: 4px solid var(--tone);
    border-radius: var(--fxd-radius, 10px);
    background: color-mix(in srgb, var(--tone) 9%, transparent);
}
.fx-pg-callout--danger { --tone: var(--danger-600); }
.dark .fx-pg-callout--danger { --tone: var(--danger-400); }
.dark .fx-pg-callout--warning { --tone: var(--warning-400); }
.fx-pg-callout__icon { flex: none; color: var(--tone); padding-top: 2px; }
.fx-pg-callout__icon svg { width: 22px; height: 22px; }
.fx-pg-callout__title { font-weight: 700; color: var(--tone); }
.fx-pg-callout--warning .fx-pg-callout__title { color: var(--warning-700); }
.dark .fx-pg-callout--warning .fx-pg-callout__title { color: var(--warning-400); }

/* ---------- قايمة الأرباح والخسائر ---------- */
.fx-pg-pnl { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.fx-pg-pnl__row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 9px 4px; border-bottom: 1px solid var(--fxd-divider, var(--fx-border));
}
.fx-pg-pnl__label { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fx-pg-pnl__amt { white-space: nowrap; font-weight: 600; }
.fx-pg-pnl__sign { font-style: normal; display: inline-block; width: 1em; text-align: center; color: var(--fx-muted); font-weight: 700; }
.fx-pg-pnl__pct {
    font-size: .72rem; font-weight: 700; padding: 0 7px; border-radius: 999px; line-height: 1.7;
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.fx-pg-pnl__row--lead { font-weight: 700; font-size: 1rem; }
.fx-pg-pnl__row--note { font-size: .75rem; color: var(--fx-muted); padding-top: 2px; padding-inline-start: 22px; }
.fx-pg-pnl__row--cost { padding-inline-start: 18px; }
.fx-pg-pnl__row--cost .fx-pg-pnl__amt { font-weight: 500; color: var(--fx-muted); }
.fx-pg-pnl__row--subtotal {
    font-weight: 700; margin-top: 2px;
    border-top: 1.5px solid color-mix(in srgb, currentColor 35%, transparent);
    background: color-mix(in srgb, currentColor 3%, transparent);
}
.fx-pg-pnl__group {
    margin: 16px 4px 2px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: var(--fx-muted);
}
.fx-pg-pnl__row--total {
    margin-top: 10px; padding: 14px 14px; border: 0;
    border-top: 3px double color-mix(in srgb, currentColor 45%, transparent);
    border-radius: var(--fxd-radius-sm, 8px);
    font-size: 1.15rem; font-weight: 800;
}
.fx-pg-pnl__row--total .fx-pg-pnl__amt { font-weight: 800; font-size: 1.3rem; }
.fx-pg-pnl__row--total.is-positive { color: var(--success-700); background: color-mix(in srgb, var(--success-500) 10%, transparent); }
.fx-pg-pnl__row--total.is-negative { color: var(--danger-700); background: color-mix(in srgb, var(--danger-500) 10%, transparent); }
.dark .fx-pg-pnl__row--total.is-positive { color: var(--success-400); }
.dark .fx-pg-pnl__row--total.is-negative { color: var(--danger-400); }
.fx-pg-pnl__row--total .fx-pg-pnl__sign { color: inherit; }
.fx-pg-pnl__row--subtotal.is-negative { color: var(--danger-600); }
.dark .fx-pg-pnl__row--subtotal.is-negative { color: var(--danger-400); }

/* ---------- البارات ---------- */
.fx-pg-bars { display: flex; flex-direction: column; gap: 14px; }
.fx-pg-bar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: .875rem; }
.fx-pg-bar__label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fx-pg-bar__val { white-space: nowrap; color: var(--fx-muted); font-variant-numeric: tabular-nums; font-size: .82rem; }
.fx-pg-bar__val b { color: var(--gray-950); font-weight: 700; margin-inline-start: 6px; display: inline-block; min-width: 3.2em; text-align: end; }
.dark .fx-pg-bar__val b { color: var(--gray-50); }
.fx-pg-bar__track {
    height: 8px; border-radius: 999px; overflow: hidden;
    background: var(--fxd-track, color-mix(in srgb, var(--gray-500) 12%, transparent));
}
.fx-pg-bar__track--thin { height: 6px; }
.fx-pg-bar__fill {
    display: block; height: 100%; width: var(--w, 0%); border-radius: inherit;
    background: linear-gradient(to left, var(--tone, var(--primary-600)), color-mix(in srgb, var(--tone, var(--primary-600)) 70%, white));
    transform-origin: right center;
    transition: width var(--fx-dur-slow) var(--fx-ease);
    animation: fx-pg-grow 900ms var(--fx-ease) 250ms both;
}
[dir="ltr"] .fx-pg-bar__fill { transform-origin: left center; }
.fx-pg-dot { flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--tone); }

/* الشريط المجمّع (المبيعات = تكاليف + صافي) */
.fx-pg-stack {
    display: flex; height: 16px; border-radius: 999px; overflow: hidden; gap: 2px;
    background: color-mix(in srgb, var(--gray-500) 12%, transparent);
    animation: fx-pg-reveal 1100ms var(--fx-ease) 200ms both;
}
.fx-pg-stack__seg { flex: 0 0 var(--w); min-width: 3px; background: var(--tone); transition: flex-basis var(--fx-dur-slow) var(--fx-ease); }
.fx-pg-stack__seg--net { background: repeating-linear-gradient(-45deg, var(--success-500), var(--success-500) 6px, var(--success-600) 6px, var(--success-600) 12px); }
.fx-pg-stack__legend { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 20px; font-size: .8rem; color: var(--fx-muted); }
.fx-pg-stack__legend b { color: var(--gray-950); }
.dark .fx-pg-stack__legend b { color: var(--gray-50); }
.fx-pg-stack__legend .is-negative b { color: var(--danger-600); }
.fx-pg-stack__legend .is-positive b { color: var(--success-600); }
.dark .fx-pg-stack__legend .is-negative b { color: var(--danger-400); }
.dark .fx-pg-stack__legend .is-positive b { color: var(--success-400); }

/* ---------- كروت المتاجر ---------- */
.fx-pg-stores { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.fx-pg-store {
    padding: 14px; border: 1px solid var(--fxd-border, var(--fx-border)); border-radius: var(--fxd-radius-sm, 8px);
    background: color-mix(in srgb, var(--fxd-bg-solid, #fff) 45%, transparent);
    display: flex; flex-direction: column; gap: 8px;
    transition: transform var(--fx-dur) var(--fx-ease), box-shadow var(--fx-dur) var(--fx-ease), border-color var(--fx-dur) var(--fx-ease);
}
.fx-pg-store:hover { transform: translateY(-2px); box-shadow: var(--fxd-shadow-hover, var(--fx-shadow)); border-color: color-mix(in srgb, var(--primary-500) 30%, var(--fx-border)); }
.fx-pg-store__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-pg-store__name { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pg-store__rev { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-pg-store__meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .75rem; color: var(--fx-muted); }

/* ---------- pills / chips ---------- */
.fx-pg-pill {
    display: inline-flex; align-items: center; white-space: nowrap;
    padding: 1px 9px; border-radius: 6px; font-size: .75rem; font-weight: 700; line-height: 1.7;
    color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent);
    font-variant-numeric: tabular-nums;
}
.fx-pg-chip {
    display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px;
    border-radius: 999px; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums;
    color: var(--fx-muted); background: color-mix(in srgb, var(--gray-500) 10%, transparent);
}
.fx-pg-chip--on { color: var(--primary-700); background: color-mix(in srgb, var(--primary-500) 14%, transparent); }
.dark .fx-pg-chip--on { color: var(--primary-300); }

/* ---------- الجداول ---------- */
.fx-pg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fx-pg-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.fx-pg-table th {
    padding: 11px 14px; text-align: start; white-space: nowrap;
    font-size: .75rem; font-weight: 700; color: var(--fxd-head-fg, var(--fx-muted));
    background: var(--fxd-head-bg, color-mix(in srgb, var(--gray-500) 6%, transparent));
}
.fx-pg-table td { padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--fxd-divider, var(--fx-border)); vertical-align: middle; }
.fx-pg-table tbody tr { transition: background-color var(--fx-dur-fast) var(--fx-ease); }
.fx-pg-table tbody tr:hover { background: color-mix(in srgb, var(--primary-500) 5%, transparent); }
.fx-pg-table tbody tr:last-child td { border-bottom: 0; }
.fx-pg-table tfoot td {
    font-weight: 700; border-top: 1px solid color-mix(in srgb, var(--primary-500) 30%, transparent); border-bottom: 0;
    background: color-mix(in srgb, var(--gray-500) 6%, transparent);
}
.fx-pg-table__strong { font-weight: 700; }
.fx-pg-table__empty:hover { background: none !important; }
.fx-pg-table__empty td { padding: 20px; }

/* اسم البنت + الأفاتار */
.fx-pg-agent { display: inline-flex; align-items: center; gap: 10px; }
.fx-pg-agent__text { display: flex; flex-direction: column; line-height: 1.35; }
.fx-pg-agent__name { font-weight: 700; }
.fx-pg-agent__sub { font-size: .72rem; color: var(--fx-muted); }
.fx-pg-avatar {
    --av: #7c3aed;
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    font-size: .8rem; font-weight: 700; letter-spacing: -.02em;
    color: var(--av); background: color-mix(in srgb, var(--av) 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--av) 25%, transparent);
}
.fx-pg-avatar--1 { --av: #0284c7; }
.fx-pg-avatar--2 { --av: #db2777; }
.fx-pg-avatar--3 { --av: #059669; }
.fx-pg-avatar--4 { --av: #d97706; }
.fx-pg-avatar--5 { --av: #4f46e5; }
.dark .fx-pg-avatar { --av: #a78bfa; }
.dark .fx-pg-avatar--1 { --av: #38bdf8; }
.dark .fx-pg-avatar--2 { --av: #f472b6; }
.dark .fx-pg-avatar--3 { --av: #34d399; }
.dark .fx-pg-avatar--4 { --av: #fbbf24; }
.dark .fx-pg-avatar--5 { --av: #818cf8; }

/* ---------- ترتيب البنات ---------- */
.fx-pg-lb__rank { width: 44px; text-align: center !important; }
.fx-pg-rank {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    font-size: .78rem; font-weight: 800; color: var(--fx-muted);
    background: color-mix(in srgb, var(--gray-500) 10%, transparent);
}
.fx-pg-rank--1 { color: #8a6100; background: linear-gradient(135deg, #fde68a, #f5c542); }
.fx-pg-rank--2 { color: #475569; background: linear-gradient(135deg, #f1f5f9, #cbd5e1); }
.fx-pg-rank--3 { color: #7c3a12; background: linear-gradient(135deg, #fed7aa, #e8a06a); }
.fx-pg-meter { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.fx-pg-meter__val { min-width: 3.4em; font-weight: 800; color: var(--tone); font-variant-numeric: tabular-nums; }
.fx-pg-meter__track { flex: 1; height: 6px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--tone) 14%, transparent); }
.fx-pg-meter .fx-pg-bar__fill { background: var(--tone); }
.fx-pg-lb__times { font-size: .8rem; font-variant-numeric: tabular-nums; }

/* الموبايل: كل صف في الجداول (fx-pg-table--stack) بيبقى كارت */
@media (max-width: 767px) {
    .fx-pg-table--stack thead { display: none; }
    .fx-pg-table--stack, .fx-pg-table--stack tbody, .fx-pg-table--stack tfoot { display: block; }
    .fx-pg-table--stack tbody tr, .fx-pg-table--stack tfoot tr {
        position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px;
        padding: 16px; border-top: 1px solid var(--fx-border);
    }
    .fx-pg-table--stack tbody tr:hover { background: none; }
    .fx-pg-table--stack td { display: block; padding: 0; border: 0 !important; white-space: normal; background: none !important; }
    .fx-pg-table--stack tfoot tr { background: color-mix(in srgb, var(--gray-500) 6%, transparent); border-top-width: 1.5px; }
    .fx-pg-table--stack td[data-label]::before {
        content: attr(data-label); display: block; margin-bottom: 2px;
        font-size: .7rem; font-weight: 600; color: var(--fx-muted);
    }
    .fx-pg-table--stack .fx-pg-cell--full, .fx-pg-lb .fx-pg-lb__rate { grid-column: 1 / -1; }
    .fx-pg-lb tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fx-pg-lb .fx-pg-lb__deliv, .fx-pg-lb .fx-pg-lb__times { grid-column: span 2; }
    .fx-pg-lb .fx-pg-lb__rank { position: absolute; top: 18px; inset-inline-end: 16px; width: auto; }
    .fx-pg-table--stack .fx-pg-table__empty { display: block; }
    .fx-pg-card { padding: 16px; }
    .fx-pg-card--flush { padding: 0; }
    .fx-pg-card--flush > .fx-pg-card__head { padding: 16px 16px 12px; }
}

/* ---------- الحركة ---------- */
@keyframes fx-pg-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fx-pg-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fx-pg-reveal { from { clip-path: inset(0 0 0 100% round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }

.fx-pg > *, .fx-pg-stores > * { animation: fx-pg-rise var(--fx-dur-slow) var(--fx-ease) both; }
.fx-pg > :nth-child(2) { animation-delay: 60ms; }
.fx-pg > :nth-child(3) { animation-delay: 140ms; }
.fx-pg > :nth-child(4) { animation-delay: 220ms; }
.fx-pg > :nth-child(5) { animation-delay: 300ms; }
/* كروت الأرقام بتدخل متدرّجة من x-fx.stat نفسه (:delay) */
.fx-pg-stores > :nth-child(2) { animation-delay: 80ms; }
.fx-pg-stores > :nth-child(3) { animation-delay: 160ms; }
.fx-pg-stores > :nth-child(n+4) { animation-delay: 240ms; }
.fx-pg-grid > .fx-pg-card { animation: fx-pg-rise var(--fx-dur-slow) var(--fx-ease) both; }
.fx-pg-grid > .fx-pg-card:nth-child(2) { animation-delay: 90ms; }
.fx-pg-lb tbody tr { animation: fx-pg-rise var(--fx-dur-slow) var(--fx-ease) both; }
.fx-pg-lb tbody tr:nth-child(2) { animation-delay: 50ms; }
.fx-pg-lb tbody tr:nth-child(3) { animation-delay: 100ms; }
.fx-pg-lb tbody tr:nth-child(4) { animation-delay: 150ms; }
.fx-pg-lb tbody tr:nth-child(n+5) { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
    .fx-pg *, .fx-pg { animation: none !important; transition: none !important; }
}

/* احتياطي بس: لو كارت x-fx.stat لسه مالوش ستايل، الأيقونة متطلعش عملاقة.
   :where = صفر specificity — أي قاعدة في dashboard.css بتكسبه. */
:where(.fx-pg .fx-stat__icon) svg { width: 20px; height: 20px; }
:where(.fx-pg .fx-ring) { display: inline-grid; place-items: center; width: 44px; height: 44px; }
:where(.fx-pg .fx-ring) svg { width: 100%; height: 100%; grid-area: 1 / 1; }
:where(.fx-pg .fx-ring) svg svg { width: 18px; height: 18px; }
.fx-pg-times { display: inline-flex; flex-direction: column; line-height: 1.5; }
.fx-pg-times i { font-style: normal; color: var(--fx-muted); font-size: .7rem; display: inline-block; min-width: 1.4em; }
@media (max-width: 767px) { .fx-pg-times { flex-direction: row; gap: 14px; } }
.fx-pg-lb th { white-space: normal; line-height: 1.45; min-width: 3.5em; vertical-align: bottom; }
.fx-pg-lb th, .fx-pg-lb td { padding-inline: 11px; }
.fx-pg-lb .fx-pg-meter { min-width: 118px; }

/* ───────── قارئ الباركود ───────── */
.fx-scan { display: flex; flex-direction: column; gap: 14px; max-width: 880px; }
.fx-scan__modes { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-scan__mode {
    padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer;
    border: 1px solid var(--fx-border, rgb(255 255 255 / .12)); background: transparent; color: inherit;
    transition: background-color .15s ease, border-color .15s ease;
}
.fx-scan__mode:hover { border-color: var(--fx-primary, #14b8a6); }
.fx-scan__mode.is-active { background: var(--fx-primary, #14b8a6); border-color: transparent; color: #04211d; }
.fx-scan__box { display: flex; align-items: stretch; gap: 12px; }
.fx-scan__input {
    flex: 1; min-width: 0; padding: 18px 20px; font-size: 24px; font-weight: 700; letter-spacing: .04em;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    border-radius: 14px; border: 2px solid var(--fx-primary, #14b8a6); background: rgb(0 0 0 / .18); color: inherit; outline: none;
}
.fx-scan__input::placeholder { font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0; opacity: .55; }
.fx-scan__input:focus { box-shadow: 0 0 0 4px rgb(20 184 166 / .22); }
.fx-scan__count {
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px;
    border-radius: 14px; border: 1px solid var(--fx-border, rgb(255 255 255 / .12));
}
.fx-scan__count b { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fx-scan__count span { font-size: 12px; opacity: .7; }
.fx-scan__hint { font-size: 13px; opacity: .7; margin: 0; }
.fx-scan__log { display: flex; flex-direction: column; gap: 6px; }
.fx-scan__row {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
    border: 1px solid var(--fx-border, rgb(255 255 255 / .1)); border-inline-start-width: 4px;
}
.fx-scan__row.is-ok { border-inline-start-color: #22c55e; }
.fx-scan__row.is-bad { border-inline-start-color: #ef4444; background: rgb(239 68 68 / .08); }
.fx-scan__row:first-child { font-size: 16px; padding-block: 14px; }
.fx-scan__mark { font-weight: 800; width: 1.2em; text-align: center; }
.fx-scan__row.is-ok .fx-scan__mark { color: #22c55e; }
.fx-scan__row.is-bad .fx-scan__mark { color: #ef4444; }
.fx-scan__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fx-scan__body span { font-size: 13px; opacity: .8; }
.fx-scan__row code { font-size: 12px; opacity: .6; }
.fx-scan__empty { padding: 28px; text-align: center; opacity: .6; border: 1px dashed var(--fx-border, rgb(255 255 255 / .15)); border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .fx-scan__mode { transition: none; } }
