/* SHAPE Design System 2026 for both Filament panels (claude.ai artifact "SHAPE Design System", project/tokens/*.css).
   Loaded before portal.css / admin.css; no build step. Rules kept from the system: radii only 0 or 999, white only for cards,
   headlines 400, labels 600 caps .2em. Violet (house) is the default accent; admin.css switches it to lime. */
:root {
    --shape-ink: #0A0A0A;
    --shape-ink-2: #262626;
    --shape-ink-3: #404040;
    --shape-ink-4: #525252;
    --shape-grey-300: #D4D4D4;
    --shape-paper: #F7F7F7;
    --shape-white: #FFFFFF;
    --shape-on-ink: #EDEDED;
    --shape-on-ink-body: #BDBDBD;
    --shape-muted: #6E6E6E;
    --shape-muted-dark: #9A9A9A;
    --shape-hairline-dark: rgba(255, 255, 255, .16);
    --shape-violet: #A681FF;
    --shape-violet-ink: #7A4FE8;
    --shape-violet-tint: #D8CEFD;
    --shape-violet-soft: color-mix(in srgb, #A681FF 45%, #D8CEFD);
    --shape-violet-press: color-mix(in srgb, #A681FF 75%, #D8CEFD);
    --shape-lime: #E7FF6D;
    --shape-lime-ink: #527E00;
    --shape-lime-soft: #EAFC96;
    --shape-lime-press: color-mix(in srgb, #E7FF6D 75%, #EDFAB8);
    --shape-font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --font-family: var(--shape-font);

    /* Square everything Filament rounds (fields, cards, modals); pills opt back in below. */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl: 0;

    /* Theme-aware surfaces; Filament toggles the .dark class on <html>. */
    --ui-page: var(--shape-paper);
    --ui-surface: var(--shape-white);
    --ui-text: var(--shape-ink);
    --ui-text-soft: var(--shape-ink-2);
    --ui-muted: var(--shape-muted);
    --ui-line: var(--shape-grey-300);

    /* Accent: band = fill, ink = text on light, soft/press = hover/pressed fills (always with ink text). */
    --ui-accent-band: var(--shape-violet);
    --ui-accent-ink: var(--shape-violet-ink);
    --ui-accent-soft: var(--shape-violet-soft);
    --ui-accent-press: var(--shape-violet-press);
}

.dark {
    --ui-page: var(--shape-ink);
    --ui-surface: var(--shape-ink-2);
    --ui-text: var(--shape-on-ink);
    --ui-text-soft: var(--shape-on-ink-body);
    --ui-muted: var(--shape-muted-dark);
    --ui-line: var(--shape-hairline-dark);
    --ui-accent-ink: var(--ui-accent-band);
}

.fi-body { background: var(--ui-page); font-family: var(--shape-font); color: var(--ui-text); -webkit-font-smoothing: antialiased; }
.fi-simple-layout { background: var(--ui-page); }
.fi-topbar, .fi-topbar > nav { background: var(--ui-page); box-shadow: none; border-bottom: 1px solid var(--ui-line); }
.fi-header-heading, .fi-simple-header-heading { font-weight: 400; letter-spacing: 0; text-wrap: balance; }

/* Cards: flat, white, hairline instead of shadow. */
.fi-section:not(.fi-section-not-contained), .fi-ta-ctn, .fi-simple-main { box-shadow: none; border: 1px solid var(--ui-line); }

/* Pills: buttons, nav items, tabs, badges. */
.fi-btn, .fi-icon-btn, .fi-topbar-item-btn, .fi-sidebar-item-btn, .fi-tabs-item, .fi-badge { border-radius: 999px; }
.fi-btn { font-weight: 400; }
.fi-btn.fi-color-primary:not(.fi-outlined) {
    --bg: var(--shape-ink); --text: var(--shape-white);
    --hover-bg: var(--ui-accent-soft); --hover-text: var(--shape-ink);
    --dark-bg: var(--shape-white); --dark-text: var(--shape-ink);
    --dark-hover-bg: var(--ui-accent-soft); --dark-hover-text: var(--shape-ink);
}
.fi-btn.fi-color-primary:not(.fi-outlined):active { background-color: var(--ui-accent-press); color: var(--shape-ink); }
/* Badges as "Tag S": 10px / 600 / caps / .2em. */
.fi-badge { padding: 4px 12px; font-size: 10px; font-weight: 600; line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; }

/* Focus: 2px outline in the accent, 3px offset. */
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--ui-accent-ink); outline-offset: 3px; }
