/* Chapar primitives: original blue/navy identity, a four-pixel rhythm and native script support. */
:root{--cp-white:#fff;--cp-chalk:#f6f8fc;--cp-mist:#eaf0f8;--cp-line:#ced8e5;--cp-midnight:#071b35;--cp-night:#071326;--cp-slate:#4e6078;--cp-blue:#1267e9;--cp-blue-deep:#0753b7;--cp-green:#08785d;--cp-amber:#9a5b08;--cp-night-line:#2b405c;--cp-night-muted:#b2c2d7;--cp-night-surface:#102440;--cp-space-1:4px;--cp-space-2:8px;--cp-space-3:12px;--cp-space-4:16px;--cp-space-6:24px;--cp-space-8:32px;--cp-space-12:48px;--cp-space-16:64px;--cp-radius-control:8px;--cp-radius-surface:16px;--cp-font:Vazirmatn,-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI",Roboto,"Hiragino Sans","Yu Gothic UI","Noto Sans CJK JP",sans-serif}
/* Semantic layer. theme.js sets data-theme: day by default, night only for prefers-color-scheme: dark. */
/* B-134: Apple-style white light theme (default). Dark only via prefers-color-scheme (theme.js) or explicit choice. */
html[data-theme=day]{--cp-canvas:#f5f5f7;--cp-surface:#fff;--cp-soft:#f2f2f7;--cp-ink:#1d1d1f;--cp-muted:#6e6e73;--cp-border:#d2d2d7;--cp-primary:#0066cc;--cp-primary-hover:#0058b0;--cp-travel-fill:#edf4ff;--cp-travel-ink:#1159b8;--cp-send-fill:#eaf6f1;--cp-send-ink:var(--cp-green);--cp-buy-fill:#fff5e4;--cp-buy-ink:var(--cp-amber)}
html[data-theme=night]{--cp-canvas:var(--cp-night);--cp-surface:var(--cp-night-surface);--cp-soft:#142c49;--cp-ink:#f2f6fd;--cp-muted:var(--cp-night-muted);--cp-border:var(--cp-night-line);--cp-primary:#70acff;--cp-primary-hover:#96c3ff;--cp-travel-fill:#112c4d;--cp-travel-ink:#94c3ff;--cp-send-fill:#103b34;--cp-send-ink:#86dec2;--cp-buy-fill:#3c2d19;--cp-buy-ink:#f5c887}
/* Component contracts also bridge the existing functional widgets. */
html[data-theme]{--font:var(--cp-font);--page-bg:var(--cp-canvas);--surface:var(--cp-surface);--surface-soft:var(--cp-soft);--page-text:var(--cp-ink);--muted-text:var(--cp-muted);--theme-line:var(--cp-border);--theme-accent:var(--cp-primary);--cp-control-bg:var(--cp-surface);--cp-control-text:var(--cp-ink);--cp-control-border:var(--cp-border);--cp-panel-radius:var(--cp-radius-surface);--cp-section-space:clamp(48px,6vw,88px)}
