:root {
    --encore-shell-status-height: 44px;
    --encore-shell-context-height: 60px;
    --encore-shell-feedback-height: 36px;
    --encore-shell-edge-padding: 8px;
    --encore-shell-region-gap: 8px;
    --encore-shell-min-stage-height: 320px;

    --encore-space-2xs: 2px;
    --encore-space-xs: 4px;
    --encore-space-sm: 8px;
    --encore-space-md: 12px;
    --encore-space-lg: 16px;
    --encore-space-xl: 24px;

    --encore-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --encore-font-display: clamp(1.25rem, 0.98rem + 0.65cqi, 1.75rem);
    --encore-font-decision: clamp(1rem, 0.92rem + 0.30cqi, 1.375rem);
    --encore-font-card-title: clamp(0.75rem, 0.71rem + 0.14cqi, 0.875rem);
    --encore-font-body: clamp(0.8125rem, 0.78rem + 0.10cqi, 0.9375rem);
    --encore-font-table: clamp(0.8125rem, 0.79rem + 0.08cqi, 0.875rem);
    --encore-font-meta: clamp(0.75rem, 0.73rem + 0.06cqi, 0.8125rem);

    --encore-line-tight: 1.15;
    --encore-line-body: 1.35;

    --encore-radius-sm: 6px;
    --encore-radius-md: 9px;
    --encore-border-width: 1px;

    --encore-color-bg: var(--encore-background, #eef2f5);
    --encore-color-surface: var(--encore-surface, #ffffff);
    --encore-color-surface-muted: var(--encore-surface-muted, #f6f8fa);
    --encore-color-text: var(--encore-text, #14212b);
    --encore-color-text-muted: var(--encore-text-muted, #5b6872);
    --encore-color-border: var(--encore-border, #cfd8df);
    --encore-color-primary: var(--encore-primary, #174a63);
    --encore-color-primary-strong: var(--encore-primary-strong, #10384c);
    --encore-color-accent: var(--encore-accent, #b98520);
    --encore-color-success: var(--encore-success, #217a4b);
    --encore-color-warning: var(--encore-warning, #9a6617);
    --encore-color-danger: var(--encore-danger, #a63b35);
    --encore-color-info: var(--encore-info, #286e8f);

    --encore-shadow-soft: 0 2px 8px rgb(20 33 43 / 8%);
    --encore-transition-fast: 140ms ease;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --encore-transition-fast: 0ms linear;
    }
}

/* LAYOUT END-02 — Adaptive component tokens */
:root {
    --encore-card-padding-compact: 6px;
    --encore-card-padding-standard: 9px;
    --encore-card-padding-expanded: 12px;

    --encore-card-gap-compact: 4px;
    --encore-card-gap-standard: 7px;
    --encore-card-gap-expanded: 10px;

    --encore-card-grid-gap: 8px;
    --encore-card-value-compact: clamp(1rem, 0.88rem + 0.9cqi, 1.25rem);
    --encore-card-value-standard: clamp(1.15rem, 0.95rem + 1.2cqi, 1.5rem);
    --encore-card-value-expanded: clamp(1.25rem, 1rem + 1.35cqi, 1.75rem);
}

/* LAYOUT END-03 — Context Pane tokens */
:root {
    --encore-context-pane-min-width: 300px;
    --encore-context-pane-preferred-width: 340px;
    --encore-context-pane-max-width: 380px;
}

/* LAYOUT END-04 — Decision Workspace tokens */
:root {
    --encore-decision-row-height: 36px;
    --encore-decision-control-height: 34px;
    --encore-decision-control-min-width: 72px;
    --encore-decision-control-max-width: 132px;
    --encore-decision-section-height: 36px;
    --encore-decision-reference-min-width: 112px;
}
