/* flowDeck core design foundation: tokens, base elements, brand helpers. */

:root {
    --fd-font-main: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --fd-bg: #f3f6f9;
    --fd-surface: #ffffff;
    --fd-surface-soft: #f8fafc;
    --fd-surface-muted: #eef3f8;
    --fd-border: #e2e8f0;
    --fd-border-strong: #d7e0eb;
    --fd-text: #162033;
    --fd-text-soft: #34445c;
    --fd-muted: #5f6f84;
    --fd-muted-strong: #475569;
    --fd-navy: #0b2a5b;
    --fd-navy-soft: #123a78;
    --fd-blue: #2563eb;
    --fd-blue-hover: #1d4ed8;
    --fd-blue-soft: #e8f1ff;
    --fd-success: #16a34a;
    --fd-success-soft: #e8f7ee;
    --fd-warning: #d97706;
    --fd-warning-soft: #fff4df;
    --fd-danger: #dc2626;
    --fd-danger-soft: #feecec;
    --fd-info: #0284c7;
    --fd-info-soft: #e8f6fd;
    --fd-radius-xs: 6px;
    --fd-radius-sm: 8px;
    --fd-radius-md: 10px;
    --fd-radius-lg: 14px;
    --fd-shadow: 0 10px 26px rgba(15, 23, 42, .045);
    --fd-shadow-soft: 0 6px 18px rgba(15, 23, 42, .035);
    --fd-focus: 0 0 0 .2rem rgba(37, 99, 235, .18);
    --fd-shell-width: 280px;
    --fd-header-height: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 95%;
}

body {
    min-height: 100vh;
    background: var(--fd-bg);
    color: var(--fd-text);
    font-family: var(--fd-font-main);
    font-size: .95rem;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: var(--fd-blue);
    text-decoration: none;
}

a:hover {
    color: var(--fd-blue-hover);
}

:focus-visible {
    outline: 0;
    box-shadow: var(--fd-focus);
}

::selection {
    background: rgba(37, 99, 235, .18);
    color: var(--fd-text);
}

.fd-page-title {
    margin: 0;
    color: var(--fd-text);
    font-size: 1.55rem;
    font-weight: 760;
    line-height: 1.15;
}

.fd-page-subtitle {
    margin: .3rem 0 0;
    color: var(--fd-muted);
    font-size: .95rem;
    line-height: 1.45;
}

.fd-section-title {
    margin: 0;
    color: var(--fd-text);
    font-size: 1rem;
    font-weight: 760;
    line-height: 1.25;
}

.fd-section-caption {
    margin: .25rem 0 0;
    color: var(--fd-muted);
    font-size: .86rem;
    line-height: 1.35;
}

.fd-brand-plus {
    display: inline-block;
    margin-left: -.02em;
    color: inherit;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    vertical-align: baseline;
    transform: none;
    transform-origin: left center;
    overflow: visible;
}

.fd-brand-wordmark {
    overflow: visible;
}

.fd-text-muted {
    color: var(--fd-muted) !important;
}

.fd-text-strong {
    color: var(--fd-text) !important;
    font-weight: 720;
}

.fd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.darkmode {
    --fd-bg: #0f172a;
    --fd-surface: #172033;
    --fd-surface-soft: #111a2c;
    --fd-surface-muted: #202b42;
    --fd-border: rgba(148, 163, 184, .22);
    --fd-border-strong: rgba(148, 163, 184, .34);
    --fd-text: #e5edf7;
    --fd-text-soft: #c9d4e3;
    --fd-muted: #93a4b8;
    --fd-muted-strong: #b5c2d3;
    --fd-blue-soft: rgba(37, 99, 235, .18);
    --fd-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    --fd-shadow-soft: 0 8px 22px rgba(0, 0, 0, .2);
}
