@font-face {
    font-family: Vazirmatn;
    src: url("fonts/Vazirmatn-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ds-font: Vazirmatn, Tahoma, Arial, sans-serif;
    --ds-primary: #0b6156;
    --ds-primary-soft: #dceee7;
    --ds-ink: #182d2a;
    --ds-muted: #50615d;
    --ds-canvas: #edf3f1;
    --ds-surface: #ffffff;
    --ds-border: #cdded7;
    --ds-glass: rgba(255, 255, 255, .78);
    --ds-shadow-soft: 9px 9px 24px #284d3d12, -7px -7px 20px #ffffffc9;
    --ds-shadow-inset: inset 3px 3px 7px #234c3d10, inset -3px -3px 7px #ffffff;
    --ds-shadow-float: 0 18px 46px #214b3b12, inset 0 1px 0 #ffffff;
    --ds-focus: #225d95;
    --ds-space-1: 4px;
    --ds-space-2: 8px;
    --ds-space-3: 12px;
    --ds-space-4: 16px;
    --ds-space-6: 24px;
    --ds-space-8: 32px;
    --ds-radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--ds-font); color: var(--ds-ink); background: var(--ds-canvas); line-height: 1.9; scroll-padding-block-start: 100px; }
body { margin: 0; font-family: var(--ds-font); background: radial-gradient(ellipse at 94% 0%, #cbe5d96b, transparent 45%), radial-gradient(ellipse at 3% 70%, #dce8f780, transparent 48%); min-block-size: 100dvh; }
button, input, select, textarea, .mud-typography { font-family: var(--ds-font); }
button, input, select, textarea { font-size: 1rem; }
a { color: var(--ds-primary); text-underline-offset: 4px; }
h1, h2, h3, p { margin-block: 0 16px; }
h1, h2, h3 { line-height: 1.55; font-weight: 750; letter-spacing: -0.025em; }
h1 { font-size: clamp(1.8rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.1rem; }
svg { display: block; }
img, svg { max-width: 100%; }
:focus-visible, .mud-button-root:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 4px; }
main:focus { outline: none; }
h1[tabindex="-1"]:focus { outline: none; }
.mud-button-root { min-height: 44px; text-transform: none; border-radius: 12px; }
.mud-icon-button { min-width: 44px; min-height: 44px; }
.mud-input-outlined-border { border-color: #738780; }
.mud-dialog { max-inline-size: calc(100% - 32px); border: 1px solid #ffffff; border-radius: 24px; box-shadow: var(--ds-shadow-float); }
.mud-dialog-title { line-height: 1.8; }
.mud-dialog-content { overflow-wrap: anywhere; }
.mud-dialog-actions { padding: 16px 24px; }
.mud-snackbar { max-inline-size: calc(100vw - 32px); }
.ds-skip-link { position: absolute; inset-block-start: -100px; inset-inline-start: 16px; z-index: 2000; background: white; padding: 12px 20px; border: 2px solid var(--ds-focus); border-radius: 8px; }
.ds-skip-link:focus { inset-block-start: 12px; }
.ds-container { inline-size: min(100% - 48px, 1152px); margin-inline: auto; }
.ds-muted { color: var(--ds-muted); }
.ds-auth-card { max-inline-size: 520px; margin: 32px auto; padding: clamp(24px, 4vw, 40px); border: 1px solid #ffffff; border-radius: 28px; background: var(--ds-glass); box-shadow: var(--ds-shadow-soft); overflow-wrap: anywhere; }
.ds-auth-card h1 { font-size: 1.8rem; }
.ds-auth-card label { display: block; margin-block-end: 8px; font-weight: 650; }
.ds-auth-card input:not([type="hidden"]) { display: block; inline-size: 100%; min-block-size: 52px; border: 1px solid #9cb6ab; border-radius: 12px; background: #eef4f1; box-shadow: var(--ds-shadow-inset); padding: 12px 16px; margin-block-end: 10px; color: var(--ds-ink); transition: border-color .2s, background .2s; }
.ds-auth-card button { min-block-size: 50px; padding: 12px 24px; margin-block: 12px 18px; border: 1px solid #ffffff35; border-radius: 12px; background: linear-gradient(135deg, #157766, #0b6156); color: white; box-shadow: 0 6px 14px #0b61561f, inset 0 1px 0 #ffffff2b; cursor: pointer; font-weight: 650; }
.ds-auth-card button:disabled { background: #596a65; cursor: default; }
.ds-auth-error { color: #a12424; background: #fff0f1; border-inline-start: 3px solid #b42335; padding: 10px 14px; border-radius: 10px; }
.ds-account section + section { border-block-start: 1px solid var(--ds-border); margin-block-start: 28px; padding-block-start: 20px; }
.ds-account textarea, .ds-account select { inline-size: 100%; min-block-size: 48px; padding: 10px 12px; border: 1px solid #738780; border-radius: 8px; }
.ds-account .ds-auth-card input[type="checkbox"] { display: inline-block; inline-size: 20px; block-size: 20px; min-block-size: 20px; margin-inline-end: 8px; vertical-align: middle; }
.ds-staff .ds-form-field { margin-block: 16px; }
.ds-staff .ds-form-field label { display: block; margin-block-end: 8px; font-weight: 650; }
.ds-staff .ds-form-field input { inline-size: 100%; min-block-size: 48px; border: 1px solid #738780; border-radius: 8px; padding: 10px 12px; background: white; }
.ds-staff textarea, .ds-staff select { inline-size: 100%; min-block-size: 48px; border: 1px solid #738780; border-radius: 8px; padding: 10px 12px; background: white; }
.ds-staff input[type="checkbox"] { display: inline-block; inline-size: 20px; block-size: 20px; min-block-size: 20px; margin: 0 0 0 8px; vertical-align: middle; }
.ds-staff fieldset { margin-block: 16px; border: 1px solid var(--ds-border); border-radius: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 8px 16px; }
.ds-staff fieldset p { margin-block: 6px; }
.ds-staff .ds-surface { margin-block: 24px; }
.ds-staff form + form { border-block-start: 1px solid var(--ds-border); padding-block-start: 24px; margin-block-start: 24px; }
.ds-staff code, .ds-staff bdi { overflow-wrap: anywhere; }
.ds-eyebrow { color: var(--ds-primary); font-size: 0.8rem; font-weight: 750; letter-spacing: 0; margin-block-end: 12px; }
.ds-lead { color: var(--ds-muted); max-inline-size: 65ch; line-height: 2; }
.ds-tag { display: inline-flex; align-items: center; background: var(--ds-primary-soft); color: #21584b; border: 1px solid #c9dfd1; border-radius: 999px; font-size: 0.75rem; padding: 3px 12px; white-space: nowrap; }
.ds-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ds-ink); flex-shrink: 0; }
.ds-brand strong { display: block; font-size: 1.05rem; font-weight: 800; }
.ds-brand-caption { display: block; color: var(--ds-muted); font-size: 0.7rem; }
.ds-brand-mark { inline-size: 46px; block-size: 46px; display: grid; place-items: center; background: linear-gradient(145deg, #248775, #0b6156); color: white; border: 1px solid #ffffff50; border-radius: 15px; box-shadow: 4px 5px 12px #0b615624, inset 0 1px 1px #ffffff55; }
.ds-brand-mark svg { inline-size: 32px; block-size: 32px; }
.ds-surface { border: 1px solid #ffffff; background: var(--ds-glass); border-radius: var(--ds-radius); box-shadow: var(--ds-shadow-soft); padding: 28px; min-inline-size: 0; }
.ds-section-heading { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-block-end: 12px; }
.ds-section-heading h2 { margin: 0; }
.ds-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-start: 20px; }
.ds-link-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-block-size: 48px; padding: 10px 24px; border: 1px solid #ffffff38; border-radius: 12px; background: linear-gradient(135deg, #157766, #0b6156); box-shadow: 0 5px 12px #0b61561c, inset 0 1px 0 #ffffff2b; color: white; font-size: 0.9rem; font-weight: 650; text-decoration: none; transition: box-shadow .2s, transform .2s, background .2s; cursor: pointer; }
.ds-link-button.secondary { background: #f2f7f4; border-color: var(--ds-border); color: var(--ds-primary); box-shadow: var(--ds-shadow-soft); }
.ds-link-button:hover { box-shadow: 0 7px 18px #0b615630, inset 0 1px 0 #ffffff2b; }
.ds-link-button:active { transform: translateY(1px); }
.ds-page-intro { margin-block-end: 28px; }
.ds-page-intro h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.ds-gallery { display: grid; gap: 24px; }
.ds-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 20px; }
.ds-form-result { margin-block-start: 24px; }
.ds-display-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 24px; }
.ds-display-grid > div { border: 1px solid #ffffff; border-radius: 16px; padding: 20px; background: #eef4f1; box-shadow: var(--ds-shadow-inset); }
.ds-display-grid dt { color: var(--ds-muted); font-size: 0.8rem; }
.ds-display-grid dd { margin: 8px 0 0; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.ds-status { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #bed4e8; border-radius: 12px; background: #f0f6fc; color: #1c4c79; }
.ds-status strong { display: block; }
.ds-status-icon { display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; inline-size: 24px; block-size: 24px; line-height: 1; flex-shrink: 0; font-family: Arial, sans-serif; font-weight: 700; }
.ds-status-success { background: #edf6ef; color: #235d39; border-color: #bdd9c6; }
.ds-status-error { background: #fdf1f2; color: #a01d2e; border-color: #e9bdc3; }
.ds-status-stack { display: grid; gap: 12px; }
.ds-empty-state { text-align: center; padding: 36px 16px 12px; color: var(--ds-muted); }
.ds-empty-state .mud-icon-root { margin-inline: auto; margin-block-end: 12px; }
.ds-empty-state h3 { color: var(--ds-ink); }
.ds-delivery-guide { border: 1px solid var(--ds-border); border-radius: 20px; padding: 32px; background: white; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.ds-guide-control { min-inline-size: 0; }
.ds-guide-result { margin-block: 16px 0; color: var(--ds-primary); font-weight: 600; min-block-size: 3.8em; }

/* Public pages stay readable with static SSR and without JavaScript. */
.ds-store-notice { background: #e7eee8; color: #34574c; font-size: 0.75rem; text-align: center; padding: 8px 16px; }
.ds-store-header { background: var(--ds-glass); border-block-end: 1px solid #ffffff; box-shadow: 0 4px 24px #214b3b06; }
.ds-store-header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-block-size: 96px; gap: 20px; }
.ds-store-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.ds-store-nav a { text-decoration: none; color: var(--ds-muted); font-size: 0.9rem; min-block-size: 44px; display: inline-flex; align-items: center; }
.ds-store-nav a:hover { color: var(--ds-primary); }
.ds-public-mobile-nav { display: none; }
.ds-store-main { padding-block: 56px 64px; }
.ds-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr); gap: 56px; align-items: center; margin-block-end: 56px; }
.ds-hero h1 { max-inline-size: 16ch; }
.ds-hero p { max-inline-size: 55ch; }
.ds-hero-panel { border-radius: 24px; background: #e9efe8; padding: 32px; position: relative; }
.ds-hero-panel::before { content: ""; inline-size: 72px; block-size: 4px; background: #8b784b; display: block; border-radius: 8px; margin-block-end: 24px; }
.ds-hero-panel h2 { font-size: 1.1rem; }
.ds-principle { display: flex; align-items: flex-start; gap: 16px; padding-block: 16px; border-block-end: 1px solid #c7d6cb; }
.ds-principle:last-child { border: 0; padding-block-end: 0; }
.ds-principle > span { font-size: 0.75rem; color: var(--ds-primary); padding-block-start: 4px; }
.ds-principle h3 { font-size: 0.95rem; margin-block-end: 4px; }
.ds-principle p { color: #42594e; font-size: 0.8rem; margin: 0; }
.ds-methods { margin-block-end: 40px; }
.ds-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block-start: 24px; }
.ds-method-card { background: white; border: 1px solid var(--ds-border); border-radius: 16px; padding: 24px; }
.ds-method-number { color: #496958; font-weight: 650; font-size: 0.75rem; margin-block-end: 20px; display: block; }
.ds-method-card p { font-size: 0.9rem; color: var(--ds-muted); margin: 0; }
.ds-store-footer { border-block-start: 1px solid var(--ds-border); padding-block: 28px; }
.ds-footer-inner { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--ds-muted); }
.ds-footer-inner p { margin: 0; }

/* Both the interactive dashboard and server-rendered management pages share this shell. */
.ds-admin-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-block-size: 100dvh; }
.ds-admin-sidebar { position: sticky; inset-block-start: 0; block-size: 100dvh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b0c9bd transparent; background: #f8fcfae6; border-inline-end: 1px solid #ffffff; padding: 28px 18px 20px; display: flex; flex-direction: column; }
.ds-admin-sidebar .ds-brand { margin: 0 8px 28px; }
.ds-sidebar-label { font-size: 0.7rem; color: var(--ds-muted); margin-inline: 12px; }
.ds-admin-navigation { display: grid; gap: 18px; }
.ds-admin-navigation a { display: flex; align-items: center; min-block-size: 46px; gap: 12px; padding: 10px 12px; font-size: 0.81rem; color: var(--ds-muted); border: 1px solid transparent; border-radius: 12px; text-decoration: none; transition: background .2s, box-shadow .2s; }
.ds-admin-navigation a:hover { background: #e8f1ec; color: var(--ds-primary); }
.ds-admin-navigation a[aria-current="page"] { background: linear-gradient(135deg, #147767, #0b6156); color: white; border-color: #ffffff60; box-shadow: 4px 5px 12px #0b615627, inset 0 1px 0 #ffffff35; font-weight: 700; }
.ds-nav-symbol { font-size: 1.2rem; flex: 0 0 22px; }
.ds-nav-symbol svg { inline-size: 21px; block-size: 21px; }
.ds-sidebar-note { margin-block-start: auto; padding: 24px 8px 0; }
.ds-sidebar-note p { color: var(--ds-muted); font-size: 0.75rem; margin-block: 12px 0; }
.ds-admin-workspace { min-inline-size: 0; display: flex; flex-direction: column; }
.ds-admin-header { position: sticky; inset-block-start: 0; z-index: 20; background: #f7fbf8ed; border-block-end: 1px solid #ffffff; min-block-size: 80px; padding: 14px 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 0.8rem; box-shadow: 0 5px 20px #214b3b04; }
.ds-header-context { display: flex; align-items: center; gap: 12px; min-inline-size: 0; }
.ds-environment-badge { border: 1px solid #d6dbc8; color: #635b32; background: #f6f5e9; border-radius: 8px; padding: 4px 12px; white-space: nowrap; font-size: 0.7rem; }
.ds-admin-main { padding: 32px 36px; flex: 1; inline-size: 100%; max-inline-size: 1440px; margin-inline: auto; overflow-wrap: anywhere; }
.ds-admin-main h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.ds-admin-footer { padding: 20px 36px; font-size: 0.75rem; color: var(--ds-muted); border-block-start: 1px solid #d1e0d866; }
.ds-mobile-menu { display: none; }
.ds-admin-overview { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.ds-checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.ds-checklist li { display: flex; gap: 12px; padding-block: 16px; border-block-end: 1px solid var(--ds-border); }
.ds-checklist li:last-child { border: 0; }
.ds-checklist span { color: var(--ds-primary); }
.ds-checklist p { color: var(--ds-muted); font-size: 0.85rem; margin: 4px 0 0; }

#blazor-error-ui { display: none; position: fixed; inset-block-end: 16px; inset-inline: 16px; padding: 20px; background: #fdf1f2; color: #a01d2e; border: 1px solid #e9bdc3; border-radius: 12px; z-index: 2500; }
#blazor-error-ui a { margin-inline-start: 16px; }
#components-reconnect-modal { display: none; }
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected { display: grid; gap: 12px; position: fixed; inset: 0; background: #f6f7f4f5; place-content: center; padding: 32px; text-align: center; z-index: 2400; }

@media (max-width: 959px) {
    .ds-admin-shell { grid-template-columns: minmax(0, 1fr); }
    .ds-admin-sidebar { display: none; }
    .ds-mobile-menu { display: inline-flex; }
    .ds-admin-header { padding: 12px 20px; }
    .ds-admin-main { padding: 28px 20px; }
    .ds-admin-footer { padding: 20px; }
    .ds-admin-overview { grid-template-columns: 1fr; }
    .ds-hero { gap: 28px; }
}

@media (max-width: 699px) {
    .ds-container { inline-size: calc(100% - 32px); }
    .ds-store-header-inner { min-block-size: 80px; }
    .ds-store-nav { display: none; }
    .ds-public-mobile-nav { display: block; }
    .ds-public-mobile-nav summary { cursor: pointer; padding: 10px 16px; border: 1px solid #738780; border-radius: 10px; list-style-position: inside; font-size: 0.85rem; min-block-size: 44px; }
    .ds-public-mobile-nav nav { position: absolute; inset-block-start: calc(100% - 2px); inset-inline: 0; display: grid; gap: 4px; padding: 16px; border: 1px solid var(--ds-border); background: white; border-radius: 12px; z-index: 10; box-shadow: 0 16px 24px #183b2610; }
    .ds-public-mobile-nav nav a { min-block-size: 44px; display: flex; align-items: center; padding-inline: 12px; }
    .ds-store-main { padding-block: 32px 40px; }
    .ds-hero { grid-template-columns: 1fr; gap: 28px; margin-block-end: 36px; }
    .ds-hero-panel { padding: 24px; }
    .ds-method-grid, .ds-delivery-guide, .ds-form-grid, .ds-display-grid { grid-template-columns: minmax(0, 1fr); }
    .ds-method-grid { gap: 12px; }
    .ds-method-card { padding: 20px; }
    .ds-method-number { margin-block-end: 12px; }
    .ds-delivery-guide { padding: 24px; gap: 20px; }
    .ds-guide-result { min-block-size: 0; }
    .ds-surface { padding: 20px; }
    .ds-admin-header { padding-inline: 12px; gap: 8px; }
    .ds-header-context { gap: 4px; }
    .ds-environment-badge { padding: 4px 8px; }
    .ds-admin-main { padding: 28px 16px; }
    .ds-actions { gap: 10px; }
    .ds-actions .mud-button-root { flex-grow: 1; }
    .ds-display-grid { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
    .ds-surface, .ds-status, .ds-method-card, .ds-link-button { border: 1px solid CanvasText; }
    :focus-visible { outline: 3px solid Highlight; }
}
.ds-catalog-form { display: grid; gap: 1rem; max-width: 46rem; }
.ds-catalog-form > * { min-width: 0; }
.ds-catalog-form [hidden] { display: none !important; }
.ds-catalog-form select { inline-size: 100%; min-block-size: 48px; border: 1px solid #738780; border-radius: 8px; padding: 10px 12px; background: white; }
.ds-catalog-list { padding-inline-start: 1.25rem; }
.ds-catalog-list li, .ds-catalog-definition { overflow-wrap: anywhere; margin-block: 1rem; }
.ds-catalog-definition { border-block-start: 1px solid var(--ds-border, #d8dfdd); padding-block: 1.25rem; }
.ds-catalog-definition details { margin-block: 1rem; }
.ds-catalog-definition summary { cursor: pointer; padding-block: .5rem; }

.ds-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--ds-space-4, 1rem); }
.ds-product-media { max-width: 100%; object-fit: contain; }
.ds-file-hash { overflow-wrap: anywhere; font-family: monospace; }
.ds-link-button:disabled { opacity: .5; cursor: not-allowed; }
.ds-catalog { overflow-wrap: anywhere; }
.ds-catalog .ds-surface { margin-block: 24px; }
.ds-catalog .ds-form-field label { display: block; margin-block-end: 8px; font-weight: 650; }
.ds-catalog .ds-form-field input { inline-size: 100%; min-block-size: 48px; border: 1px solid #738780; border-radius: 8px; padding: 10px 12px; background: white; }

.ds-private-code { overflow-wrap: anywhere; unicode-bidi: plaintext; font-family: monospace; }
.ds-staff .ds-surface { margin-block: 24px; }

.ds-payment-operations { margin-block: 1.5rem; padding: clamp(16px,3vw,28px); border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-surface); overflow-wrap: anywhere; }
.ds-payment-operations dl { display: grid; grid-template-columns: minmax(130px,1fr) minmax(0,3fr); gap: .65rem 1rem; }
.ds-payment-operations dd { margin: 0; }
@media(max-width:600px) { .ds-payment-operations dl { grid-template-columns: minmax(0,1fr); } .ds-payment-operations dt { font-weight:700; margin-block-start:.5rem; } }

.ds-payment-operations summary { min-block-size: 44px; padding-block: .5rem; cursor: pointer; }
.ds-staff .ds-store-header-inner { flex-wrap: wrap; gap: 12px 20px; padding-block: 16px; }
.ds-staff .ds-store-header-inner > a { min-block-size: 44px; display: inline-flex; align-items: center; }

/* Glass is progressive enhancement: opaque surfaces remain readable without blur. */
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    .ds-admin-header, .ds-store-header, .ds-auth-card, .ds-staff-mobile-nav nav {
        -webkit-backdrop-filter: blur(18px) saturate(125%);
        backdrop-filter: blur(18px) saturate(125%);
    }
}

.ds-nav-group { display: grid; gap: 3px; }
.ds-nav-group-label { margin: 0 12px 6px; font-size: .67rem; font-weight: 650; color: #60766c; }
.ds-admin-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ds-admin-header-actions a { display: inline-flex; align-items: center; gap: 7px; min-block-size: 44px; padding-inline: 12px; border: 1px solid #d7e4dd; border-radius: 12px; background: #ffffff9c; text-decoration: none; }
.ds-admin-header-actions svg { inline-size: 18px; block-size: 18px; }
.ds-admin-welcome {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 200px;
    align-items: center; gap: 24px; padding: 36px; margin-block-end: 32px;
    background: radial-gradient(ellipse at 0% 100%, #2e8b7855, transparent 65%), linear-gradient(120deg, #143e38, #0b6156);
    color: #ffffff; border: 1px solid #ffffff6b; border-radius: 28px;
    box-shadow: 0 16px 36px #0b61561c, inset 0 1px 0 #ffffff4a;
}
.ds-admin-welcome h1 { max-inline-size: 24ch; font-size: clamp(1.7rem, 2.6vw, 2.35rem); margin-block-end: 14px; }
.ds-admin-welcome p { color: #d3e8e0; font-size: .87rem; max-inline-size: 63ch; line-height: 2; }
.ds-admin-welcome .ds-eyebrow { color: #c3e4d4; font-size: .72rem; }
.ds-admin-welcome .ds-link-button { background: #f3faf6; color: #0b6156; border-color: #ffffff; box-shadow: 3px 5px 18px #072e271a, inset 0 1px 0 #ffffff; }
.ds-admin-welcome .ds-link-button.secondary { color: #ffffff; background: #ffffff0d; border-color: #ffffff50; box-shadow: inset 0 1px 0 #ffffff1a; }
.ds-admin-hero-aside { display: grid; place-items: center; min-inline-size: 0; }
.ds-admin-orbit { position: relative; display: grid; place-items: center; inline-size: 170px; block-size: 170px; border: 1px solid #ffffff35; border-radius: 50%; box-shadow: inset 0 0 50px #ffffff08, 0 0 0 22px #ffffff04; }
.ds-admin-orbit::before { content: ""; position: absolute; inset: 23px; border: 1px solid #ffffff35; border-radius: 30px; transform: rotate(-17deg); background: linear-gradient(140deg, #ffffff3b, #ffffff08); box-shadow: 12px 16px 24px #062d292e, inset 0 1px 0 #ffffff70; }
.ds-admin-orbit::after { content: ""; position: absolute; inline-size: 24px; block-size: 24px; inset-block-start: 9px; inset-inline-end: 12px; border: 1px solid #ffffff99; border-radius: 8px; background: #bce1cf; transform: rotate(15deg); box-shadow: 0 5px 18px #082d2433; }
.ds-admin-orbit svg { position: relative; inline-size: 56px; block-size: 56px; color: #ffffff; filter: drop-shadow(0 3px 4px #002a241a); }
.ds-admin-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-block: 30px 18px; }
.ds-admin-section-heading h2 { font-size: 1.1rem; margin: 0; }
.ds-admin-section-heading p, .ds-admin-section-heading > span { font-size: .76rem; color: var(--ds-muted); margin: 0; }
.ds-admin-priority-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ds-admin-priority-card { position: relative; min-inline-size: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--ds-glass); border: 1px solid #ffffff; border-radius: 22px; box-shadow: var(--ds-shadow-soft); transition: border-color .2s, box-shadow .2s; text-decoration: none; color: var(--ds-ink); }
.ds-admin-priority-card:hover { border-color: #a7cbb9; box-shadow: var(--ds-shadow-float); }
.ds-admin-card-icon { inline-size: 48px; block-size: 48px; display: grid; place-items: center; border-radius: 15px; background: #e6f0ea; color: var(--ds-primary); border: 1px solid #ffffff; box-shadow: var(--ds-shadow-inset); margin-block-end: 20px; }
.ds-admin-card-icon svg { inline-size: 25px; block-size: 25px; }
.ds-admin-card-kicker { color: var(--ds-muted); font-size: .68rem; margin-block-end: 6px; }
.ds-admin-priority-card h3 { font-size: 1.08rem; margin-block-end: 10px; }
.ds-admin-priority-card p { font-size: .8rem; color: var(--ds-muted); line-height: 1.95; margin-block-end: 16px; }
.ds-admin-card-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; inline-size: 100%; min-block-size: 44px; margin-block-start: auto; border-block-start: 1px solid #d5e3da; padding-block-start: 12px; text-decoration: none; font-size: .8rem; font-weight: 700; }
.ds-admin-card-link svg { inline-size: 18px; block-size: 18px; }
.ds-admin-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ds-admin-module-card { min-inline-size: 0; border: 1px solid #ffffff; border-radius: 20px; background: #f8fbf9b8; box-shadow: var(--ds-shadow-soft); padding: 22px; }
.ds-admin-module-heading { display: flex; align-items: center; gap: 10px; margin-block-end: 14px; }
.ds-admin-module-heading > svg { inline-size: 21px; block-size: 21px; color: var(--ds-primary); }
.ds-admin-module-heading h3 { font-size: .94rem; margin: 0; }
.ds-admin-module-heading .ds-admin-card-icon { inline-size: 42px; block-size: 42px; flex: 0 0 42px; margin: 0; border-radius: 13px; }
.ds-admin-module-heading .ds-admin-card-icon svg { inline-size: 21px; block-size: 21px; }
.ds-admin-module-heading p { color: var(--ds-muted); font-size: .7rem; line-height: 1.9; margin: 4px 0 0; }
.ds-admin-module-card > p { font-size: .77rem; color: var(--ds-muted); margin-block-end: 12px; }
.ds-admin-module-links { display: grid; gap: 2px; }
.ds-admin-module-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 44px; padding: 8px 10px; margin-inline: -10px; border-radius: 10px; font-size: .77rem; color: #3e5f52; text-decoration: none; }
.ds-admin-module-links a:hover { background: #e2eee6; color: #0b6156; }
.ds-admin-module-links a svg { inline-size: 16px; block-size: 16px; flex-shrink: 0; }
.ds-admin-readiness { margin-block-start: 28px; padding: 22px 24px; border: 1px solid #c7dcd0; border-radius: 18px; background: #e5f0e9; color: #375b4b; }
.ds-admin-readiness h2, .ds-admin-readiness h3 { font-size: .95rem; margin-block-end: 8px; }
.ds-admin-readiness p { font-size: .8rem; margin: 0; }
.ds-admin-readiness { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.ds-admin-readiness > .ds-admin-card-icon { margin: 0; flex-shrink: 0; }
.ds-admin-readiness > div { flex: 1 1 260px; }
.ds-admin-readiness > a { font-size: .8rem; padding-inline: 16px; }
.ds-admin-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ds-admin-breadcrumb a { color: var(--ds-muted); text-decoration: none; }
.ds-admin-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.ds-sidebar-note { display: flex; align-items: flex-start; gap: 10px; }
.ds-sidebar-note > svg, .ds-sidebar-note > span { flex: 0 0 28px; color: var(--ds-primary); margin-block-start: 3px; }
.ds-sidebar-note strong { font-size: .75rem; color: var(--ds-ink); }
.ds-sidebar-note p { font-size: .68rem; margin-block: 3px 0; }
.ds-admin-hero-aside > span { color: #d3e8e0; font-size: .7rem; margin-block-start: 20px; }
.ds-mobile-nav-brand { padding-block-end: 20px; margin-block-end: 20px; border-block-end: 1px solid var(--ds-border); }

/* Native disclosure navigation keeps management available before or without JavaScript. */
.ds-staff-mobile-nav { display: none; position: relative; }
.ds-admin-workspace > .ds-staff-mobile-nav { margin: 16px 20px 0; z-index: 19; }
.ds-staff-mobile-nav summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; padding: 8px 14px; border: 1px solid var(--ds-border); border-radius: 12px; background: #f1f7f3; box-shadow: var(--ds-shadow-soft); color: var(--ds-primary); cursor: pointer; list-style: none; font-weight: 650; }
.ds-staff-mobile-nav summary::-webkit-details-marker { display: none; }
.ds-staff-mobile-nav summary svg { inline-size: 20px; block-size: 20px; }
.ds-staff-mobile-nav > nav, .ds-staff-mobile-nav > .ds-admin-navigation { position: absolute; inset-block-start: calc(100% + 12px); inset-inline-start: 0; inline-size: min(320px, calc(100vw - 32px)); max-block-size: calc(100dvh - 140px); overflow-y: auto; padding: 18px; border: 1px solid #ffffff; border-radius: 18px; background: #f8fcfaf5; box-shadow: 0 18px 40px #143e3829; z-index: 30; }
.ds-staff .ds-admin-main > h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-block: 8px 12px; }
.ds-staff .ds-admin-main > p { color: var(--ds-muted); font-size: .9rem; line-height: 2; }
.ds-staff .ds-form-field input, .ds-staff textarea, .ds-staff select, .ds-catalog .ds-form-field input, .ds-catalog-form select, .ds-account textarea, .ds-account select { border-color: #9cb6ab; border-radius: 12px; background: #f0f5f2; box-shadow: var(--ds-shadow-inset); color: var(--ds-ink); }
.ds-staff input:focus-visible, .ds-staff textarea:focus-visible, .ds-staff select:focus-visible, .ds-auth-card input:focus-visible { border-color: var(--ds-primary); background: white; }
.ds-staff input[type="checkbox"] { accent-color: var(--ds-primary); }
.ds-staff fieldset { padding: 18px; border-radius: 16px; background: #f7faf8; }
.ds-staff legend { font-weight: 700; font-size: .88rem; padding-inline: 8px; }
.ds-staff .ds-catalog-definition { padding-block: 22px; }
.ds-staff .ds-catalog-definition summary { min-block-size: 44px; color: var(--ds-primary); font-weight: 600; }
.ds-staff .ds-catalog-list li { padding: 16px; background: #ffffffa6; border: 1px solid #ffffff; border-radius: 14px; box-shadow: var(--ds-shadow-soft); }
.ds-staff .ds-catalog-list li::marker { color: var(--ds-primary); }
.ds-staff table { display: block; inline-size: 100%; overflow-x: auto; border-collapse: collapse; font-size: .85rem; border-radius: 14px; background: #ffffffb8; }
.ds-staff th, .ds-staff td { text-align: start; padding: 12px 16px; border-block-end: 1px solid var(--ds-border); }
.ds-staff th { background: #e5f0e9; color: #345a49; font-weight: 700; }
.ds-staff td a { display: inline-flex; align-items: center; min-block-size: 44px; }
.ds-staff-main .ds-actions > a { display: inline-flex; align-items: center; min-block-size: 44px; }
.ds-staff-main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) { inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; min-block-size: 48px; border: 1px solid #9cb6ab; border-radius: 12px; padding: 10px 14px; background: #f0f5f2; color: var(--ds-ink); box-shadow: var(--ds-shadow-inset); }
.ds-staff-main form > label { display: block; margin-block: 12px; font-size: .88rem; font-weight: 600; }
.ds-staff-main form > label input:not([type="checkbox"]):not([type="radio"]) { display: block; margin-block-start: 8px; }
.ds-staff-main button:not(.mud-button-root) { min-block-size: 46px; padding: 10px 20px; border: 1px solid #ffffff40; border-radius: 12px; background: linear-gradient(135deg, #157766, #0b6156); color: white; font: inherit; font-size: .85rem; font-weight: 650; box-shadow: 0 5px 12px #0b61561c, inset 0 1px 0 #ffffff2b; cursor: pointer; }
.ds-staff-main button:not(.mud-button-root):disabled { color: #52685d; background: #dce6df; border-color: #bdcec3; box-shadow: none; cursor: not-allowed; }
.ds-staff-main button + button { margin-inline-start: 8px; }
.ds-staff-main [role="status"] { padding: 14px 18px; border: 1px solid #b9d8c5; border-radius: 14px; background: #edf6ef; color: #235d39; }
.ds-staff-main [role="alert"] { padding: 14px 18px; border: 1px solid #e2bac1; border-radius: 14px; background: #fff1f3; color: #a01d2e; }

/* A shared identity layout gives customer and staff entry points a consistent home. */
.ds-auth-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-inline-size: 1080px; margin-inline: auto; padding-block: 24px 48px; }
.ds-auth-identity { position: relative; min-inline-size: 0; }
.ds-auth-identity > .ds-brand { margin-block-end: 40px; }
.ds-auth-identity h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.7; max-inline-size: 15ch; }
.ds-auth-identity > p:not(.ds-eyebrow) { font-size: .9rem; color: var(--ds-muted); line-height: 2.1; max-inline-size: 40ch; }
.ds-auth-assurances { list-style: none; padding: 0; margin-block: 28px 0; display: grid; gap: 16px; }
.ds-auth-assurances li { display: flex; align-items: flex-start; gap: 12px; font-size: .82rem; color: #3e6051; }
.ds-auth-assurances li > svg, .ds-auth-assurances li > span:first-child { flex: 0 0 36px; inline-size: 36px; block-size: 36px; border-radius: 11px; padding: 8px; background: #e1eee6; border: 1px solid white; box-shadow: var(--ds-shadow-soft); color: #0b6156; }
.ds-auth-assurances strong { display: block; font-size: .86rem; margin-block-end: 2px; }
.ds-auth-assurances p { margin: 0; color: var(--ds-muted); font-size: .78rem; }
.ds-auth-content { min-inline-size: 0; }
.ds-staff-auth .ds-auth-shell { inline-size: min(100% - 64px, 1080px); min-block-size: 100dvh; padding-block: 56px; }
.ds-auth-identity-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.7; max-inline-size: 16ch; }
.ds-auth-identity-copy > p:not(.ds-eyebrow) { font-size: .9rem; color: var(--ds-muted); line-height: 2.1; max-inline-size: 40ch; }
.ds-auth-identity-footer { display: block; margin-block-start: 44px; font-size: .72rem; color: var(--ds-muted); }
.ds-auth-assurances li > span:first-child { display: grid; place-items: center; line-height: 1; }
.ds-auth-steps { display: flex; align-items: center; justify-content: center; gap: 24px; margin-block-end: 24px; }
.ds-auth-steps > span { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--ds-muted); }
.ds-auth-steps b { inline-size: 30px; block-size: 30px; display: grid; place-items: center; border-radius: 10px; background: #e4ede7; box-shadow: var(--ds-shadow-inset); }
.ds-auth-steps .is-current { color: var(--ds-primary); font-weight: 700; }
.ds-auth-steps .is-current b { color: white; background: var(--ds-primary); box-shadow: 0 3px 8px #0b615626; }
.ds-auth-footnote { text-align: center; margin-block: 18px 0; font-size: .75rem; color: var(--ds-muted); }
.ds-auth-content .ds-auth-card { margin: 0; inline-size: 100%; max-inline-size: none; }
.ds-auth-card > .ds-eyebrow { margin-block-end: 10px; }
.ds-auth-card h1 { font-size: clamp(1.5rem, 2.5vw, 1.8rem); margin-block-end: 12px; }
.ds-auth-card p { font-size: .84rem; line-height: 2; color: var(--ds-muted); }
.ds-auth-card label { font-size: .88rem; margin-block-start: 18px; }
.ds-auth-card input[type="checkbox"] { accent-color: var(--ds-primary); }
.ds-auth-card input::placeholder { color: #63776e; }
.ds-auth-card button[type="submit"] { inline-size: 100%; }
.ds-auth-card p[role="alert"], .ds-auth-card p.ds-auth-error { color: #a12424; }
.ds-auth-card p[role="status"] { color: #235d39; }
.ds-auth-card #mobile-help { font-size: .74rem; margin-block: 8px 16px; }
.ds-auth-header-link { display: inline-flex; align-items: center; min-block-size: 44px; gap: 8px; font-size: .85rem; text-decoration: none; }
.ds-auth-header-link svg { inline-size: 18px; block-size: 18px; }
.ds-auth-environment { max-inline-size: 1080px; margin: 0 auto 16px; padding: 12px 18px; border: 1px solid #d9dec8; background: #f4f5e9; border-radius: 14px; color: #62603e; font-size: .78rem; }
.ds-account .ds-auth-header .ds-store-header-inner, .ds-staff-auth .ds-store-header-inner { min-block-size: 84px; }
.ds-account .ds-auth-header .ds-brand-caption { font-size: .7rem; }
.ds-auth-account .ds-auth-shell { display: block; max-inline-size: 780px; }
.ds-auth-account .ds-auth-identity { display: none; }
.ds-auth-account .ds-auth-card { max-inline-size: 780px; }
.ds-auth-account .ds-auth-card h2 { font-size: 1.2rem; }
.ds-auth-account .ds-auth-card form + form { margin-block-start: 20px; }

@media (max-width: 1199px) and (min-width: 960px) {
    .ds-admin-priority-grid, .ds-admin-module-grid { gap: 14px; }
    .ds-admin-priority-card, .ds-admin-module-card { padding: 18px; }
    .ds-admin-welcome { grid-template-columns: minmax(0, 1fr) 150px; padding: 28px; }
    .ds-admin-orbit { inline-size: 140px; block-size: 140px; }
}
@media (max-width: 959px) {
    .ds-staff-mobile-nav { display: block; }
    .ds-admin-priority-grid, .ds-admin-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ds-admin-priority-card:last-child { grid-column: 1 / -1; }
    .ds-auth-shell { gap: 32px; }
}
@media (max-width: 699px) {
    .ds-admin-welcome { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; border-radius: 22px; gap: 0; }
    .ds-admin-hero-aside { display: none; }
    .ds-admin-welcome h1 { font-size: 1.65rem; }
    .ds-admin-welcome .ds-actions { gap: 10px; }
    .ds-admin-welcome .ds-link-button { flex: 1; padding-inline: 14px; font-size: .8rem; }
    .ds-admin-priority-grid, .ds-admin-module-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ds-admin-priority-card { padding: 22px; }
    .ds-admin-card-icon { margin-block-end: 16px; }
    .ds-admin-header-actions { gap: 4px; }
    .ds-admin-header-actions a { padding-inline: 9px; font-size: .72rem; }
    .ds-admin-header .ds-environment-badge { display: none; }
    .ds-admin-readiness { padding: 18px; }
    .ds-auth-shell { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 0 24px; }
    .ds-auth-identity > .ds-brand, .ds-auth-identity > h2, .ds-auth-identity > p:not(.ds-eyebrow), .ds-auth-assurances { display: none; }
    .ds-auth-identity > .ds-eyebrow { text-align: center; margin: 0; }
    .ds-staff-auth .ds-auth-shell { inline-size: calc(100% - 32px); padding-block: 28px; min-block-size: auto; }
    .ds-staff-auth .ds-auth-identity { text-align: center; }
    .ds-staff-auth .ds-auth-identity > .ds-brand { display: inline-flex; margin: 0; }
    .ds-auth-identity-copy, .ds-auth-identity-footer { display: none; }
    .ds-auth-content .ds-auth-card { padding: 28px 22px; border-radius: 22px; }
    .ds-auth-card h1 { font-size: 1.6rem; }
    .ds-auth-environment { margin-inline: 16px; }
    .ds-auth-header .ds-brand strong { font-size: .9rem; }
    .ds-account .ds-auth-header .ds-brand-caption { font-size: .6rem; }
    .ds-account .ds-auth-header .ds-store-header-inner { gap: 10px; }
    .ds-auth-header-link { font-size: .76rem; }
}
@media (forced-colors: active) {
    body, .ds-admin-welcome { background: Canvas; color: CanvasText; }
    .ds-admin-welcome p, .ds-admin-welcome .ds-eyebrow { color: CanvasText; }
    .ds-admin-priority-card, .ds-admin-module-card, .ds-auth-card, .ds-admin-readiness, .ds-admin-navigation a[aria-current="page"], .ds-admin-header, .ds-staff-mobile-nav summary { border: 1px solid CanvasText; }
    .ds-admin-navigation a[aria-current="page"] { color: LinkText; }
    .ds-admin-card-icon { color: CanvasText; }
}

.ds-hero-products { margin-block: 20px; }
.ds-hero-products a[aria-current="true"] { outline: 2px solid currentColor; outline-offset: 3px; }
.ds-hero-images { display: flex; flex-wrap: wrap; gap: 18px; padding: 20px; border: 1px solid var(--ds-border, #bdccc8); border-radius: 16px; }
.ds-hero-image { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; inline-size: min(220px, 100%); min-inline-size: 0; cursor: pointer; }
.ds-hero-image input { inline-size: 20px; block-size: 20px; margin-block-start: 12px; }
.ds-hero-image img { inline-size: 180px; max-inline-size: 100%; block-size: 180px; object-fit: contain; border-radius: 14px; background: #fff; }
.ds-hero-image span { grid-column: 2; overflow-wrap: anywhere; }
.ds-hero-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-block: 20px; }
.ds-hero-preview img { max-inline-size: 100%; block-size: auto; object-fit: contain; border-radius: 20px; background: #fff; }
.ds-hero-preview > div { flex: 1 1 240px; }
