:root {
    color-scheme: light;
    --sl-blue: #1458d8;
    --sl-blue-dark: #0d3fa6;
    --sl-yellow: #f6c945;
    --sl-bg: #f3f6fb;
    --sl-surface: #ffffff;
    --sl-surface-soft: #f7f9fc;
    --sl-text: #172033;
    --sl-muted: #697386;
    --sl-border: #dde3ed;
    --sl-success: #13795b;
    --sl-danger: #c23434;
    --sl-shadow: 0 18px 50px rgba(23, 32, 51, .10);
    --sl-radius: 20px;
    --sl-sidebar: 260px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --sl-bg: #0d111b;
    --sl-surface: #151b27;
    --sl-surface-soft: #1b2230;
    --sl-text: #f5f7fb;
    --sl-muted: #9da8bb;
    --sl-border: #2b3445;
    --sl-shadow: 0 20px 55px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--sl-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--sl-bg);
    color: var(--sl-text);
    -webkit-font-smoothing: antialiased;
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.sl-eyebrow {
    margin: 0 0 8px;
    color: var(--sl-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sl-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--sl-blue);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: inset -8px -8px 0 rgba(246, 201, 69, .25);
}

.sl-icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--sl-text);
    cursor: pointer;
}

.sl-icon-button:hover {
    background: var(--sl-surface-soft);
}

.sl-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.sl-alert-success {
    border-color: rgba(19, 121, 91, .25);
    background: rgba(19, 121, 91, .10);
    color: var(--sl-success);
}

.sl-alert-error {
    border-color: rgba(194, 52, 52, .25);
    background: rgba(194, 52, 52, .10);
    color: var(--sl-danger);
}

.sl-login-page {
    background:
        radial-gradient(circle at 12% 15%, rgba(20, 88, 216, .15), transparent 32%),
        radial-gradient(circle at 90% 85%, rgba(246, 201, 69, .18), transparent 28%),
        var(--sl-bg);
}

.sl-login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
}

.sl-login-brand {
    display: flex;
    max-width: 720px;
    padding: clamp(36px, 7vw, 96px);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
}

.sl-login-brand h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 78px);
    line-height: .95;
    letter-spacing: -.055em;
}

.sl-login-brand h1 span {
    color: var(--sl-blue);
}

.sl-login-copy {
    max-width: 580px;
    margin: 22px 0 0;
    color: var(--sl-muted);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
}

.sl-login-points {
    display: grid;
    gap: 14px;
}

.sl-login-points div {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.sl-login-points span {
    color: var(--sl-blue);
    font-size: 12px;
    font-weight: 900;
}

.sl-login-points p {
    margin: 0;
    color: var(--sl-muted);
    font-size: 14px;
}

.sl-login-card-wrap {
    display: grid;
    min-width: 0;
    padding: clamp(22px, 5vw, 70px);
    place-items: center;
}

.sl-login-card {
    width: min(100%, 480px);
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--sl-border);
    border-radius: 28px;
    background: color-mix(in srgb, var(--sl-surface) 94%, transparent);
    box-shadow: var(--sl-shadow);
    backdrop-filter: blur(18px);
}

.sl-login-heading {
    display: flex;
    margin-bottom: 28px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.sl-login-heading h2 {
    margin: 0;
    font-size: clamp(27px, 4vw, 36px);
    letter-spacing: -.035em;
}

.sl-login-heading p:not(.sl-eyebrow) {
    margin: 8px 0 0;
    color: var(--sl-muted);
    font-size: 14px;
}

.sl-form-stack {
    display: grid;
    gap: 18px;
}

.sl-field {
    display: grid;
    gap: 8px;
}

.sl-field label {
    font-size: 13px;
    font-weight: 750;
}

.sl-field input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--sl-border);
    border-radius: 14px;
    outline: 0;
    background: var(--sl-surface-soft);
    color: var(--sl-text);
    font-size: 16px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.sl-field input:focus {
    border-color: var(--sl-blue);
    box-shadow: 0 0 0 4px rgba(20, 88, 216, .13);
}

.sl-password-field {
    position: relative;
}

.sl-password-field input {
    padding-right: 74px;
}

.sl-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 7px 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--sl-blue);
    font-size: 12px;
    font-weight: 800;
    transform: translateY(-50%);
    cursor: pointer;
}

.sl-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sl-muted);
    font-size: 13px;
    cursor: pointer;
}

.sl-checkbox input {
    width: 17px;
    height: 17px;
    accent-color: var(--sl-blue);
}

.sl-button {
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    font-weight: 850;
    cursor: pointer;
}

.sl-button-primary {
    background: linear-gradient(135deg, var(--sl-blue), var(--sl-blue-dark));
    color: #fff;
    box-shadow: 0 12px 24px rgba(20, 88, 216, .23);
}

.sl-button-block {
    width: 100%;
}

.sl-login-footnote {
    margin: 24px 0 0;
    color: var(--sl-muted);
    font-size: 12px;
    text-align: center;
}

.sl-app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: var(--sl-sidebar) minmax(0, 1fr);
}

.sl-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    height: 100vh;
    min-width: 0;
    padding: 20px 16px;
    flex-direction: column;
    border-right: 1px solid var(--sl-border);
    background: var(--sl-surface);
}

.sl-sidebar-brand {
    display: flex;
    padding: 4px 8px 18px;
    align-items: center;
    gap: 12px;
}

.sl-sidebar-brand strong,
.sl-sidebar-brand span {
    display: block;
}

.sl-sidebar-brand strong {
    font-size: 18px;
}

.sl-sidebar-brand span {
    margin-top: 2px;
    color: var(--sl-muted);
    font-size: 11px;
}

.sl-workspace-card {
    display: grid;
    margin: 8px 0 18px;
    padding: 14px;
    gap: 3px;
    border-radius: 16px;
    background: var(--sl-surface-soft);
}

.sl-workspace-card span,
.sl-workspace-card small {
    color: var(--sl-muted);
    font-size: 11px;
}

.sl-workspace-card strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-nav {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sl-nav-label {
    margin: 18px 10px 7px;
    color: var(--sl-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sl-nav-item {
    display: flex;
    min-height: 42px;
    padding: 0 11px;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    color: var(--sl-muted);
    font-size: 13px;
}

.sl-nav-item b {
    min-width: 0;
    flex: 1;
    font-weight: 720;
}

.sl-nav-item em {
    font-size: 9px;
    font-style: normal;
}

.sl-nav-item.is-active {
    background: rgba(20, 88, 216, .11);
    color: var(--sl-blue);
}

.sl-nav-item.is-disabled {
    opacity: .63;
}

.sl-sidebar-footer {
    display: grid;
    margin-top: auto;
    padding: 16px 8px 4px;
    gap: 3px;
    border-top: 1px solid var(--sl-border);
}

.sl-sidebar-footer span {
    font-size: 13px;
    font-weight: 780;
}

.sl-sidebar-footer small {
    overflow: hidden;
    color: var(--sl-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-sidebar-backdrop {
    display: none;
}

.sl-app-main {
    min-width: 0;
}

.sl-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-height: 72px;
    padding: 12px clamp(16px, 3vw, 34px);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--sl-border);
    background: color-mix(in srgb, var(--sl-bg) 88%, transparent);
    backdrop-filter: blur(16px);
}

.sl-topbar-title,
.sl-topbar-actions {
    display: flex;
    align-items: center;
}

.sl-topbar-title {
    min-width: 0;
    gap: 8px;
}

.sl-topbar-title h1 {
    margin: 0;
    font-size: clamp(18px, 3vw, 24px);
    letter-spacing: -.025em;
}

.sl-topbar-title p {
    margin: 3px 0 0;
    color: var(--sl-muted);
    font-size: 11px;
}

.sl-topbar-actions {
    gap: 4px;
}

.sl-topbar-actions form {
    margin: 0;
}

.sl-content {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: clamp(18px, 3vw, 34px);
}

.sl-hero-card,
.sl-panel,
.sl-stat-card {
    border: 1px solid var(--sl-border);
    background: var(--sl-surface);
    box-shadow: 0 8px 28px rgba(23, 32, 51, .045);
}

.sl-hero-card {
    display: flex;
    min-height: 170px;
    padding: clamp(24px, 4vw, 42px);
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-radius: var(--sl-radius);
    background:
        linear-gradient(135deg, rgba(20, 88, 216, .10), rgba(246, 201, 69, .13)),
        var(--sl-surface);
}

.sl-hero-card h2 {
    margin: 0;
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: -.045em;
}

.sl-hero-card p:not(.sl-eyebrow) {
    margin: 8px 0 0;
    color: var(--sl-muted);
    font-size: 13px;
}

.sl-status-badge,
.sl-panel-chip {
    display: inline-flex;
    min-height: 30px;
    padding: 0 12px;
    align-items: center;
    border-radius: 999px;
    background: rgba(19, 121, 91, .11);
    color: var(--sl-success);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.sl-stat-grid {
    display: grid;
    margin-top: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sl-stat-card {
    display: grid;
    min-width: 0;
    padding: 20px;
    gap: 7px;
    border-radius: 17px;
}

.sl-stat-card span,
.sl-stat-card small {
    color: var(--sl-muted);
    font-size: 11px;
}

.sl-stat-card strong {
    font-size: clamp(25px, 4vw, 36px);
    letter-spacing: -.04em;
}

.sl-panel {
    margin-top: 18px;
    padding: clamp(20px, 3vw, 28px);
    border-radius: var(--sl-radius);
}

.sl-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.sl-panel-heading h2 {
    margin: 0;
    font-size: 22px;
}

.sl-panel-chip {
    background: rgba(20, 88, 216, .10);
    color: var(--sl-blue);
}

.sl-progress-list {
    display: grid;
    margin-top: 24px;
    gap: 16px;
}

.sl-progress-list > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
}

.sl-progress-list > div > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--sl-border);
    border-radius: 10px;
    color: var(--sl-muted);
    font-size: 12px;
    font-weight: 850;
}

.sl-progress-list > div.is-done > span {
    border-color: rgba(19, 121, 91, .22);
    background: rgba(19, 121, 91, .10);
    color: var(--sl-success);
}

.sl-progress-list strong {
    font-size: 14px;
}

.sl-progress-list p {
    margin: 4px 0 0;
    color: var(--sl-muted);
    font-size: 12px;
    line-height: 1.55;
}

.sl-mobile-nav,
.sl-mobile-only {
    display: none;
}

@media (max-width: 980px) {
    .sl-login-shell {
        grid-template-columns: 1fr;
    }

    .sl-login-brand {
        max-width: none;
        padding-bottom: 0;
    }

    .sl-login-points {
        display: none;
    }

    .sl-login-card-wrap {
        padding-top: 26px;
    }

    .sl-app-shell {
        display: block;
    }

    .sl-sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-102%);
        width: min(86vw, 300px);
        box-shadow: var(--sl-shadow);
        transition: transform .22s ease;
    }

    body.sl-sidebar-open .sl-sidebar {
        transform: translateX(0);
    }

    .sl-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(0, 0, 0, .45);
    }

    body.sl-sidebar-open .sl-sidebar-backdrop {
        display: block;
    }

    .sl-mobile-only {
        display: grid;
    }

    .sl-content {
        padding-bottom: calc(94px + env(safe-area-inset-bottom));
    }

    .sl-mobile-nav {
        position: fixed;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 10px;
        z-index: 32;
        display: grid;
        min-height: 64px;
        padding: 6px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border: 1px solid var(--sl-border);
        border-radius: 20px;
        background: color-mix(in srgb, var(--sl-surface) 94%, transparent);
        box-shadow: var(--sl-shadow);
        backdrop-filter: blur(18px);
    }

    .sl-mobile-nav a,
    .sl-mobile-nav button {
        display: grid;
        min-width: 0;
        padding: 5px 2px;
        place-items: center;
        gap: 2px;
        border: 0;
        border-radius: 13px;
        background: transparent;
        color: var(--sl-muted);
    }

    .sl-mobile-nav span {
        font-size: 17px;
    }

    .sl-mobile-nav b {
        overflow: hidden;
        max-width: 100%;
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sl-mobile-nav .is-active {
        background: rgba(20, 88, 216, .11);
        color: var(--sl-blue);
    }

    .sl-mobile-nav button:disabled {
        opacity: .45;
    }
}

@media (max-width: 720px) {
    .sl-login-brand {
        padding: 30px 20px 0;
        gap: 20px;
    }

    .sl-login-brand .sl-brand-mark {
        width: 38px;
        height: 38px;
    }

    .sl-login-brand h1 {
        font-size: 43px;
    }

    .sl-login-copy {
        margin-top: 14px;
        font-size: 15px;
    }

    .sl-login-card-wrap {
        padding: 22px 14px 30px;
    }

    .sl-login-card {
        padding: 23px 18px;
        border-radius: 22px;
    }

    .sl-topbar {
        min-height: 62px;
        padding: 8px 12px;
    }

    .sl-topbar-title p {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sl-content {
        padding: 14px 12px 94px;
    }

    .sl-hero-card {
        min-height: 150px;
        padding: 22px 18px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: space-between;
    }

    .sl-hero-card h2 {
        font-size: 30px;
    }

    .sl-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sl-stat-card {
        padding: 16px;
    }

    .sl-panel {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* SLV2-0D2 — Navigation Registry */
.sl-svg-icon {
    display: block;
    flex: 0 0 auto;
}

.sl-panel-switcher {
    display: grid;
    margin-top: 11px;
    padding: 3px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    border: 1px solid var(--sl-border);
    border-radius: 10px;
    background: var(--sl-surface);
}

.sl-panel-switcher form {
    margin: 0;
}

.sl-panel-switcher button {
    width: 100%;
    min-height: 29px;
    padding: 0 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--sl-muted);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.sl-panel-switcher button.is-active {
    background: rgba(20, 88, 216, .12);
    color: var(--sl-blue);
}

.sl-registry-nav {
    display: grid;
    align-content: start;
    gap: 3px;
}

.sl-nav-group {
    border-radius: 12px;
}

.sl-nav-group > summary {
    display: flex;
    min-height: 42px;
    padding: 0 11px;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    color: var(--sl-muted);
    font-size: 13px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.sl-nav-group > summary::-webkit-details-marker {
    display: none;
}

.sl-nav-group > summary:hover,
.sl-nav-group[open] > summary {
    background: var(--sl-surface-soft);
    color: var(--sl-text);
}

.sl-nav-group > summary b {
    min-width: 0;
    flex: 1;
    font-weight: 760;
}

.sl-nav-count {
    color: var(--sl-muted);
    font-size: 9px;
    font-weight: 800;
}

.sl-nav-chevron {
    transition: transform .18s ease;
}

.sl-nav-group[open] .sl-nav-chevron {
    transform: rotate(90deg);
}

.sl-nav-children {
    display: grid;
    margin: 2px 0 7px 17px;
    padding-left: 13px;
    gap: 2px;
    border-left: 1px solid var(--sl-border);
}

.sl-nav-child {
    display: flex;
    min-height: 34px;
    padding: 0 8px;
    align-items: center;
    gap: 9px;
    border-radius: 9px;
    color: var(--sl-muted);
    font-size: 11px;
}

.sl-nav-child > span:first-child {
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    opacity: .55;
}

.sl-nav-child b {
    min-width: 0;
    flex: 1;
    font-weight: 650;
}

.sl-nav-child em {
    color: var(--sl-muted);
    font-size: 8px;
    font-style: normal;
}

.sl-nav-child.is-active {
    background: rgba(20, 88, 216, .11);
    color: var(--sl-blue);
}

.sl-nav-child.is-disabled {
    opacity: .62;
}

.sl-context-badge {
    display: inline-flex;
    min-height: 26px;
    padding: 0 9px;
    align-items: center;
    border: 1px solid var(--sl-border);
    border-radius: 999px;
    color: var(--sl-muted);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.sl-platform-operation-list {
    display: grid;
    gap: 9px;
}

.sl-platform-operation-item {
    display: grid;
    min-width: 0;
    min-height: 68px;
    padding: 11px 12px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--sl-border);
    border-radius: 14px;
    background: var(--sl-surface-soft);
    color: var(--sl-text);
    text-decoration: none;
    transition:
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.sl-platform-operation-item:hover {
    border-color: color-mix(in srgb, var(--sl-blue) 32%, var(--sl-border));
    background: color-mix(in srgb, var(--sl-blue) 7%, var(--sl-surface));
}

.sl-platform-operation-item:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--sl-blue) 72%, transparent);
    outline-offset: 2px;
}

.sl-platform-operation-item.is-active {
    border-color: color-mix(in srgb, var(--sl-blue) 30%, var(--sl-border));
    background: color-mix(in srgb, var(--sl-blue) 11%, var(--sl-surface));
    color: var(--sl-blue);
}

.sl-platform-operation-item__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, currentColor 9%, transparent);
    color: var(--sl-blue);
}

.sl-platform-operation-item__copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.sl-platform-operation-item__copy strong {
    overflow-wrap: anywhere;
    color: inherit;
    font-size: 13px;
    font-weight: 780;
}

.sl-platform-operation-item__copy small {
    overflow-wrap: anywhere;
    color: var(--sl-muted);
    font-size: 10px;
    line-height: 1.45;
}

.sl-sheet-backdrop {
    display: none;
}

.sl-bottom-sheet {
    display: none;
}

.sl-quick-groups {
    display: grid;
    gap: 20px;
}

.sl-quick-group h3 {
    margin: 0 0 9px;
    color: var(--sl-muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sl-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.sl-quick-grid button {
    display: grid;
    min-width: 0;
    min-height: 82px;
    padding: 13px;
    align-content: center;
    justify-items: start;
    gap: 5px;
    border: 1px solid var(--sl-border);
    border-radius: 14px;
    background: var(--sl-surface-soft);
    color: var(--sl-text);
    text-align: left;
}

.sl-quick-grid span {
    font-size: 12px;
    font-weight: 760;
}

.sl-quick-grid small {
    color: var(--sl-muted);
    font-size: 9px;
}

@media (max-width: 980px) {
    .sl-mobile-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .sl-mobile-nav .sl-mobile-primary {
        position: relative;
        margin-top: -18px;
        min-height: 58px;
        border-radius: 18px;
        background: var(--sl-blue);
        color: #fff;
        box-shadow: 0 10px 22px rgba(20, 88, 216, .28);
    }

    .sl-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 65;
        background: rgba(0, 0, 0, .48);
    }

    body.sl-quick-input-open .sl-sheet-backdrop {
        display: block;
    }

    .sl-bottom-sheet {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 70;
        display: block;
        max-height: min(82vh, 720px);
        padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
        overflow-y: auto;
        border: 1px solid var(--sl-border);
        border-bottom: 0;
        border-radius: 24px 24px 0 0;
        background: var(--sl-surface);
        box-shadow: 0 -20px 55px rgba(0, 0, 0, .22);
        transform: translateY(105%);
        transition: transform .22s ease;
    }

    body.sl-quick-input-open .sl-bottom-sheet {
        transform: translateY(0);
    }

    .sl-sheet-handle {
        width: 42px;
        height: 4px;
        margin: 2px auto 15px;
        border-radius: 999px;
        background: var(--sl-border);
    }

    .sl-sheet-heading {
        display: flex;
        margin-bottom: 18px;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
    }

    .sl-sheet-heading h2 {
        margin: 0;
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .sl-context-badge {
        display: none;
    }
}

/* SLV2-0D2B — Sidebar State Responsive */
.sl-desktop-only {
    display: grid;
}

.sl-sidebar-state-toggle {
    color: var(--sl-muted);
}

.sl-sidebar-state-toggle:hover {
    color: var(--sl-blue);
}

@media (min-width: 981px) {
    html[data-sidebar-state] .sl-app-shell {
        transition: grid-template-columns .2s ease;
    }

    html[data-sidebar-state] .sl-sidebar {
        transition:
            transform .2s ease,
            opacity .16s ease,
            padding .2s ease,
            border-color .2s ease;
    }

    html[data-sidebar-state="collapsed"] .sl-app-shell {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    html[data-sidebar-state="collapsed"] .sl-sidebar {
        padding-right: 10px;
        padding-left: 10px;
    }

    html[data-sidebar-state="collapsed"] .sl-sidebar-brand {
        padding-right: 0;
        padding-left: 0;
        justify-content: center;
    }

    html[data-sidebar-state="collapsed"] .sl-sidebar-brand > div:not(.sl-brand-mark),
    html[data-sidebar-state="collapsed"] .sl-workspace-card,
    html[data-sidebar-state="collapsed"] .sl-sidebar-footer,
    html[data-sidebar-state="collapsed"] .sl-nav-item b,
    html[data-sidebar-state="collapsed"] .sl-nav-group > summary b,
    html[data-sidebar-state="collapsed"] .sl-nav-count,
    html[data-sidebar-state="collapsed"] .sl-nav-chevron,
    html[data-sidebar-state="collapsed"] .sl-nav-children {
        display: none !important;
    }

    html[data-sidebar-state="collapsed"] .sl-registry-nav {
        gap: 6px;
    }

    html[data-sidebar-state="collapsed"] .sl-nav-item,
    html[data-sidebar-state="collapsed"] .sl-nav-group > summary {
        width: 48px;
        min-height: 46px;
        margin-right: auto;
        margin-left: auto;
        padding: 0;
        justify-content: center;
    }

    html[data-sidebar-state="collapsed"] .sl-nav-item .sl-svg-icon,
    html[data-sidebar-state="collapsed"] .sl-nav-group > summary .sl-svg-icon {
        width: 19px;
        height: 19px;
    }

    html[data-sidebar-state="collapsed"] .sl-nav-group[open] > summary {
        background: var(--sl-surface-soft);
        color: var(--sl-text);
    }

    html[data-sidebar-state="hidden"] .sl-app-shell {
        grid-template-columns: 0 minmax(0, 1fr);
    }

    html[data-sidebar-state="hidden"] .sl-sidebar {
        width: 0;
        min-width: 0;
        padding: 0;
        overflow: hidden;
        border-right-color: transparent;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-100%);
    }

    html[data-sidebar-state="hidden"] .sl-sidebar * {
        pointer-events: none;
    }
}

@media (max-width: 980px) {
    .sl-desktop-only {
        display: none !important;
    }
}

/* SLV2-0D2C — Header Menu Dedup */
.sl-sidebar-state-toggle-left {
    flex: 0 0 auto;
    margin-right: 2px;
    color: var(--sl-muted);
}

.sl-sidebar-state-toggle-left:hover {
    color: var(--sl-blue);
}

@media (max-width: 980px) {
    .sl-topbar-title {
        gap: 0;
    }
}

/* SLV2-0E1 — Global UI Primitives Core */
.sl-ui-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sl-ui-page-header {
    display: flex;
    min-width: 0;
    margin-bottom: 18px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.sl-ui-page-header-copy {
    min-width: 0;
}

.sl-ui-page-header h2 {
    margin: 0;
    color: var(--sl-text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.sl-ui-page-header-copy > p:not(.sl-eyebrow) {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--sl-muted);
    font-size: 13px;
    line-height: 1.55;
}

.sl-ui-page-header-actions,
.sl-ui-panel-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.sl-ui-panel {
    min-width: 0;
    border: 1px solid var(--sl-border);
    border-radius: var(--sl-radius);
    background: var(--sl-surface);
    box-shadow: 0 8px 28px rgba(23, 32, 51, .045);
}

.sl-ui-panel-header {
    display: flex;
    min-width: 0;
    padding: 21px 22px 16px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--sl-border);
}

.sl-ui-panel-header > div:first-child {
    min-width: 0;
}

.sl-ui-panel-header h3 {
    margin: 0;
    color: var(--sl-text);
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.sl-ui-panel-header p {
    margin: 5px 0 0;
    color: var(--sl-muted);
    font-size: 12px;
    line-height: 1.5;
}

.sl-ui-panel-body {
    min-width: 0;
    padding: 22px;
}

.sl-ui-panel.is-compact .sl-ui-panel-header {
    padding: 16px 18px 12px;
}

.sl-ui-panel.is-compact .sl-ui-panel-body {
    padding: 18px;
}

.sl-ui-button {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform .16s ease,
        border-color .16s ease,
        background-color .16s ease,
        color .16s ease,
        box-shadow .16s ease;
}

.sl-ui-button:hover:not(:disabled):not(.is-disabled) {
    transform: translateY(-1px);
}

.sl-ui-button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(20, 88, 216, .14);
}

.sl-ui-button.is-sm {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
}

.sl-ui-button.is-md {
    min-height: 44px;
    padding: 0 16px;
    font-size: 12px;
}

.sl-ui-button.is-lg {
    min-height: 50px;
    padding: 0 20px;
    font-size: 13px;
}

.sl-ui-button.is-primary {
    background: linear-gradient(
        135deg,
        var(--sl-blue),
        var(--sl-blue-dark)
    );
    color: #fff;
    box-shadow: 0 10px 22px rgba(20, 88, 216, .20);
}

.sl-ui-button.is-secondary {
    border-color: var(--sl-border);
    background: var(--sl-surface);
    color: var(--sl-text);
}

.sl-ui-button.is-danger {
    background: var(--sl-danger);
    color: #fff;
}

.sl-ui-button.is-ghost {
    background: transparent;
    color: var(--sl-muted);
}

.sl-ui-button:disabled,
.sl-ui-button.is-disabled {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sl-ui-badge {
    display: inline-flex;
    min-height: 26px;
    padding: 0 9px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.sl-ui-badge.is-neutral {
    border-color: var(--sl-border);
    background: var(--sl-surface-soft);
    color: var(--sl-muted);
}

.sl-ui-badge.is-info {
    background: rgba(20, 88, 216, .11);
    color: var(--sl-blue);
}

.sl-ui-badge.is-success {
    background: rgba(19, 121, 91, .11);
    color: var(--sl-success);
}

.sl-ui-badge.is-warning {
    background: rgba(197, 128, 0, .13);
    color: #9a6400;
}

.sl-ui-badge.is-danger {
    background: rgba(194, 52, 52, .11);
    color: var(--sl-danger);
}

.sl-ui-form-grid {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.sl-ui-form-grid.cols-auto {
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 240px), 1fr)
    );
}

.sl-ui-form-grid.cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.sl-ui-form-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sl-ui-form-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sl-ui-form-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sl-ui-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 8px;
}

.sl-ui-field > label {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 4px;
    color: var(--sl-text);
    font-size: 12px;
    font-weight: 780;
}

.sl-ui-field > label b {
    color: var(--sl-danger);
    font-size: 12px;
}

.sl-ui-field-control {
    min-width: 0;
}

.sl-ui-field-control > input,
.sl-ui-field-control > select,
.sl-ui-field-control > textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    outline: 0;
    background: var(--sl-surface-soft);
    color: var(--sl-text);
    font-size: 16px;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background-color .16s ease;
}

.sl-ui-field-control > input,
.sl-ui-field-control > select {
    min-height: 46px;
    padding: 0 13px;
}

.sl-ui-field-control > textarea {
    min-height: 104px;
    padding: 12px 13px;
    resize: vertical;
}

.sl-ui-field-control > input:focus,
.sl-ui-field-control > select:focus,
.sl-ui-field-control > textarea:focus {
    border-color: var(--sl-blue);
    background: var(--sl-surface);
    box-shadow: 0 0 0 4px rgba(20, 88, 216, .12);
}

.sl-ui-field.has-error .sl-ui-field-control > input,
.sl-ui-field.has-error .sl-ui-field-control > select,
.sl-ui-field.has-error .sl-ui-field-control > textarea {
    border-color: var(--sl-danger);
}

.sl-ui-field-hint,
.sl-ui-field-error {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
}

.sl-ui-field-hint {
    color: var(--sl-muted);
}

.sl-ui-field-error {
    color: var(--sl-danger);
}

.sl-ui-action-bar {
    display: flex;
    min-width: 0;
    padding: 14px 0 0;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.sl-ui-action-bar.align-start {
    justify-content: flex-start;
}

.sl-ui-action-bar.align-between {
    justify-content: space-between;
}

.sl-ui-action-bar.align-end {
    justify-content: flex-end;
}

.sl-ui-action-bar.is-sticky {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 18px -22px -22px;
    padding: 13px 22px calc(13px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--sl-border);
    background: color-mix(
        in srgb,
        var(--sl-surface) 94%,
        transparent
    );
    backdrop-filter: blur(16px);
}

.sl-ui-empty-state {
    display: grid;
    min-height: 240px;
    padding: 28px 20px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.sl-ui-empty-state-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 13px;
    place-items: center;
    border-radius: 16px;
    background: rgba(20, 88, 216, .10);
    color: var(--sl-blue);
}

.sl-ui-empty-state h3 {
    margin: 0;
    color: var(--sl-text);
    font-size: 17px;
    letter-spacing: -.02em;
}

.sl-ui-empty-state p {
    max-width: 440px;
    margin: 7px 0 0;
    color: var(--sl-muted);
    font-size: 12px;
    line-height: 1.55;
}

.sl-ui-empty-state-actions {
    display: flex;
    margin-top: 16px;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .sl-ui-form-grid.cols-3,
    .sl-ui-form-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sl-ui-page-header {
        margin-bottom: 14px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .sl-ui-page-header h2 {
        font-size: 25px;
    }

    .sl-ui-page-header-actions {
        justify-content: flex-start;
    }

    .sl-ui-panel-header {
        padding: 17px 16px 13px;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .sl-ui-panel-actions {
        justify-content: flex-start;
    }

    .sl-ui-panel-body,
    .sl-ui-panel.is-compact .sl-ui-panel-body {
        padding: 16px;
    }

    .sl-ui-panel.is-compact .sl-ui-panel-header {
        padding: 15px 16px 12px;
    }

    .sl-ui-form-grid.cols-2,
    .sl-ui-form-grid.cols-3,
    .sl-ui-form-grid.cols-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-ui-action-bar {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .sl-ui-action-bar .sl-ui-button {
        width: 100%;
    }

    .sl-ui-action-bar.is-sticky {
        margin: 16px -16px -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }
}

/* SLV2-0E2 — App Identity + Branding Registry */
.sl-brand-logo-image {
    display: block;
    max-width: 100%;
    object-fit: contain;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

.sl-brand-logo-fallback {
    flex: 0 0 auto;
}

.sl-branding-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sl-branding-section {
    margin-top: 16px;
}

.sl-branding-identity {
    display: flex;
    min-width: 0;
    min-height: 150px;
    align-items: center;
    gap: 22px;
}

.sl-branding-identity > div:last-child {
    min-width: 0;
}

.sl-branding-identity h3,
.sl-branding-preview h3 {
    margin: 0;
    color: var(--sl-text);
    font-size: 22px;
    letter-spacing: -.035em;
}

.sl-branding-identity p,
.sl-branding-preview p {
    margin: 7px 0 0;
    color: var(--sl-muted);
    font-size: 12px;
    line-height: 1.55;
}

.sl-branding-badges {
    display: flex;
    margin-top: 13px;
    gap: 7px;
    flex-wrap: wrap;
}

.sl-branding-preview {
    display: grid;
    min-height: 250px;
    padding: 20px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.sl-branding-preview .sl-brand-logo-image,
.sl-branding-preview .sl-brand-logo-fallback {
    margin-bottom: 18px;
}

.sl-about-list {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.sl-about-list > div {
    display: grid;
    min-width: 0;
    padding: 13px 0;
    gap: 5px;
    border-bottom: 1px solid var(--sl-border);
}

.sl-about-list span {
    color: var(--sl-muted);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.sl-about-list strong {
    overflow-wrap: anywhere;
    color: var(--sl-text);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.45;
}

.sl-color-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sl-color-value i {
    display: block;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
}

@media (max-width: 760px) {
    .sl-branding-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-about-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-branding-identity {
        min-height: 120px;
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}

/* SLV2-0E3 — Global Toast Notification */
.sl-toast-region {
    position: fixed;
    top: calc(76px + env(safe-area-inset-top));
    right: 16px;
    z-index: 90;
    display: grid;
    width: min(360px, calc(100vw - 32px));
    gap: 8px;
    pointer-events: none;
}

.sl-login-page .sl-toast-region {
    top: calc(16px + env(safe-area-inset-top));
}

.sl-toast {
    --sl-toast-tone: var(--sl-blue, #1458d8);
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: start;
    gap: 9px;
    padding: 11px 10px 11px 11px;
    border: 1px solid color-mix(
        in srgb,
        var(--sl-toast-tone) 25%,
        var(--sl-border)
    );
    border-radius: 13px;
    background: color-mix(
        in srgb,
        var(--sl-surface) 96%,
        transparent
    );
    box-shadow:
        0 14px 34px rgba(20, 31, 50, .16),
        inset 3px 0 0 var(--sl-toast-tone);
    color: var(--sl-text);
    pointer-events: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: sl-toast-enter 180ms ease-out both;
}

.sl-toast.is-success {
    --sl-toast-tone: var(--sl-success);
}

.sl-toast.is-error {
    --sl-toast-tone: var(--sl-danger);
}

.sl-toast.is-warning {
    --sl-toast-tone: #b96b08;
}

.sl-toast.is-info {
    --sl-toast-tone: var(--sl-blue, #1458d8);
}

.sl-toast.is-leaving {
    animation: sl-toast-leave 160ms ease-in both;
}

.sl-toast-icon {
    display: grid;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: color-mix(
        in srgb,
        var(--sl-toast-tone) 12%,
        transparent
    );
    color: var(--sl-toast-tone);
    place-items: center;
}

.sl-toast-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sl-toast-content {
    min-width: 0;
    padding-top: 1px;
}

.sl-toast-title {
    display: block;
    margin: 0;
    color: var(--sl-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.sl-toast-message {
    display: block;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    color: var(--sl-muted);
    font-size: 11px;
    line-height: 1.45;
}

.sl-toast-close {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sl-muted);
    cursor: pointer;
    place-items: center;
}

.sl-toast-close:hover,
.sl-toast-close:focus-visible {
    background: var(--sl-surface-soft);
    color: var(--sl-text);
}

.sl-toast-close svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.sl-toast-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: color-mix(
        in srgb,
        var(--sl-toast-tone) 16%,
        transparent
    );
    transform-origin: left center;
}

.sl-toast:not(.is-persistent) .sl-toast-progress::after {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--sl-toast-tone);
    content: "";
    transform-origin: left center;
    animation:
        sl-toast-progress
        var(--sl-toast-duration, 4200ms)
        linear
        forwards;
}

.sl-toast.is-paused .sl-toast-progress::after {
    animation-play-state: paused;
}

.sl-toast.is-persistent .sl-toast-progress {
    display: none;
}

@keyframes sl-toast-enter {
    from {
        opacity: 0;
        transform: translate3d(16px, -4px, 0) scale(.98);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes sl-toast-leave {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate3d(14px, -3px, 0) scale(.98);
    }
}

@media (max-width: 760px) {
    .sl-toast-region {
        top: calc(70px + env(safe-area-inset-top));
        right: 12px;
        left: 12px;
        width: auto;
    }

    .sl-login-page .sl-toast-region {
        top: calc(12px + env(safe-area-inset-top));
    }

    .sl-toast {
        grid-template-columns: 27px minmax(0, 1fr) 27px;
        padding: 10px 9px 10px 10px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sl-toast,
    .sl-toast.is-leaving,
    .sl-toast-progress::after {
        animation-duration: 1ms !important;
    }
}

/* SLV2-0E4 — Global Loading + Submit Guard + Confirmation */
.sl-button.is-loading,
.sl-ui-button.is-loading {
    position: relative;
    pointer-events: none;
    cursor: wait;
}

.sl-button.is-loading::before,
.sl-ui-button.is-loading::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    opacity: .82;
    animation: sl-local-spin .68s linear infinite;
}

.sl-button.is-submit-locked,
.sl-ui-button.is-submit-locked {
    pointer-events: none;
    cursor: wait;
    opacity: .64;
}

form[aria-busy="true"] {
    cursor: progress;
}

[data-loading-region] {
    position: relative;
}

[data-loading-region].is-loading {
    min-height: 48px;
}

[data-loading-region].is-loading::after {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid color-mix(
        in srgb,
        var(--sl-blue, #1458d8) 30%,
        var(--sl-border)
    );
    border-right-color: var(--sl-blue, #1458d8);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    animation: sl-local-spin .72s linear infinite;
}

@keyframes sl-local-spin {
    to {
        transform: rotate(360deg);
    }
}

.sl-confirm-layer[hidden] {
    display: none !important;
}

.sl-confirm-layer {
    position: fixed;
    inset: 0;
    z-index: 132;
    display: grid;
    padding:
        calc(20px + env(safe-area-inset-top))
        20px
        calc(20px + env(safe-area-inset-bottom));
    place-items: center;
}

.sl-confirm-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(11, 17, 29, .48);
    cursor: default;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.sl-confirm-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(420px, 100%);
    max-height: min(680px, calc(100vh - 40px));
    overflow: auto;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--sl-border);
    border-radius: 18px;
    background: var(--sl-surface);
    box-shadow: 0 24px 70px rgba(10, 19, 35, .28);
    color: var(--sl-text);
    animation: sl-confirm-enter 170ms ease-out both;
}

.sl-confirm-icon {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: color-mix(
        in srgb,
        var(--sl-blue, #1458d8) 11%,
        transparent
    );
    color: var(--sl-blue, #1458d8);
    place-items: center;
}

.sl-confirm-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sl-confirm-layer.is-danger .sl-confirm-icon {
    background: color-mix(
        in srgb,
        var(--sl-danger) 11%,
        transparent
    );
    color: var(--sl-danger);
}

.sl-confirm-layer.is-warning .sl-confirm-icon {
    background: color-mix(
        in srgb,
        #b96b08 12%,
        transparent
    );
    color: #b96b08;
}

.sl-confirm-copy {
    min-width: 0;
}

.sl-confirm-copy h2 {
    margin: 1px 0 0;
    color: var(--sl-text);
    font-size: 17px;
    font-weight: 820;
    letter-spacing: -.025em;
    line-height: 1.3;
}

.sl-confirm-copy p {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    color: var(--sl-muted);
    font-size: 12px;
    line-height: 1.55;
}

.sl-confirm-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 4px;
}

.sl-confirm-layer.is-danger [data-confirm-accept] {
    border-color: var(--sl-danger);
    background: var(--sl-danger);
    color: #fff;
}

.sl-confirm-layer.is-warning [data-confirm-accept] {
    border-color: #b96b08;
    background: #b96b08;
    color: #fff;
}

body.sl-confirm-open {
    overflow: hidden;
}

@keyframes sl-confirm-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }

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

@media (max-width: 640px) {
    .sl-confirm-layer {
        padding:
            14px
            12px
            calc(12px + env(safe-area-inset-bottom));
        align-items: end;
    }

    .sl-confirm-dialog {
        width: 100%;
        max-height: min(
            78vh,
            calc(100vh - env(safe-area-inset-top) - 20px)
        );
        padding: 17px;
        border-radius: 18px;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .sl-confirm-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .sl-confirm-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sl-confirm-actions .sl-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sl-button.is-loading::before,
    .sl-ui-button.is-loading::before,
    [data-loading-region].is-loading::after,
    .sl-confirm-dialog {
        animation-duration: 1ms !important;
    }
}

/* SLV2-0E5 — Global Form + Normalization + Validation */
.sl-ui-form-grid > *,
.sl-ui-field,
.sl-ui-field-control,
.sl-ui-field-control > *,
.sl-money-control {
    min-width: 0;
    max-width: 100%;
}

.sl-ui-field.span-full {
    grid-column: 1 / -1;
}

.sl-ui-field.span-2 {
    grid-column: span 2;
}

.sl-ui-field.span-3 {
    grid-column: span 3;
}

.sl-ui-field.span-4 {
    grid-column: span 4;
}

.sl-ui-field.is-disabled {
    opacity: .62;
}

.sl-ui-field.is-readonly .sl-ui-field-control > input,
.sl-ui-field.is-readonly .sl-ui-field-control > select,
.sl-ui-field.is-readonly .sl-ui-field-control > textarea,
.sl-ui-field-control > input:read-only,
.sl-ui-field-control > textarea:read-only {
    background: color-mix(
        in srgb,
        var(--sl-surface-soft) 82%,
        var(--sl-border)
    );
    color: var(--sl-muted);
}

.sl-ui-field-control > input:disabled,
.sl-ui-field-control > select:disabled,
.sl-ui-field-control > textarea:disabled,
.sl-money-display:disabled {
    cursor: not-allowed;
    opacity: .68;
}

.sl-ui-field-control > input:not(
    [type="checkbox"]
):not(
    [type="radio"]
):not(
    [type="hidden"]
),
.sl-ui-field-control > select,
.sl-ui-field-control > textarea,
.sl-money-display {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
}

.sl-ui-field-control input[type="date"],
.sl-ui-field-control input[type="datetime-local"],
.sl-ui-field-control input[type="time"],
.sl-ui-field-control input[type="month"],
.sl-ui-field-control input[type="week"] {
    min-width: 0;
    max-width: 100%;
    text-align: left;
    -webkit-appearance: auto;
    appearance: auto;
}

.sl-ui-field-control input[type="date"]::-webkit-date-and-time-value,
.sl-ui-field-control input[type="datetime-local"]::-webkit-date-and-time-value,
.sl-ui-field-control input[type="time"]::-webkit-date-and-time-value,
.sl-ui-field-control input[type="month"]::-webkit-date-and-time-value,
.sl-ui-field-control input[type="week"]::-webkit-date-and-time-value {
    min-height: 1.25em;
    text-align: left;
}

.sl-money-control {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    background: var(--sl-surface-soft);
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background-color .16s ease;
}

.sl-money-control:focus-within {
    border-color: var(--sl-blue);
    background: var(--sl-surface);
    box-shadow: 0 0 0 3px rgba(20, 88, 216, .12);
}

.sl-ui-field.has-error .sl-money-control {
    border-color: var(--sl-danger);
    box-shadow: 0 0 0 3px rgba(194, 52, 52, .09);
}

.sl-money-prefix {
    display: inline-flex;
    min-height: 46px;
    padding: 0 0 0 13px;
    align-items: center;
    color: var(--sl-muted);
    font-size: 13px;
    font-weight: 780;
    white-space: nowrap;
}

.sl-money-display {
    min-height: 46px;
    padding: 0 13px 0 7px;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: var(--sl-text);
    box-shadow: none !important;
    font-variant-numeric: tabular-nums;
}

.sl-money-display::placeholder {
    color: color-mix(
        in srgb,
        var(--sl-muted) 66%,
        transparent
    );
}

.sl-validation-summary {
    display: grid;
    margin: 0 0 16px;
    padding: 13px 14px;
    gap: 7px;
    border: 1px solid color-mix(
        in srgb,
        var(--sl-danger) 30%,
        var(--sl-border)
    );
    border-radius: 12px;
    background: color-mix(
        in srgb,
        var(--sl-danger) 7%,
        var(--sl-surface)
    );
    color: var(--sl-text);
}

.sl-validation-summary strong {
    color: var(--sl-danger);
    font-size: 12px;
    font-weight: 820;
}

.sl-validation-summary ul {
    display: grid;
    margin: 0;
    padding: 0 0 0 17px;
    gap: 4px;
}

.sl-validation-summary li {
    color: var(--sl-muted);
    font-size: 11px;
    line-height: 1.45;
}

.sl-ui-field-error.is-client-error {
    display: block;
}

.sl-ui-field-control [aria-invalid="true"] {
    border-color: var(--sl-danger);
}

@media (max-width: 860px) {
    .sl-ui-field.span-3,
    .sl-ui-field.span-4 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .sl-ui-field.span-2,
    .sl-ui-field.span-3,
    .sl-ui-field.span-4,
    .sl-ui-field.span-full {
        grid-column: 1 / -1;
    }

    .sl-ui-field-control > input:not(
        [type="checkbox"]
    ):not(
        [type="radio"]
    ):not(
        [type="hidden"]
    ),
    .sl-ui-field-control > select,
    .sl-ui-field-control > textarea,
    .sl-money-display {
        font-size: 16px !important;
    }
}

/* SLV2-0E6 — Global DataTable + Compact Filter + Pagination */
.sl-ui-data-region,
.sl-ui-table-scroll,
.sl-ui-data-table,
.sl-ui-responsive-list,
.sl-ui-table-toolbar,
.sl-ui-table-filter-form {
    min-width: 0;
    max-width: 100%;
}

.sl-ui-data-region {
    position: relative;
    width: 100%;
}

.sl-ui-data-region[aria-busy="true"] {
    cursor: progress;
}

.sl-ui-data-region[aria-busy="true"] .sl-ui-table-scroll,
.sl-ui-data-region[aria-busy="true"] .sl-ui-responsive-list,
.sl-ui-data-region[aria-busy="true"] .sl-ui-pagination {
    opacity: .58;
    pointer-events: none;
}

.sl-ui-table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--sl-border);
    border-radius: 14px;
    background: var(--sl-surface);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.sl-ui-data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--sl-text);
    font-size: 12px;
}

.sl-ui-data-table th,
.sl-ui-data-table td {
    min-width: 0;
    padding: 11px 13px;
    border-bottom: 1px solid var(--sl-border);
    text-align: left;
    vertical-align: middle;
}

.sl-ui-data-table th {
    background: var(--sl-surface-soft);
    color: var(--sl-muted);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sl-ui-data-region.has-sticky-header thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.sl-ui-data-table tbody tr:last-child td {
    border-bottom: 0;
}

.sl-ui-data-region.is-striped tbody tr:nth-child(even) td {
    background: color-mix(
        in srgb,
        var(--sl-surface-soft) 54%,
        transparent
    );
}

.sl-ui-data-table tbody tr:hover td {
    background: color-mix(
        in srgb,
        var(--sl-blue) 4%,
        var(--sl-surface)
    );
}

.sl-ui-table-cell.align-center {
    text-align: center;
}

.sl-ui-table-cell.align-end,
.sl-ui-table-cell.is-numeric {
    text-align: right;
}

.sl-ui-table-cell.is-numeric {
    font-variant-numeric: tabular-nums;
}

.sl-ui-table-cell.is-nowrap {
    white-space: nowrap;
}

.sl-ui-table-cell.is-actions {
    width: 1%;
    white-space: nowrap;
}

.sl-ui-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

.sl-ui-sort-link svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .5;
}

.sl-ui-table-cell.sort-asc .sl-ui-sort-link svg {
    transform: rotate(180deg);
}

.sl-ui-table-cell.is-sorted .sl-ui-sort-link {
    color: var(--sl-blue);
}

.sl-ui-table-cell.is-sorted .sl-ui-sort-link svg {
    opacity: 1;
}

.sl-ui-table-toolbar {
    width: 100%;
    margin: 0 0 11px;
}

.sl-ui-table-filter-form {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.sl-ui-table-toolbar-main {
    display: flex;
    min-width: 0;
    gap: 7px;
    align-items: center;
}

.sl-ui-table-search {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
}

.sl-ui-table-search svg {
    position: absolute;
    left: 11px;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--sl-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    pointer-events: none;
}

.sl-ui-table-search input {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 11px 0 34px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-surface);
    color: var(--sl-text);
    font-size: 13px;
    outline: 0;
}

.sl-ui-table-search input:focus {
    border-color: var(--sl-blue);
    box-shadow: 0 0 0 3px rgba(20, 88, 216, .1);
}

.sl-ui-filter-toggle {
    display: none;
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-surface);
    color: var(--sl-text);
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.sl-ui-filter-toggle svg,
.sl-ui-filter-close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.sl-ui-filter-toggle span {
    font-size: 11px;
    font-weight: 760;
}

.sl-ui-filter-toggle b {
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--sl-blue);
    color: #fff;
    font-size: 9px;
    place-items: center;
}

.sl-ui-filter-backdrop {
    display: none;
}

.sl-ui-filter-sheet {
    display: flex;
    min-width: 0;
    gap: 8px;
    align-items: center;
}

.sl-ui-filter-sheet-header {
    display: none;
}

.sl-ui-filter-fields {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    gap: 7px;
    align-items: center;
    justify-content: flex-end;
}

.sl-ui-filter-fields > * {
    min-width: 0;
}

.sl-ui-filter-fields input,
.sl-ui-filter-fields select {
    width: auto;
    min-width: 110px;
    max-width: 180px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-surface);
    color: var(--sl-text);
    font-size: 12px;
    outline: 0;
}

.sl-ui-filter-fields input[type="date"] {
    min-width: 138px;
}

.sl-ui-filter-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
}

.sl-ui-filter-reset {
    display: inline-flex;
    height: 34px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    color: var(--sl-muted);
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

.sl-ui-filter-close {
    display: none;
}

.sl-ui-pagination {
    display: flex;
    min-width: 0;
    margin-top: 11px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sl-ui-pagination-summary {
    margin: 0;
    color: var(--sl-muted);
    font-size: 10px;
}

.sl-ui-pagination-links {
    display: flex;
    min-width: 0;
    gap: 4px;
    align-items: center;
}

.sl-ui-pagination-links > a,
.sl-ui-pagination-links > span {
    display: grid;
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    border: 1px solid var(--sl-border);
    border-radius: 9px;
    background: var(--sl-surface);
    color: var(--sl-text);
    font-size: 10px;
    font-weight: 760;
    text-decoration: none;
    place-items: center;
}

.sl-ui-pagination-links > a:hover {
    border-color: color-mix(
        in srgb,
        var(--sl-blue) 44%,
        var(--sl-border)
    );
    color: var(--sl-blue);
}

.sl-ui-pagination-links > .is-current {
    border-color: var(--sl-blue);
    background: var(--sl-blue);
    color: #fff;
}

.sl-ui-pagination-links > .is-disabled,
.sl-ui-pagination-links > .is-ellipsis {
    opacity: .45;
    pointer-events: none;
}

.sl-ui-responsive-list {
    display: grid;
    width: 100%;
    gap: 10px;
}

.sl-ui-responsive-list.cols-auto {
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 260px), 1fr)
    );
}

.sl-ui-responsive-list.cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.sl-ui-responsive-list.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sl-ui-responsive-list.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sl-ui-responsive-list.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sl-ui-responsive-list.has-dividers > * {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sl-border);
}

.sl-ui-loading-state {
    display: grid;
    gap: 8px;
}

.sl-ui-skeleton-row {
    display: grid;
    min-height: 42px;
    padding: 10px 12px;
    grid-template-columns: 1.4fr .8fr .6fr;
    gap: 12px;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-surface);
    align-items: center;
}

.sl-ui-skeleton-row span {
    display: block;
    height: 9px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--sl-surface-soft) 25%,
            color-mix(
                in srgb,
                var(--sl-border) 55%,
                var(--sl-surface)
            ) 50%,
            var(--sl-surface-soft) 75%
        );
    background-size: 200% 100%;
    animation: sl-data-skeleton 1.2s ease-in-out infinite;
}

.sl-ui-error-state {
    display: grid;
    min-height: 150px;
    padding: 24px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 13px;
    border: 1px solid color-mix(
        in srgb,
        var(--sl-danger) 24%,
        var(--sl-border)
    );
    border-radius: 14px;
    background: color-mix(
        in srgb,
        var(--sl-danger) 5%,
        var(--sl-surface)
    );
    align-items: center;
}

.sl-ui-error-state-icon {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: color-mix(
        in srgb,
        var(--sl-danger) 10%,
        transparent
    );
    color: var(--sl-danger);
    place-items: center;
}

.sl-ui-error-state-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sl-ui-error-state h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 820;
}

.sl-ui-error-state p {
    margin: 4px 0 0;
    color: var(--sl-muted);
    font-size: 11px;
    line-height: 1.45;
}

.sl-ui-error-retry {
    display: inline-flex;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--sl-border);
    border-radius: 10px;
    background: var(--sl-surface);
    color: var(--sl-text);
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 780;
    text-decoration: none;
}

@keyframes sl-data-skeleton {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

@media (max-width: 980px) {
    .sl-ui-table-filter-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-ui-filter-toggle {
        display: inline-flex;
    }

    .sl-ui-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 118;
        display: none;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(11, 17, 29, .42);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .sl-ui-table-toolbar.is-filter-open
        .sl-ui-filter-backdrop {
        display: block;
    }

    .sl-ui-filter-sheet {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 119;
        display: grid;
        max-height: min(
            72vh,
            calc(100vh - env(safe-area-inset-top) - 28px)
        );
        padding:
            13px
            14px
            calc(14px + env(safe-area-inset-bottom));
        gap: 12px;
        border: 1px solid var(--sl-border);
        border-bottom: 0;
        border-radius: 18px 18px 0 0;
        background: var(--sl-surface);
        box-shadow: 0 -18px 54px rgba(10, 19, 35, .22);
        overflow-y: auto;
        transform: translateY(105%);
        transition: transform .2s ease;
    }

    .sl-ui-table-toolbar.is-filter-open
        .sl-ui-filter-sheet {
        transform: translateY(0);
    }

    .sl-ui-filter-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .sl-ui-filter-sheet-header > div {
        display: flex;
        min-width: 0;
        gap: 7px;
        align-items: baseline;
    }

    .sl-ui-filter-sheet-header strong {
        font-size: 14px;
        font-weight: 820;
    }

    .sl-ui-filter-sheet-header small {
        color: var(--sl-muted);
        font-size: 10px;
    }

    .sl-ui-filter-close {
        display: grid;
        width: 32px;
        height: 32px;
        border: 1px solid var(--sl-border);
        border-radius: 10px;
        background: var(--sl-surface-soft);
        color: var(--sl-text);
        cursor: pointer;
        place-items: center;
    }

    .sl-ui-filter-fields {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
        gap: 9px;
        justify-content: stretch;
    }

    .sl-ui-filter-fields > * {
        width: 100%;
        max-width: none;
    }

    .sl-ui-filter-fields input,
    .sl-ui-filter-fields select {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 42px;
        font-size: 16px;
    }

    .sl-ui-filter-actions {
        position: sticky;
        bottom: calc(-14px - env(safe-area-inset-bottom));
        margin:
            2px
            -14px
            calc(-14px - env(safe-area-inset-bottom));
        padding:
            10px
            14px
            calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--sl-border);
        background: color-mix(
            in srgb,
            var(--sl-surface) 96%,
            transparent
        );
        justify-content: flex-end;
    }

    body.sl-filter-sheet-open {
        overflow: hidden;
    }

    .sl-ui-responsive-list.cols-3,
    .sl-ui-responsive-list.cols-4 {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 760px) {
    .sl-ui-data-region.mode-auto .sl-ui-table-scroll,
    .sl-ui-data-region.mode-cards .sl-ui-table-scroll {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .sl-ui-data-region.mode-auto .sl-ui-data-table,
    .sl-ui-data-region.mode-cards .sl-ui-data-table {
        display: block;
        min-width: 0;
    }

    .sl-ui-data-region.mode-auto thead,
    .sl-ui-data-region.mode-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .sl-ui-data-region.mode-auto tbody,
    .sl-ui-data-region.mode-cards tbody {
        display: grid;
        gap: 9px;
    }

    .sl-ui-data-region.mode-auto tbody tr,
    .sl-ui-data-region.mode-cards tbody tr {
        display: grid;
        min-width: 0;
        padding: 11px 12px;
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
        gap: 8px 12px;
        border: 1px solid var(--sl-border);
        border-radius: 13px;
        background: var(--sl-surface);
    }

    .sl-ui-data-region.mode-auto tbody td,
    .sl-ui-data-region.mode-cards tbody td {
        display: grid;
        min-width: 0;
        padding: 0;
        gap: 3px;
        border: 0;
        background: transparent !important;
        text-align: left;
        white-space: normal;
    }

    .sl-ui-data-region.mode-auto tbody td::before,
    .sl-ui-data-region.mode-cards tbody td::before {
        color: var(--sl-muted);
        content: attr(data-label);
        font-size: 9px;
        font-weight: 760;
        letter-spacing: .025em;
        text-transform: uppercase;
    }

    .sl-ui-data-region.mode-auto
        tbody td.priority-primary,
    .sl-ui-data-region.mode-cards
        tbody td.priority-primary,
    .sl-ui-data-region.mode-auto
        tbody td.is-actions,
    .sl-ui-data-region.mode-cards
        tbody td.is-actions {
        grid-column: 1 / -1;
    }

    .sl-ui-data-region.mode-auto
        tbody td.priority-primary,
    .sl-ui-data-region.mode-cards
        tbody td.priority-primary {
        padding-bottom: 8px;
        border-bottom: 1px solid var(--sl-border);
        font-size: 13px;
        font-weight: 780;
    }

    .sl-ui-data-region.mode-auto
        tbody td.priority-desktop,
    .sl-ui-data-region.mode-cards
        tbody td.priority-desktop {
        display: none;
    }

    .sl-ui-data-region.mode-auto
        tbody td.is-numeric,
    .sl-ui-data-region.mode-cards
        tbody td.is-numeric {
        text-align: left;
    }

    .sl-ui-data-region.mode-auto
        tbody td.is-actions,
    .sl-ui-data-region.mode-cards
        tbody td.is-actions {
        display: flex;
        padding-top: 8px;
        border-top: 1px solid var(--sl-border);
        gap: 7px;
        align-items: center;
        justify-content: flex-end;
    }

    .sl-ui-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .sl-ui-pagination-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .sl-ui-responsive-list.cols-2,
    .sl-ui-responsive-list.cols-3,
    .sl-ui-responsive-list.cols-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-ui-error-state {
        min-height: 0;
        padding: 18px;
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .sl-ui-error-state-icon {
        width: 38px;
        height: 38px;
    }

    .sl-ui-error-retry {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .sl-ui-filter-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-ui-table-search input {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sl-ui-skeleton-row span,
    .sl-ui-filter-sheet {
        animation-duration: 1ms !important;
        transition-duration: 1ms !important;
    }
}

/* SLV2-0E7 — Global Overlay + Detail Expansion */
.sl-overlay-layer[hidden] {
    display: none !important;
}

.sl-overlay-layer {
    position: fixed;
    inset: 0;
    z-index: 124;
    display: grid;
    min-width: 0;
    padding:
        calc(18px + env(safe-area-inset-top))
        18px
        calc(18px + env(safe-area-inset-bottom));
    pointer-events: none;
    place-items: center;
}

.sl-overlay-layer.is-open {
    pointer-events: auto;
}

.sl-overlay-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(8, 15, 28, .52);
    opacity: 0;
    cursor: default;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity .18s ease;
}

.sl-overlay-layer.is-open .sl-overlay-backdrop {
    opacity: 1;
}

.sl-overlay-panel {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: min(
        760px,
        calc(
            100dvh
            - env(safe-area-inset-top)
            - env(safe-area-inset-bottom)
            - 36px
        )
    );
    grid-template-rows: auto minmax(0, 1fr) auto;
    border: 1px solid var(--sl-border);
    border-radius: 18px;
    background: var(--sl-surface);
    box-shadow: 0 28px 88px rgba(8, 18, 36, .3);
    color: var(--sl-text);
    opacity: 0;
    outline: 0;
    overflow: hidden;
    transform: translateY(10px) scale(.988);
    transition:
        opacity .18s ease,
        transform .18s ease;
}

.sl-overlay-layer.is-open .sl-overlay-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sl-modal-layer.size-sm .sl-modal-panel {
    max-width: 420px;
}

.sl-modal-layer.size-md .sl-modal-panel {
    max-width: 600px;
}

.sl-modal-layer.size-lg .sl-modal-panel {
    max-width: 820px;
}

.sl-modal-layer.size-xl .sl-modal-panel {
    max-width: 1080px;
}

.sl-overlay-header {
    display: flex;
    min-width: 0;
    padding: 15px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--sl-border);
    background: color-mix(
        in srgb,
        var(--sl-surface) 96%,
        transparent
    );
    align-items: flex-start;
    justify-content: space-between;
}

.sl-overlay-heading {
    min-width: 0;
}

.sl-overlay-heading h2 {
    margin: 0;
    color: var(--sl-text);
    font-size: 15px;
    font-weight: 840;
    line-height: 1.25;
}

.sl-overlay-heading p {
    margin: 4px 0 0;
    color: var(--sl-muted);
    font-size: 11px;
    line-height: 1.45;
}

.sl-overlay-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--sl-border);
    border-radius: 11px;
    background: var(--sl-surface-soft);
    color: var(--sl-text);
    cursor: pointer;
    place-items: center;
}

.sl-overlay-close:hover {
    border-color: color-mix(
        in srgb,
        var(--sl-blue) 40%,
        var(--sl-border)
    );
    color: var(--sl-blue);
}

.sl-overlay-close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.sl-overlay-body {
    min-width: 0;
    padding: 16px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.sl-overlay-footer {
    display: flex;
    min-width: 0;
    padding:
        11px
        16px
        calc(11px + env(safe-area-inset-bottom));
    gap: 8px;
    border-top: 1px solid var(--sl-border);
    background: color-mix(
        in srgb,
        var(--sl-surface) 96%,
        transparent
    );
    align-items: center;
    justify-content: flex-end;
}

.sl-drawer-layer {
    padding: 0;
    place-items: stretch;
}

.sl-drawer-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    max-height: none;
    border-radius: 0;
    transform: translateX(102%);
}

.sl-drawer-layer.side-right .sl-drawer-panel {
    right: 0;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.sl-drawer-layer.side-left .sl-drawer-panel {
    left: 0;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    transform: translateX(-102%);
}

.sl-drawer-layer.size-sm .sl-drawer-panel {
    width: min(360px, 92vw);
}

.sl-drawer-layer.size-md .sl-drawer-panel {
    width: min(480px, 94vw);
}

.sl-drawer-layer.size-lg .sl-drawer-panel {
    width: min(680px, 96vw);
}

.sl-drawer-layer.is-open .sl-drawer-panel {
    transform: translateX(0);
}

.sl-drawer-panel .sl-overlay-header {
    padding-top: calc(15px + env(safe-area-inset-top));
}

.sl-bottom-sheet-layer {
    padding: 0;
    place-items: end stretch;
}

.sl-bottom-sheet-panel {
    width: min(760px, 100%);
    margin-inline: auto;
    max-height: calc(
        100dvh
        - env(safe-area-inset-top)
        - 18px
    );
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(104%);
}

.sl-bottom-sheet-layer.is-open .sl-bottom-sheet-panel {
    transform: translateY(0);
}

.sl-bottom-sheet-layer.size-sm .sl-bottom-sheet-panel {
    max-height: min(
        42dvh,
        calc(100dvh - env(safe-area-inset-top) - 18px)
    );
}

.sl-bottom-sheet-layer.size-md .sl-bottom-sheet-panel {
    max-height: min(
        62dvh,
        calc(100dvh - env(safe-area-inset-top) - 18px)
    );
}

.sl-bottom-sheet-layer.size-lg .sl-bottom-sheet-panel {
    max-height: min(
        82dvh,
        calc(100dvh - env(safe-area-inset-top) - 18px)
    );
}

.sl-bottom-sheet-layer.size-full .sl-bottom-sheet-panel {
    max-height: calc(
        100dvh
        - env(safe-area-inset-top)
        - 8px
    );
}

.sl-sheet-handle {
    width: 38px;
    height: 4px;
    margin: 8px auto 1px;
    border-radius: 999px;
    background: color-mix(
        in srgb,
        var(--sl-muted) 38%,
        transparent
    );
}

body.sl-overlay-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.sl-toast-region {
    z-index: 140;
}

.sl-detail-expansion {
    min-width: 0;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    background: var(--sl-surface);
    overflow: hidden;
}

.sl-detail-expansion.tone-muted {
    background: var(--sl-surface-soft);
}

.sl-detail-expansion.tone-primary {
    border-color: color-mix(
        in srgb,
        var(--sl-blue) 26%,
        var(--sl-border)
    );
    background: color-mix(
        in srgb,
        var(--sl-blue) 4%,
        var(--sl-surface)
    );
}

.sl-detail-toggle {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 11px;
    border: 0;
    background: transparent;
    color: var(--sl-text);
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.sl-detail-toggle span {
    min-width: 0;
    font-size: 11px;
    font-weight: 780;
}

.sl-detail-toggle svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .16s ease;
}

.sl-detail-expansion.is-expanded
    .sl-detail-toggle svg {
    transform: rotate(180deg);
}

.sl-detail-panel {
    min-width: 0;
    padding: 11px;
    border-top: 1px solid var(--sl-border);
}

.sl-detail-panel[hidden] {
    display: none !important;
}

.sl-detail-balance-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 180px), 1fr)
    );
    gap: 8px;
}

.sl-detail-balance-item {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--sl-border);
    border-radius: 10px;
    background: var(--sl-surface-soft);
}

.sl-detail-balance-item span {
    display: block;
    color: var(--sl-muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.sl-detail-balance-item strong {
    display: block;
    margin-top: 4px;
    color: var(--sl-text);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
    .sl-overlay-layer {
        padding:
            calc(10px + env(safe-area-inset-top))
            10px
            calc(10px + env(safe-area-inset-bottom));
    }

    .sl-modal-layer[data-overlay-responsive="auto"] {
        padding: 0;
        place-items: end stretch;
    }

    .sl-modal-layer[data-overlay-responsive="auto"]
        .sl-modal-panel {
        width: 100%;
        max-width: none;
        max-height: calc(
            100dvh
            - env(safe-area-inset-top)
            - 12px
        );
        border-bottom: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(104%);
    }

    .sl-modal-layer[data-overlay-responsive="auto"].is-open
        .sl-modal-panel {
        transform: translateY(0);
    }

    .sl-overlay-header {
        padding: 13px 14px;
    }

    .sl-overlay-body {
        padding: 14px;
    }

    .sl-overlay-footer {
        position: sticky;
        bottom: 0;
        padding:
            10px
            14px
            calc(11px + env(safe-area-inset-bottom));
    }

    .sl-overlay-footer > * {
        min-width: 0;
    }

    .sl-detail-panel {
        padding: 10px;
    }

    .sl-detail-balance-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 420px) {
    .sl-detail-balance-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sl-overlay-backdrop,
    .sl-overlay-panel,
    .sl-detail-toggle svg {
        transition-duration: 1ms !important;
    }
}

/* SLV2-0E8 — Global Tabs + Segmented + Stepper + Wizard */
.sl-ui-tabs,
.sl-ui-tab-list,
.sl-ui-tab-panels,
.sl-ui-tab-panel,
.sl-ui-segmented,
.sl-ui-segmented-track,
.sl-ui-stepper-wrap,
.sl-ui-stepper,
.sl-ui-wizard,
.sl-ui-wizard-steps,
.sl-ui-wizard-step {
    min-width: 0;
    max-width: 100%;
}

.sl-ui-tab-list {
    display: flex;
    width: 100%;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--sl-border);
    border-radius: 13px;
    background: var(--sl-surface-soft);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sl-ui-tab-list::-webkit-scrollbar {
    display: none;
}

.sl-ui-tabs.orientation-vertical {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.sl-ui-tabs.orientation-vertical .sl-ui-tab-list {
    align-items: stretch;
    flex-direction: column;
    overflow: visible;
}

.sl-ui-tab {
    display: inline-flex;
    min-width: max-content;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--sl-muted);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 780;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.sl-ui-tab:hover {
    color: var(--sl-text);
}

.sl-ui-tab.is-active,
.sl-ui-tab[aria-selected="true"] {
    background: var(--sl-surface);
    box-shadow: 0 1px 4px rgba(9, 22, 45, .08);
    color: var(--sl-blue);
}

.sl-ui-tab.is-disabled,
.sl-ui-tab:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.sl-ui-tab:focus-visible,
.sl-ui-segment:has(input:focus-visible),
.sl-ui-step-content:focus-visible {
    outline: 2px solid color-mix(
        in srgb,
        var(--sl-blue) 72%,
        transparent
    );
    outline-offset: 2px;
}

.sl-ui-tab-panels {
    margin-top: 12px;
}

.sl-ui-tabs.orientation-vertical .sl-ui-tab-panels {
    margin-top: 0;
}

.sl-ui-tab-panel {
    min-width: 0;
    outline: 0;
}

.sl-ui-tab-panel[hidden] {
    display: none !important;
}

.sl-ui-segmented {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.sl-ui-segmented-track {
    display: inline-grid;
    width: fit-content;
    max-width: 100%;
    padding: 3px;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 3px;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    background: var(--sl-surface-soft);
    overflow-x: auto;
    scrollbar-width: none;
}

.sl-ui-segmented-track::-webkit-scrollbar {
    display: none;
}

.sl-ui-segmented.is-full .sl-ui-segmented-track {
    width: 100%;
}

.sl-ui-segment {
    position: relative;
    display: block;
    min-width: max-content;
    cursor: pointer;
}

.sl-ui-segment input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sl-ui-segment span {
    display: flex;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 9px;
    color: var(--sl-muted);
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 780;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.sl-ui-segment input:checked + span {
    background: var(--sl-surface);
    box-shadow: 0 1px 4px rgba(9, 22, 45, .08);
    color: var(--sl-blue);
}

.sl-ui-segment input:disabled + span {
    cursor: not-allowed;
    opacity: .45;
}

.sl-ui-segmented.size-sm .sl-ui-segment span {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 9px;
}

.sl-ui-stepper-wrap {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.sl-ui-stepper {
    display: flex;
    width: 100%;
    min-width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sl-ui-step {
    position: relative;
    display: flex;
    min-width: 170px;
    flex: 1 1 0;
    align-items: stretch;
}

.sl-ui-step:not(:last-child)::after {
    position: absolute;
    top: 17px;
    right: -1px;
    left: calc(50% + 21px);
    height: 2px;
    background: var(--sl-border);
    content: "";
}

.sl-ui-step.is-completed:not(:last-child)::after {
    background: color-mix(
        in srgb,
        var(--sl-success) 70%,
        var(--sl-border)
    );
}

.sl-ui-step-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 2px 12px 8px 0;
    border: 0;
    background: transparent;
    color: var(--sl-text);
    align-items: flex-start;
    gap: 9px;
    text-decoration: none;
    text-align: left;
}

button.sl-ui-step-content {
    cursor: pointer;
}

.sl-ui-step-marker {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 2px solid var(--sl-border);
    border-radius: 999px;
    background: var(--sl-surface);
    color: var(--sl-muted);
    font-size: 10px;
    font-weight: 840;
    place-items: center;
}

.sl-ui-step-marker svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sl-ui-step-copy {
    display: block;
    min-width: 0;
    padding-top: 2px;
}

.sl-ui-step-copy strong,
.sl-ui-step-copy small {
    display: block;
    min-width: 0;
}

.sl-ui-step-copy strong {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
}

.sl-ui-step-copy small {
    margin-top: 3px;
    color: var(--sl-muted);
    font-size: 9px;
    line-height: 1.35;
}

.sl-ui-step.is-current .sl-ui-step-marker {
    border-color: var(--sl-blue);
    background: var(--sl-blue);
    color: #fff;
}

.sl-ui-step.is-current .sl-ui-step-copy strong {
    color: var(--sl-blue);
}

.sl-ui-step.is-completed .sl-ui-step-marker {
    border-color: var(--sl-success);
    background: var(--sl-success);
    color: #fff;
}

.sl-ui-step.is-error .sl-ui-step-marker {
    border-color: var(--sl-danger);
    background: color-mix(
        in srgb,
        var(--sl-danger) 10%,
        var(--sl-surface)
    );
    color: var(--sl-danger);
}

.sl-ui-step.is-error .sl-ui-step-copy strong {
    color: var(--sl-danger);
}

.sl-ui-step.is-disabled {
    opacity: .45;
}

.sl-ui-stepper.is-compact .sl-ui-step {
    min-width: 125px;
}

.sl-ui-stepper.is-compact .sl-ui-step-copy small {
    display: none;
}

.sl-ui-stepper.orientation-vertical {
    display: grid;
    min-width: 0;
    gap: 0;
}

.sl-ui-stepper.orientation-vertical .sl-ui-step {
    min-width: 0;
}

.sl-ui-stepper.orientation-vertical
    .sl-ui-step:not(:last-child)::after {
    top: 35px;
    bottom: -2px;
    left: 16px;
    width: 2px;
    height: auto;
}

.sl-ui-wizard {
    min-width: 0;
}

.sl-ui-wizard-progress {
    margin-bottom: 14px;
}

.sl-ui-wizard-step[hidden] {
    display: none !important;
}

.sl-ui-wizard-step-header {
    margin-bottom: 14px;
}

.sl-ui-wizard-step-header h3 {
    margin: 0;
    color: var(--sl-text);
    font-size: 15px;
    font-weight: 830;
}

.sl-ui-wizard-step-header p {
    margin: 4px 0 0;
    color: var(--sl-muted);
    font-size: 11px;
    line-height: 1.45;
}

.sl-ui-wizard-actions-slot {
    margin-top: 16px;
}

.sl-ui-wizard-actions {
    display: flex;
    min-width: 0;
    padding-top: 11px;
    gap: 8px;
    border-top: 1px solid var(--sl-border);
    align-items: center;
    justify-content: flex-end;
}

.sl-ui-wizard-actions.is-sticky {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin:
        16px
        -16px
        -16px;
    padding:
        11px
        16px
        calc(11px + env(safe-area-inset-bottom));
    background: color-mix(
        in srgb,
        var(--sl-surface) 96%,
        transparent
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sl-ui-wizard-actions [hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .sl-ui-tabs.orientation-vertical {
        display: block;
    }

    .sl-ui-tabs.orientation-vertical .sl-ui-tab-list {
        align-items: center;
        flex-direction: row;
        overflow-x: auto;
    }

    .sl-ui-tabs.orientation-vertical .sl-ui-tab-panels {
        margin-top: 12px;
    }

    .sl-ui-tab {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 10px;
    }

    .sl-ui-segmented-track {
        width: 100%;
    }

    .sl-ui-step {
        min-width: 132px;
    }

    .sl-ui-step-copy small {
        display: none;
    }

    .sl-ui-wizard-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sl-ui-wizard-actions [data-wizard-submit] {
        grid-column: 1 / -1;
    }

    .sl-ui-wizard-actions .sl-ui-button,
    .sl-ui-wizard-actions .sl-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .sl-ui-wizard-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .sl-ui-wizard-actions [data-wizard-submit] {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sl-ui-tab,
    .sl-ui-segment span,
    .sl-ui-step-marker {
        transition-duration: 1ms !important;
    }
}

/* SLV2-1A5F1C — Global DataTable overflow containment */
.sl-app-shell,
.sl-app-main,
.sl-content,
.sl-ui-data-region,
.sl-ui-table-scroll {
    min-width: 0;
    min-inline-size: 0;
    max-width: 100%;
    max-inline-size: 100%;
    box-sizing: border-box;
}

.sl-app-main,
.sl-content {
    width: 100%;
    inline-size: 100%;
}

.sl-ui-data-region {
    width: 100%;
    inline-size: 100%;
    overflow: hidden;
}

.sl-ui-data-region.mode-scroll > .sl-ui-table-scroll,
.sl-ui-table-scroll {
    display: block;
    width: 100%;
    inline-size: 100%;
    max-width: 100%;
    max-inline-size: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.sl-ui-data-region.mode-scroll > .sl-ui-table-scroll
    > .sl-ui-data-table {
    max-width: none;
    max-inline-size: none;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        inline-size: 100%;
        max-width: 100%;
        max-inline-size: 100%;
        overflow-x: hidden;
    }

    .sl-app-shell,
    .sl-app-main,
    .sl-content {
        min-width: 0;
        min-inline-size: 0;
        width: 100%;
        inline-size: 100%;
        max-width: 100%;
        max-inline-size: 100%;
    }

    .sl-content > *,
    .sl-ui-data-region,
    .sl-ui-table-scroll {
        min-width: 0;
        min-inline-size: 0;
        max-width: 100%;
        max-inline-size: 100%;
    }

    .sl-ui-data-region.mode-scroll {
        overflow: hidden;
        contain: inline-size;
    }

    .sl-ui-data-region.mode-scroll
        > .sl-ui-table-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        touch-action: pan-x pan-y;
    }
}

/* SLV2-1H8T-X-R5-R1 — Published Platform Branding Runtime Propagation */
.sl-brand-logo-runtime {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    background: transparent;
}

.sl-brand-logo-runtime .sl-brand-logo-image {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}

.sl-brand-logo-image-dark {
    display: none;
}

html[data-theme="dark"] .sl-brand-logo-runtime.has-dark-logo .sl-brand-logo-image-light {
    display: none;
}

html[data-theme="dark"] .sl-brand-logo-image-dark {
    display: block;
}

.sl-sidebar {
    border-right-color: var(--sl-platform-sidebar-border, var(--sl-border));
    background: var(--sl-platform-sidebar-background, var(--sl-surface));
    color: var(--sl-platform-sidebar-foreground, var(--sl-text));
}

.sl-sidebar .sl-sidebar-brand strong,
.sl-sidebar .sl-workspace-card strong,
.sl-sidebar .sl-sidebar-footer span {
    color: var(--sl-platform-sidebar-foreground, var(--sl-text));
}

.sl-sidebar .sl-sidebar-brand span,
.sl-sidebar .sl-workspace-card span,
.sl-sidebar .sl-workspace-card small,
.sl-sidebar .sl-nav-label,
.sl-sidebar .sl-nav-item,
.sl-sidebar .sl-nav-group > summary,
.sl-sidebar .sl-sidebar-footer small {
    color: var(--sl-platform-sidebar-muted, var(--sl-muted));
}

.sl-sidebar .sl-nav-item svg,
.sl-sidebar .sl-nav-group > summary svg {
    color: var(--sl-platform-sidebar-icon, currentColor);
}

.sl-sidebar .sl-workspace-card {
    background: var(--sl-platform-sidebar-hover, var(--sl-surface-soft));
}

.sl-sidebar .sl-nav-item:hover,
.sl-sidebar .sl-nav-group > summary:hover,
.sl-sidebar .sl-nav-group > summary:focus-visible {
    background: var(--sl-platform-sidebar-hover, var(--sl-surface-soft));
    color: var(--sl-platform-sidebar-foreground, var(--sl-text));
}

.sl-sidebar .sl-nav-item.is-active,
.sl-sidebar .sl-nav-group.is-active > summary {
    background: var(--sl-platform-sidebar-active-background, rgba(20, 88, 216, .11));
    color: var(--sl-platform-sidebar-active-foreground, var(--sl-blue));
}

.sl-sidebar .sl-sidebar-footer {
    border-top-color: var(--sl-platform-sidebar-border, var(--sl-border));
}

.sl-sidebar .sl-panel-switcher {
    border-color: var(--sl-platform-sidebar-border, var(--sl-border));
    background: var(--sl-platform-sidebar-hover, var(--sl-surface));
}

.sl-sidebar .sl-panel-switcher button {
    color: var(--sl-platform-sidebar-muted, var(--sl-muted));
}

.sl-sidebar .sl-panel-switcher button:hover,
.sl-sidebar .sl-panel-switcher button:focus-visible {
    background: var(--sl-platform-sidebar-active-background, var(--sl-surface-soft));
    color: var(--sl-platform-sidebar-active-foreground, var(--sl-text));
}

.sl-sidebar .sl-panel-switcher button.is-active {
    background: var(--sl-platform-sidebar-active-background, rgba(20, 88, 216, .12));
    color: var(--sl-platform-sidebar-active-foreground, var(--sl-blue));
}

.sl-sidebar .sl-branch-switcher-summary {
    border-color: var(--sl-platform-sidebar-border, var(--sl-border));
    background: var(--sl-platform-sidebar-hover, var(--sl-surface));
    color: var(--sl-platform-sidebar-foreground, var(--sl-text));
}

.sl-sidebar .sl-branch-switcher-summary:hover,
.sl-sidebar .sl-branch-switcher-summary:focus-visible {
    border-color: var(--sl-platform-sidebar-foreground, var(--sl-blue));
    background: var(--sl-platform-sidebar-active-background, var(--sl-surface-soft));
}

.sl-sidebar .sl-branch-access-mode-badge {
    border-color: var(--sl-platform-sidebar-border, var(--sl-border));
}

.sl-button-primary {
    background: linear-gradient(135deg, var(--sl-blue), var(--sl-blue-dark));
}

.sl-field input:focus {
    border-color: var(--sl-blue);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--sl-blue) 13%, transparent);
}

.sl-mobile-nav .is-active {
    background: color-mix(in srgb, var(--sl-blue) 11%, transparent);
    color: var(--sl-blue);
}

/* SLV2-1H8T-X-R6 — Published sidebar nested-navigation contrast polish */
.sl-sidebar .sl-nav-children {
    border-left-color: var(--sl-platform-sidebar-border, var(--sl-border));
}

.sl-sidebar .sl-nav-child {
    color: var(--sl-platform-sidebar-muted, var(--sl-muted));
}

.sl-sidebar .sl-nav-child:hover,
.sl-sidebar .sl-nav-child:focus-visible {
    background: var(--sl-platform-sidebar-hover, var(--sl-surface-soft));
    color: var(--sl-platform-sidebar-foreground, var(--sl-text));
}

.sl-sidebar .sl-nav-child.is-active {
    background: var(--sl-platform-sidebar-active-background, rgba(20, 88, 216, .11));
    color: var(--sl-platform-sidebar-active-foreground, var(--sl-blue));
}

.sl-sidebar .sl-nav-group.is-active > summary .sl-nav-count,
.sl-sidebar .sl-nav-group.is-active > summary .sl-nav-chevron,
.sl-sidebar .sl-nav-group.is-active > summary svg {
    color: var(--sl-platform-sidebar-active-foreground, currentColor);
}

.sl-sidebar .sl-nav-group.is-active > summary .sl-nav-count {
    opacity: .76;
}

