/* ── PRIMITIVES ─────────────────────────────────────────────── */
:root {
    /* Orange ramp */
    --sd-orange-10: hsl(30, 100%, 99%);
    --sd-orange-20: hsl(30, 100%, 98%);
    --sd-orange-50: hsl(30, 100%, 95%);
    --sd-orange-100: hsl(30, 100%, 90%);
    --sd-orange-200: hsl(30, 100%, 80%);
    --sd-orange-300: hsl(30, 88%, 70%);
    --sd-orange-400: hsl(30, 76%, 60%);
    --sd-orange-500: hsl(30, 62%, 50%);
    --sd-orange-600: hsl(30, 63%, 40%);
    --sd-orange-700: hsl(30, 68%, 30%);
    --sd-orange-950: hsl(30, 68%, 5%);

    /* Purple ramp */
    --sd-purple-10: hsl(260, 100%, 99%);
    --sd-purple-50: hsl(260, 100%, 95%);
    --sd-purple-100: hsl(260, 100%, 90%);
    --sd-purple-200: hsl(260, 100%, 80%);
    --sd-purple-300: hsl(260, 88%, 70%);
    --sd-purple-400: hsl(260, 76%, 60%);
    --sd-purple-500: hsl(260, 62%, 50%);
    --sd-purple-600: hsl(260, 63%, 40%);
    --sd-purple-700: hsl(260, 68%, 30%);

    /* Neutral ramp */
    --sd-neutral-10: hsl(30, 10%, 99%);
    --sd-neutral-20: hsl(30, 10%, 98%);
    --sd-neutral-50: hsl(30, 10%, 95%);
    --sd-neutral-100: hsl(30, 10%, 90%);
    --sd-neutral-200: hsl(30, 10%, 80%);
    --sd-neutral-300: hsl(30, 10%, 70%);
    --sd-neutral-400: hsl(30, 10%, 60%);
    --sd-neutral-500: hsl(30, 10%, 50%);
    --sd-neutral-600: hsl(30, 10%, 40%);
    --sd-neutral-700: hsl(30, 10%, 30%);
    --sd-neutral-800: hsl(30, 10%, 20%);
    --sd-neutral-850: hsl(30, 10%, 15%);
    --sd-neutral-900: hsl(30, 10%, 10%);
    --sd-neutral-920: hsl(30, 10%, 8%);
    --sd-neutral-950: hsl(30, 10%, 5%);
    --sd-neutral-980: hsl(30, 10%, 2%);
    --sd-neutral-990: hsl(30, 10%, 1%);

    /* Red ramp */
    --sd-red-25: hsl(0, 100%, 99%);
    --sd-red-50: hsl(0, 100%, 96%);
    --sd-red-100: hsl(0, 100%, 92%);
    --sd-red-200: hsl(0, 100%, 84%);
    --sd-red-300: hsl(0, 88%, 73%);
    --sd-red-400: hsl(0, 86%, 62%);
    --sd-red-500: hsl(0, 62%, 52%);
    --sd-red-600: hsl(0, 63%, 40%);
    --sd-red-700: hsl(0, 68%, 30%);

    /* Green ramp */
    --sd-green-400: hsl(153, 90%, 60%);
    --sd-green-500: hsl(153, 90%, 50%);
    --sd-green-600: hsl(153, 85%, 40%);
    --sd-green-700: hsl(153, 80%, 30%);

    /* Blue ramp */
    --sd-blue-400: hsl(200, 100%, 40%);
    --sd-blue-500: hsl(200, 90%, 50%);
    --sd-blue-600: hsl(200, 90%, 40%);


    /* Semantic status — theme-invariant */
    --sd-primary: var(--sd-purple-400);
    --sd-primary-trans: color-mix(in srgb, var(--sd-primary) 15%, transparent);

    --sd-success: var(--sd-green-700);
    --sd-success-trans: color-mix(in srgb, var(--sd-green-500) 15%, transparent);

    --sd-warning: var(--sd-orange-500);
    --sd-warning-trans: color-mix(in srgb, var(--sd-warning) 15%, transparent);

    --sd-danger: var(--sd-red-500);
    --sd-danger-trans: color-mix(in srgb, var(--sd-danger) 15%, transparent);

    --sd-info: var(--sd-blue-600);
    --sd-info-trans: color-mix(in srgb, var(--sd-blue-500) 15%, transparent);

    --sd-neutral: var(--sd-neutral-500);
    --sd-neutral-trans: color-mix(in srgb, var(--sd-neutral) 15%, transparent);

    /* Shape — theme-invariant */
    --sd-radius-xs: 3px;
    --sd-radius-sm: 6px;
    --sd-radius: 10px;
    --sd-radius-lg: 16px;
    --sd-radius-full: 9999px;

    /* Motion — theme-invariant */
    --sd-ease: 140ms ease;
    --sd-ease-out: 200ms ease-out;

    /* Typography — theme-invariant */
    --sd-font: sans-serif;
    --sd-mono: monospace;
    --sd-font-size: 16px;
    --sd-line-height: 1.5;
    --sidebar-width: 300px;
}


/* ── SEMANTIC ALIASES (light defaults) ───────────────────────── */
:root,
[data-theme="light"] {
    /* Backgrounds */
    --bg: var(--sd-neutral-20);
    /* warm off-white page bg */
    --bg-tinted: var(--sd-orange-20);
    /* cards, modals above page */
    --bg-raised: var(--sd-neutral-10);
    /* cards, modals above page */
    --bg-sunken: var(--sd-neutral-50);
    /* inputs, inset areas */
    --bg-strong: white;

    /* Borders */
    --border: color-mix(in srgb, var(--sd-neutral-500) 25%, transparent);

    --border-focus: var(--sd-neutral-500);
    --border-strong: var(--sd-neutral-600);

    /* Text */
    --text: var(--sd-neutral-900);
    --text-muted: var(--sd-neutral-700);
    --text-faint: var(--sd-neutral-500);
    --text-invert: #ffffff;
    --text-strong: #000;

    /* Brand — components consume these, never raw ramp values */
    --primary: var(--sd-purple-400);
    --primary-hover: var(--sd-purple-600);
    --primary-active: var(--sd-purple-700);
    --primary-subtle: var(--sd-purple-100);
    --primary-text: var(--sd-purple-600);

    --shadow-sm: 0 1px 4px color-mix(in srgb, var(--sd-neutral) 40%, transparent);
    --shadow: 0 4px 14px color-mix(in srgb, var(--sd-neutral) 35%, transparent);
    --shadow-lg: 0 10px 36px color-mix(in srgb, var(--sd-neutral) 30%, transparent);
}


/* ── DARK THEME OVERRIDES — only what changes ────────────────── */
[data-theme="dark"] {
    /* Backgrounds */
    --bg: var(--sd-neutral-900);
    --bg-tinted: var(--sd-orange-950);
    --bg-raised: var(--sd-neutral-950);
    --bg-sunken: var(--sd-neutral-850);
    --bg-strong: black;

    /* Text */
    --text: var(--sd-neutral-100);
    --text-muted: var(--sd-neutral-200);
    --text-faint: var(--sd-neutral-400);
    --text-strong: #fff;

    /* --text-invert stays #ffffff */

    /* Brand — shift to lighter ramp steps for contrast on dark bg */
    --primary: var(--sd-purple-300);
    --primary-hover: var(--sd-purple-200);
    --primary-active: var(--sd-purple-100);
    --primary-subtle: var(--sd-primary-trans);
    --primary-text: var(--sd-purple-300);

    --shadow-sm: 0 1px 4px black;
    --shadow: 0 4px 14px black;
    --shadow-lg: 0 10px 36px black;
}


/* ── COMPONENT TOKENS (derived, no raw values) ───────────────── */
:root {
    /* Sidebar */
    --sd-sidebar-bg: var(--bg-sunken);
    --sd-sidebar-text: var(--text);
    --sd-sidebar-hover-bg: var(--sd-primary-trans);
    --sd-sidebar-hover-text: var(--primary-text);
    --sd-sidebar-active-bg: var(--primary);
    --sd-sidebar-active-text: var(--text-invert);
    --sd-sidebar-border: var(--border);

    /* Badge / Pill */
    --sd-badge-radius: var(--sd-radius-sm);
    --sd-pill-radius: var(--sd-radius-full);
}

/* ── RESET & BASE ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--sd-font-size);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
    font-family: var(--sd-font);
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    transition: background var(--sd-ease), color var(--sd-ease);

    >main {
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--text);
    margin-top: 1em;
    margin-bottom: .5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

small {
    font-size: .875em;
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

del {
    text-decoration: line-through;
    color: var(--text-muted);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

code {
    font-family: var(--sd-mono);
    font-size: .875em;
    padding: .125em .5em;
    border-radius: var(--sd-radius-xs);
    background: var(--bg-sunken);
}

pre {
    font-family: var(--sd-mono);
    font-size: .875em;
    padding: 1rem 1.25rem;
    border-radius: var(--sd-radius);
    background: var(--bg-sunken);
    color: var(--text);
    overflow-x: auto;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

pre code {
    font-size: 1em;
    background: none;
    padding: 0;
    color: inherit;
}

blockquote {
    border-left: 8px solid var(--primary);
    background: var(--sd-neutral-trans);
    padding: .5rem 1rem;
    margin: 1rem 0;
    border-radius: 0 var(--sd-radius-sm) var(--sd-radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}

.text-danger {
    color: var(--sd-danger);
}

.text-muted {
    color: var(--text-muted);
}

.text-faint {
    color: var(--text-faint);
}

/* ── LISTS ───────────────────────────────────────────────────── */
ul,
ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: .3rem;
}

/* ── TABLE ───────────────────────────────────────────────────── */
.sd-table-wrap {
    overflow-x: auto;
    border-radius: var(--sd-radius);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: .5rem 1rem;
}

th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: .75em;
    letter-spacing: .06em;
}

tbody>tr {
    border-top: 1px solid var(--border);
}

tbody>tr:hover {
    background: var(--bg-tinted);
    transition: background var(--sd-ease);
}

/* ── FORMS ───────────────────────────────────────────────────── */
.sd-form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

label {
    font-size: .875em;
    font-weight: 600;
    color: var(--text-muted);
}

input,
select,
textarea {
    font-size: 1rem;
    font-family: var(--sd-font);
    padding: .5rem .75rem;
    border-radius: var(--sd-radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-strong);
    color: var(--text);
    outline: none;
    transition: border-color var(--sd-ease), box-shadow var(--sd-ease);
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type="range"] {
    padding: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--sd-font);
    font-size: .875rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: var(--sd-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--sd-ease), color var(--sd-ease), border-color var(--sd-ease), box-shadow var(--sd-ease), transform 80ms ease;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-invert);
}

.btn-primary:hover {
    background: var(--primary-hover);
    text-decoration: none;
    color: var(--text-invert);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-invert);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--bg-sunken);
    color: var(--text);
    text-decoration: none;
}

.btn-danger {
    background: var(--sd-danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--sd-red-600);
    text-decoration: none;
    color: #fff;
}

.btn-sm {
    font-size: .75rem;
    padding: .25rem .75rem;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
}

.btn-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.btn-lg {
    font-size: 1.125rem;
    padding: .75rem 1.5rem;
}

/* ──. BADGES ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: .75em;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .25em .625em;
    border-radius: var(--sd-radius-xs);
    line-height: 1.5;
    white-space: nowrap;
}

.badge-primary {
    background: var(--sd-primary-trans);
    color: var(--sd-primary);
}

.badge-success {
    background: var(--sd-success-trans);
    color: var(--sd-success);
}

.badge-warning {
    background: var(--sd-warning-trans);
    color: var(--sd-warning);
}

.badge-danger {
    background: var(--sd-danger-trans);
    color: var(--sd-danger);
}

.badge-info {
    background: var(--sd-info-trans);
    color: var(--sd-info);
}

.badge-neutral {
    background: var(--sd-neutral-trans);
    color: var(--sd-neutral);
}

/* ──. PILLS ──────────────────────────────────────────────────── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .875em;
    font-weight: 500;
    padding: .25em 1em;
    border-radius: var(--sd-radius-full);
    border: 1.5px solid var(--border);
    background: var(--bg-strong);
    color: var(--text-muted);
    cursor: default;
    transition: background var(--sd-ease), color var(--sd-ease), border-color var(--sd-ease);
    white-space: nowrap;
}

.pill.active,
.pill:hover {
    background: var(--sd-primary-trans);
    border-color: var(--sd-primary);
}

.pill-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
    flex-shrink: 0;
}

.pill-removable {
    cursor: pointer;
}

.pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    opacity: .55;
    transition: opacity var(--sd-ease);
    line-height: 1;
    cursor: pointer;
}

.pill-remove:hover {
    opacity: 1;
}

/* ──. CARDS ──────────────────────────────────────────────────── */
.card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--sd-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 1rem 1.25rem .75rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.card-body {
    padding: 1rem 1.25em;
    flex: 1;
}

.card-footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg-sunken);
    font-size: .88em;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

/* ──. ALERTS ─────────────────────────────────────────────────── */
.alert {
    padding: .75rem 1rem;
    border-radius: var(--sd-radius-sm);
    border-left: 4px solid;
    margin-bottom: .75rem;
    font-size: .875em;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}

.alert-icon {
    font-size: 1.1em;
    flex-shrink: 0;
    line-height: 1.5;
}

.alert-primary {
    background: var(--sd-primary-trans);
    color: var(--sd-primary);
    border-color: var(--sd-primary)
}

.alert-success {
    background: var(--sd-success-trans);
    color: var(--sd-success);
    border-color: var(--sd-success)
}

.alert-warning {
    background: var(--sd-warning-trans);
    color: var(--sd-warning);
    border-color: var(--sd-warning)
}

.alert-danger {
    background: var(--sd-danger-trans);
    color: var(--sd-danger);
    border-color: var(--sd-danger)
}

.alert-info {
    background: var(--sd-info-trans);
    color: var(--sd-info);
    border-color: var(--sd-info)
}

.alert-neutral {
    background: var(--sd-neutral-trans);
    color: var(--sd-neutral);
    border-color: var(--sd-neutral)
}

/* ──. SIDEBAR ────────────────────────────────────────────────── */
.sd-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sd-sidebar-bg);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    padding-bottom: 0.375rem;
}

.sd-sidebar-brand {
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}

.sd-nav-section {
    padding: .625rem 1rem .25rem;
    font-size: .7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-faint);
}

.sd-nav-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    margin: .125rem .5rem;
    border-radius: var(--sd-radius-sm);
    font-size: .875rem;
    font-weight: 500;
    color: var(--sd-sidebar-text);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--sd-ease), color var(--sd-ease);

    >* {
        min-width: 1rem;
        text-align: center;
    }
}

.sd-nav-item:hover {
    background: var(--sd-sidebar-hover-bg);
    text-decoration: none;
    color: var(--text);
}

.sd-nav-item.active {
    background: var(--sd-sidebar-active-bg);
    color: var(--sd-sidebar-active-text);
    font-weight: 700;
}

.sd-nav-item .nav-badge {
    margin-left: auto;
    font-size: .75em;
    background: var(--sd-primary-trans);
    color: var(--sd-primary);
    padding: .125em .75em;
    border-radius: var(--sd-radius-full);
    font-weight: 700;
}

.sd-nav-item.active .nav-badge {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

/* align a ghost button's text with nav-items */
.sd-sidebar .btn-ghost.sd-nav-item {
    border-width: 0;
}

.sd-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
}

/* ──. MAIN CONTENT ───────────────────────────────────────────── */
.sd-main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sd-content {
    flex: 1;
    max-width: 900px;
    width: 100%;
}

.section-title {
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-faint);
    margin: 2rem 0 .75rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid var(--border);
}

.section-title:first-child {
    margin-top: 0;
}

/* ──. DROPDOWN ───────────────────────────────────────────────── */
.sd-dropdown {
    position: relative;
    display: inline-block;
}

.sd-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 160px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--sd-radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    padding: .25rem;
    display: none;
    animation: ddFadeIn 120ms ease forwards;
    margin: 0 .5rem;

    &.top {
        top: unset;
        bottom: calc(100% + 6px);
    }

    &.full-width {
        left: 0;
        right: 0;
    }

}

.sd-dropdown.open .sd-dropdown-menu {
    display: block;
}

@keyframes ddFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sd-dropdown-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: var(--sd-radius-sm);
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--sd-ease);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    &.active {
        background: var(--sd-primary-trans);
        color: var(--sd-primary);
    }
}

.sd-dropdown-item:hover {
    background: var(--sd-neutral-trans);
    text-decoration: none;
}

.sd-dropdown-item.danger {
    color: var(--sd-danger);
}

.sd-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: .25rem .2rem;
}

.sd-dropdown-label {
    padding: .25rem .875rem .125rem;
    font-size: .875em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-faint);
}

.sd-sidebar>.sd-dropdown {
    display: flex;

    >button {
        flex: 1;
    }
}

/* ──. TOGGLE / THEME SWITCH ──────────────────────────────────── */
.sd-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.sd-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sd-toggle-track {
    position: absolute;
    inset: 0;
    background: var(--sd-neutral-600);
    border-radius: var(--sd-radius-full);
    cursor: pointer;
    transition: background var(--sd-ease);
}

.sd-toggle input:checked+.sd-toggle-track {
    background: var(--primary);
}

.sd-toggle-track::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--sd-ease);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.sd-toggle input:checked+.sd-toggle-track::before {
    transform: translateX(18px);
}

/* ──. PROGRESS ───────────────────────────────────────────────── */
.sd-progress {
    height: 8px;
    border-radius: var(--sd-radius-full);
    background: var(--bg-sunken);
    overflow: hidden;
}

.sd-progress-bar {
    height: 100%;
    border-radius: var(--sd-radius-full);
    background: linear-gradient(90deg, var(--sd-orange-400), var(--sd-purple-400));
    transition: width .5s ease;
}


/* ──. FLEX HELPERS ───────────────────────────────────────────── */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.space-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: .5rem;
}

.gap-3 {
    gap: .75rem;
}

.gap-4 {
    gap: 1rem;
}

.mb-2 {
    margin-bottom: .5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: .5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}