/* ============================================================
   عدّاد — التصميم
   كحلي #0B1F3A + كهرماني #FFB020 + تركوازي. وضع فاتح وداكن.
   جوال < 768 | آيباد 768–1199 | كمبيوتر ≥ 1200
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --navy-2: #13294B;
  --navy-3: #1D3A66;
  --amber: #FFB020;
  --amber-2: #E89A00;
  --amber-soft: #FFF4DC;
  --teal: #14B8A6;
  --teal-2: #0D9488;
  --red: #DC2626;
  --green: #059669;

  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --border: #E2E8F0;
  --text: #0B1F3A;
  --text-2: #475569;
  --muted: #64748B;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 4px 16px rgba(11, 31, 58, .06);
  --shadow-lg: 0 10px 40px rgba(11, 31, 58, .18);

  --ok-bg: #DCFCE7; --ok-fg: #166534;
  --warn-bg: #FEF3C7; --warn-fg: #92400E;
  --danger-bg: #FEE2E2; --danger-fg: #B91C1C;
  --info-bg: #DBEAFE; --info-fg: #1E40AF;
  --dark-bg: #1E293B; --dark-fg: #F1F5F9;

  --radius: 14px;
  --radius-sm: 10px;
  --font: "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --bottombar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07152A; --surface: #0E2442; --surface-2: #122B4E; --border: #1F3B63;
    --text: #E8EEF8; --text-2: #B6C3D8; --muted: #8DA0BD;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --ok-bg: rgba(16, 185, 129, .16); --ok-fg: #6EE7B7;
    --warn-bg: rgba(255, 176, 32, .16); --warn-fg: #FCD34D;
    --danger-bg: rgba(239, 68, 68, .16); --danger-fg: #FCA5A5;
    --info-bg: rgba(59, 130, 246, .18); --info-fg: #93C5FD;
    --dark-bg: #000; --amber-soft: rgba(255, 176, 32, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07152A; --surface: #0E2442; --surface-2: #122B4E; --border: #1F3B63;
  --text: #E8EEF8; --text-2: #B6C3D8; --muted: #8DA0BD;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  --ok-bg: rgba(16, 185, 129, .16); --ok-fg: #6EE7B7;
  --warn-bg: rgba(255, 176, 32, .16); --warn-fg: #FCD34D;
  --danger-bg: rgba(239, 68, 68, .16); --danger-fg: #FCA5A5;
  --info-bg: rgba(59, 130, 246, .18); --info-fg: #93C5FD;
  --dark-bg: #000; --amber-soft: rgba(255, 176, 32, .14);
  color-scheme: dark;
}

/* ---------- أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; touch-action: manipulation; overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
body.has-modal { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
pre { font-family: var(--font); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--amber) 70%, transparent); outline-offset: 2px; }
.icon { flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.text-danger { color: var(--danger-fg); }
.text-warn { color: var(--warn-fg); }
.text-ok { color: var(--ok-fg); }
.center-pad { display: grid; place-items: center; padding: 32px 16px; }
.stack { display: grid; gap: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mobile-only { display: none; }

.boot, .fatal { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--navy); color: #fff; text-align: center; padding: 24px; }
.boot__logo { animation: pulse 1.4s ease-in-out infinite; }
.boot__text { font-size: 22px; font-weight: 700; }
.fatal { background: var(--bg); color: var(--text); }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap;
  background: var(--surface-2); color: var(--text); transition: transform .08s, background .15s, box-shadow .15s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--navy-3); }
:root[data-theme="dark"] .btn--primary { background: var(--teal-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { background: var(--teal-2); } }
.btn--amber { background: var(--amber); color: var(--navy); box-shadow: 0 4px 14px rgba(255, 176, 32, .35); }
.btn--amber:hover:not(:disabled) { background: #FFC14D; }
.btn--ghost { background: transparent; border-color: var(--border); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn--ghost-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger-ghost { background: transparent; border-color: color-mix(in srgb, var(--red) 40%, transparent); color: var(--danger-fg); }
.btn--ok { background: var(--green); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 54px; font-size: 17px; padding: 0 20px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--amber) transparent var(--amber) transparent; animation: spin .7s linear infinite; }
.btn.is-busy > * { visibility: hidden; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); position: relative; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn--sm { width: 32px; height: 32px; }
.icon-btn--accent { color: var(--teal-2); }

/* ---------- حقول ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field__hint { font-size: 12.5px; color: var(--muted); }
.field__error { color: var(--danger-fg); font-size: 14px; min-height: 1em; }
.field--full { grid-column: 1 / -1; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; /* ≥16px: ما في تكبير تلقائي */
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.input--sm { min-height: 40px; padding: 6px 10px; width: auto; }
.input--ltr { direction: ltr; text-align: left; }
.input--mono { font-size: 16px; line-height: 1.7; }
textarea.input { resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 50%, 13px 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 32px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 46px; }
.input-addon { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid h4 { margin-top: 6px; color: var(--text-2); font-size: 15px; }

.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 40px; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track { flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--border); position: relative; transition: background .2s; }
.toggle__thumb { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.toggle input:checked + .toggle__track { background: var(--teal); }
.toggle input:checked + .toggle__track .toggle__thumb { transform: translateX(-20px); }
.toggle input:focus-visible + .toggle__track { outline: 3px solid var(--amber); }
.toggle__label { font-size: 15px; }

.segmented { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border); }
.segmented__btn { flex: 1; min-height: 42px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 15px; color: var(--text-2); }
.segmented__btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- شارات ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge--warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge--danger { background: var(--danger-bg); color: var(--danger-fg); }
.badge--info { background: var(--info-bg); color: var(--info-fg); }
.badge--dark { background: var(--dark-bg); color: var(--dark-fg); }
.badge--muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.amount { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amount--debt { color: var(--danger-fg); }
.amount--credit { color: var(--ok-fg); }
.amount--zero { color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--surface); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count { min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 12px; text-align: center; }
.chip.is-active .chip__count { background: rgba(255, 255, 255, .18); color: #fff; }
.chip--late.is-active { background: var(--red); border-color: var(--red); }
.chip--paid.is-active { background: var(--green); border-color: var(--green); }
.chip--partial.is-active, .chip--special.is-active { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.chip--partial.is-active .chip__count, .chip--special.is-active .chip__count { color: var(--navy); background: rgba(11, 31, 58, .12); }
.chip--sm { min-height: 32px; font-size: 13px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-row, .var-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- بطاقات ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-title h3 { font-size: 17px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 32px 16px; color: var(--muted); text-align: center; }
.empty .icon { opacity: .5; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--amber); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.callout { padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); color: var(--text); font-weight: 600; margin-top: 12px; }
.link-more { color: var(--teal-2); font-weight: 600; font-size: 14px; display: inline-block; margin-top: 10px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 15px; display: grid; gap: 8px; }
.alert--danger { background: var(--danger-bg); color: var(--danger-fg); }
.alert--warn { background: var(--warn-bg); color: var(--warn-fg); }
.progress { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.progress__fill { display: block; height: 100%; border-radius: 99px; background: var(--teal); transition: width .4s; }
.progress__fill.is-warn { background: var(--amber); }
.progress__fill.is-full { background: var(--red); }
.progress--amber .progress__fill { background: var(--amber); }

/* ---------- الهيكل ---------- */
.shell { min-height: 100vh; }
.shell__content { min-width: 0; }
.sidebar { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--navy); color: #fff;
}
.topbar__title { font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__actions { display: flex; align-items: center; gap: 6px; }
.topbar .icon-btn { color: #fff; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.topbar__bell .dot { position: absolute; top: 8px; left: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); display: none; box-shadow: 0 0 0 2px var(--navy); }
.topbar__bell.has-dot .dot { display: block; }
.sync-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 0; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .12); color: #fff; }
.sync-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34D399; }
.sync-badge--warn::before { background: var(--amber); }
.sync-badge--danger::before { background: #F87171; }
.sync-badge--off::before { background: #94A3B8; }
.sync-badge .icon { display: none; }
.sync-badge.is-syncing::before { animation: pulse 1s infinite; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.banner--danger { background: var(--danger-bg); color: var(--danger-fg); }
.banner--warn { background: var(--warn-bg); color: var(--warn-fg); }
.main { padding: 16px 16px calc(var(--bottombar-h) + 88px + var(--safe-b)); max-width: 1400px; margin: 0 auto; }
.page { display: grid; gap: 16px; min-width: 0; }
.page > *, .page--split > *, .list-pane, .detail-pane, .round__layout > * { min-width: 0; }
.main { overflow-x: clip; }

.bottombar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30; display: flex; justify-content: space-around;
  height: calc(var(--bottombar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(11, 31, 58, .06);
}
.bottombar__link { flex: 1; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bottombar__link.is-active { color: var(--navy); }
:root[data-theme="dark"] .bottombar__link.is-active { color: var(--amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bottombar__link.is-active { color: var(--amber); } }
.bottombar__link.is-active .icon { stroke-width: 2.4; }
.fab {
  position: fixed; z-index: 31; left: 16px; bottom: calc(var(--bottombar-h) + 16px + var(--safe-b));
  display: inline-flex; align-items: center; gap: 6px; height: 56px; padding: 0 20px; border-radius: 99px;
  background: var(--amber); color: var(--navy); font-weight: 700; font-size: 16px; box-shadow: 0 8px 24px rgba(255, 176, 32, .45);
  transition: transform .2s, opacity .2s;
}
.fab.is-hidden { transform: scale(.6); opacity: 0; pointer-events: none; }
.mobile-only { display: grid; }

/* آيباد: شريط جانبي ضيق */
@media (min-width: 768px) {
  .shell { display: grid; grid-template-columns: 84px 1fr; }
  .bottombar, .mobile-only, .topbar__logo { display: none !important; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--navy); color: #C9D4E5; padding: 14px 10px;
  }
  .sidebar__brand { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 4px 18px; }
  .sidebar__brand-text, .sidebar__label, .sidebar__user-text { display: none; }
  .sidebar__nav { display: grid; gap: 4px; }
  .sidebar__link { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; border: 0; background: transparent; color: inherit; font-size: 11px; font-weight: 600; width: 100%; }
  .sidebar__link .sidebar__label { display: block; font-size: 11px; text-align: center; }
  .sidebar__link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .sidebar__link.is-active { background: rgba(255, 176, 32, .14); color: var(--amber); }
  .sidebar__foot { margin-top: auto; display: grid; gap: 8px; }
  .sidebar__foot > .sidebar__link .sidebar__label { display: none; }
  .sidebar__user { display: grid; justify-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .sidebar__user .icon-btn { color: #C9D4E5; }
  .main { padding: 24px 24px 40px; }
  .fab { bottom: 24px; left: 24px; }
  .topbar { padding: 14px 24px; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); }
  .topbar .icon-btn { color: var(--text-2); }
  .topbar .icon-btn:hover { background: var(--surface-2); }
  .topbar__bell .dot { box-shadow: 0 0 0 2px var(--surface); }
  .sync-badge { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
  .topbar__title { font-size: 20px; }
}

/* كمبيوتر: قائمة جانبية كاملة */
@media (min-width: 1200px) {
  .shell { grid-template-columns: 252px 1fr; }
  .sidebar { padding: 18px 14px; }
  .sidebar__brand { justify-content: flex-start; padding: 4px 8px 22px; }
  .sidebar__brand-text, .sidebar__user-text { display: grid; }
  .sidebar__brand-text strong { color: #fff; font-size: 20px; }
  .sidebar__company { font-size: 12.5px; color: #8FA3C2; }
  .sidebar__link { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; font-size: 15px; }
  .sidebar__link .sidebar__label, .sidebar__foot > .sidebar__link .sidebar__label { display: block; font-size: 15px; text-align: start; }
  .sidebar__user { grid-template-columns: auto 1fr auto; align-items: center; justify-items: start; }
  .sidebar__user-text strong { color: #fff; font-size: 14px; }
  .sidebar__user-text span { font-size: 12px; }
  .main { padding: 28px 32px 48px; }
}

.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--navy); font-weight: 700; flex: none; }
.avatar--lg { width: 56px; height: 56px; font-size: 22px; }

/* ---------- تنبيهات ونوافذ ---------- */
.toasts { position: fixed; z-index: 100; inset-inline: 12px; top: calc(12px + var(--safe-t)); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; width: fit-content;
  padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-lg); transform: translateY(-16px); opacity: 0; transition: transform .25s, opacity .25s;
}
.toast.is-in { transform: none; opacity: 1; }
.toast--ok { background: #065F46; }
.toast--error { background: #991B1B; }
.toast--warn { background: #92400E; }
.toast__action { border: 0; background: var(--amber); color: var(--navy); padding: 6px 12px; border-radius: 8px; font-weight: 700; }

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(7, 21, 42, .55); opacity: 0; transition: opacity .2s; }
.modal__panel {
  position: relative; width: 100%; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(40px); opacity: 0; transition: transform .22s, opacity .22s; padding-bottom: var(--safe-b);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.modal__title { font-size: 18px; }
.modal__body { padding: 8px 18px 16px; overflow-y: auto; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px 16px; border-top: 1px solid var(--border); }
.modal__foot .btn { flex: 1; }
@media (min-width: 768px) {
  .modal { align-items: center; padding: 24px; }
  .modal__panel { border-radius: 18px; max-width: 560px; }
  .modal__panel--sm { max-width: 440px; }
  .modal__panel--lg { max-width: 760px; }
  .modal__foot .btn { flex: none; min-width: 120px; }
}

/* ---------- شاشة الدخول ---------- */
.login {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; padding: calc(24px + var(--safe-t)) 16px 24px;
  background: radial-gradient(ellipse at 50% 0%, #1D3A66 0%, var(--navy) 55%, #050F1F 100%); color: #fff;
}
.login__card { width: min(420px, 100%); display: grid; gap: 8px; }
.login__head { text-align: center; }
.login__title { font-size: 34px; letter-spacing: 1px; }
.login__subtitle { color: #9FB2CF; font-size: 15px; }
.login__scene { position: relative; display: grid; justify-items: center; }
.login__form { display: grid; gap: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 20px; backdrop-filter: blur(6px); }
.login__form .field__label { color: #C9D4E5; }
.login__form .input { background: rgba(7, 21, 42, .6); border-color: rgba(255, 255, 255, .15); color: #fff; }
.login__form .input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 176, 32, .2); }
.login__form .input-addon { color: #9FB2CF; }
.login__form .btn--primary { background: var(--amber); color: var(--navy); }
.login__error { color: #FCA5A5; font-size: 14px; min-height: 1.4em; text-align: center; }
.login__foot { color: #7F93B2; font-size: 13px; text-align: center; max-width: 360px; }

.meter { width: 190px; height: 190px; overflow: visible; }
.meter__ring { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.meter__arc { fill: none; stroke: rgba(255, 176, 32, .35); stroke-width: 3; stroke-linecap: round; }
.meter__tick { stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-linecap: round; }
.meter__tick--major { stroke: rgba(255, 255, 255, .7); stroke-width: 3; }
.meter__needle { transform-origin: 100px 100px; transform-box: view-box; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.meter__bolt { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 176, 32, .7)); }
.meter__hub { fill: var(--navy); stroke: var(--amber); stroke-width: 3; }
.meter__label { fill: #7F93B2; font-size: 13px; font-family: var(--font); letter-spacing: 1px; }
.meter__glow { opacity: 0; transition: opacity .4s; }
.wire { width: 300px; height: 64px; margin-top: -26px; overflow: visible; }
.wire__base { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 3; stroke-linecap: round; }
.wire__current { fill: none; stroke: var(--amber); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; filter: drop-shadow(0 0 5px var(--amber)); }
.bulb__glass { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .45); stroke-width: 1.6; transition: fill .3s; }
.bulb__base { stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-linecap: round; }
.bulb__halo { fill: var(--amber); opacity: 0; transition: opacity .3s; filter: blur(6px); }
.spark { opacity: 0; transform-box: fill-box; }
.spark__star { fill: #FDE68A; filter: drop-shadow(0 0 6px #F97316); }
.login__scene.is-success .wire__current { animation: current .7s ease-in forwards; }
.login__scene.is-success .bulb__glass { fill: #FFE7A3; transition-delay: .65s; }
.login__scene.is-success .bulb__halo { opacity: .9; transition-delay: .65s; }
.login__scene.is-success .meter__glow { opacity: 1; }
.login__scene.is-error .spark { animation: spark .5s ease-out; }
.login__scene.is-error .meter { animation: shake .4s; }
@keyframes current { to { stroke-dashoffset: 0; } }
@keyframes spark { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.2) rotate(15deg); } 100% { opacity: 0; transform: scale(.6) rotate(40deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- لوحة المدير ---------- */
.cycle-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; border-radius: 18px; padding: 20px;
  display: grid; gap: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cycle-bar::after { content: ""; position: absolute; width: 220px; height: 220px; left: -60px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .25), transparent 70%); pointer-events: none; }
.cycle-bar__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cycle-bar__kicker { color: var(--amber); font-size: 13px; font-weight: 600; }
.cycle-bar__title { font-size: 22px; }
.cycle-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.cycle-bar__stats { display: grid; gap: 14px; grid-template-columns: 1fr; }
.cycle-bar .progress { background: rgba(255, 255, 255, .15); }
.cycle-bar .progress__fill { background: var(--amber); }
.cycle-bar--empty { grid-template-columns: 1fr; }
.cycle-bar--empty p { color: #C9D4E5; margin-top: 4px; }
.cycle-bar__note { color: #C9D4E5; font-size: 13px; }
.cycle-stat { display: grid; gap: 6px; }
.cycle-stat__row { display: flex; justify-content: space-between; font-size: 14px; color: #C9D4E5; }
.cycle-stat__row strong { color: #fff; font-size: 16px; }
@media (min-width: 640px) { .cycle-bar__stats { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.stat-cards { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } .stat-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.stat-cards--3 { margin-bottom: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 2px; box-shadow: var(--shadow); position: relative; }
.stat-card__icon { position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.stat-card__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-card__value { font-size: 22px; font-variant-numeric: tabular-nums; margin-top: 6px; }
.stat-card__sub { font-size: 12.5px; color: var(--muted); }
.stat-card--navy .stat-card__icon { background: var(--info-bg); color: var(--info-fg); }
.stat-card--teal .stat-card__icon { background: var(--ok-bg); color: var(--ok-fg); }
.stat-card--danger .stat-card__icon { background: var(--danger-bg); color: var(--danger-fg); }
.stat-card--amber .stat-card__icon { background: var(--warn-bg); color: var(--warn-fg); }
.stat-card--danger .stat-card__value { color: var(--danger-fg); }

.dash-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .dash-grid { grid-template-columns: 1.2fr 1fr; }
  .dash-grid__late { grid-row: span 2; }
}
.late-list, .alert-list, .method-list, .ledger, .readings, .notif-list, .audit-list, .msg-log, .sms-list, .simple-list, .outbox-list, .pick-list { list-style: none; margin: 0; padding: 0; }
.late-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.late-item:last-child { border-bottom: 0; }
.late-item__info { flex: 1; min-width: 0; display: grid; }
.late-item__info span { font-size: 13px; }
.late-item__actions { display: flex; gap: 2px; }
.chart { width: 100%; height: auto; max-height: 240px; }
.chart__grid { stroke: var(--border); stroke-dasharray: 3 4; }
.chart__bar--due { fill: color-mix(in srgb, var(--navy) 30%, var(--border)); }
:root[data-theme="dark"] .chart__bar--due { fill: #2B4A78; }
.chart__bar--paid { fill: var(--teal); }
.chart__label { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.legend { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend__item::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.legend__item--due::before { background: color-mix(in srgb, var(--navy) 30%, var(--border)); }
.legend__item--paid::before { background: var(--teal); }
.stack-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--border); gap: 2px; margin-bottom: 12px; }
.stack-bar__seg--cash, .method-row--cash .method-row__dot { background: var(--teal); }
.stack-bar__seg--jawwal_pay, .method-row--jawwal_pay .method-row__dot { background: var(--amber); }
.stack-bar__seg--palpay, .method-row--palpay .method-row__dot { background: #6366F1; }
.method-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 15px; }
.method-row__dot { width: 10px; height: 10px; border-radius: 3px; }
.alert-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 8px; border-inline-start: 4px solid var(--teal); }
.alert-item span, .alert-item time { font-size: 13px; }
.alert-item--overdue, .alert-item--sms_failed, .alert-item--conflict { border-color: var(--red); }
.alert-item--reading_edit, .alert-item--abnormal { border-color: var(--amber); }

/* ---------- الزبائن ---------- */
.page--split { display: grid; gap: 16px; }
.detail-pane { display: none; }
.page--split.has-detail .list-pane { display: none; }
.page--split.has-detail .detail-pane { display: block; }
@media (min-width: 768px) {
  .page--split { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.25fr); align-items: start; }
  .page--split .list-pane, .page--split.has-detail .list-pane { display: grid; gap: 4px; }
  .page--split .detail-pane { display: block; position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .detail__back { display: none !important; }
}
@media (min-width: 1200px) { .page--split { grid-template-columns: minmax(0, 1.6fr) minmax(380px, 1fr); } }
.detail-pane > .empty { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); min-height: 300px; align-content: center; }
.toolbar { display: grid; gap: 10px; margin-bottom: 4px; }
.toolbar__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar__actions { display: flex; gap: 6px; margin-inline-start: auto; flex-wrap: wrap; }
.results-count { font-size: 13px; }
.search { position: relative; }
.search .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search__input { padding-right: 42px; }
.customer-list { display: grid; gap: 8px; }
.ccard {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(11, 31, 58, .04); transition: border-color .15s;
}
.ccard:hover, .ccard.is-selected { border-color: var(--teal); }
.ccard.is-pending { border-style: dashed; }
.ccard__main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ccard__main .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard__title { display: flex; align-items: center; gap: 6px; }
.ccard__title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard__side { display: grid; justify-items: end; gap: 4px; }
.star, .compliance { font-size: 13px; }
.ctable { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ctable__head, .ctable__row { display: grid; grid-template-columns: 44px minmax(110px, 2fr) minmax(100px, 1.2fr) 64px 76px minmax(84px, 1fr) 84px; gap: 10px; align-items: center; padding: 10px 14px; }
.ctable__head { position: sticky; top: 0; background: var(--surface-2); font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); z-index: 1; }
.ctable__row { border-bottom: 1px solid var(--border); font-size: 14.5px; }
.ctable__row:hover { background: var(--surface-2); }
.ctable__row.is-selected { background: color-mix(in srgb, var(--teal) 10%, var(--surface)); }
.ctable__row.is-pending { background: var(--amber-soft); }
.ctable__name { display: flex; gap: 6px; min-width: 0; }
.ctable__name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sentinel { height: 1px; }

.detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.detail__head { display: flex; align-items: flex-start; gap: 8px; }
.detail__title { flex: 1; min-width: 0; }
.detail__title h2 { font-size: 20px; }
.detail__title p { font-size: 13.5px; }
.balance-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.balance-card__value .amount { font-size: 28px; }
.balance-card__meta { display: grid; justify-items: end; gap: 4px; font-size: 14px; font-weight: 600; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__actions .btn { min-height: 40px; font-size: 14px; padding: 0 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; overflow-x: auto; }
.tabs__btn { border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; }
.tabs__btn.is-active { color: var(--text); border-bottom-color: var(--amber); }
.ledger__row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ledger__info { display: grid; min-width: 0; }
.ledger__info span { font-size: 12.5px; }
.ledger__amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger__bal { font-size: 13px; min-width: 64px; text-align: left; }
.readings__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.readings__main, .readings__vals { display: grid; font-size: 14px; }
.readings__bill { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.readings__edits { grid-column: 1 / -1; list-style: none; padding: 8px 10px; margin: 0; background: var(--warn-bg); border-radius: 8px; font-size: 13px; display: grid; gap: 4px; }
.readings__row > .icon-btn { grid-column: 2; justify-self: end; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.simple-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pay-head { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.bill-mini { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 600; font-size: 14.5px; }

/* ---------- جولة القراءات ---------- */
.round { gap: 12px; }
.round__top { display: flex; gap: 12px; align-items: center; }
.round__progress { flex: 1; display: grid; gap: 6px; }
.round__progress-row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.round__layout { display: grid; gap: 12px; }
.round__card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.round__who { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.round__name { font-size: 22px; }
.round__who p { font-size: 13.5px; }
.round__badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.round__prev { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.round__prev-value { font-size: 22px; font-variant-numeric: tabular-nums; }
.round__display { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 10px; border-radius: 14px; border: 2px solid var(--amber); background: var(--amber-soft); min-height: 78px; direction: ltr; }
.round__value { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1.2; }
.round__value.is-empty { color: var(--muted); opacity: .5; }
.round__unit { color: var(--muted); font-weight: 600; }
.round__bill { display: grid; gap: 4px; }
.round__bill:empty, .round__warn:empty { display: none; }
.bill-line { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); }
.bill-line--min { color: var(--info-fg); }
.bill-line--total { padding-top: 6px; border-top: 1px dashed var(--border); color: var(--text); font-size: 18px; }
.bill-line--total strong { font-size: 22px; }
.round__warn { display: grid; gap: 8px; }
.round__pad { display: grid; gap: 12px; }
.round__nav { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.round__nav:has(> :nth-child(3)) { grid-template-columns: auto auto 1fr; }
.round__save { font-size: 18px; }
.round__done { display: grid; justify-items: center; gap: 8px; padding: 28px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; color: var(--ok-fg); }
.round__done p { color: var(--text); font-size: 17px; }
.round__done .muted { color: var(--muted); font-size: 14px; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: ltr; user-select: none; }
.numpad__key { min-height: 62px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 28px; font-weight: 600; box-shadow: 0 2px 0 var(--border); font-variant-numeric: tabular-nums; }
.numpad__key:active { transform: translateY(2px); box-shadow: none; background: var(--surface-2); }
.numpad__key--del { color: var(--danger-fg); display: grid; place-items: center; }
@media (max-width: 767px) {
  .round { gap: 8px; }
  .round__card { padding: 12px; gap: 8px; border-radius: 16px; }
  .round__name { font-size: 19px; }
  .round__prev { padding: 6px 10px; }
  .round__prev-value { font-size: 18px; }
  .round__display { min-height: 60px; padding: 6px; }
  .round__value { font-size: 36px; }
  .bill-line { font-size: 14px; }
  .bill-line--total strong { font-size: 19px; }
  .numpad { gap: 6px; }
  .numpad__key { min-height: 54px; font-size: 26px; }
  .round__pad { gap: 8px; }
  .round__nav .btn--lg { min-height: 52px; }
}
@media (max-height: 740px) and (max-width: 767px) { .numpad__key { min-height: 46px; font-size: 23px; } .round__value { font-size: 30px; } }
@media (min-width: 768px) {
  .round__layout { grid-template-columns: 1fr minmax(300px, 380px); align-items: start; }
  .numpad__key { min-height: 68px; }
}
.pick-list li { border-bottom: 1px solid var(--border); }
.pick-list__btn { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; text-align: start; padding: 12px 4px; border: 0; background: transparent; min-height: 48px; }

/* ---------- الرسائل ---------- */
.sms-status__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.msg-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
@media (min-width: 640px) { .msg-stats { grid-template-columns: repeat(4, 1fr); } }
.msg-stat { display: grid; justify-items: center; padding: 12px 8px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.msg-stat strong { font-size: 24px; }
.msg-stat span { font-size: 13px; color: var(--muted); }
.msg-stat--ok strong { color: var(--ok-fg); }
.msg-stat--danger strong { color: var(--danger-fg); }
.msg-stat--amber strong { color: var(--warn-fg); }
.sms-preview { white-space: pre-wrap; margin: 0; padding: 12px 14px; border-radius: 14px 14px 4px 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 15px; line-height: 1.6; }
.sms-list { display: grid; gap: 12px; max-height: 45vh; overflow-y: auto; }
.sms-list__head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.sms-counter { font-size: 14px; }
.msg-log__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.msg-log__info { display: grid; min-width: 0; }
.msg-log__info span { font-size: 12.5px; }

/* ---------- عام ---------- */
.notif { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: start; }
.notif.is-unread { background: linear-gradient(to left, var(--amber-soft), transparent 70%); }
.notif__icon { font-size: 20px; }
.notif__text { display: grid; gap: 2px; }
.notif__text .muted { font-size: 13.5px; }
.audit { padding: 10px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; }
.audit__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14.5px; }
.audit__diff { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.diff code { color: var(--muted); }
.diff del { color: var(--danger-fg); }
.diff ins { color: var(--ok-fg); text-decoration: none; }
.staff-list, .company-list { display: grid; gap: 12px; }
.staff-row, .company-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.staff-row.is-off { opacity: .65; }
.staff-row__head { display: flex; gap: 10px; align-items: center; }
.perm-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.company-card__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.company-card h3 { font-size: 18px; }
.usage { display: grid; gap: 4px; font-size: 14px; }
.usage__row { display: flex; justify-content: space-between; }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu { padding: 6px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 12px; border: 0; background: transparent; border-radius: 10px; font-size: 16px; font-weight: 600; text-align: start; min-height: 52px; }
.menu-item:hover { background: var(--surface-2); }
.menu-item span { flex: 1; }
.menu-item__chev { color: var(--muted); }
.menu-item--danger { color: var(--danger-fg); }
.profile-card { display: flex; gap: 14px; align-items: center; }
.outbox-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.outbox-item .row-actions { grid-column: 1 / -1; }
.sticky-save { position: sticky; bottom: calc(var(--bottombar-h) + 12px + var(--safe-b)); display: flex; justify-content: flex-end; z-index: 5; }
@media (min-width: 768px) { .sticky-save { bottom: 16px; } }
.sticky-save .btn { box-shadow: var(--shadow-lg); }
.loss-table { display: grid; margin-top: 14px; overflow-x: auto; }
.loss-table__head, .loss-table__row { display: grid; grid-template-columns: 60px repeat(4, minmax(90px, 1fr)); gap: 8px; padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 14px; }
.loss-table__head { color: var(--muted); font-weight: 600; font-size: 13px; }
.settings .card .callout { margin-top: 14px; }

@media print {
  .sidebar, .bottombar, .fab, .topbar, .toasts { display: none !important; }
  .main { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.check--ok { background: var(--ok-bg); }
.check--bad { background: var(--danger-bg); }
.check__icon { font-size: 18px; line-height: 1.4; }
.check p { word-break: break-word; margin-top: 2px; }
