:root {
    --ui-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ui-font-display: 'Cormorant Garamond', Georgia, serif;
    --ui-space-1: 0.25rem;
    --ui-space-2: 0.5rem;
    --ui-space-3: 0.75rem;
    --ui-space-4: 1rem;
    --ui-space-5: 1.25rem;
    --ui-space-6: 1.5rem;
    --ui-space-7: 2rem;
    --ui-space-8: 2.5rem;
    --ui-space-9: 3rem;
    --ui-radius-sm: 0.875rem;
    --ui-radius-md: 1.125rem;
    --ui-radius-lg: 1.5rem;
    --ui-radius-xl: 2rem;
    --ui-radius-pill: 999px;
    --ui-shadow-xs: 0 12px 28px rgba(15, 23, 42, 0.08);
    --ui-shadow-sm: 0 18px 42px rgba(15, 23, 42, 0.1);
    --ui-shadow-md: 0 24px 56px rgba(15, 23, 42, 0.12);
    --ui-shadow-lg: 0 30px 72px rgba(15, 23, 42, 0.16);
    --ui-motion-base: 180ms ease;
}

body,
button,
input,
select,
textarea {
    font-family: var(--ui-font-sans);
}

.storefront-body {
    --ui-color-text: #2c2016;
    --ui-color-text-muted: #7a6856;
    --ui-color-primary: #9a5b2b;
    --ui-color-primary-strong: #6b3413;
    --ui-color-secondary: #4d6738;
    --ui-color-surface: #ffffff;
    --ui-color-surface-soft: rgba(255, 250, 243, 0.88);
    --ui-color-border: #eadfce;
    --ui-color-border-strong: #d8c6b2;
    --ui-color-success: #246f4d;
    --ui-color-warning: #b7791f;
    --ui-color-danger: #b5474c;
    --ui-color-info: #2f647f;
    --ui-color-accent: #ffd66b;
    --ui-focus-ring: 0 0 0 0.24rem rgba(154, 91, 43, 0.16);
}

.workspace-body--customer {
    --ui-color-text: #2c2016;
    --ui-color-text-muted: #7a6856;
    --ui-color-primary: #9a5b2b;
    --ui-color-primary-strong: #6b3413;
    --ui-color-secondary: #4d6738;
    --ui-color-surface: #ffffff;
    --ui-color-surface-soft: #fffaf2;
    --ui-color-border: #eadfce;
    --ui-color-border-strong: #ddceb8;
    --ui-color-success: #246f4d;
    --ui-color-warning: #b7791f;
    --ui-color-danger: #b5474c;
    --ui-color-info: #2f647f;
    --ui-color-accent: #ffd66b;
    --ui-focus-ring: 0 0 0 0.24rem rgba(154, 91, 43, 0.16);
    --workspace-sidebar-start: #5f3417;
    --workspace-sidebar-end: #3d2210;
}

.workspace-body--seller {
    --ui-color-text: #17301f;
    --ui-color-text-muted: #5e7364;
    --ui-color-primary: #295c3b;
    --ui-color-primary-strong: #173d27;
    --ui-color-secondary: #43654c;
    --ui-color-surface: #ffffff;
    --ui-color-surface-soft: #f8fbf6;
    --ui-color-border: #dbe4d3;
    --ui-color-border-strong: #cad6c1;
    --ui-color-success: #1f6f41;
    --ui-color-warning: #b7791f;
    --ui-color-danger: #b5474c;
    --ui-color-info: #2f647f;
    --ui-color-accent: #d9f06b;
    --ui-focus-ring: 0 0 0 0.24rem rgba(41, 92, 59, 0.16);
    --workspace-sidebar-start: #1f4b31;
    --workspace-sidebar-end: #163923;
}

.workspace-body--admin {
    --ui-color-text: #13233b;
    --ui-color-text-muted: #5c6f86;
    --ui-color-primary: #0f7b6c;
    --ui-color-primary-strong: #0f5c50;
    --ui-color-secondary: #1d3f63;
    --ui-color-surface: #ffffff;
    --ui-color-surface-soft: #fbfdff;
    --ui-color-border: #d9e3ee;
    --ui-color-border-strong: #c5d4e4;
    --ui-color-success: #0f7b6c;
    --ui-color-warning: #ff8a3d;
    --ui-color-danger: #c2414f;
    --ui-color-info: #2563eb;
    --ui-color-accent: #eaf4f2;
    --ui-focus-ring: 0 0 0 0.24rem rgba(15, 123, 108, 0.16);
    --workspace-sidebar-start: #0f172a;
    --workspace-sidebar-end: #111b32;
}

.storefront-body,
.workspace-body {
    color: var(--ui-color-text);
}

body.workspace-body--customer {
    background:
        radial-gradient(circle at top right, rgba(255, 214, 107, 0.35), transparent 18rem),
        linear-gradient(180deg, #fcfaf6 0%, #f7f4ee 100%);
}

body.workspace-body--seller {
    background:
        radial-gradient(circle at top left, rgba(217, 240, 107, 0.35), transparent 22rem),
        linear-gradient(180deg, #fbfdf8 0%, #f4f7f1 100%);
}

body.workspace-body--admin {
    background: #f4f7fb;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: none;
    box-shadow: var(--ui-focus-ring);
}

a,
button,
input,
select,
textarea {
    transition:
        color var(--ui-motion-base),
        background-color var(--ui-motion-base),
        border-color var(--ui-motion-base),
        box-shadow var(--ui-motion-base),
        transform var(--ui-motion-base);
}

.ui-surface,
.ui-card,
.ui-table-shell {
    background: var(--ui-color-surface-soft);
    border: 1px solid var(--ui-color-border);
    border-radius: var(--ui-radius-xl);
    box-shadow: var(--ui-shadow-sm);
    backdrop-filter: blur(18px);
}

.ui-card {
    overflow: hidden;
}

.ui-section-head {
    display: grid;
    gap: 0.35rem;
}

.ui-section-head__eyebrow {
    color: var(--ui-color-primary-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ui-section-head__title {
    color: var(--ui-color-text);
    font-size: clamp(1.375rem, 2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin: 0;
}

.ui-section-head__subtitle {
    color: var(--ui-color-text-muted);
    margin: 0;
    max-width: 68ch;
}

.ui-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--ui-radius-pill);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.6rem;
    justify-content: center;
    min-height: 46px;
    padding: 0.78rem 1.1rem;
    text-decoration: none;
    white-space: nowrap;
}

.ui-btn:hover {
    transform: translateY(-1px);
}

.ui-btn:disabled,
.ui-btn[aria-disabled='true'] {
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
    transform: none;
}

.ui-btn--primary {
    background: linear-gradient(135deg, var(--ui-color-primary-strong), var(--ui-color-secondary));
    box-shadow: var(--ui-shadow-xs);
    color: #ffffff;
}

.ui-btn--primary:hover,
.ui-btn--primary:focus-visible {
    color: #ffffff;
    box-shadow: var(--ui-shadow-sm);
}

.ui-btn--secondary {
    background: var(--ui-color-surface);
    border-color: var(--ui-color-border-strong);
    color: var(--ui-color-text);
}

.ui-btn--secondary:hover,
.ui-btn--secondary:focus-visible {
    background: #ffffff;
    color: var(--ui-color-text);
}

.ui-btn--outline {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--ui-color-border-strong);
    color: var(--ui-color-text);
}

.ui-btn--outline:hover,
.ui-btn--outline:focus-visible {
    background: #ffffff;
    color: var(--ui-color-primary-strong);
}

.ui-btn--danger {
    background: linear-gradient(135deg, var(--ui-color-danger), #8f2f39);
    box-shadow: var(--ui-shadow-xs);
    color: #ffffff;
}

.ui-btn--danger:hover,
.ui-btn--danger:focus-visible {
    color: #ffffff;
    box-shadow: var(--ui-shadow-sm);
}

.ui-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--ui-color-primary-strong);
}

.ui-btn--ghost:hover,
.ui-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.6);
    color: var(--ui-color-primary-strong);
}

.ui-btn--sm {
    font-size: 0.9rem;
    min-height: 40px;
    padding: 0.58rem 0.95rem;
}

.ui-btn--lg {
    min-height: 52px;
    padding: 0.92rem 1.25rem;
}

.ui-badge {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--ui-radius-pill);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.45rem;
    line-height: 1;
    padding: 0.48rem 0.8rem;
}

.ui-badge--neutral {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--ui-color-border);
    color: var(--ui-color-text);
}

.ui-badge--primary {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.ui-badge--secondary {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.ui-badge--success {
    background: rgba(36, 111, 77, 0.1);
    border-color: rgba(36, 111, 77, 0.16);
    color: var(--ui-color-success);
}

.ui-badge--warning {
    background: rgba(183, 121, 31, 0.12);
    border-color: rgba(183, 121, 31, 0.16);
    color: var(--ui-color-warning);
}

.ui-badge--danger {
    background: rgba(181, 71, 76, 0.1);
    border-color: rgba(181, 71, 76, 0.16);
    color: var(--ui-color-danger);
}

.ui-alert {
    align-items: flex-start;
    border: 1px solid transparent;
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-xs);
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
}

.ui-alert__icon {
    font-size: 1.05rem;
    line-height: 1.2;
    margin-top: 0.1rem;
}

.ui-alert__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.ui-alert__body {
    margin: 0;
}

.ui-alert--success {
    background: rgba(36, 111, 77, 0.08);
    border-color: rgba(36, 111, 77, 0.14);
    color: var(--ui-color-success);
}

.ui-alert--warning {
    background: rgba(183, 121, 31, 0.1);
    border-color: rgba(183, 121, 31, 0.14);
    color: var(--ui-color-warning);
}

.ui-alert--danger {
    background: rgba(181, 71, 76, 0.08);
    border-color: rgba(181, 71, 76, 0.14);
    color: var(--ui-color-danger);
}

.ui-alert--info {
    background: rgba(47, 100, 127, 0.08);
    border-color: rgba(47, 100, 127, 0.14);
    color: var(--ui-color-info);
}

.ui-field {
    /* display: grid; */
    gap: 0.55rem;
}

.ui-label {
    color: var(--ui-color-text);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ui-helper,
.ui-error {
    font-size: 0.82rem;
    line-height: 1.45;
}

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

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

.ui-field-control {
    background: #ffffff;
    border: 1px solid var(--ui-color-border);
    border-radius: 1.125rem;
    box-shadow: none;
    color: var(--ui-color-text);
    min-height: 52px;
    padding: 0.9rem 1rem;
    width: 100%;
}

.ui-field-control::placeholder {
    color: rgba(99, 116, 139, 0.9);
}

.ui-field-control:focus {
    background: #ffffff;
    border-color: var(--ui-color-border-strong);
    box-shadow: var(--ui-focus-ring);
}

.ui-field-control.is-invalid,
.ui-field-control[aria-invalid='true'] {
    border-color: rgba(181, 71, 76, 0.4);
    box-shadow: 0 0 0 0.24rem rgba(181, 71, 76, 0.12);
}

textarea.ui-field-control {
    min-height: 120px;
    resize: vertical;
}

.ui-checkbox-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.ui-inline-link {
    color: var(--ui-color-primary-strong);
    font-weight: 600;
    text-decoration: none;
}

.ui-inline-link:hover {
    color: var(--ui-color-primary);
}

.ui-form-grid {
    display: grid;
    gap: 1rem;
}

.ui-auth-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--ui-color-border);
    border-radius: 2rem;
    box-shadow: var(--ui-shadow-md);
    max-width: 1080px;
    overflow: hidden;
}

.ui-auth-aside {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 35%),
        linear-gradient(160deg, var(--ui-color-primary-strong) 0%, var(--ui-color-secondary) 100%);
    color: #ffffff;
}

.ui-auth-main {
    background: rgba(255, 255, 255, 0.96);
}

.ui-auth-masthead {
    margin-bottom: 1.75rem;
}

.ui-auth-benefits {
    display: grid;
    gap: 0.9rem;
}

.ui-auth-benefit {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
}

.ui-auth-benefit i {
    color: var(--ui-color-accent);
    margin-top: 0.1rem;
}

.ui-auth-footer {
    color: var(--ui-color-text-muted);
    font-size: 0.92rem;
}

.ui-toolbar {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.ui-toolbar__meta {
    min-width: 0;
}

.ui-toolbar__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.ui-chip-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ui-filter-card {
    padding: 1.5rem;
}

.ui-sticky-sidebar {
    top: 8.75rem;
}

.ui-empty-state {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    padding: 2.5rem 2rem;
    text-align: center;
}

.ui-empty-state__icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--ui-color-border);
    border-radius: 1.25rem;
    color: var(--ui-color-primary-strong);
    display: inline-flex;
    font-size: 1.55rem;
    height: 4rem;
    justify-content: center;
    width: 4rem;
}

.ui-empty-state__title {
    color: var(--ui-color-text);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.ui-empty-state__message {
    color: var(--ui-color-text-muted);
    margin: 0;
    max-width: 42ch;
}

.ui-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.2rem;
}

.ui-table-shell {
    overflow: hidden;
}

.ui-table-shell .table {
    margin-bottom: 0;
}

.ui-table thead th,
.user-table thead th,
.seller-table thead th,
.admin-table thead th {
    border-bottom-color: var(--ui-color-border);
    color: var(--ui-color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ui-table tbody td,
.user-table tbody td,
.seller-table tbody td,
.admin-table tbody td {
    border-color: var(--ui-color-border);
    vertical-align: middle;
}

.ui-skeleton {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.ui-skeleton::after {
    animation: ui-skeleton-wave 1.4s linear infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
    content: '';
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}

@keyframes ui-skeleton-wave {
    100% {
        transform: translateX(100%);
    }
}

.workspace-shell {
    max-width: 100%;
    min-height: 100vh;
    overflow-x: clip;
    width: 100%;
}

.workspace-main,
.user-main,
.seller-main,
.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: hidden;
}

.workspace-content,
.user-content,
.seller-content {
    padding: 1.5rem;
}

.user-sidebar,
.seller-sidebar {
    background: linear-gradient(180deg, var(--workspace-sidebar-start) 0%, var(--workspace-sidebar-end) 100%);
    box-shadow: var(--ui-shadow-lg);
    color: #fff7ef;
    flex: 0 0 300px;
    max-width: 300px;
    min-height: 100vh;
}

.seller-sidebar--mobile {
    flex: 1 1 auto;
    max-width: none;
    min-height: 100%;
}

.user-brand-mark,
.seller-brand-mark {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    color: var(--ui-color-accent);
    display: inline-flex;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.user-nav-link,
.seller-nav-link {
    align-items: center;
    border-radius: 1rem;
    color: rgba(255, 247, 239, 0.84);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    text-decoration: none;
}

.user-nav-link:hover,
.user-nav-link.is-active,
.seller-nav-link:hover,
.seller-nav-link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.user-nav-link-main,
.seller-nav-link-main {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
    font-weight: 600;
}

.user-header,
.seller-header {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-app {
    max-width: 100%;
    overflow-x: clip;
    width: 100%;
}

.admin-sidebar {
    flex: 0 0 300px;
    max-width: 300px;
}

.admin-header-bar,
.admin-header-intro,
.admin-header-actions,
.user-header-bar,
.user-header-intro,
.user-header-actions,
.seller-header-bar,
.seller-header-intro,
.seller-header-actions {
    display: flex;
}

.admin-header-bar,
.user-header-bar,
.seller-header-bar {
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.admin-header-intro,
.user-header-intro,
.seller-header-intro {
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.admin-header-copy,
.user-header-copy,
.seller-header-copy {
    min-width: 0;
}

.admin-header-actions,
.user-header-actions,
.seller-header-actions {
    align-items: center;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.user-kicker,
.seller-kicker {
    color: var(--ui-color-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-page-title,
.seller-page-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    margin: 0;
}

.user-chip,
.seller-chip {
    align-items: center;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--ui-color-border);
    border-radius: var(--ui-radius-pill);
    color: var(--ui-color-text);
    display: inline-flex;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.workspace-avatar {
    align-items: center;
    background: linear-gradient(135deg, #ffd974 0%, #f0b158 100%);
    border-radius: 999px;
    color: #2d1f15;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 800;
    height: 3.5rem;
    justify-content: center;
    overflow: hidden;
    width: 3.5rem;
}

.workspace-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.workspace-avatar--sm {
    font-size: 0.82rem;
    height: 2rem;
    width: 2rem;
}

.workspace-avatar--sidebar {
    font-size: 1rem;
    height: 3rem;
    width: 3rem;
}

.user-search,
.seller-search {
    align-items: center;
    background: var(--ui-color-surface);
    border: 1px solid var(--ui-color-border);
    border-radius: var(--ui-radius-pill);
    display: inline-flex;
    flex: 0 1 320px;
    gap: 0.65rem;
    max-width: 100%;
    min-width: 260px;
    padding: 0.72rem 1rem;
}

.user-search input,
.seller-search input {
    background: transparent;
    border: 0;
    color: var(--ui-color-text);
    outline: 0;
    width: 100%;
}

.user-card,
.user-panel,
.user-hero,
.seller-card,
.seller-panel,
.seller-hero {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--ui-color-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-sm);
}

.workspace-body--customer .user-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 214, 107, 0.42), transparent 14rem),
        linear-gradient(135deg, #ffffff 0%, #fff8ee 100%);
}

.workspace-body--seller .seller-hero {
    background:
        radial-gradient(circle at top right, rgba(217, 240, 107, 0.55), transparent 14rem),
        linear-gradient(135deg, #ffffff 0%, #f6fbf2 100%);
}

.user-hero,
.seller-hero {
    overflow: hidden;
    padding: 2rem;
}

.user-hero h2,
.seller-hero h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.user-hero p,
.seller-hero p,
.user-muted,
.seller-muted,
.seller-panel-head p,
.seller-metric-card p {
    color: var(--ui-color-text-muted);
}

.seller-hero-badge {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(41, 92, 59, 0.1);
    border-radius: 1.25rem;
    padding: 1rem;
}

.user-metric-card,
.seller-metric-card {
    height: 100%;
    padding: 1.35rem;
}

.user-metric-label,
.seller-metric-label {
    color: var(--ui-color-text-muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.user-metric-card strong,
.seller-metric-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.user-panel,
.seller-panel {
    padding: 1.4rem;
}

.account-avatar-field {
    align-items: center;
    background: var(--ui-color-surface-soft);
    border: 1px dashed var(--ui-color-border);
    border-radius: 1.2rem;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1.1rem;
}

.account-avatar-preview {
    align-items: center;
    background: linear-gradient(135deg, #ffe2a2 0%, #f6bb67 100%);
    border-radius: 1.25rem;
    color: #2d1f15;
    display: inline-flex;
    font-size: 1.7rem;
    font-weight: 800;
    height: 5.5rem;
    justify-content: center;
    overflow: hidden;
    width: 5.5rem;
}

.account-avatar-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.account-avatar-copy {
    min-width: 0;
}

.account-avatar-copy .form-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.user-panel-head,
.seller-panel-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.user-panel-head h3,
.seller-panel-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.user-list-item,
.seller-list-item,
.seller-health-item {
    align-items: center;
    border-top: 1px solid var(--ui-color-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 0;
}

.user-list-item:first-child,
.seller-list-item:first-child,
.seller-health-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.user-list-item:last-child,
.seller-list-item:last-child,
.seller-health-item:last-child {
    padding-bottom: 0;
}

.user-status-pill,
.seller-status-pill {
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--ui-radius-pill);
    color: var(--ui-color-primary-strong);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
    white-space: nowrap;
}

.workspace-shortcut-card {
    background: rgba(255, 255, 255, 0.08);
}

.workspace-shortcut-card .user-chip,
.workspace-shortcut-card .seller-chip {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.workspace-shortcut-card .user-chip:hover,
.workspace-shortcut-card .seller-chip:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.seller-sidebar-canvas {
    background: linear-gradient(180deg, var(--workspace-sidebar-start) 0%, var(--workspace-sidebar-end) 100%);
    border-right: 0;
    color: #fff7ef;
}

.seller-sidebar-canvas__header {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff;
}

.seller-sidebar-canvas .seller-kicker {
    color: rgba(255, 247, 239, 0.68);
}

.seller-sidebar-canvas .btn-close {
    filter: invert(1) grayscale(1) brightness(200%);
    opacity: 0.88;
}

.seller-sidebar-canvas .btn-close:hover,
.seller-sidebar-canvas .btn-close:focus {
    opacity: 1;
}

.seller-sidebar-canvas__body {
    background: transparent;
    overflow-y: auto;
    padding: 0;
}

.user-footer,
.seller-footer {
    color: var(--ui-color-text-muted);
    font-size: 0.92rem;
}

.admin-profile-menu,
.user-profile-menu,
.seller-profile-menu {
    display: inline-flex;
    padding-bottom: 0.5rem;
    position: relative;
}

.admin-profile-trigger,
.user-profile-trigger,
.seller-profile-trigger {
    cursor: pointer;
}

.admin-profile-dropdown,
.user-profile-dropdown,
.seller-profile-dropdown {
    background: var(--ui-color-surface);
    border: 1px solid var(--ui-color-border);
    border-radius: 1rem;
    box-shadow: var(--ui-shadow-sm);
    min-width: 220px;
    opacity: 0;
    padding: 0.6rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% - 0.1rem);
    transform: translateY(8px);
    transition: opacity var(--ui-motion-base), transform var(--ui-motion-base);
    z-index: 50;
}

.admin-profile-menu:hover .admin-profile-dropdown,
.admin-profile-menu:focus-within .admin-profile-dropdown,
.user-profile-menu:hover .user-profile-dropdown,
.user-profile-menu:focus-within .user-profile-dropdown,
.seller-profile-menu:hover .seller-profile-dropdown,
.seller-profile-menu:focus-within .seller-profile-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.admin-profile-link,
.admin-profile-button,
.user-profile-link,
.user-profile-button,
.seller-profile-link,
.seller-profile-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.8rem;
    color: var(--ui-color-text);
    display: flex;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.admin-profile-link:hover,
.admin-profile-button:hover,
.user-profile-link:hover,
.user-profile-button:hover,
.seller-profile-link:hover,
.seller-profile-button:hover {
    background: var(--ui-color-surface-soft);
}

.seller-hero--dashboard {
    background:
        radial-gradient(circle at top right, rgba(255, 216, 112, 0.42), transparent 14rem),
        radial-gradient(circle at left bottom, rgba(111, 173, 90, 0.2), transparent 12rem),
        linear-gradient(135deg, #ffffff 0%, #f8fcf4 100%);
}

.seller-kpi-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seller-kpi-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--ui-color-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-sm);
    padding: 1.35rem;
}

.seller-kpi-card.is-accent {
    background: linear-gradient(135deg, #102f2c 0%, #1f6155 100%);
    color: #ffffff;
}

.seller-kpi-card.is-warning {
    background: linear-gradient(135deg, #fff8ea 0%, #ffffff 100%);
}

.seller-kpi-card strong {
    display: block;
    font-size: 1.95rem;
    line-height: 1.1;
    margin-bottom: 0.45rem;
}

.seller-kpi-card p {
    color: var(--ui-color-text-muted);
    margin: 0;
}

.seller-kpi-card.is-accent .seller-metric-label,
.seller-kpi-card.is-accent p {
    color: rgba(255, 255, 255, 0.76);
}

.seller-trend-chart,
.seller-detail-grid {
    display: grid;
    gap: 0.9rem;
}

.seller-trend-row {
    align-items: center;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 100px 1fr 112px;
}

.seller-trend-meta strong,
.seller-detail-card strong {
    display: block;
}

.seller-trend-meta span,
.seller-detail-card p {
    color: var(--ui-color-text-muted);
    font-size: 0.9rem;
}

.seller-trend-track {
    background: #edf4ec;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.seller-trend-bar {
    background: linear-gradient(90deg, #236a57 0%, #89ba56 100%);
    border-radius: inherit;
    inset: 0 auto 0 0;
    position: absolute;
}

.seller-trend-value {
    font-weight: 700;
    text-align: right;
}

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

.seller-detail-card {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--ui-color-border);
    border-radius: 1.1rem;
    padding: 1rem;
}

.seller-toolbar {
    align-items: center;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(0, 1fr));
}

.seller-toolbar-search {
    position: relative;
}

.seller-toolbar-search .bi {
    color: var(--ui-color-text-muted);
    left: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.seller-toolbar-search .form-control {
    padding-left: 2.75rem;
}

.seller-toolbar-select .form-select,
.seller-toolbar-search .form-control {
    min-height: 48px;
}

.seller-table-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.seller-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

@media (max-width: 991.98px) {
    .user-shell,
    .seller-shell,
    .admin-app {
        display: block !important;
    }

    .user-sidebar,
    .seller-sidebar {
        display: none;
    }

    .seller-sidebar-canvas .seller-sidebar {
        display: flex;
    }

    .workspace-content,
    .user-content,
    .seller-content {
        padding: 1rem;
    }

    .admin-header-bar,
    .user-header-bar,
    .seller-header-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-header-actions,
    .user-header-actions,
    .seller-header-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
        justify-content: flex-start;
        width: 100%;
    }

    .admin-header-actions > *,
    .user-header-actions > *,
    .seller-header-actions > * {
        max-width: 100%;
    }

    .admin-search,
    .user-search,
    .seller-search {
        flex-basis: 100%;
        min-width: 0;
        width: 100%;
    }

    .user-chip,
    .seller-chip {
        justify-content: center;
        width: 100%;
    }

    .account-avatar-field {
        grid-template-columns: 1fr;
        justify-items: flex-start;
    }

    .admin-profile-menu,
    .user-profile-menu,
    .seller-profile-menu {
        display: flex;
        padding-bottom: 0;
        width: 100%;
    }

    .admin-profile-trigger,
    .user-profile-trigger,
    .seller-profile-trigger {
        justify-content: space-between;
        width: 100%;
    }

    .admin-profile-dropdown,
    .user-profile-dropdown,
    .seller-profile-dropdown {
        left: 0;
        min-width: 0;
        right: 0;
        width: 100%;
    }

    .ui-auth-card {
        border-radius: 1.5rem;
    }

    .ui-toolbar__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .seller-kpi-grid,
    .seller-toolbar,
    .seller-detail-grid {
        grid-template-columns: 1fr;
    }

    .seller-trend-row {
        grid-template-columns: 1fr;
    }

    .seller-trend-value {
        text-align: left;
    }

    .seller-header {
        padding-bottom: 0.9rem !important;
        padding-top: 0.9rem !important;
    }

    .seller-header-bar {
        gap: 0.9rem;
    }

    .seller-header-intro {
        align-items: flex-start;
        justify-content: space-between;
        width: 100%;
    }

    .seller-header-copy {
        flex: 1 1 auto;
    }

    .seller-header .seller-kicker {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.2rem;
    }

    .seller-page-title {
        font-size: clamp(1.55rem, 5vw, 2rem);
        line-height: 1.08;
    }

    .seller-menu-trigger {
        flex: 0 0 auto;
        justify-content: center;
        min-width: 8rem;
        padding: 0.85rem 1rem;
        width: auto;
    }

    .seller-header-actions {
        align-items: stretch;
        display: grid;
        gap: 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seller-header-actions .seller-search {
        grid-column: 1 / -1;
        width: 100%;
    }

    .seller-header-actions > *,
    .seller-header-actions .seller-profile-menu {
        width: 100%;
    }

    .seller-header-link,
    .seller-profile-trigger {
        justify-content: center;
        min-height: 3.5rem;
    }

    .seller-profile-trigger {
        padding-inline: 0.95rem;
    }

    .seller-profile-trigger > span:last-of-type {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .seller-profile-trigger .bi-chevron-down {
        flex: 0 0 auto;
    }
}

@media (max-width: 767.98px) {
    .seller-header-actions {
        grid-template-columns: 1fr;
    }

    .seller-menu-trigger {
        min-width: auto;
        padding-inline: 0.95rem;
    }

    .seller-page-title {
        font-size: clamp(1.35rem, 7vw, 1.7rem);
    }
}
