/* Barnet product design system: shared RTL tokens and interaction primitives. */
:root {
  --ds-brand: #1769e0;
  --ds-brand-strong: #0f55ba;
  --ds-brand-soft: #edf4ff;
  --ds-ink: #142033;
  --ds-text: #44536a;
  --ds-muted: #718096;
  --ds-line: #dfe7f1;
  --ds-page: #f6f8fc;
  --ds-surface: #ffffff;
  --ds-positive: #087c52;
  --ds-positive-soft: #e9f8f1;
  --ds-warning: #a85d00;
  --ds-warning-soft: #fff4e3;
  --ds-danger: #c73744;
  --ds-danger-soft: #fff0f1;
  --ds-radius-xs: 8px;
  --ds-radius-sm: 12px;
  --ds-radius-md: 16px;
  --ds-radius-lg: 24px;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-space-8: 32px;
  --ds-shadow-1: 0 1px 2px rgba(20, 32, 51, .04), 0 6px 18px rgba(20, 32, 51, .05);
  --ds-shadow-2: 0 14px 40px rgba(20, 32, 51, .12);
  --ds-ease: 180ms cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); background: var(--ds-page); color: var(--ds-ink); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(23, 105, 224, .25); outline-offset: 2px;
}
::selection { color: #fff; background: var(--ds-brand); }
[hidden] { display: none !important; }
.ltr, [dir="ltr"] { direction: ltr; text-align: left; unicode-bidi: plaintext; }
.ds-card { border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); background: var(--ds-surface); box-shadow: var(--ds-shadow-1); }
.ds-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ds-status--success { color: var(--ds-positive); background: var(--ds-positive-soft); }
.ds-status--warning { color: var(--ds-warning); background: var(--ds-warning-soft); }
.ds-status--danger { color: var(--ds-danger); background: var(--ds-danger-soft); }
.ds-empty { display: grid; justify-items: center; gap: 8px; padding: 32px 20px; text-align: center; color: var(--ds-muted); border: 1px dashed var(--ds-line); border-radius: var(--ds-radius-md); background: #fbfcfe; }
.ds-empty i { color: var(--ds-brand); font-size: 22px; }
.ds-toast-stack { position: fixed; z-index: 1000; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.ds-toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; color: var(--ds-ink); background: #fff; border: 1px solid var(--ds-line); border-right: 4px solid var(--ds-brand); border-radius: var(--ds-radius-sm); box-shadow: var(--ds-shadow-2); font-size: 13px; font-weight: 700; animation: ds-toast-in var(--ds-ease) both; }
.ds-toast--success { border-right-color: var(--ds-positive); }.ds-toast--error { border-right-color: var(--ds-danger); }
@keyframes ds-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) { .ds-toast-stack { right: 16px; left: 16px; width: auto; bottom: max(16px, env(safe-area-inset-bottom)); } }
