/* Design tokens for application chrome only.
   Authored report pages (GrapesJS iframe), saved dashboard appearance (--ep-dashboard-*) and exports are not styled here.
   Account Appearance (/theme.css, loaded after this file) stays authoritative for colours and brand fonts. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/static/assets/brand-designs/font-inter-400.ttf) format('truetype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/static/assets/brand-designs/font-inter-500.ttf) format('truetype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/static/assets/brand-designs/font-inter-700.ttf) format('truetype')}
:root{
 /* Type */
 --rb-font:'Inter','IBM Plex Sans Arabic','Segoe UI',system-ui,-apple-system,sans-serif;
 --rb-font-mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
 --rb-text-xs:12px;--rb-text-sm:13px;--rb-text-md:14px;--rb-text-lg:16px;--rb-text-xl:20px;--rb-text-2xl:24px;--rb-text-3xl:32px;
 --rb-leading-tight:1.25;--rb-leading:1.5;
 --rb-weight-regular:400;--rb-weight-medium:500;--rb-weight-semibold:600;--rb-weight-bold:700;
 /* Spacing (4-point) */
 --rb-space-1:4px;--rb-space-2:8px;--rb-space-3:12px;--rb-space-4:16px;--rb-space-5:20px;--rb-space-6:24px;--rb-space-8:32px;--rb-space-10:40px;--rb-space-12:48px;
 /* Shape and depth */
 --rb-radius-sm:4px;--rb-radius-md:8px;--rb-radius-lg:12px;--rb-radius-full:999px;
 --rb-shadow-1:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.08);
 --rb-shadow-2:0 4px 8px -2px rgba(16,24,40,.08),0 2px 4px -2px rgba(16,24,40,.05);
 --rb-shadow-3:0 12px 24px -4px rgba(16,24,40,.12),0 4px 8px -4px rgba(16,24,40,.06);
 --rb-control-height:36px;--rb-control-height-sm:32px;
 /* Motion: three durations and one easing for all app chrome. */
 --rb-motion-fast:120ms;--rb-motion:200ms;--rb-motion-slow:320ms;--rb-ease:cubic-bezier(.2,.8,.2,1);
 /* Neutrals */
 --rb-gray-0:#ffffff;--rb-gray-50:#f8fafb;--rb-gray-100:#f1f4f6;--rb-gray-200:#e3e8ec;--rb-gray-300:#cdd5dc;--rb-gray-400:#9aa7b2;
 --rb-gray-500:#6b7a87;--rb-gray-600:#4d5b67;--rb-gray-700:#34414c;--rb-gray-800:#1f2a33;--rb-gray-900:#111a21;
 /* Semantic colours follow account Appearance when it is set */
 --rb-accent:var(--accent,var(--rb360-accent,#176b87));
 --rb-surface:var(--rb360-surface,var(--rb-gray-0));
 --rb-canvas:var(--rb360-soft,var(--rb-gray-50));
 --rb-text:var(--ink,var(--rb360-text,var(--rb-gray-800)));
 --rb-text-muted:var(--muted,var(--rb360-muted,var(--rb-gray-500)));
 --rb-border:var(--line,var(--rb360-border,var(--rb-gray-200)));
 --rb-success:#1b7a3d;--rb-warning:#8f5600;--rb-danger:#c2361b;--rb-info:#176b87;
 --rb-focus-ring:0 0 0 3px color-mix(in srgb,var(--rb-accent) 28%,transparent);
 /* Legacy chrome variables mapped onto tokens */
 --font:var(--rb-font);--mono:var(--rb-font-mono);
 --db-ink:var(--rb-text);--db-muted:var(--rb-text-muted);--db-line:var(--rb-border);--db-accent:var(--rb-accent);
 --ep-radius:var(--rb-radius-md);--ep-control-height:var(--rb-control-height);
}
body{font-family:var(--rb-font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
:where(button,input,select,textarea){font-family:inherit}
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--rb-accent);outline-offset:2px}
/* Readability floor: chrome text never renders below 11px (status and helper text 12px). */
:is(#save-status.db-saved,#save-state){font-size:var(--rb-text-xs)!important}
.db-view-popover small{font-size:var(--rb-text-xs)!important}
:is(.dm-nav .eyebrow span,.dm-nav .model-explorer>label>span,#model-explorer-tree .explorer-group>summary small,#model-explorer-tree .explorer-group>p,.erd-field-type,.db-designer-icons>button>span,.db-grid-step>span,.template-card-meta span>span){font-size:11px!important}
