/* YES Digital — UI Foundation v1
   Runtime layer: cacheable, no Vite rebuild required.
   Source tokens are mirrored in resources/css/ui-foundation-v1.css.
*/
:root {
    --yes-ui-navy-950: #071b33;
    --yes-ui-navy-900: #0b2748;
    --yes-ui-navy-800: #123a63;
    --yes-ui-navy-700: #174b7c;
    --yes-ui-primary-700: #1456bd;
    --yes-ui-primary-600: #1769e0;
    --yes-ui-primary-500: #2e7cf6;
    --yes-ui-primary-100: #eaf2ff;
    --yes-ui-primary-50: #f5f9ff;
    --yes-ui-cyan-600: #0789aa;
    --yes-ui-cyan-500: #0ea5c6;
    --yes-ui-cyan-50: #ecfbff;
    --yes-ui-gold-600: #a97b1d;
    --yes-ui-gold-500: #c9972e;
    --yes-ui-gold-100: #fff6dd;
    --yes-ui-ink-950: #101828;
    --yes-ui-ink-800: #1d2939;
    --yes-ui-ink-700: #344054;
    --yes-ui-ink-600: #475467;
    --yes-ui-ink-500: #667085;
    --yes-ui-ink-400: #98a2b3;
    --yes-ui-ink-300: #d0d5dd;
    --yes-ui-ink-200: #eaecf0;
    --yes-ui-ink-100: #f2f4f7;
    --yes-ui-surface: #ffffff;
    --yes-ui-canvas: #f7f9fc;
    --yes-ui-success-700: #056a49;
    --yes-ui-success-600: #07875c;
    --yes-ui-success-50: #ecfdf3;
    --yes-ui-warning-700: #925f16;
    --yes-ui-warning-600: #b7791f;
    --yes-ui-warning-50: #fff8e7;
    --yes-ui-danger-700: #9f2828;
    --yes-ui-danger-600: #c43232;
    --yes-ui-danger-50: #fff1f1;
    --yes-ui-info-600: #1769e0;
    --yes-ui-info-50: #f0f6ff;

    --yes-ui-radius-xs: 8px;
    --yes-ui-radius-sm: 10px;
    --yes-ui-radius-control: 14px;
    --yes-ui-radius-card: 20px;
    --yes-ui-radius-modal: 24px;

    --yes-ui-shadow-xs: 0 1px 2px rgb(16 24 40 / .04);
    --yes-ui-shadow-card:
        0 1px 2px rgb(16 24 40 / .03),
        0 8px 24px rgb(16 24 40 / .05);
    --yes-ui-shadow-card-hover:
        0 8px 20px rgb(16 24 40 / .06),
        0 20px 40px rgb(16 24 40 / .08);
    --yes-ui-shadow-floating:
        0 24px 64px rgb(7 27 51 / .18);

    --yes-ui-ease: cubic-bezier(.2,.8,.2,1);
    --yes-ui-font:
        "IBM Plex Sans Arabic",
        "Readex Pro",
        "Tajawal",
        "Cairo",
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

html {
    font-family: var(--yes-ui-font);
}

.yes-ui-focus:focus-visible,
.yes-ui-button:focus-visible,
.yes-ui-dropdown-trigger:focus-visible,
.yes-ui-modal-close:focus-visible,
.yes-ui-checkbox-input:focus-visible + .yes-ui-checkbox-box {
    outline: none;
    box-shadow: 0 0 0 4px rgb(46 124 246 / .16);
}

/* Buttons */
.yes-ui-button {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--yes-ui-radius-control);
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition:
        transform .18s var(--yes-ui-ease),
        box-shadow .18s var(--yes-ui-ease),
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease;
}
.yes-ui-button:hover { transform: translateY(-1px); }
.yes-ui-button:active { transform: translateY(0); }
.yes-ui-button[disabled],
.yes-ui-button[aria-disabled="true"] {
    pointer-events: none;
    opacity: .52;
}
.yes-ui-button--primary {
    background: var(--yes-ui-navy-900);
    color: #fff;
    box-shadow: 0 7px 18px rgb(7 27 51 / .12);
}
.yes-ui-button--primary:hover {
    background: var(--yes-ui-navy-800);
    box-shadow: 0 10px 24px rgb(7 27 51 / .17);
}
.yes-ui-button--accent {
    background: var(--yes-ui-gold-500);
    color: var(--yes-ui-navy-950);
    box-shadow: 0 7px 18px rgb(201 151 46 / .16);
}
.yes-ui-button--accent:hover {
    background: var(--yes-ui-gold-600);
    color: #fff;
}
.yes-ui-button--secondary {
    border-color: var(--yes-ui-ink-300);
    background: #fff;
    color: var(--yes-ui-ink-800);
    box-shadow: var(--yes-ui-shadow-xs);
}
.yes-ui-button--secondary:hover {
    border-color: #aab4c2;
    background: #fafbfc;
    color: var(--yes-ui-navy-900);
}
.yes-ui-button--soft {
    border-color: var(--yes-ui-primary-100);
    background: var(--yes-ui-primary-50);
    color: var(--yes-ui-primary-700);
}
.yes-ui-button--soft:hover { background: var(--yes-ui-primary-100); }
.yes-ui-button--ghost {
    background: transparent;
    color: var(--yes-ui-primary-700);
}
.yes-ui-button--ghost:hover { background: var(--yes-ui-primary-50); }
.yes-ui-button--danger {
    background: var(--yes-ui-danger-600);
    color: #fff;
}
.yes-ui-button--danger:hover { background: var(--yes-ui-danger-700); }
.yes-ui-button--success {
    background: var(--yes-ui-success-600);
    color: #fff;
}
.yes-ui-button--success:hover { background: var(--yes-ui-success-700); }
.yes-ui-button--dark-outline {
    border-color: rgb(255 255 255 / .28);
    background: rgb(255 255 255 / .06);
    color: #fff;
}
.yes-ui-button--dark-outline:hover {
    border-color: rgb(255 255 255 / .45);
    background: rgb(255 255 255 / .11);
}
.yes-ui-button--sm {
    min-height: 36px;
    border-radius: 11px;
    padding: 7px 13px;
    font-size: 12px;
}
.yes-ui-button--lg {
    min-height: 48px;
    padding: 11px 22px;
    font-size: 15px;
}
.yes-ui-button--icon {
    width: 44px;
    padding-inline: 0;
}
.yes-ui-button__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.yes-ui-spinner {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 999px;
    animation: yes-ui-spin .72s linear infinite;
}
@keyframes yes-ui-spin { to { transform: rotate(360deg); } }

/* Cards */
.yes-ui-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--yes-ui-ink-200);
    border-radius: var(--yes-ui-radius-card);
    background: var(--yes-ui-surface);
    box-shadow: var(--yes-ui-shadow-card);
}
.yes-ui-card--padded-sm { padding: 16px; }
.yes-ui-card--padded { padding: 22px; }
.yes-ui-card--padded-lg { padding: 28px; }
.yes-ui-card--soft {
    border-color: transparent;
    background: #f9fafb;
    box-shadow: none;
}
.yes-ui-card--primary {
    border-color: #d9e7ff;
    background: linear-gradient(145deg,#fff,var(--yes-ui-primary-50));
}
.yes-ui-card--premium {
    border-color: rgb(201 151 46 / .24);
    background: linear-gradient(145deg,#fff 0%,#fff 62%,var(--yes-ui-gold-100) 140%);
}
.yes-ui-card--interactive {
    transition:
        transform .2s var(--yes-ui-ease),
        border-color .2s ease,
        box-shadow .2s var(--yes-ui-ease);
}
.yes-ui-card--interactive::before {
    content: "";
    position: absolute;
    inset-inline: 28px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg,transparent,var(--yes-ui-primary-500),transparent);
    opacity: 0;
    transition: opacity .2s ease;
}
.yes-ui-card--interactive:hover {
    transform: translateY(-3px);
    border-color: #bad0f4;
    box-shadow: var(--yes-ui-shadow-card-hover);
}
.yes-ui-card--interactive:hover::before { opacity: .9; }

/* Form fields */
.yes-ui-field { display: block; }
.yes-ui-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    color: var(--yes-ui-ink-800);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.6;
}
.yes-ui-label__required {
    color: var(--yes-ui-danger-600);
    margin-inline-start: 3px;
}
.yes-ui-label__optional {
    color: var(--yes-ui-ink-500);
    font-size: 11px;
    font-weight: 500;
}
.yes-ui-control-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}
.yes-ui-input,
.yes-ui-select,
.yes-ui-textarea {
    display: block;
    width: 100%;
    border: 1px solid var(--yes-ui-ink-300) !important;
    border-radius: var(--yes-ui-radius-control) !important;
    background: #fff !important;
    color: var(--yes-ui-ink-950) !important;
    font-family: var(--yes-ui-font) !important;
    font-size: 15px !important;
    font-weight: 450 !important;
    line-height: 1.55 !important;
    box-shadow: var(--yes-ui-shadow-xs) !important;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background-color .16s ease;
}
.yes-ui-input,
.yes-ui-select {
    min-height: 46px !important;
    padding: 10px 13px !important;
}
.yes-ui-textarea {
    min-height: 120px !important;
    padding: 12px 13px !important;
    resize: vertical;
}
.yes-ui-input::placeholder,
.yes-ui-textarea::placeholder { color: var(--yes-ui-ink-400); }
.yes-ui-input:hover,
.yes-ui-select:hover,
.yes-ui-textarea:hover { border-color: #b6c0cd !important; }
.yes-ui-input:focus,
.yes-ui-select:focus,
.yes-ui-textarea:focus {
    outline: none !important;
    border-color: var(--yes-ui-primary-600) !important;
    box-shadow: 0 0 0 4px rgb(46 124 246 / .12) !important;
}
.yes-ui-input[aria-invalid="true"],
.yes-ui-select[aria-invalid="true"],
.yes-ui-textarea[aria-invalid="true"] {
    border-color: #df7979 !important;
    background: #fffdfd !important;
}
.yes-ui-input[aria-invalid="true"]:focus,
.yes-ui-select[aria-invalid="true"]:focus,
.yes-ui-textarea[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgb(196 50 50 / .10) !important;
}
.yes-ui-input:disabled,
.yes-ui-select:disabled,
.yes-ui-textarea:disabled {
    cursor: not-allowed;
    background: #f7f8fa !important;
    color: var(--yes-ui-ink-500) !important;
}
.yes-ui-control-wrap:has(.yes-ui-control-affix--start) .yes-ui-input {
    padding-inline-start: 45px !important;
}
.yes-ui-control-wrap:has(.yes-ui-control-affix--end) .yes-ui-input {
    padding-inline-end: 45px !important;
}
.yes-ui-control-affix {
    position: absolute;
    top: 0;
    z-index: 1;
    display: grid;
    height: 46px;
    width: 42px;
    place-items: center;
    color: var(--yes-ui-ink-500);
    pointer-events: none;
}
.yes-ui-control-affix--start { inset-inline-start: 0; }
.yes-ui-control-affix--end { inset-inline-end: 0; }
.yes-ui-help,
.yes-ui-success,
.yes-ui-error {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.7;
}
.yes-ui-help { color: var(--yes-ui-ink-500); }
.yes-ui-success {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--yes-ui-success-600);
    font-weight: 550;
}
.yes-ui-success::before { content: "✓"; font-weight: 800; }
.yes-ui-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--yes-ui-danger-600);
    font-weight: 550;
}
.yes-ui-error::before {
    content: "!";
    display: grid;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    place-items: center;
    margin-top: 1px;
    border-radius: 999px;
    background: var(--yes-ui-danger-50);
    font-size: 10px;
    font-weight: 800;
}

/* Checkbox */
.yes-ui-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.yes-ui-checkbox-control {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 2px;
}
.yes-ui-checkbox-input {
    position: absolute;
    inset: 0;
    width: 20px;
    height: 20px;
    opacity: 0;
    cursor: pointer;
}
.yes-ui-checkbox-box {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--yes-ui-ink-300);
    border-radius: 6px;
    background: #fff;
    color: #fff;
    transition: .15s ease;
}
.yes-ui-checkbox-input:checked + .yes-ui-checkbox-box {
    border-color: var(--yes-ui-primary-600);
    background: var(--yes-ui-primary-600);
}
.yes-ui-checkbox-input:disabled + .yes-ui-checkbox-box { opacity: .55; }
.yes-ui-checkbox-check {
    opacity: 0;
    font-size: 12px;
    font-weight: 900;
    transform: scale(.7);
    transition: .15s ease;
}
.yes-ui-checkbox-input:checked + .yes-ui-checkbox-box .yes-ui-checkbox-check {
    opacity: 1;
    transform: scale(1);
}
.yes-ui-checkbox-copy { min-width: 0; }
.yes-ui-checkbox-label {
    color: var(--yes-ui-ink-800);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.6;
}
.yes-ui-checkbox-description {
    margin-top: 2px;
    color: var(--yes-ui-ink-500);
    font-size: 12px;
    line-height: 1.7;
}

/* Badge */
.yes-ui-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    white-space: nowrap;
}
.yes-ui-badge--navy { background: var(--yes-ui-navy-900); color: #fff; }
.yes-ui-badge--blue { background: var(--yes-ui-primary-50); color: var(--yes-ui-primary-700); }
.yes-ui-badge--gold { background: var(--yes-ui-gold-100); color: #865f11; }
.yes-ui-badge--success { background: var(--yes-ui-success-50); color: var(--yes-ui-success-700); }
.yes-ui-badge--warning { background: var(--yes-ui-warning-50); color: var(--yes-ui-warning-700); }
.yes-ui-badge--danger { background: var(--yes-ui-danger-50); color: var(--yes-ui-danger-700); }
.yes-ui-badge--neutral { background: var(--yes-ui-ink-100); color: var(--yes-ui-ink-600); }

/* Alert */
.yes-ui-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid;
    border-radius: 16px;
    padding: 14px 15px;
}
.yes-ui-alert__icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}
.yes-ui-alert__copy { min-width: 0; flex: 1; }
.yes-ui-alert__title {
    font-size: 13px;
    font-weight: 750;
    line-height: 1.6;
}
.yes-ui-alert__body {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.8;
}
.yes-ui-alert--info { border-color: #c9dcfb; background: #f5f9ff; color: #174d99; }
.yes-ui-alert--info .yes-ui-alert__icon { background: #e2edff; }
.yes-ui-alert--success { border-color: #bde4d4; background: #f1fbf7; color: #126847; }
.yes-ui-alert--success .yes-ui-alert__icon { background: #ddf4ea; }
.yes-ui-alert--warning { border-color: #f0d59a; background: #fffaf0; color: #895b0a; }
.yes-ui-alert--warning .yes-ui-alert__icon { background: #fcebc8; }
.yes-ui-alert--danger { border-color: #f0c4c0; background: #fff5f4; color: #8f241c; }
.yes-ui-alert--danger .yes-ui-alert__icon { background: #fbe3e1; }

/* Modal */
.yes-ui-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    overflow-y: auto;
    padding: 24px 16px;
}
.yes-ui-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgb(7 27 51 / .58);
    backdrop-filter: blur(10px);
}
.yes-ui-modal-align {
    position: relative;
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
}
.yes-ui-modal {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / .58);
    border-radius: var(--yes-ui-radius-modal);
    background: #fff;
    box-shadow: var(--yes-ui-shadow-floating);
    outline: none;
}
.yes-ui-modal--sm { max-width: 400px; }
.yes-ui-modal--md { max-width: 520px; }
.yes-ui-modal--lg { max-width: 680px; }
.yes-ui-modal--xl { max-width: 840px; }
.yes-ui-modal--2xl { max-width: 1024px; }
.yes-ui-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--yes-ui-ink-200);
    padding: 20px 22px;
}
.yes-ui-modal__eyebrow {
    color: var(--yes-ui-primary-700);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .05em;
}
.yes-ui-modal__title {
    margin-top: 2px;
    color: var(--yes-ui-ink-950);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.55;
}
.yes-ui-modal__description {
    margin-top: 4px;
    color: var(--yes-ui-ink-500);
    font-size: 13px;
    line-height: 1.75;
}
.yes-ui-modal-close {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--yes-ui-ink-500);
    font-size: 22px;
    cursor: pointer;
    transition: .16s ease;
}
.yes-ui-modal-close:hover {
    background: var(--yes-ui-ink-100);
    color: var(--yes-ui-ink-950);
}
.yes-ui-modal__body { padding: 22px; }
.yes-ui-modal__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    border-top: 1px solid var(--yes-ui-ink-200);
    background: #fafbfc;
    padding: 14px 22px;
}

/* Dropdown */
.yes-ui-dropdown { position: relative; display: inline-flex; }
.yes-ui-dropdown-trigger {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--yes-ui-ink-300);
    border-radius: var(--yes-ui-radius-control);
    background: #fff;
    padding: 9px 13px;
    color: var(--yes-ui-ink-700);
    font-family: var(--yes-ui-font);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: var(--yes-ui-shadow-xs);
}
.yes-ui-dropdown-trigger:hover { background: #fafbfc; color: var(--yes-ui-ink-950); }
.yes-ui-dropdown-panel {
    position: absolute;
    z-index: 90;
    top: calc(100% + 8px);
    min-width: 220px;
    overflow: hidden;
    border: 1px solid var(--yes-ui-ink-200);
    border-radius: 16px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 18px 45px rgb(7 27 51 / .15);
}
.yes-ui-dropdown-panel--start { inset-inline-start: 0; }
.yes-ui-dropdown-panel--end { inset-inline-end: 0; }
.yes-ui-dropdown-panel--center { inset-inline-start: 50%; transform: translateX(-50%); }
.yes-ui-dropdown-panel--sm { width: 180px; }
.yes-ui-dropdown-panel--md { width: 240px; }
.yes-ui-dropdown-panel--lg { width: 320px; }
.yes-ui-dropdown-item {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    padding: 8px 10px;
    color: var(--yes-ui-ink-700);
    font-family: var(--yes-ui-font);
    font-size: 13px;
    font-weight: 550;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}
.yes-ui-dropdown-item:hover,
.yes-ui-dropdown-item:focus-visible {
    outline: none;
    background: var(--yes-ui-ink-100);
    color: var(--yes-ui-ink-950);
}
.yes-ui-dropdown-separator {
    height: 1px;
    margin: 6px;
    background: var(--yes-ui-ink-200);
}

/* Tables */
.yes-ui-table-shell {
    overflow: hidden;
    border: 1px solid var(--yes-ui-ink-200);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--yes-ui-shadow-card);
}
.yes-ui-table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}
.yes-ui-table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--yes-ui-ink-700);
    font-size: 13px;
}
.yes-ui-table caption {
    padding: 14px 16px;
    color: var(--yes-ui-ink-950);
    font-weight: 700;
    text-align: start;
}
.yes-ui-table thead { background: #f8fafc; }
.yes-ui-table th {
    padding: 13px 15px;
    border-bottom: 1px solid var(--yes-ui-ink-200);
    color: var(--yes-ui-ink-500);
    font-size: 11px;
    font-weight: 700;
    text-align: start;
    white-space: nowrap;
}
.yes-ui-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #eef1f4;
    vertical-align: middle;
}
.yes-ui-table tbody tr { transition: background-color .14s ease; }
.yes-ui-table tbody tr:hover { background: #fbfcfd; }
.yes-ui-table tbody tr:last-child td { border-bottom: 0; }
.yes-ui-table--compact th { padding-block: 10px; }
.yes-ui-table--compact td { padding-block: 10px; }
.yes-ui-table--striped tbody tr:nth-child(even) { background: #fcfdfe; }
.yes-ui-table--sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
}

/* Skeleton */
.yes-ui-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #e8edf2;
}
.yes-ui-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgb(255 255 255 / .58) 45%,
        transparent 70%
    );
    transform: translateX(-100%);
    animation: yes-ui-shimmer 1.35s infinite;
}
@keyframes yes-ui-shimmer { to { transform: translateX(100%); } }
.yes-ui-skeleton--circle { border-radius: 999px; }
.yes-ui-skeleton--text { height: 14px; }

/* Empty state */
.yes-ui-empty {
    border: 1px dashed #c9d2dc;
    border-radius: 20px;
    background: #fbfcfd;
    padding: 34px 24px;
    text-align: center;
}
.yes-ui-empty__icon {
    display: grid;
    width: 50px;
    height: 50px;
    margin-inline: auto;
    place-items: center;
    border-radius: 15px;
    background: var(--yes-ui-primary-50);
    color: var(--yes-ui-primary-600);
    font-size: 18px;
    font-weight: 750;
}
.yes-ui-empty__title {
    margin-top: 13px;
    color: var(--yes-ui-ink-950);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.6;
}
.yes-ui-empty__body {
    max-width: 580px;
    margin: 6px auto 0;
    color: var(--yes-ui-ink-500);
    font-size: 13px;
    line-height: 1.85;
}
.yes-ui-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

/* Page/section headings */
.yes-ui-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}
.yes-ui-page-header__copy { min-width: 0; max-width: 860px; }
.yes-ui-page-header__eyebrow,
.yes-ui-section-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--yes-ui-primary-700);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .05em;
}
.yes-ui-page-header__title {
    margin-top: 4px;
    color: var(--yes-ui-ink-950);
    font-size: clamp(28px,3vw,38px);
    font-weight: 780;
    line-height: 1.35;
    letter-spacing: -.02em;
}
.yes-ui-page-header__description {
    margin-top: 7px;
    color: var(--yes-ui-ink-500);
    font-size: 14px;
    line-height: 1.85;
}
.yes-ui-page-header__breadcrumbs {
    margin-bottom: 9px;
    color: var(--yes-ui-ink-500);
    font-size: 12px;
}
.yes-ui-page-header__actions,
.yes-ui-section-heading__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}
.yes-ui-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.yes-ui-section-heading__title {
    margin-top: 3px;
    color: var(--yes-ui-ink-950);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.45;
}
.yes-ui-section-heading__description {
    max-width: 760px;
    margin-top: 5px;
    color: var(--yes-ui-ink-500);
    font-size: 13px;
    line-height: 1.8;
}

/* Stat card */
.yes-ui-stat {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--yes-ui-ink-200);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--yes-ui-shadow-card);
}
.yes-ui-stat__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.yes-ui-stat__label {
    color: var(--yes-ui-ink-500);
    font-size: 12px;
    font-weight: 650;
}
.yes-ui-stat__value {
    margin-top: 8px;
    color: var(--yes-ui-ink-950);
    font-size: 28px;
    font-weight: 780;
    line-height: 1.1;
}
.yes-ui-stat__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--yes-ui-primary-50);
    color: var(--yes-ui-primary-600);
}
.yes-ui-stat__meta {
    margin-top: 14px;
    color: var(--yes-ui-ink-500);
    font-size: 11px;
    line-height: 1.7;
}

/* Micro utilities used by foundation components */
.yes-ui-stack { display: grid; gap: 14px; }
.yes-ui-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yes-ui-muted { color: var(--yes-ui-ink-500); }

@media (max-width: 767px) {
    .yes-ui-page-header,
    .yes-ui-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .yes-ui-page-header__actions,
    .yes-ui-section-heading__actions {
        width: 100%;
    }
    .yes-ui-modal-overlay {
        padding: 12px;
    }
    .yes-ui-modal-align {
        align-items: flex-end;
    }
    .yes-ui-modal {
        border-radius: 20px;
    }
    .yes-ui-modal__header,
    .yes-ui-modal__body,
    .yes-ui-modal__footer {
        padding-inline: 18px;
    }
    .yes-ui-dropdown-panel--lg {
        width: min(320px, calc(100vw - 32px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .yes-ui-button,
    .yes-ui-card--interactive,
    .yes-ui-spinner,
    .yes-ui-skeleton::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
