/* ==========================================================================
   Design tokens: the single source of truth for colour, radius, spacing.
   FigCraft frames "Foundation / Tokens" are the reference.
   The --d26-* names are kept so the old app.css and the new files agree.
   Only add a new token here when the design needs a new value.
   ========================================================================== */
@layer app-tokens {
    :root {
        /* Ink and surfaces */
        --d26-ink: #17181c;
        --d26-ink-2: #565b66;
        --d26-ink-3: #8b909a;          /* placeholders and decoration only (3.2:1) */
        --d26-ink-muted: #6b7280;      /* small supporting text (4.8:1 on white) */
        --d26-line: #e9eaec;
        --d26-surface: #fafafa;
        --d26-card: #ffffff;

        /* Accent (teal) */
        --d26-accent: #0f766e;
        --d26-accent-hover: #0c5f58;
        --d26-accent-soft: #eef6f5;
        --d26-danger: #b42318;

        /* Radius */
        --d26-radius-control: 8px;
        --d26-radius-card: 12px;
        --d26-radius-modal: 16px;

        /* Status pairs: background / foreground. Always show a word or icon too. */
        --d26-draft-bg: #f1f2f4;     --d26-draft-fg: #565b66;
        --d26-wait-bg: #fef6e7;      --d26-wait-fg: #9a6700;
        --d26-ok-bg: #e9f6ef;        --d26-ok-fg: #1f6b4a;
        --d26-bad-bg: #fdecec;       --d26-bad-fg: #b42318;
        --d26-settled-bg: #eef0ff;   --d26-settled-fg: #4b4fb8;
        --d26-leave-bg: #eaf3fe;     --d26-leave-fg: #1f5fa8;

        /* A tinted table row a little darker while the pointer is over it (a plain row goes to --d26-surface) */
        --d26-wait-bg-hover: #fcecc9;
        --d26-bad-bg-hover: #fad9d9;
        --d26-accent-soft-hover: #dcecea;

        /* Root font size: 14px keeps Web Awesome controls, rem spacing, and containers in crisp desktop proportion. */
        --d26-font-root: 14px;

        /* Control height: 38px on desktop, expanding to 44px on touch devices */
        --d26-target: 38px;
    }
    @media (pointer: coarse) {
        :root { --d26-target: 44px; }
    }
}
