/* Extracted from resources/css/app.css — account / dashboard shell (flat). */

.sp-dash-stack {
    display: grid;
    gap: 1.5rem;
}

.sp-dash-recent__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sp-dash-recent__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.sp-dash-recent__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.sp-dash-recent__row:hover {
    border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
    box-shadow: var(--shadow-xs);
}

.sp-app-shell {
    overflow-x: clip;
}

/* Single width owner — match public header .sp-container */
.sp-app-shell.sp-account-shell {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 1200px;
    min-height: calc(100dvh - 8rem);
    padding-block: 1.25rem 2rem;
    padding-inline: 16px;
    margin-inline: auto;
}

@media (min-width: 64rem) {
    .sp-app-shell.sp-account-shell {
        grid-template-columns: 16rem minmax(0, 1fr);
        align-items: start;
        padding-inline: 24px;
        gap: 1.5rem;
    }
}

@media (max-width: 63.99rem) {
    .sp-app-shell__nav {
        display: none;
    }
}

body.sp-account-app .sp-main--account {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.sp-account-app .sp-public-footer {
    display: none;
}

.sp-app-shell__nav,
.sp-app-shell__main {
    min-width: 0;
}

.woocommerce-MyAccount-content.is-loading,
.woocommerce-MyAccount-content[aria-busy='true'] {
    position: relative;
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.woocommerce-MyAccount-content.is-loading::after,
.woocommerce-MyAccount-content[aria-busy='true']::after {
    content: '';
    position: absolute;
    inset-block-start: 1.25rem;
    inset-inline-start: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin-inline-start: -0.75rem;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 9999px;
    animation: sp-account-spin 0.7s linear infinite;
}

@keyframes sp-account-spin {
    to {
        transform: rotate(360deg);
    }
}

.sp-nav-progress {
    position: fixed;
    z-index: 1031;
    inset-block-start: 0;
    inset-inline: 0;
    height: 2px;
    pointer-events: none;
    opacity: 0;
}

.sp-nav-progress[data-state='loading'] {
    opacity: 1;
}

.sp-nav-progress[data-state='idle'] {
    transition: opacity 200ms ease;
}

.sp-nav-progress__fill {
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 100%;
    background: var(--color-accent, #9f263d);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 200ms ease-out;
    box-shadow: 0 0 10px color-mix(in srgb, var(--color-accent) 70%, transparent);
}

.sp-nav-progress[data-state='idle'] .sp-nav-progress__fill {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
.sp-nav-progress, .sp-nav-progress__fill {
    transition: none;
}

}
.sp-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--color-accent) 32%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-accent);
}

.sp-featured-badge::before {
    content: '';
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: currentColor;
}

@keyframes sp-about-float {
}

.sp-app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface) 90%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sp-app-header--admin {
    background: color-mix(in srgb, var(--color-surface) 96%, transparent);
}

.sp-app-header__inner {
    padding-inline: 0.75rem;
    padding-top: env(safe-area-inset-top, 0px);
}

.sp-app-header__bar {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    min-height: 3.5rem;
}

.sp-app-header__brand {
    min-width: 0;
    max-width: 7rem;
    overflow: hidden;
}

.sp-app-header__title {
    min-width: 0;
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-app-header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.125rem;
}

.sp-app-header__toggle {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
}

.sp-app-header__toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sp-sidebar {
    border-inline-end: 1px solid var(--color-border);
    background:
            radial-gradient(ellipse 120% 30% at 100% 0%, color-mix(in srgb, var(--color-accent) 6%, transparent), transparent 70%),
            var(--color-surface);
}

.sp-sidebar__head {
    display: flex;
    align-items: center;
    min-height: 4rem;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
}

.sp-sidebar__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem;
    scrollbar-width: thin;
}

.sp-sidebar__foot {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--color-border);
    padding: 0.75rem;
}

.sp-side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sp-side-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sp-side-nav__group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sp-side-nav__group + .sp-side-nav__group {
    margin-top: 0.5rem;
}

.sp-side-nav__group-label {
    padding: 0.5rem 0.625rem 0.125rem;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.4;
    color: color-mix(in srgb, var(--color-secondary) 85%, transparent);
}

.sp-side-link {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.625rem;
    border-radius: var(--radius-md);
    padding: 0.3125rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-secondary);
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.sp-side-link--compact {
    min-height: 2.5rem;
    padding-block: 0.25rem;
}

.sp-side-link__icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--color-neutral) 80%, var(--color-surface));
    color: var(--color-secondary);
    transition: background-color 140ms ease, color 140ms ease;
}

.sp-side-link--compact .sp-side-link__icon {
    width: 1.75rem;
    height: 1.75rem;
}

.sp-side-link__label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-side-link__badge {
    display: inline-flex;
    min-width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    padding-inline: 0.375rem;
    background: var(--color-accent);
    color: var(--color-surface);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

a.sp-side-link:hover {
    background: var(--color-neutral);
    color: var(--color-primary);
}

a.sp-side-link:hover .sp-side-link__icon {
    background: var(--color-surface);
    color: var(--color-primary);
}

.sp-side-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

.sp-side-link.is-active {
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
    color: var(--color-primary);
    font-weight: 700;
}

.sp-side-link.is-active::before {
    content: '';
    position: absolute;
    inset-block: 0.5rem;
    inset-inline-start: -0.75rem;
    width: 3px;
    border-start-end-radius: var(--radius-full);
    border-end-end-radius: var(--radius-full);
    background: var(--color-accent);
}

.sp-side-link.is-active .sp-side-link__icon {
    background: var(--color-accent);
    color: var(--color-surface);
    box-shadow: 0 3px 8px color-mix(in srgb, var(--color-accent) 28%, transparent);
}

.sp-site-link .sp-side-link {
    color: var(--color-secondary);
}

.sp-account-card {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: 0.25rem;
}

.sp-account-card__main {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.625rem;
    border-radius: var(--radius-sm);
    padding: 0.375rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: background-color 140ms ease;
}

a.sp-account-card__main:hover {
    background: var(--color-neutral);
}

.sp-account-card__main:focus-visible, .sp-account-card__logout:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

.sp-account-card__avatar {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 70%, var(--color-accent)));
    color: var(--color-surface);
    font-size: 0.9375rem;
    font-weight: 700;
}

.sp-account-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.0625rem;
}

.sp-account-card__name {
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-account-card__meta {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-secondary);
}

.sp-account-card__logout {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-secondary);
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
}

.sp-account-card__logout:hover {
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
    color: var(--color-accent);
}

.sp-app-menu__body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem;
}

.sp-app-menu__account {
    padding: 0.375rem;
    box-shadow: var(--shadow-xs);
}

.sp-app-menu__account .sp-account-card__avatar {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.0625rem;
}

.sp-app-menu__account .sp-account-card__name {
    font-size: 0.9375rem;
}

.sp-app-menu__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

.sp-app-menu .sp-side-nav__group-label {
    padding-inline: 0.25rem;
}

.sp-app-menu .sp-side-nav {
    gap: 0.5rem;
}

.sp-app-menu .sp-side-nav__list {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    padding: 0.25rem;
    box-shadow: var(--shadow-xs);
}

.sp-app-menu .sp-side-link {
    min-height: 3rem;
}

.sp-app-menu .sp-side-link.is-active::before {
    inset-inline-start: -0.25rem;
}

.sp-app-menu__footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-app-menu__footer > * {
    width: auto;
}

.sp-app-menu__action {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding-inline: 0.75rem;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.sp-app-menu__action:hover {
    background: var(--color-neutral);
}

.sp-app-menu__action.is-danger {
    border-color: color-mix(in srgb, var(--color-accent) 30%, var(--color-border));
    color: var(--color-accent);
}

.sp-app-menu__action.is-danger:hover {
    background: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface));
}

.sp-app-menu__action:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
.sp-side-link, .sp-side-link__icon, .sp-account-card__main, .sp-account-card__logout, .sp-app-tile, .sp-app-menu__action {
    transition: none;
}

}

.sp-dash-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background:
            radial-gradient(ellipse 70% 120% at 0% 0%, color-mix(in srgb, var(--color-accent) 9%, transparent), transparent 60%),
            radial-gradient(ellipse 50% 90% at 100% 100%, color-mix(in srgb, var(--color-primary) 4%, transparent), transparent 70%),
            var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.sp-dash-hero__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.375rem;
}

.sp-dash-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.sp-dash-hero__title {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-primary);
}

.sp-dash-hero__lead {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-secondary);
}

.sp-dash-hero__status {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    border-radius: var(--radius-full);
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    background: color-mix(in srgb, var(--color-success) 10%, var(--color-surface));
    color: var(--color-success);
}

.sp-dash-hero__status--warning {
    background: color-mix(in srgb, var(--color-warning) 12%, var(--color-surface));
    color: var(--color-warning);
}

.sp-dash-hero__status--muted {
    background: var(--color-neutral);
    color: var(--color-secondary);
}

.sp-dash-hero__actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
}

.sp-dash-hero__actions > * {
    width: 100%;
    flex: none;
    justify-content: center;
    text-align: center;
}

@media (min-width: 48rem) {
.sp-dash-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
}

.sp-dash-hero__title {
    font-size: 1.625rem;
}

.sp-dash-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    flex-shrink: 0;
    width: auto;
    justify-content: flex-end;
}

.sp-dash-hero__actions > * {
    width: auto;
    flex: 0 0 auto;
}

}
.sp-kpi {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-xs);
    color: inherit;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.sp-kpi__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.sp-kpi__label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-secondary);
}

.sp-kpi__icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-neutral);
    color: var(--color-primary);
}

.sp-kpi__value {
    margin-top: auto;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--color-primary);
}

.sp-kpi__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-secondary);
}

.sp-kpi--attention {
    border-color: color-mix(in srgb, var(--color-accent) 30%, var(--color-border));
    background: linear-gradient(160deg, color-mix(in srgb, var(--color-accent) 6%, var(--color-surface)), var(--color-surface) 70%);
}

.sp-kpi--attention .sp-kpi__icon {
    background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
    color: var(--color-accent);
}

.sp-kpi--attention .sp-kpi__hint {
    color: var(--color-accent);
    font-weight: 600;
}

a.sp-kpi:hover {
    border-color: color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--color-primary) 7%, transparent);
    transform: translateY(-1px);
}

a.sp-kpi:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sp-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs);
}

.sp-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    padding: 0.875rem 1rem;
}

.sp-panel__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.625rem;
}

.sp-panel__icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-neutral);
    color: var(--color-primary);
}

.sp-panel__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary);
}

.sp-panel__description {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-secondary);
}

.sp-panel__count {
    display: inline-flex;
    min-width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    padding-inline: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
    color: var(--color-accent);
}

.sp-panel__link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-secondary);
    transition: background-color 140ms ease, color 140ms ease;
}

.sp-panel__link:hover {
    background: var(--color-neutral);
    color: var(--color-primary);
}

.sp-panel__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sp-panel__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.sp-panel__body--padded {
    gap: 0.5rem;
    padding: 0.75rem;
}

.sp-panel--attention {
    border-color: color-mix(in srgb, var(--color-warning) 35%, var(--color-border));
}

.sp-panel--attention .sp-panel__header {
    border-bottom-color: color-mix(in srgb, var(--color-warning) 22%, var(--color-border));
    background: color-mix(in srgb, var(--color-warning) 7%, var(--color-surface));
}

.sp-panel--attention .sp-panel__icon {
    background: color-mix(in srgb, var(--color-warning) 16%, var(--color-surface));
    color: var(--color-warning);
}

.sp-panel--attention .sp-panel__count {
    background: color-mix(in srgb, var(--color-warning) 16%, var(--color-surface));
    color: var(--color-warning);
}

.sp-panel__empty {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.75rem 1rem;
    text-align: center;
}

.sp-panel__empty-icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-neutral);
    color: var(--color-secondary);
}

.sp-panel__empty-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
}

.sp-panel__empty-body {
    max-width: 22rem;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--color-secondary);
}

.sp-list-rows {
    display: flex;
    flex-direction: column;
}

.sp-list-rows > li + li {
    border-top: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
}

.sp-list-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 140ms ease;
}

a.sp-list-row:hover {
    background: color-mix(in srgb, var(--color-neutral) 70%, var(--color-surface));
}

a.sp-list-row:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
    background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface));
}

.sp-list-row__icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-neutral);
    color: var(--color-primary);
}

.sp-list-row__icon--warning {
    background: color-mix(in srgb, var(--color-warning) 14%, var(--color-surface));
    color: var(--color-warning);
}

.sp-list-row__icon--accent {
    background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
    color: var(--color-accent);
}

.sp-list-row__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.125rem;
}

.sp-list-row__title {
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    color: var(--color-primary);
}

.sp-list-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.125rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-secondary);
}

.sp-list-row__trailing {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.sp-list-row__chevron {
    flex-shrink: 0;
    color: color-mix(in srgb, var(--color-secondary) 70%, transparent);
    transition: transform 140ms ease, color 140ms ease;
}

a.sp-list-row:hover .sp-list-row__chevron {
    color: var(--color-primary);
    transform: translateX(-2px);
}

.sp-list-row__cta {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-full);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    background: var(--color-primary);
    color: var(--color-surface);
}

@media (max-width: 39.99rem) {
.sp-list-row {
    flex-wrap: wrap;
    row-gap: 0.375rem;
}

.sp-list-row__body {
    flex-basis: 0;
}

.sp-list-row__trailing {
    order: 3;
    flex-basis: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.sp-list-row__icon ~ .sp-list-row__trailing {
    padding-inline-start: 3rem;
}

.sp-list-row__cta, .sp-list-row__trailing:has(> .sp-list-row__cta:only-child) {
    display: none;
}

}
.sp-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.sp-quick-action {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--color-surface) 80%, transparent);
    color: var(--color-primary);
    transition: border-color 140ms ease, background-color 140ms ease;
}

.sp-quick-action:hover {
    border-color: color-mix(in srgb, var(--color-primary) 25%, var(--color-border));
    background: var(--color-surface);
}

.sp-quick-action:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sp-quick-action__icon {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-neutral);
    color: var(--color-accent);
}

@media (min-width: 40rem) {
.sp-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

}
@media (min-width: 64rem) {
.sp-quick-actions--hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 28rem;
}

}
@media (prefers-reduced-motion: reduce) {
.sp-kpi, .sp-panel__link, .sp-list-row, .sp-list-row__chevron, .sp-quick-action {
    transition: none;
}

a.sp-kpi:hover, a.sp-list-row:hover .sp-list-row__chevron {
    transform: none;
}

}

/* WP Check list / start (Laravel parity) */
.sp-wp-checks,
.sp-wp-check-start,
.sp-wp-check-view {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    width: 100%;
    max-width: none;
}

.sp-wp-checks__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sp-wp-check-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
    .sp-wp-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sp-wp-check-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
    padding: 1.1rem 1.2rem;
}

.sp-wp-check-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.sp-wp-check-card__cta {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.sp-empty-state {
    display: grid;
    gap: 0.65rem;
    max-width: none;
    width: 100%;
    padding: 1.35rem 1.4rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

.sp-status-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 1.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--color-neutral);
    color: var(--color-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.sp-status-badge--pending {
    background: color-mix(in srgb, var(--color-warning, #b54708) 14%, var(--color-surface));
    color: var(--color-warning, #b54708);
}

.sp-status-badge--reviewing {
    background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
    color: var(--color-accent);
}

.sp-status-badge--done {
    background: color-mix(in srgb, #079455 12%, var(--color-surface));
    color: #079455;
}

.sp-status-badge--closed {
    background: var(--color-neutral);
    color: var(--color-secondary);
}

.sp-wp-check-form {
    display: grid;
    gap: 1.1rem;
    max-width: none;
    width: 100%;
    padding: 1.35rem;
}

.sp-wp-check-view .sp-ltr,
.sp-wp-check-card .sp-ltr {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sp-wp-check-form__field {
    display: grid;
    gap: 0.35rem;
}

.sp-wp-check-form .sp-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font: inherit;
}

.sp-wp-check-form textarea.sp-input {
    min-height: 6rem;
    resize: vertical;
}

.sp-wp-check-form .sp-btn-row,
.sp-wp-check-form .sp-wp-check-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

@media (max-width: 39.99rem) {
    .sp-wp-check-form .sp-btn-row,
    .sp-wp-check-form .sp-wp-check-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .sp-wp-check-form .sp-btn-row > .sp-btn,
    .sp-wp-check-form .sp-wp-check-actions > .sp-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
        text-align: center;
    }

    .sp-orders__actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .sp-orders__actions .sp-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .sp-access-form__footer,
    .sp-ticket-view__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-access-form__footer .sp-btn,
    .sp-ticket-close__btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.sp-wp-check-access-panel.sp-access-panel {
    margin-bottom: 1rem;
}

.sp-wp-check-access-panel .sp-access-form {
    margin-top: 0.35rem;
}

.sp-wp-check-form .sp-access-accordions {
    margin-top: 0.15rem;
}

/* Profile edit-account */
.sp-profile-edit {
    display: grid;
    gap: 1.25rem;
    max-width: 40rem;
    width: 100%;
}

.sp-profile-form__field--locked .sp-input:disabled {
    opacity: 1;
    color: var(--color-primary);
    background: var(--color-neutral);
    cursor: not-allowed;
}

/* Orders — compact modern cards */
.sp-orders {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.sp-orders__head {
    display: grid;
    gap: 0.15rem;
}

.sp-orders__list {
    display: grid;
    gap: 0.55rem;
}

.sp-orders__card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs, 0 1px 2px rgb(0 0 0 / 4%));
    padding: 0.7rem 0.85rem;
}

.sp-orders__row {
    display: grid;
    gap: 0.55rem;
    align-items: center;
}

@media (min-width: 40rem) {
    .sp-orders__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem 1rem;
    }
}

.sp-orders__main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.sp-orders__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.65rem;
}

.sp-orders__id {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    direction: ltr;
    unicode-bidi: isolate;
}

.sp-orders__id:hover {
    color: var(--color-accent);
}

.sp-orders__service {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--color-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-orders__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.55rem;
    color: var(--color-secondary);
    font-size: 0.75rem;
    line-height: 1.35;
}

.sp-orders__meta-item:not(:last-child)::after {
    content: "·";
    margin-inline-start: 0.55rem;
    color: color-mix(in srgb, var(--color-secondary) 55%, transparent);
}

.sp-orders__total,
.sp-orders__total .woocommerce-Price-amount,
.sp-orders__total .amount {
    font-weight: 700;
    color: var(--color-primary);
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.sp-orders__status {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    background: var(--color-neutral);
    color: var(--color-secondary);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Payment pending / customer action — amber */
.sp-orders__status--pending,
.sp-orders__status--on-hold,
.sp-orders__status--sp-await-pay,
.sp-orders__status--sp-pending-payment,
.sp-orders__status--sp-pending-paymen,
.sp-orders__status--sp-awaiting-info,
.sp-orders__status--sp-paused,
.sp-orders__status--needs-access,
.sp-orders__status--awaiting-review {
    background: color-mix(in srgb, var(--color-warning, #a66a00) 14%, var(--color-surface));
    color: var(--color-warning, #a66a00);
}

/* Service in progress — blue (not success green) */
.sp-orders__status--processing,
.sp-orders__status--sp-access-done,
.sp-orders__status--sp-access-submitted,
.sp-orders__status--sp-access-submitt,
.sp-orders__status--sp-ready,
.sp-orders__status--sp-in-progress,
.sp-orders__status--sp-quality-check {
    background: color-mix(in srgb, #175cd3 12%, var(--color-surface));
    color: #175cd3;
}

/* Payment confirmed / order finished — green */
.sp-orders__status--completed,
.sp-orders__status--sp-paid,
.sp-orders__status--paid-chip {
    background: color-mix(in srgb, var(--color-success, #247a4d) 12%, var(--color-surface));
    color: var(--color-success, #247a4d);
}

/* Terminal / failed / payment rejected — accent */
.sp-orders__status--failed,
.sp-orders__status--cancelled,
.sp-orders__status--refunded,
.sp-orders__status--payment-rejected {
    background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
    color: var(--color-accent);
}

.sp-orders__card--needs-access {
    border-color: color-mix(in srgb, var(--color-warning, #a66a00) 28%, var(--color-border));
}

.sp-orders__nudge {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.sp-orders__nudge a {
    color: var(--color-warning, #a66a00);
    font-weight: 600;
    text-decoration: none;
}

.sp-orders__nudge a:hover,
.sp-orders__nudge a:focus-visible {
    text-decoration: underline;
}

.sp-orders__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sp-orders__actions .sp-btn {
    min-height: 2rem;
    padding-inline: 0.7rem;
    font-size: 0.75rem;
}

.sp-orders__empty {
    display: grid;
    gap: 0.75rem;
    max-width: 28rem;
}

.sp-orders__pagination {
    margin-top: 0.15rem;
}

/* View order */
.sp-view-order {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    width: 100%;
}

.sp-view-order__header {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.sp-view-order__header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sp-view-order__title {
    margin: 0;
    font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sp-view-order__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0;
    color: var(--color-secondary);
    font-size: 0.8125rem;
}

.sp-view-order__what-now {
    margin: 0.35rem 0 0;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--color-accent) 22%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface));
    color: var(--color-primary);
    font-size: 0.875rem;
    line-height: 1.55;
}

.sp-view-order__what-now--paid {
    border-color: color-mix(in srgb, var(--color-success, #247a4d) 28%, var(--color-border));
    background: color-mix(in srgb, var(--color-success, #247a4d) 8%, var(--color-surface));
    color: var(--color-success, #247a4d);
}

.sp-view-order__what-now--rejected {
    border-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
    color: var(--color-accent);
}

.sp-view-order__what-now--access {
    border-color: color-mix(in srgb, var(--color-warning, #a66a00) 28%, var(--color-border));
    background: color-mix(in srgb, var(--color-warning, #a66a00) 8%, var(--color-surface));
    color: #8a5a00;
    display: grid;
    gap: 0.35rem;
}

.sp-view-order__what-now-text {
    margin: 0;
}

.sp-view-order__what-now-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 700;
    color: var(--color-warning, #a66a00);
    text-decoration: none;
    width: fit-content;
    cursor: pointer;
    text-align: start;
}

.sp-view-order__what-now-link:hover,
.sp-view-order__what-now-link:focus-visible {
    text-decoration: underline;
}

.sp-view-order__what-now-link:focus-visible {
    outline: 2px solid var(--color-warning, #a66a00);
    outline-offset: 2px;
}

.sp-view-order__layout {
    display: grid;
    gap: 1rem;
    min-width: 0;
    align-items: start;
}

@media (min-width: 64rem) {
    .sp-view-order__layout {
        grid-template-columns: minmax(0, 1fr) minmax(15rem, 18.5rem);
        gap: 1.25rem;
    }
}

.sp-view-order__primary,
.sp-view-order__aside {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.sp-view-order__aside {
    align-content: start;
}

.sp-view-order__summary {
    display: grid;
    gap: 0.65rem;
    padding: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.sp-view-order__summary-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.sp-view-order__summary-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 0.75rem;
    min-width: 0;
}

.sp-view-order__summary-list dt {
    margin: 0;
    color: var(--color-secondary);
    font-size: 0.75rem;
}

.sp-view-order__summary-list dd {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 650;
    text-align: start;
    overflow-wrap: anywhere;
    max-width: 12rem;
}

.sp-view-order__notes {
    display: grid;
    gap: 0.65rem;
}

.sp-view-order__notes-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-view-order__note {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.sp-view-order__note .sp-caption {
    margin: 0 0 0.35rem;
}

.sp-view-order__note .sp-body-sm,
.sp-view-order__note p {
    margin: 0;
}

.sp-view-order .woocommerce-order-details,
.sp-view-order .woocommerce-customer-details {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs, 0 1px 2px rgb(0 0 0 / 4%));
}

.sp-view-order .woocommerce-order-details__title,
.sp-view-order .woocommerce-column__title {
    margin: 0;
    font-size: 0.9375rem;
}

.sp-view-order .woocommerce-table--order-details,
.sp-view-order .shop_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sp-view-order .woocommerce-table--order-details th,
.sp-view-order .woocommerce-table--order-details td,
.sp-view-order .shop_table th,
.sp-view-order .shop_table td {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    text-align: start;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.sp-view-order .woocommerce-table--order-details tfoot th,
.sp-view-order .woocommerce-table--order-details tfoot td,
.sp-view-order .shop_table tfoot th,
.sp-view-order .shop_table tfoot td {
    border-bottom: 0;
    padding-top: 0.75rem;
}

.sp-view-order .woocommerce-table--order-details .product-total,
.sp-view-order .woocommerce-table--order-details .woocommerce-Price-amount,
.sp-view-order .shop_table .product-total,
.sp-view-order .shop_table .woocommerce-Price-amount {
    text-align: end;
    white-space: nowrap;
}

.sp-view-order .woocommerce-customer-details .woocommerce-columns {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 40rem) {
    .sp-view-order .woocommerce-customer-details .woocommerce-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.sp-view-order .woocommerce-customer-details address {
    margin: 0;
    font-style: normal;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.sp-view-order .sp-c2c-panel {
    margin-top: 0;
}

.sp-view-order .woocommerce-order-details + .sp-tracking-token {
    display: none;
}

.sp-profile-identity {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs, 0 1px 2px rgb(0 0 0 / 4%));
}

.sp-profile-identity__banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-neutral) 70%, var(--color-surface));
}

.sp-profile-identity__avatar {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    place-items: center;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-surface);
    font-size: 1.05rem;
    font-weight: 700;
}

.sp-profile-identity__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
}

.sp-profile-identity__note {
    margin: 0;
    padding: 0.85rem 1.35rem;
}

.sp-profile-form {
    display: grid;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
}

.sp-profile-form__field {
    display: grid;
    gap: 0.35rem;
}

.sp-profile-form .sp-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font: inherit;
}

.sp-profile-form__actions {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}
