:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #111827;
    --danger-bg: #fef2f2;
    --danger: #991b1b;
    --success-bg: #ecfdf5;
    --success: #065f46;
    --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(235, 239, 244, .30));
    --glass-border: 1px solid rgba(255, 255, 255, .48);
    --glass-shadow: 0 18px 45px rgba(17, 24, 39, .14), inset 0 1px 0 rgba(255, 255, 255, .62);
    --glass-blur: blur(20px) saturate(170%);
    --glass-radius: 22px;
}

/* Add-store expiry, billing, and optional member fields */
.create-store-dialog {
    width: min(520px, calc(100vw - 24px));
}

.create-store-dialog .store-dialog-surface {
    position: relative;
    min-height: 100%;
}

.create-store-form {
    gap: 12px;
}

.create-section-label,
.create-member-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.create-section-label > span,
.create-member-heading > strong {
    color: #334155;
    font-size: .75rem;
    font-style: normal;
    font-weight: 700;
}

.create-section-label > small,
.create-member-heading > span,
.create-user-field > span i {
    color: #94a3b8;
    font-size: .66rem;
    font-style: normal;
    font-weight: 650;
}

.create-expiry-trigger {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #fff;
    color: #64748b;
    text-align: left;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.create-expiry-trigger:hover,
.create-expiry-trigger:focus-visible {
    border-color: #94a3b8;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .10);
}

.create-expiry-trigger.is-set {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1f2937;
}

.create-expiry-trigger-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    border-radius: 7px;
    background: #eef2f6;
    color: #64748b;
}

.create-expiry-trigger-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.create-expiry-trigger strong {
    min-width: 0;
    flex: 1 1 auto;
    font-size: .8125rem;
    font-weight: 700;
}

.create-expiry-trigger-arrow {
    color: #94a3b8;
    font-size: 1.35rem;
    line-height: 1;
}

.create-billing-fields {
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #f8fafc;
}

.create-paid-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.create-paid-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.create-paid-switch {
    width: 36px;
    height: 21px;
    display: block;
    flex: 0 0 36px;
    padding: 3px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color .16s ease;
}

.create-paid-switch i {
    width: 15px;
    height: 15px;
    display: block;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .24);
    transition: transform .16s ease;
}

.create-paid-toggle input:checked + .create-paid-switch {
    background: #22c55e;
}

.create-paid-toggle input:checked + .create-paid-switch i {
    transform: translateX(15px);
}

.create-paid-toggle:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .10);
}

.create-paid-copy,
.create-paid-copy strong,
.create-paid-copy small {
    display: block;
}

.create-paid-copy strong {
    color: #334155;
    font-size: .75rem;
    font-weight: 700;
}

.create-paid-copy small {
    margin-top: 1px;
    color: #64748b;
    font-size: .7rem;
    font-weight: 650;
}

.create-user-fields {
    margin: 0;
}

.create-member-heading {
    margin-bottom: 0;
}

.create-expiry-popup[hidden] {
    display: none !important;
}

.create-expiry-popup {
    position: absolute;
    z-index: 20;
    inset: 0;
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 16px;
    overflow: hidden;
    border-radius: 14px;
}

.create-expiry-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: rgba(15, 23, 42, .48);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.create-expiry-card {
    position: relative;
    z-index: 1;
    width: min(390px, 100%);
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .28);
    animation: create-expiry-in .18s ease-out both;
}

@keyframes create-expiry-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.create-expiry-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.create-expiry-card-header small,
.create-expiry-card-header h3 {
    display: block;
    margin: 0;
}

.create-expiry-card-header small {
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.create-expiry-card-header h3 {
    color: #111827;
    font-size: 1rem;
    letter-spacing: -.015em;
}

.create-expiry-card-header > button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 1.15rem;
}

.create-expiry-card .picker-value-line {
    min-height: 38px;
    margin-bottom: 8px;
    color: #111827;
    font-size: .875rem;
}

.create-expiry-card .duration-picker {
    border-color: #e5e7eb;
    background: #fff;
}

.create-expiry-note {
    margin: 9px 2px 0;
    color: #64748b;
    font-size: .68rem;
    line-height: 1.45;
    text-align: center;
}

.create-expiry-card-actions {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 8px;
    margin-top: 11px;
}

.create-expiry-card-actions button {
    min-height: 39px;
    padding: 8px 11px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font-size: .78rem;
    font-weight: 700;
}

.create-expiry-card-actions [data-create-expiry-apply] {
    border-color: #1f2937;
    background: #1f2937;
    color: #fff;
}

@media (max-width: 560px) {
    .create-store-dialog {
        width: calc(100vw - 18px);
        max-height: min(91dvh, 760px);
    }

    .create-store-form {
        padding: 12px;
    }

    .create-billing-fields,
    .create-user-fields {
        padding: 9px;
    }

    .create-expiry-popup {
        padding: 10px;
    }

    .create-expiry-card {
        padding: 12px;
    }
}

* { box-sizing: border-box; }

html,
body {
    width: 100%;
    min-height: 100%;
    background-color: #F5F7FB;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-image: radial-gradient(
        circle,
        #cfcfcf 0 1px,
        transparent 1.2px
    );
    background-size: 20px 20px;
    background-position: 0 8px;
    background-repeat: repeat;
    color: var(--text);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card, .welcome-card {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 18px 55px rgba(17, 24, 39, .08);
}

.brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.04em;
}

h1 {
    margin: 20px 0 8px;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.04em;
}

.muted { color: var(--muted); margin-top: 0; }

label {
    display: block;
    margin: 18px 0 8px;
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    background: #fff;
}

input:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, .05);
}

.hint {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

button, .logout {
    border: 0;
    border-radius: 12px;
    padding: 13px 16px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

form > button[type="submit"] {
    width: 100%;
    margin-top: 20px;
    background: var(--primary);
    color: #fff;
}

.sub-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}

.alert {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }

.turnstile-wrap { margin-top: 18px; min-height: 65px; }
.otp-input { letter-spacing: .35em; font-size: 24px; text-align: center; font-weight: 800; }
.inline-form { margin-top: 8px; }
.button-link { width: 100%; background: transparent !important; color: var(--muted) !important; margin-top: 5px !important; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 14px 14px;
    background: transparent;
    border-bottom: 0;
}
.topbar-inner {
    max-width: 980px;
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    position: relative;
    overflow: visible;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.topbar-inner::before,
.topbar-inner::after {
    display: none;
}
.navbar-logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    min-height: 32px;
}
.navbar-logo img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}
.nav-menu {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}
.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, .14);
}
.menu-toggle:focus-visible {
    outline: 2px solid rgba(17, 24, 39, .22);
    outline-offset: 2px;
}
.menu-toggle.is-active {
    background: rgba(255, 255, 255, .18);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .88);
    transition: transform .18s ease, opacity .18s ease, width .18s ease;
}
.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 178px;
    padding: 10px;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.menu-dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.menu-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 16px;
    border-top: 1px solid rgba(255, 255, 255, .48);
    border-left: 1px solid rgba(255, 255, 255, .48);
    background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(235, 239, 244, .30));
    transform: rotate(45deg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .16s ease, transform .16s ease;
}
.menu-dropdown a:hover {
    background: rgba(255, 255, 255, .34);
    transform: translateX(1px);
}
.dashboard-shell { max-width: 1050px; margin: 0 auto; padding: 30px 24px 42px; }



.welcome-card { max-width: none; }
.eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.info-item { border: 1px solid var(--border); border-radius: 15px; padding: 16px; overflow-wrap: anywhere; }
.info-item span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.info-item strong { font-size: 15px; }


.files-card {
    margin-top: 24px;
    width: 100%;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 55px rgba(17, 24, 39, .06);
}
.files-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.files-heading h2 {
    margin: 8px 0 4px;
    font-size: 22px;
    letter-spacing: -.03em;
}
.files-subtitle { margin-bottom: 0; }
.file-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .70);
}
.file-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px 13px calc(14px + (var(--depth) * 14px));
    border-bottom: 1px solid rgba(229, 231, 235, .9);
}
.file-row:last-child { border-bottom: 0; }
.file-icon {
    width: 24px;
    flex: 0 0 24px;
    line-height: 1.35;
    text-align: center;
}
.file-main {
    min-width: 0;
    flex: 1 1 auto;
}
.file-path {
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    overflow-wrap: anywhere;
}
.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}
.files-count {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}
.files-error,
.files-empty {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    color: var(--text);
}
.files-error p { margin: 8px 0 0; color: var(--muted); }
.files-error code {
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(17, 24, 39, .06);
}

@media (max-width: 640px) {
    .topbar-inner { padding: 0 16px; min-height: 66px; border-radius: var(--glass-radius); }
    .menu-dropdown { min-width: 165px; right: 0; }
    .navbar-logo img { height: 28px; max-width: 130px; }
    .topbar { padding: 12px 10px 12px; }
    .dashboard-shell { padding: 28px 16px; }
    .auth-card, .welcome-card { padding: 22px; border-radius: 18px; }
    h1 { font-size: 26px; }
    .info-grid { grid-template-columns: 1fr; }
    .files-card { padding: 18px; border-radius: 18px; }
    .file-row { padding-left: calc(12px + (var(--depth) * 9px)); }
}


/* Simple bazarben.com store list */
.simple-files {
    width: 100%;
    overflow: hidden;
    border: var(--glass-border);
    border-radius: var(--glass-radius);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.simple-file-row {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 14px 18px 14px calc(18px + (var(--depth, 0) * 16px));
    border-bottom: 1px solid rgba(229, 231, 235, .72);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.simple-file-row:last-child { border-bottom: 0; }
.simple-file-row.is-folder { font-weight: 800; }
.simple-file-row.is-folder::before { content: "📁"; margin-right: 10px; font-size: 17px; }
.simple-file-row.is-file::before { content: "📄"; margin-right: 10px; font-size: 16px; }
@media (max-width: 640px) {
    .simple-file-row {
        min-height: 50px;
        padding: 13px 14px 13px calc(14px + (var(--depth, 0) * 11px));
        font-size: 14px;
    }
}


/* Store list and details popup */
.store-row {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .16s ease, transform .16s ease;
}
.store-row::before {
    display: none;
}
.store-row:hover {
    background: rgba(255, 255, 255, .30);
}
.store-row:active {
    transform: scale(.995);
}
.store-row:focus-visible {
    outline: 3px solid rgba(124, 58, 237, .22);
    outline-offset: -3px;
}
.store-name {
    min-width: 0;
    overflow-wrap: anywhere;
}
.store-view-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 72px;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgba(124, 58, 237, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .50);
    box-shadow: 0 7px 18px rgba(76, 29, 149, .08), inset 0 1px 0 rgba(255, 255, 255, .72);
    white-space: nowrap;
}
.store-view-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #ff4f9a 0%, #7c3aed 50%, #0ea5e9 100%);
    box-shadow: 0 5px 14px rgba(124, 58, 237, .28);
}
.store-view-icon svg,
.store-detail-stat-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.store-view-count {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}
.store-block {
    border-bottom: 1px solid rgba(229, 231, 235, .72);
}
.store-block:last-child {
    border-bottom: 0;
}
.store-block .simple-file-row {
    border-bottom: 0;
}
.modal-open {
    overflow: hidden;
}
.store-detail-dialog {
    width: min(560px, calc(100vw - 28px));
    max-height: min(84vh, 720px);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 25px;
    background: rgba(249, 250, 252, .96);
    color: var(--text);
    box-shadow: 0 28px 90px rgba(17, 24, 39, .28), inset 0 1px 0 rgba(255, 255, 255, .90);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    overflow: auto;
}
.store-detail-dialog[open] {
    animation: store-dialog-in .18s ease-out;
}
.store-detail-dialog::backdrop {
    background: rgba(17, 24, 39, .36);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.store-detail-dialog.is-fallback-open {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 100;
    transform: translate(-50%, -50%);
}
@keyframes store-dialog-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.store-dialog-surface {
    padding: 24px;
}
.store-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.store-detail-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.store-dialog-header h2 {
    margin: 0;
    font-size: clamp(22px, 5vw, 28px);
    line-height: 1.18;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.store-dialog-close {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, .07);
    border-radius: 13px;
    background: rgba(255, 255, 255, .68);
    color: var(--muted);
    box-shadow: 0 7px 18px rgba(17, 24, 39, .06);
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.store-dialog-close:hover {
    background: #fff;
    color: var(--text);
    transform: rotate(3deg);
}
.store-dialog-close svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.store-detail-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}
.store-detail-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 17px;
    background: rgba(255, 255, 255, .56);
    box-shadow: 0 9px 25px rgba(17, 24, 39, .06), inset 0 1px 0 rgba(255, 255, 255, .82);
}
.store-detail-stat-icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 7px 18px rgba(17, 24, 39, .12);
}
.store-detail-stat.is-views .store-detail-stat-icon {
    background: linear-gradient(135deg, #ff4f9a, #7c3aed 52%, #0ea5e9);
}
.store-detail-stat.is-admins .store-detail-stat-icon {
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}
.store-detail-stat small,
.store-detail-stat strong {
    display: block;
}
.store-detail-stat small {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}
.store-detail-stat strong {
    font-size: 20px;
    letter-spacing: -.025em;
}
.store-detail-section {
    margin-top: 22px;
}
.store-detail-section h3 {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: -.01em;
}
.assigned-admin-list {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, .82);
    border-radius: 17px;
    background: rgba(255, 255, 255, .45);
}
.assigned-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
}
.assigned-admin-row + .assigned-admin-row {
    border-top: 1px solid rgba(229, 231, 235, .72);
}
.assigned-admin-main {
    min-width: 0;
}
.assigned-admin-name {
    display: block;
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.assigned-admin-phone {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}
.assigned-admin-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}
.admin-level,
.admin-status {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.admin-level {
    background: rgba(124, 58, 237, .09);
    color: #6d28d9;
}
.admin-status.is-active {
    background: #dcfce7;
    color: #166534;
}
.admin-status.is-disabled {
    background: #fee2e2;
    color: #991b1b;
}
.store-admin-empty {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 18px;
    border: 1px dashed rgba(107, 114, 128, .25);
    border-radius: 15px;
    background: rgba(255, 255, 255, .35);
    text-align: center;
}
.store-dialog-done {
    width: 100%;
    margin-top: 22px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .store-row {
        align-items: center;
    }
    .store-view-badge {
        min-width: 66px;
        gap: 7px;
        padding-right: 9px;
    }
    .store-view-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }
    .store-view-count {
        font-size: 12px;
    }
    .store-dialog-surface {
        padding: 20px;
    }
    .store-detail-summary {
        grid-template-columns: 1fr;
    }
    .assigned-admin-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
    .assigned-admin-meta {
        justify-content: flex-start;
    }
}


/* Dashboard refresh — colorful, compact and mobile-safe */
:root {
    --dash-purple: #6d4aff;
    --dash-violet: #8b5cf6;
    --dash-pink: #ec4899;
    --dash-blue: #1687ff;
    --dash-cyan: #06b6d4;
    --dash-teal: #10b981;
    --dash-orange: #f97316;
    --dash-ink: #172033;
    --dash-muted: #718096;
}

body {
    background-color: #f6f5ff;
    background-image:
        radial-gradient(circle at 8% 4%, rgba(139, 92, 246, .19), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(14, 165, 233, .15), transparent 25%),
        radial-gradient(circle at 70% 90%, rgba(236, 72, 153, .11), transparent 27%),
        radial-gradient(circle, rgba(109, 74, 255, .13) 0 1px, transparent 1.2px);
    background-size: auto, auto, auto, 22px 22px;
    background-position: center, center, center, 0 8px;
    color: var(--dash-ink);
}

.topbar {
    padding-top: 16px;
}

.topbar-inner {
    min-height: 70px;
    border: 1px solid transparent;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(247, 245, 255, .84)) padding-box,
        linear-gradient(110deg, rgba(109, 74, 255, .48), rgba(22, 135, 255, .34), rgba(236, 72, 153, .40)) border-box;
    box-shadow: 0 16px 45px rgba(78, 58, 145, .13), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.topbar-inner::after {
    content: "";
    display: block;
    position: absolute;
    right: 76px;
    bottom: -1px;
    left: 76px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--dash-purple), var(--dash-blue), var(--dash-pink), transparent);
    opacity: .62;
}

.menu-toggle {
    background: linear-gradient(135deg, rgba(109, 74, 255, .10), rgba(22, 135, 255, .09));
}

.menu-toggle:hover,
.menu-toggle.is-active {
    background: linear-gradient(135deg, rgba(109, 74, 255, .18), rgba(22, 135, 255, .14));
}

.hamburger-line {
    background: linear-gradient(90deg, #5943d7, #1687ff);
}

.menu-dropdown {
    border: 1px solid rgba(109, 74, 255, .16);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 55px rgba(53, 38, 112, .18);
}

.menu-dropdown::before {
    background: rgba(255, 255, 255, .94);
    border-color: rgba(109, 74, 255, .16);
}

.menu-dropdown a:hover {
    background: linear-gradient(135deg, rgba(109, 74, 255, .10), rgba(22, 135, 255, .08));
}

.dashboard-shell {
    max-width: 1020px;
    padding: 24px 24px 52px;
}

.dashboard-intro {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 26px;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, .94), rgba(245, 242, 255, .88) 54%, rgba(237, 248, 255, .88));
    box-shadow: 0 22px 60px rgba(76, 54, 139, .14), inset 0 1px 0 #fff;
}

.dashboard-intro::before,
.dashboard-intro::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.dashboard-intro::before {
    width: 210px;
    height: 210px;
    top: -120px;
    right: 28%;
    background: rgba(139, 92, 246, .16);
    filter: blur(2px);
}

.dashboard-intro::after {
    width: 160px;
    height: 160px;
    right: -64px;
    bottom: -82px;
    background: rgba(22, 135, 255, .13);
}

.dashboard-kicker,
.section-kicker {
    display: block;
    color: var(--dash-purple);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dashboard-intro h1 {
    margin: 7px 0 7px;
    color: var(--dash-ink);
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: -.045em;
}

.dashboard-intro p {
    max-width: 520px;
    margin: 0;
    color: var(--dash-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 9px;
}

.dashboard-stat {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 17px;
    background: rgba(255, 255, 255, .70);
    box-shadow: 0 10px 26px rgba(52, 40, 101, .08), inset 0 1px 0 #fff;
}

.dashboard-stat-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 13px;
    color: #fff;
    box-shadow: 0 7px 16px rgba(32, 37, 64, .15);
}

.stat-stores .dashboard-stat-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.stat-views .dashboard-stat-icon { background: linear-gradient(135deg, #1687ff, #06b6d4); }
.stat-admins .dashboard-stat-icon { background: linear-gradient(135deg, #ec4899, #f97316); }

.dashboard-stat-icon svg,
.store-view-icon svg,
.store-detail-stat-icon svg {
    display: block;
    max-width: 19px;
    max-height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-stat small,
.dashboard-stat strong {
    display: block;
}

.dashboard-stat small {
    margin-bottom: 1px;
    color: var(--dash-muted);
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.dashboard-stat strong {
    color: var(--dash-ink);
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.stores-panel {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 26px;
    background: rgba(255, 255, 255, .67);
    box-shadow: 0 20px 55px rgba(64, 50, 120, .11), inset 0 1px 0 rgba(255, 255, 255, .95);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.stores-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 1px 3px 15px;
}

.stores-panel-header h2 {
    margin: 4px 0 0;
    color: var(--dash-ink);
    font-size: 21px;
    letter-spacing: -.035em;
}

.stores-count {
    padding: 7px 11px;
    border: 1px solid rgba(109, 74, 255, .11);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(109, 74, 255, .10), rgba(22, 135, 255, .09));
    color: #5f46d8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.stores-panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.stores-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 12px;
}

.stores-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
}

.stores-search svg {
    position: absolute;
    z-index: 1;
    left: 15px;
    fill: none;
    stroke: #817a99;
    stroke-width: 1.9;
    stroke-linecap: round;
    pointer-events: none;
}

.stores-search input {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 16px 0 43px;
    border: 1px solid rgba(109, 74, 255, .13);
    border-radius: 15px;
    outline: 0;
    background: linear-gradient(135deg, rgba(109, 74, 255, .06), rgba(22, 135, 255, .04), rgba(255, 255, 255, .92));
    color: var(--dash-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.stores-search input::placeholder {
    color: #9993aa;
    opacity: 1;
}

.stores-search input:focus {
    border-color: rgba(109, 74, 255, .45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(109, 74, 255, .09), inset 0 1px 0 #fff;
}

.stores-toolbar .create-store-button {
    min-width: 86px;
    min-height: 46px;
    padding-inline: 16px;
    border-radius: 15px;
    font-size: 12px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.create-store-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(110deg, #6d4aff, #7c3aed 48%, #1687ff);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    box-shadow: 0 9px 22px rgba(109, 74, 255, .24);
    transition: transform .16s ease, filter .16s ease;
}

.create-store-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.create-store-button svg,
.create-store-dialog .store-dialog-avatar svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.simple-files {
    display: grid;
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.store-block {
    border: 0;
}

.store-block[hidden],
.store-search-empty[hidden] {
    display: none !important;
}

.store-search-empty {
    grid-column: 1 / -1;
}

.store-row {
    --store-accent: #6d4aff;
    --store-accent-2: #a855f7;
    --store-soft: rgba(109, 74, 255, .10);
    position: relative;
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--store-accent) 18%, white);
    border-radius: 19px;
    background: linear-gradient(105deg, var(--store-soft), rgba(255, 255, 255, .92) 34%, rgba(255, 255, 255, .75));
    box-shadow: 0 9px 24px rgba(53, 47, 87, .07), inset 0 1px 0 #fff;
    color: var(--dash-ink);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.store-row::after {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: -1px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, var(--store-accent), var(--store-accent-2));
}

.store-row:hover {
    border-color: color-mix(in srgb, var(--store-accent) 31%, white);
    background: linear-gradient(105deg, var(--store-soft), #fff 40%, rgba(255, 255, 255, .92));
    box-shadow: 0 14px 32px color-mix(in srgb, var(--store-accent) 13%, transparent);
    transform: translateY(-1px);
}

.store-row:active {
    transform: scale(.994);
}

.store-row:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--store-accent) 25%, transparent);
    outline-offset: 2px;
}

.store-tone-1 { --store-accent: #e83e8c; --store-accent-2: #fb7185; --store-soft: rgba(236, 72, 153, .10); }
.store-tone-2 { --store-accent: #0891b2; --store-accent-2: #10b981; --store-soft: rgba(6, 182, 212, .10); }
.store-tone-3 { --store-accent: #ea580c; --store-accent-2: #f59e0b; --store-soft: rgba(249, 115, 22, .10); }
.store-tone-4 { --store-accent: #1677ff; --store-accent-2: #6366f1; --store-soft: rgba(22, 119, 255, .10); }

.store-identity {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.store-avatar {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    border: 2px solid rgba(255, 255, 255, .86);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--store-accent), var(--store-accent-2));
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 7px 17px color-mix(in srgb, var(--store-accent) 28%, transparent);
    overflow: hidden;
}

.store-avatar-fallback {
    display: inline-grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.store-avatar.has-logo,
.store-dialog-avatar.has-logo {
    padding: 4px;
    background: #fff;
}

.store-avatar.has-logo {
    border-color: color-mix(in srgb, var(--store-accent) 24%, white);
}

.store-avatar.has-logo .store-avatar-fallback,
.store-dialog-avatar.has-logo .store-avatar-fallback {
    display: none;
}

.store-avatar img,
.store-dialog-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.store-avatar img[hidden],
.store-dialog-avatar img[hidden] {
    display: none;
}

.store-copy {
    min-width: 0;
}

.store-name {
    display: block;
    min-width: 0;
    color: var(--dash-ink);
    font-size: 14px;
    font-weight: 820;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.store-copy small {
    display: block;
    margin-top: 3px;
    color: var(--dash-muted);
    font-size: 10px;
    font-weight: 650;
}

.store-view-badge {
    min-width: 72px;
    gap: 7px;
    padding: 5px 10px 5px 5px;
    border: 1px solid color-mix(in srgb, var(--store-accent) 16%, white);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 7px 17px rgba(40, 35, 78, .07), inset 0 1px 0 #fff;
}

.store-view-icon {
    width: 29px;
    height: 29px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 29px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--store-accent), var(--store-accent-2));
    color: #fff;
    box-shadow: 0 5px 12px color-mix(in srgb, var(--store-accent) 28%, transparent);
}

.store-view-count {
    color: var(--store-accent);
    font-size: 12px;
    font-weight: 900;
}

.dashboard-empty {
    padding: 28px 18px;
    border: 1px dashed rgba(109, 74, 255, .24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(109, 74, 255, .06), rgba(22, 135, 255, .05));
    color: var(--dash-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.dashboard-empty code {
    color: var(--dash-purple);
}

.modal-open {
    overflow: hidden;
}

.store-detail-dialog {
    width: min(520px, calc(100vw - 28px));
    max-height: min(86dvh, 700px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 25px;
    background: #f8f8fc;
    color: var(--dash-ink);
    box-shadow: 0 34px 110px rgba(32, 24, 72, .38), 0 0 0 1px rgba(255, 255, 255, .78);
    scrollbar-color: rgba(109, 74, 255, .35) transparent;
}

.store-detail-dialog::backdrop {
    background: rgba(28, 23, 51, .53);
    backdrop-filter: blur(7px) saturate(120%);
    -webkit-backdrop-filter: blur(7px) saturate(120%);
}

.store-detail-dialog[open] {
    animation: colorful-dialog-in .2s cubic-bezier(.2, .8, .2, 1);
}

@keyframes colorful-dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.store-dialog-surface {
    padding: 0;
}

.store-dialog-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at 87% -20%, rgba(255, 255, 255, .30), transparent 37%),
        linear-gradient(125deg, #6d4aff 0%, #7c3aed 40%, #1687ff 76%, #06b6d4 110%);
    color: #fff;
}

.store-dialog-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.store-dialog-avatar {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 15px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
    overflow: hidden;
}

.store-detail-eyebrow {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 9px;
    letter-spacing: .14em;
}

.store-dialog-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.2;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.store-dialog-close {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 13px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.store-dialog-close:hover {
    background: rgba(255, 255, 255, .26);
    color: #fff;
}

.create-store-dialog {
    width: min(480px, calc(100vw - 28px));
}

.create-store-dialog-header {
    background:
        radial-gradient(circle at 87% -20%, rgba(255, 255, 255, .30), transparent 37%),
        linear-gradient(125deg, #6d4aff 0%, #7c3aed 44%, #1687ff 100%);
}

.create-store-form {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.create-store-field,
.create-store-field > span,
.create-store-field > small {
    display: block;
}

.create-store-field > span {
    margin-bottom: 7px;
    color: var(--dash-ink);
    font-size: 12px;
    font-weight: 850;
}

.create-store-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(109, 74, 255, .18);
    border-radius: 14px;
    outline: 0;
    background: #fff;
    color: var(--dash-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    box-shadow: inset 0 1px 2px rgba(43, 35, 83, .04);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.create-store-field input:focus {
    border-color: rgba(109, 74, 255, .58);
    box-shadow: 0 0 0 4px rgba(109, 74, 255, .10);
}

.create-store-field > small {
    margin-top: 6px;
    color: var(--dash-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
}

.create-store-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid rgba(109, 74, 255, .11);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(109, 74, 255, .07), rgba(22, 135, 255, .06));
}

.create-store-path span {
    color: var(--dash-muted);
    font-size: 10px;
    font-weight: 750;
}

.create-store-path strong {
    min-width: 0;
    overflow: hidden;
    color: #5f46d8;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.create-store-path b {
    font: inherit;
}

.create-store-help {
    margin: -2px 0 0;
    color: var(--dash-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.55;
}

.create-store-help strong {
    color: var(--dash-ink);
}

.create-store-actions {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 9px;
    margin-top: 2px;
}

.create-store-cancel,
.create-store-submit {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 850;
}

.create-store-cancel {
    border: 1px solid rgba(109, 74, 255, .12);
    background: #fff;
    color: var(--dash-muted);
}

.create-store-submit {
    border: 0;
    background: linear-gradient(110deg, #6d4aff, #7c3aed 48%, #1687ff);
    color: #fff;
    box-shadow: 0 10px 24px rgba(109, 74, 255, .24);
}

.create-store-submit:disabled {
    cursor: wait;
    opacity: .68;
}

.store-dialog-close svg {
    display: block;
    width: 19px;
    height: 19px;
    max-width: 19px;
    max-height: 19px;
}

.store-detail-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 20px 0;
}

.store-detail-stat {
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 17px;
    box-shadow: 0 9px 24px rgba(53, 42, 105, .07), inset 0 1px 0 #fff;
}

.store-detail-stat.is-views {
    background: linear-gradient(135deg, rgba(109, 74, 255, .11), rgba(22, 135, 255, .08), #fff);
}

.store-detail-stat.is-admins {
    background: linear-gradient(135deg, rgba(236, 72, 153, .10), rgba(249, 115, 22, .08), #fff);
}

.store-detail-stat-icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 14px;
    color: #fff;
}

.store-detail-stat.is-views .store-detail-stat-icon {
    background: linear-gradient(135deg, #6d4aff, #1687ff);
}

.store-detail-stat.is-admins .store-detail-stat-icon {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.store-detail-stat small {
    color: var(--dash-muted);
    font-size: 10px;
}

.store-detail-stat strong {
    color: var(--dash-ink);
    font-size: 19px;
}

.store-detail-section {
    margin: 20px;
}

.store-detail-section h3 {
    margin: 0 0 10px;
    color: var(--dash-ink);
    font-size: 14px;
}

.assigned-admin-list {
    border: 1px solid rgba(109, 74, 255, .11);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(54, 43, 101, .05);
}

.assigned-admin-row {
    padding: 13px;
}

.assigned-admin-row + .assigned-admin-row {
    border-color: rgba(109, 74, 255, .08);
}

.assigned-admin-name {
    color: var(--dash-ink);
    font-size: 13px;
}

.assigned-admin-phone {
    color: var(--dash-muted);
    font-size: 11px;
}

.admin-level {
    background: rgba(109, 74, 255, .10);
    color: #5b3fd4;
}

.store-admin-empty {
    border-color: rgba(109, 74, 255, .20);
    background: linear-gradient(135deg, rgba(109, 74, 255, .06), rgba(22, 135, 255, .05));
    color: var(--dash-muted);
}

.store-dialog-done {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(110deg, #6d4aff, #7c3aed 44%, #1687ff);
    color: #fff;
    box-shadow: 0 10px 24px rgba(109, 74, 255, .25);
}

.store-dialog-done:hover {
    filter: brightness(1.04);
}

@media (max-width: 760px) {
    .dashboard-intro {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 18px;
    }

    .dashboard-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 12px 10px 8px;
    }

    .topbar-inner {
        min-height: 64px;
        padding: 0 15px;
        border-radius: 21px;
    }

    .dashboard-shell {
        padding: 14px 12px 34px;
    }

    .dashboard-intro {
        gap: 16px;
        padding: 20px 17px;
        border-radius: 22px;
    }

    .dashboard-intro h1 {
        margin-top: 6px;
        font-size: 28px;
    }

    .dashboard-intro p {
        font-size: 12px;
    }

    .dashboard-summary {
        gap: 6px;
    }

    .dashboard-stat {
        display: block;
        padding: 9px 7px;
        border-radius: 14px;
        text-align: center;
    }

    .dashboard-stat-icon {
        width: 31px;
        height: 31px;
        margin: 0 auto 6px;
        border-radius: 11px;
    }

    .dashboard-stat-icon svg {
        max-width: 16px;
        max-height: 16px;
    }

    .dashboard-stat small {
        overflow: hidden;
        font-size: 8px;
        text-overflow: ellipsis;
    }

    .dashboard-stat strong {
        font-size: 15px;
    }

    .stores-panel {
        margin-top: 12px;
        padding: 13px;
        border-radius: 22px;
    }

    .stores-panel-header {
        padding: 3px 2px 12px;
    }

    .stores-panel-header h2 {
        font-size: 19px;
    }

    .stores-panel-actions {
        gap: 6px;
    }

    .stores-count {
        padding: 6px 8px;
        font-size: 9px;
    }

    .create-store-button {
        min-height: 34px;
        padding: 7px 10px;
    }

    .create-store-form {
        padding: 18px 15px 15px;
    }

    .simple-files {
        gap: 8px;
    }

    .store-row {
        min-height: 65px;
        gap: 9px;
        padding: 9px 9px;
        border-radius: 17px;
    }

    .store-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
        font-size: 13px;
    }

    .store-identity {
        gap: 9px;
    }

    .store-name {
        font-size: 12px;
    }

    .store-copy small {
        font-size: 9px;
    }

    .store-view-badge {
        min-width: 61px;
        gap: 5px;
        padding: 4px 8px 4px 4px;
    }

    .store-view-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .store-view-icon svg {
        max-width: 14px;
        max-height: 14px;
    }

    .store-view-count {
        font-size: 11px;
    }

    .store-detail-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 28px);
        border-radius: 22px;
    }

    .store-dialog-header {
        padding: 18px;
    }

    .store-dialog-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 13px;
    }

    .store-dialog-header h2 {
        font-size: 18px;
    }

    .store-detail-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 14px 15px 0;
        gap: 7px;
    }

    .store-detail-stat {
        gap: 8px;
        padding: 10px;
        border-radius: 15px;
    }

    .store-detail-stat-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 12px;
    }

    .store-detail-stat-icon svg {
        max-width: 16px;
        max-height: 16px;
    }

    .store-detail-stat small {
        font-size: 8px;
    }

    .store-detail-stat strong {
        font-size: 16px;
    }

    .store-detail-section {
        margin: 17px 15px;
    }

    .assigned-admin-row {
        gap: 8px;
        padding: 12px;
    }

    .assigned-admin-meta {
        display: flex;
        flex-direction: row;
    }

    .store-dialog-done {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-detail-dialog[open],
    .store-row,
    .menu-dropdown,
    .menu-toggle,
    .hamburger-line {
        animation: none;
        transition: none;
    }
}


/* Store expiry reminders */
.dashboard-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 28px rgba(53, 43, 101, .09);
    font-size: 12px;
    font-weight: 750;
}

.dashboard-notice.is-success {
    border-color: rgba(16, 185, 129, .25);
    color: #047857;
}

.dashboard-notice.is-error {
    border-color: rgba(239, 68, 68, .25);
    color: #b91c1c;
}

.dashboard-notice-icon {
    width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 25px;
    border-radius: 9px;
    background: currentColor;
    color: #fff;
    font-weight: 900;
}

.dashboard-notice.is-success .dashboard-notice-icon { background: #10b981; }
.dashboard-notice.is-error .dashboard-notice-icon { background: #ef4444; }

.dashboard-summary {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
}

.stat-expired .dashboard-stat-icon {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.store-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}

.store-expiry-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 27px;
    padding: 5px 8px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.store-expiry-badge svg,
.expiry-current-icon svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-expiry-badge.is-active {
    border-color: rgba(16, 185, 129, .20);
    background: #ecfdf5;
    color: #047857;
}

.store-expiry-badge.is-soon {
    border-color: rgba(245, 158, 11, .24);
    background: #fffbeb;
    color: #b45309;
}

.store-expiry-badge.is-expired,
.store-expiry-badge.is-invalid {
    border-color: rgba(239, 68, 68, .22);
    background: #fef2f2;
    color: #b91c1c;
}

.store-dialog-header {
    position: sticky;
    top: 0;
    z-index: 3;
}

.store-expiry-section {
    margin: 20px;
    padding: 16px;
    border: 1px solid rgba(109, 74, 255, .12);
    border-radius: 19px;
    background:
        radial-gradient(circle at 92% 4%, rgba(22, 135, 255, .10), transparent 32%),
        linear-gradient(135deg, rgba(109, 74, 255, .06), rgba(255, 255, 255, .94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}

.expiry-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.expiry-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #6d4aff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.expiry-section-header h3 {
    margin: 0;
    color: var(--dash-ink);
    font-size: 15px;
    letter-spacing: -.02em;
}

.expiry-status {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.expiry-status.is-none {
    background: rgba(113, 128, 150, .10);
    color: #64748b;
}

.expiry-status.is-active {
    background: #dcfce7;
    color: #166534;
}

.expiry-status.is-soon {
    background: #fef3c7;
    color: #92400e;
}

.expiry-status.is-expired,
.expiry-status.is-invalid {
    background: #fee2e2;
    color: #991b1b;
}

.expiry-current {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .90);
    border-radius: 15px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 7px 18px rgba(53, 43, 101, .05), inset 0 1px 0 #fff;
}

.expiry-current-icon {
    width: 35px;
    height: 35px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 35px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6d4aff, #1687ff);
    color: #fff;
}

.expiry-current.is-soon .expiry-current-icon {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.expiry-current.is-expired .expiry-current-icon,
.expiry-current.is-invalid .expiry-current-icon {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.expiry-current strong,
.expiry-current small {
    display: block;
}

.expiry-current strong {
    color: var(--dash-ink);
    font-size: 12px;
    font-weight: 820;
}

.expiry-current small {
    margin-top: 2px;
    color: var(--dash-muted);
    font-size: 10px;
    font-weight: 650;
}

.expiry-form {
    margin-top: 13px;
}

.expiry-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.expiry-preset {
    min-width: 0;
    padding: 9px 5px;
    border: 1px solid rgba(109, 74, 255, .12);
    border-radius: 13px;
    background: #fff;
    color: #5b3fd4;
    box-shadow: 0 5px 14px rgba(53, 43, 101, .05);
    transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}

.expiry-preset:hover {
    border-color: rgba(109, 74, 255, .30);
    background: #f8f6ff;
    transform: translateY(-1px);
}

.expiry-preset strong,
.expiry-preset span {
    display: block;
}

.expiry-preset strong {
    font-size: 16px;
    line-height: 1;
}

.expiry-preset span {
    margin-top: 3px;
    color: var(--dash-muted);
    font-size: 8px;
}

.expiry-custom-label {
    margin: 13px 0 6px;
    color: var(--dash-ink);
    font-size: 10px;
    font-weight: 800;
}

.expiry-custom-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.expiry-custom-row input {
    min-width: 0;
    height: 39px;
    padding: 8px 10px;
    border-color: rgba(109, 74, 255, .15);
    border-radius: 12px;
    background: #fff;
    font-size: 11px;
}

.expiry-custom-row input:focus {
    border-color: rgba(109, 74, 255, .42);
    box-shadow: 0 0 0 3px rgba(109, 74, 255, .09);
}

.expiry-custom-save {
    height: 39px;
    flex: 0 0 auto;
    padding: 0 13px;
    border-radius: 12px;
    background: linear-gradient(110deg, #6d4aff, #1687ff);
    color: #fff;
    font-size: 10px;
    box-shadow: 0 7px 17px rgba(109, 74, 255, .20);
}

.expiry-form > .expiry-clear {
    width: auto;
    margin: 10px 0 0;
    padding: 5px 0;
    border-radius: 0;
    background: transparent;
    color: #dc2626;
    font-size: 10px;
    font-weight: 750;
    box-shadow: none;
}

.expiry-helper {
    margin: 10px 0 0;
    color: var(--dash-muted);
    font-size: 8px;
    font-weight: 650;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .dashboard-stat {
        display: flex;
        padding: 9px;
        text-align: left;
    }

    .dashboard-stat-icon {
        margin: 0;
    }

    .store-row-actions {
        align-items: flex-end;
        flex-direction: column;
        gap: 4px;
    }

    .store-expiry-badge {
        min-height: 22px;
        padding: 3px 6px;
        font-size: 8px;
    }

    .store-expiry-badge svg {
        width: 11px;
        height: 11px;
    }

    .store-expiry-section {
        margin: 15px;
        padding: 14px;
        border-radius: 17px;
    }

    .expiry-preset-grid {
        gap: 5px;
    }

    .expiry-preset {
        padding: 8px 3px;
        border-radius: 11px;
    }

    .expiry-preset strong {
        font-size: 14px;
    }

    .expiry-custom-save {
        padding: 0 11px;
    }
}

/* Compact store insights and scroll-wheel expiry editor */
.store-detail-stat.is-storage {
    border-color: rgba(236, 72, 153, .12);
    background: linear-gradient(135deg, rgba(253, 242, 248, .98), rgba(255, 247, 237, .96));
}

.store-detail-stat.is-storage .store-detail-stat-icon {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.expiry-current {
    position: relative;
    width: 100%;
    min-height: 67px;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.expiry-current:hover {
    border-color: rgba(109, 74, 255, .22);
    box-shadow: 0 9px 22px rgba(53, 43, 101, .09), inset 0 1px 0 #fff;
    transform: translateY(-1px);
}

.expiry-current:focus-visible {
    outline: 3px solid rgba(109, 74, 255, .18);
    outline-offset: 2px;
}

.expiry-current-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.expiry-current-copy small,
.expiry-current-copy strong,
.expiry-current-copy > span {
    display: block;
}

.expiry-current-copy small {
    margin: 0 0 1px;
    color: #6d4aff;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.expiry-current-copy strong {
    color: var(--dash-ink);
    font-size: 17px;
    font-weight: 880;
    line-height: 1.15;
}

.expiry-current-copy > span {
    overflow: hidden;
    margin-top: 3px;
    color: var(--dash-muted);
    font-size: 9px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expiry-current-chevron {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    border-radius: 10px;
    background: rgba(109, 74, 255, .08);
    color: #6d4aff;
}

.expiry-current-chevron svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.expiry-current.is-open .expiry-current-chevron svg {
    transform: rotate(180deg);
}

.expiry-editor[hidden] {
    display: none;
}

.expiry-editor {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(109, 74, 255, .18);
    animation: expiry-editor-in .2s ease both;
}

@keyframes expiry-editor-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.expiry-form {
    margin-top: 0;
}

.expiry-editor-label {
    display: block;
    margin: 0 0 7px;
    color: var(--dash-ink);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .02em;
}

.expiry-editor-label.duration-title {
    margin-top: 15px;
    text-align: center;
}

.duration-picker {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(109, 74, 255, .12);
    border-radius: 17px;
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(53, 43, 101, .05);
}

.duration-picker::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 8px;
    bottom: 50px;
    left: 8px;
    height: 42px;
    border-top: 1px solid rgba(109, 74, 255, .12);
    border-bottom: 1px solid rgba(109, 74, 255, .12);
    border-radius: 9px;
    background: linear-gradient(90deg, rgba(109, 74, 255, .06), rgba(22, 135, 255, .06));
    pointer-events: none;
}

.duration-wheel-column {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.duration-wheel-label {
    display: block;
    height: 25px;
    color: var(--dash-muted);
    font-size: 8px;
    font-weight: 800;
    line-height: 25px;
    text-align: center;
    text-transform: uppercase;
}

.duration-wheel {
    height: 126px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 42px 0;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 33%, #000 67%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 33%, #000 67%, transparent);
}

.duration-wheel::-webkit-scrollbar {
    display: none;
}

.duration-wheel:focus-visible {
    outline: 2px solid rgba(109, 74, 255, .25);
    outline-offset: -2px;
    border-radius: 9px;
}

.duration-option {
    width: 100%;
    height: 42px;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 720;
    line-height: 42px;
    scroll-snap-align: center;
    transition: color .12s ease, font-size .12s ease, font-weight .12s ease;
}

.duration-option.is-selected {
    color: var(--dash-ink);
    font-size: 20px;
    font-weight: 900;
}

.duration-option.is-unavailable {
    color: #cbd5e1;
    opacity: .38;
}

.expiry-form > .duration-save {
    width: 100%;
    min-height: 42px;
    margin-top: 9px;
    border-radius: 13px;
    background: linear-gradient(105deg, #6d4aff, #1687ff 58%, #06b6d4);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    box-shadow: 0 9px 20px rgba(70, 91, 255, .22);
}

.expiry-exact {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid rgba(109, 74, 255, .10);
}

.expiry-exact summary {
    width: max-content;
    color: #5b3fd4;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
}

.expiry-exact .expiry-custom-label {
    display: block;
}

.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-section-heading h3 {
    margin: 0;
}

.admin-section-heading > span {
    padding: 5px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 72, 153, .10), rgba(249, 115, 22, .10));
    color: #c24172;
    font-size: 8px;
    font-weight: 850;
}

@media (max-width: 640px) {
    .expiry-current {
        min-height: 64px;
    }

    .duration-picker {
        gap: 3px;
        padding: 7px;
    }

    .duration-picker::after {
        right: 7px;
        bottom: 49px;
        left: 7px;
    }

    .duration-option.is-selected {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .expiry-editor {
        animation: none;
    }

    .duration-wheel {
        scroll-behavior: auto;
    }
}

/* Simplified expiry row and edit-on-change flow */
.store-expiry-section {
    padding: 12px;
}

.expiry-current {
    min-height: 58px;
    margin-top: 0;
    padding: 10px;
}

.expiry-current-inline {
    min-width: 0;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 9px;
    overflow: hidden;
    white-space: nowrap;
}

.expiry-current-inline > span {
    color: var(--dash-muted);
    font-size: 11px;
    font-weight: 780;
}

.expiry-current-inline > i {
    color: rgba(109, 74, 255, .28);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
}

.expiry-current-inline > strong {
    overflow: hidden;
    color: var(--dash-ink);
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
}

.expiry-editor-heading {
    margin-bottom: 9px;
    text-align: center;
}

.expiry-editor-heading strong,
.expiry-editor-heading small {
    display: block;
}

.expiry-editor-heading strong {
    color: var(--dash-ink);
    font-size: 12px;
    font-weight: 880;
}

.expiry-editor-heading small {
    margin-top: 2px;
    color: var(--dash-muted);
    font-size: 8px;
    font-weight: 650;
}

.picker-value-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 32px;
    margin-bottom: 7px;
    border: 1px solid rgba(109, 74, 255, .10);
    border-radius: 11px;
    background: rgba(255, 255, 255, .76);
    color: var(--dash-ink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
}

.picker-value-line i {
    color: rgba(109, 74, 255, .30);
    font-style: normal;
    font-weight: 500;
}

.duration-picker.is-date .duration-option {
    font-size: 13px;
}

.duration-picker.is-date .duration-option.is-selected {
    font-size: 17px;
}

.store-popup-save {
    width: calc(100% - 40px);
    min-height: 44px;
    margin: 0 20px 10px;
    border-radius: 14px;
    background: linear-gradient(105deg, #10b981, #1687ff 56%, #6d4aff);
    color: #fff;
    font-size: 11px;
    font-weight: 880;
    box-shadow: 0 10px 24px rgba(22, 135, 255, .23);
    animation: popup-save-in .18s ease both;
}

.store-popup-save[hidden] {
    display: none;
}

@keyframes popup-save-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .store-expiry-section {
        padding: 10px;
    }

    .expiry-current {
        min-height: 56px;
    }

    .expiry-current-inline {
        gap: 7px;
    }

    .expiry-current-inline > span {
        font-size: 10px;
    }

    .expiry-current-inline > strong {
        font-size: 14px;
    }

    .store-popup-save {
        width: calc(100% - 30px);
        margin-right: 15px;
        margin-left: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-popup-save {
        animation: none;
    }
}

/* v1 store-admin bottom navigation, adapted to English dashboard labels */
.dashboard-shell {
    padding-bottom: calc(105px + env(safe-area-inset-bottom));
}

.dashboard-view {
    min-width: 0;
    transform-origin: center center;
    will-change: opacity, transform;
}

.dashboard-view[hidden] {
    display: none !important;
}

.dashboard-view[data-dashboard-view="0"] .stores-panel {
    margin-top: 0;
}

.statistics-panel {
    align-items: center;
}

.statistics-heading h1,
.dashboard-placeholder-panel h1,
.dashboard-account-panel h1 {
    margin: 6px 0 5px;
    color: var(--dash-ink);
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: -.045em;
}

.statistics-heading p,
.dashboard-placeholder-panel p {
    margin: 0;
    color: var(--dash-muted);
    font-size: 13px;
    font-weight: 650;
}

.statistics-panel .dashboard-summary {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
}

.dashboard-placeholder-panel,
.dashboard-account-panel {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 26px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 20px 55px rgba(64, 50, 120, .11), inset 0 1px 0 rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
}

.dashboard-accounts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.accounts-count {
    padding: 7px 11px;
    border: 1px solid rgba(109, 74, 255, .11);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(109, 74, 255, .10), rgba(22, 135, 255, .09));
    color: #5f46d8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-accounts-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.dashboard-user-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px;
    border: 1px solid rgba(109, 74, 255, .12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(109, 74, 255, .055), rgba(22, 135, 255, .035), rgba(255, 255, 255, .94));
    box-shadow: 0 8px 24px rgba(57, 47, 100, .05), inset 0 1px 0 #fff;
}

.dashboard-user-row.is-current {
    border-color: rgba(109, 74, 255, .27);
    background: linear-gradient(135deg, rgba(109, 74, 255, .10), rgba(22, 135, 255, .07), #fff);
}

.dashboard-account-avatar {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 15px;
    background: linear-gradient(135deg, #6d4aff, #1687ff);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.dashboard-user-content {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-user-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.dashboard-user-heading strong {
    color: var(--dash-ink);
    font-size: 15px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.dashboard-current-user {
    padding: 3px 7px;
    border-radius: 999px;
    background: linear-gradient(110deg, #6d4aff, #1687ff);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dashboard-user-phone {
    display: block;
    margin-top: 3px;
    color: var(--dash-muted);
    font-size: 11px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.dashboard-user-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.dashboard-user-meta > span {
    padding: 5px 8px;
    border: 1px solid rgba(109, 74, 255, .09);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #6f6982;
    font-size: 9px;
    font-weight: 800;
}

.dashboard-user-meta .dashboard-user-status.is-active {
    border-color: rgba(22, 163, 74, .15);
    background: rgba(22, 163, 74, .09);
    color: #15803d;
}

.dashboard-user-meta .dashboard-user-status.is-disabled {
    border-color: rgba(239, 68, 68, .14);
    background: rgba(239, 68, 68, .08);
    color: #b91c1c;
}

.dashboard-account-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 12px;
    border: 1px solid rgba(239, 68, 68, .16);
    border-radius: 15px;
    background: rgba(239, 68, 68, .07);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.dashboard-account-logout:hover {
    background: rgba(239, 68, 68, .11);
}

.admin-bottom-nav {
    position: fixed;
    z-index: 90;
    left: 50%;
    bottom: max(9px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(var(--admin-bottom-nav-count), minmax(0, 1fr));
    width: min(calc(100% - 20px), 540px);
    height: 58px;
    padding: 0 6px;
    border: 1px solid color-mix(in srgb, var(--text) 11%, transparent);
    border-radius: 19px;
    background: color-mix(in srgb, var(--card) 96%, transparent);
    box-shadow: 0 14px 34px color-mix(in srgb, var(--text) 16%, transparent);
    direction: ltr;
    isolation: isolate;
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.admin-bottom-nav-indicator {
    position: relative;
    z-index: 0;
    display: grid;
    width: auto;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    place-items: center;
    pointer-events: none;
    transform: translate3d(var(--admin-bottom-nav-offset, 0%), 0, 0);
    transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-bottom-nav-indicator::before {
    width: 45px;
    height: 45px;
    border: 4px solid var(--bg);
    border-radius: 999px;
    background: var(--card);
    box-shadow: 0 9px 22px color-mix(in srgb, var(--text) 16%, transparent);
    content: "";
    transform: translateY(-9px);
}

.admin-bottom-nav-item {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    width: auto;
    height: 58px;
    margin: 0;
    padding: 5px 2px 4px;
    border: 0;
    border-radius: 0;
    grid-row: 1;
    grid-template-rows: 32px 15px;
    place-items: center;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-bottom-nav-item[data-admin-nav-index="0"] { grid-column: 1; }
.admin-bottom-nav-item[data-admin-nav-index="1"] { grid-column: 2; }
.admin-bottom-nav-item[data-admin-nav-index="2"] { grid-column: 3; }
.admin-bottom-nav-item[data-admin-nav-index="3"] { grid-column: 4; }

.admin-bottom-nav-item:hover {
    color: var(--text);
    background: transparent;
    text-decoration: none;
}

.admin-bottom-nav-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0 solid var(--bg);
    border-radius: 999px;
    color: inherit;
    background: transparent;
    transition:
        width 0.3s cubic-bezier(0.2, 0.85, 0.25, 1.18),
        height 0.3s cubic-bezier(0.2, 0.85, 0.25, 1.18),
        border-width 0.3s ease,
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.3s ease,
        transform 0.3s cubic-bezier(0.2, 0.85, 0.25, 1.18);
}

.admin-bottom-nav-icon svg {
    width: 21px;
    height: 21px;
    transition: width 0.3s ease, height 0.3s ease;
}

.admin-bottom-nav-item:not(.is-active):hover .admin-bottom-nav-icon {
    transform: translateY(-2px);
}

.admin-bottom-nav-item.is-active .admin-bottom-nav-icon {
    width: 34px;
    height: 34px;
    border-width: 0;
    color: var(--text);
    background: transparent;
    box-shadow: none;
    transform: translateY(-7px);
}

.admin-bottom-nav-item.is-active .admin-bottom-nav-icon svg {
    width: 23px;
    height: 23px;
}

.admin-bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: clamp(0.58rem, 2vw, 0.7rem);
    font-weight: 650;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bottom-nav-item.is-active .admin-bottom-nav-label {
    color: var(--text);
    font-weight: 850;
}

.admin-bottom-nav-item:focus-visible {
    outline: none;
}

.admin-bottom-nav-item:focus-visible .admin-bottom-nav-icon {
    outline: 3px solid color-mix(in srgb, #6d4aff 72%, transparent);
    outline-offset: 3px;
}

.admin-bottom-nav-item:active .admin-bottom-nav-icon {
    scale: 0.94;
}

.admin-bottom-nav-item.is-navigation-target .admin-bottom-nav-icon {
    animation: admin-nav-target-pop 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

html.admin-app-navigating {
    cursor: progress;
}

html.admin-app-navigating .admin-bottom-nav {
    box-shadow: 0 16px 38px color-mix(in srgb, #6d4aff 18%, transparent);
}

html.admin-app-navigating .admin-bottom-nav-item {
    pointer-events: none;
}

@keyframes admin-nav-target-pop {
    0% { scale: 0.88; }
    58% { scale: 1.08; }
    100% { scale: 1; }
}

@media (max-width: 560px) {
    .statistics-panel .dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
    }

    .dashboard-placeholder-panel,
    .dashboard-account-panel {
        padding: 20px 17px;
        border-radius: 22px;
    }

    .stores-toolbar {
        gap: 8px;
        margin-bottom: 10px;
    }

    .stores-search input {
        height: 44px;
        padding-right: 12px;
    }

    .stores-toolbar .create-store-button {
        min-width: 72px;
        min-height: 44px;
        padding-inline: 12px;
    }

    .dashboard-accounts-list {
        margin-top: 18px;
    }

    .dashboard-user-row {
        padding: 13px;
    }

    .dashboard-account-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .admin-bottom-nav {
        bottom: max(6px, env(safe-area-inset-bottom));
        width: calc(100% - 12px);
        height: 54px;
        padding-inline: 3px;
        border-radius: 17px;
    }

    .admin-bottom-nav-item {
        height: 54px;
        padding: 4px 1px 3px;
        grid-template-rows: 30px 14px;
    }

    .admin-bottom-nav-item.is-active .admin-bottom-nav-icon {
        width: 33px;
        height: 33px;
        border-width: 0;
        transform: translateY(-6px);
    }

    .admin-bottom-nav-indicator::before {
        width: 42px;
        height: 42px;
        border-width: 3px;
        transform: translateY(-8px);
    }

    .admin-bottom-nav-label {
        font-size: 0.56rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-bottom-nav-indicator,
    .admin-bottom-nav-item,
    .admin-bottom-nav-icon,
    .admin-bottom-nav-icon svg {
        transition-duration: 0.01ms !important;
    }

    .admin-bottom-nav-item.is-navigation-target .admin-bottom-nav-icon {
        animation: none;
    }
}

/* Compact neutral dashboard theme */
:root {
    --dash-purple: #475569;
    --dash-violet: #475569;
    --dash-pink: #64748b;
    --dash-blue: #334155;
    --dash-cyan: #64748b;
    --dash-teal: #15803d;
    --dash-orange: #b45309;
    --dash-ink: #111827;
    --dash-muted: #6b7280;
}

body {
    background-color: #f5f6f8;
    background-image: none;
}

.dashboard-shell {
    max-width: 980px;
    padding: 16px 16px calc(76px + env(safe-area-inset-bottom));
}

.section-kicker,
.dashboard-kicker {
    color: #64748b;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.stores-panel,
.dashboard-intro,
.dashboard-placeholder-panel,
.dashboard-account-panel {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.dashboard-intro {
    gap: 16px;
    overflow: visible;
}

.dashboard-intro::before,
.dashboard-intro::after {
    display: none;
}

.statistics-heading h1,
.dashboard-placeholder-panel h1,
.dashboard-account-panel h1,
.dashboard-intro h1 {
    margin: 3px 0;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    letter-spacing: -.025em;
}

.statistics-heading p,
.dashboard-placeholder-panel p,
.dashboard-intro p {
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4;
}

.dashboard-summary,
.statistics-panel .dashboard-summary {
    gap: 6px;
}

.dashboard-stat {
    gap: 8px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.dashboard-stat-icon,
.stat-stores .dashboard-stat-icon,
.stat-views .dashboard-stat-icon,
.stat-admins .dashboard-stat-icon,
.stat-expired .dashboard-stat-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    box-shadow: none;
}

.dashboard-stat small {
    color: #6b7280;
    font-size: .75rem;
    font-weight: 500;
}

.dashboard-stat strong {
    font-size: 1rem;
    font-weight: 750;
}

.stores-panel-header {
    gap: 10px;
    padding: 0 0 10px;
}

.stores-panel-header h2 {
    margin-top: 2px;
    font-size: 1.1rem;
    letter-spacing: -.02em;
}

.stores-count,
.accounts-count {
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
    font-size: .75rem;
    font-weight: 650;
}

.stores-toolbar {
    gap: 7px;
    margin-bottom: 8px;
}

.stores-search svg {
    left: 12px;
    stroke: #94a3b8;
}

.stores-search input {
    height: 38px;
    padding: 0 12px 0 36px;
    border-color: #dfe3e8;
    border-radius: 10px;
    background: #fff;
    font-size: .875rem;
    font-weight: 500;
    box-shadow: none;
}

.stores-search input:focus {
    border-color: #94a3b8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .10);
}

.stores-toolbar .create-store-button,
.create-store-button {
    min-width: 70px;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 10px;
    background: #1f2937;
    font-size: .8125rem;
    font-weight: 700;
    box-shadow: none;
}

.create-store-button:hover {
    background: #111827;
    filter: none;
    transform: none;
}

.simple-files {
    gap: 6px;
}

.store-row,
.store-tone-1,
.store-tone-2,
.store-tone-3,
.store-tone-4 {
    --store-accent: #64748b;
    --store-accent-2: #64748b;
    --store-soft: #f8fafc;
}

.store-row {
    min-height: 56px;
    padding: 7px 9px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.store-row::after {
    display: none;
}

.store-row:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: none;
    transform: none;
}

.store-row:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 1px;
}

.store-identity {
    gap: 9px;
}

.store-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #eef2f6;
    color: #475569;
    font-size: .8125rem;
    box-shadow: none;
}

.store-avatar.has-logo {
    border-color: #e2e8f0;
    padding: 3px;
}

.store-avatar img {
    border-radius: 6px;
}

.store-name {
    font-size: .875rem;
    font-weight: 700;
}

.store-copy small {
    margin-top: 1px;
    font-size: .75rem;
    font-weight: 500;
}

.store-time-left.is-none,
.store-time-left.is-active {
    color: #64748b;
}

.store-time-left.is-soon {
    color: #a16207;
}

.store-time-left.is-expired,
.store-time-left.is-invalid {
    color: #b91c1c;
}

.store-row-actions {
    gap: 6px;
}

.store-view-badge {
    min-width: 0;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.store-view-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    background: transparent;
    color: #64748b;
    box-shadow: none;
}

.store-view-count {
    min-width: 28px;
    padding: 4px 7px;
    border-radius: 7px;
    background: #eef2f6;
    color: #475569;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
}

.store-expiry-badge {
    padding: 4px 7px;
    font-size: .75rem;
    box-shadow: none;
}

.dashboard-empty {
    padding: 18px 12px;
    border-color: #d7dde5;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: .8125rem;
    font-weight: 550;
}

.dashboard-empty code {
    color: #334155;
}

.dashboard-accounts-header {
    gap: 10px;
}

.dashboard-accounts-list {
    gap: 6px;
    margin-top: 12px;
}

.dashboard-user-row,
.dashboard-user-row.is-current {
    gap: 10px;
    padding: 10px;
    border-color: #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.dashboard-user-row.is-current {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.dashboard-account-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 9px;
    background: #e9eef3;
    color: #475569;
    font-size: .875rem;
}

.dashboard-user-heading strong {
    font-size: .875rem;
    font-weight: 750;
}

.dashboard-current-user {
    padding: 2px 6px;
    background: #475569;
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.dashboard-user-phone {
    margin-top: 1px;
    font-size: .75rem;
    font-weight: 500;
}

.dashboard-user-meta {
    gap: 4px;
    margin-top: 6px;
}

.dashboard-user-meta > span {
    padding: 3px 6px;
    border-color: #e5e7eb;
    background: #f8fafc;
    color: #64748b;
    font-size: .75rem;
    font-weight: 600;
}

.dashboard-account-logout {
    min-height: 38px;
    margin-top: 8px;
    border-color: #e5e7eb;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font-size: .8125rem;
    font-weight: 650;
}

.dashboard-account-logout:hover {
    background: #f8fafc;
    color: #b91c1c;
}

.store-detail-dialog {
    width: min(500px, calc(100vw - 24px));
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
    scrollbar-color: #cbd5e1 transparent;
}

.store-detail-dialog::backdrop {
    background: rgba(15, 23, 42, .42);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.store-dialog-header,
.create-store-dialog-header {
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
}

.store-dialog-title {
    gap: 9px;
}

.store-dialog-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-color: #e2e8f0;
    border-radius: 9px;
    background: #eef2f6;
    color: #475569;
    box-shadow: none;
}

.store-detail-eyebrow {
    margin-bottom: 2px;
    color: #64748b;
    font-size: .75rem;
    letter-spacing: .06em;
}

.store-dialog-header h2 {
    color: #111827;
    font-size: 1.125rem;
    letter-spacing: -.02em;
}

.store-dialog-close {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-color: #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    box-shadow: none;
}

.store-dialog-close:hover {
    background: #eef2f6;
    color: #111827;
}

.create-store-form {
    gap: 11px;
    padding: 14px;
}

.create-store-field > span,
.create-store-field > small,
.create-store-path span,
.create-store-path strong,
.create-store-help {
    font-size: .75rem;
}

.create-store-field input {
    min-height: 40px;
    padding: 0 11px;
    border-color: #dfe3e8;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 550;
    box-shadow: none;
}

.create-store-field input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .10);
}

.create-store-path {
    padding: 9px 10px;
    border-color: #e5e7eb;
    border-radius: 9px;
    background: #f8fafc;
}

.create-store-path strong {
    color: #334155;
}

.create-user-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #f8fafc;
    cursor: pointer;
}

.create-user-toggle input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 0;
    accent-color: #1f2937;
}

.create-user-toggle-copy,
.create-user-toggle-copy strong,
.create-user-toggle-copy small {
    display: block;
}

.create-user-toggle-copy {
    min-width: 0;
}

.create-user-toggle-copy strong {
    color: #1f2937;
    font-size: .8125rem;
    font-weight: 700;
}

.create-user-toggle-copy small {
    margin-top: 1px;
    color: #64748b;
    font-size: .72rem;
    line-height: 1.35;
}

.create-user-fields {
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
}

.create-user-fields[hidden] {
    display: none !important;
}

.create-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.create-user-field,
.create-user-field > span {
    display: block;
}

.create-user-field > span {
    margin-bottom: 5px;
    color: #334155;
    font-size: .75rem;
    font-weight: 650;
}

.create-user-field input,
.create-user-field select {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #1f2937;
    font: inherit;
    font-size: .8125rem;
    box-shadow: none;
}

.create-user-field input:focus,
.create-user-field select:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .10);
}

.create-user-assignment-note {
    margin: 0;
    color: #64748b;
    font-size: .72rem;
    line-height: 1.4;
}

.create-store-actions {
    gap: 7px;
    margin-top: 0;
}

.create-store-cancel,
.create-store-submit {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: .8125rem;
    font-weight: 700;
}

.create-store-cancel {
    border-color: #dfe3e8;
    color: #475569;
}

.create-store-submit,
.store-dialog-done,
.store-popup-save {
    background: #1f2937;
    color: #fff;
    box-shadow: none;
}

.store-detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 12px 14px 0;
}

.store-detail-stat,
.store-detail-stat.is-views,
.store-detail-stat.is-unique,
.store-detail-stat.is-admins,
.store-detail-stat.is-storage {
    gap: 8px;
    padding: 9px;
    border-color: #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: none;
}

.store-detail-stat-icon,
.store-detail-stat.is-views .store-detail-stat-icon,
.store-detail-stat.is-unique .store-detail-stat-icon,
.store-detail-stat.is-admins .store-detail-stat-icon,
.store-detail-stat.is-storage .store-detail-stat-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 8px;
    background: #e9eef3;
    color: #475569;
    box-shadow: none;
}

.store-detail-stat small {
    font-size: .75rem;
}

.store-detail-stat strong {
    font-size: 1rem;
}

.store-rename-section {
    margin: 12px 14px 0;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.store-rename-form {
    margin: 0;
}

.store-rename-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.store-rename-heading h3 {
    margin: 0;
    color: #111827;
    font-size: .875rem;
}

.store-rename-heading small {
    color: #6b7280;
    font-size: .75rem;
}

.store-rename-control {
    display: grid;
    grid-template-columns: auto minmax(74px, 1fr) auto;
    align-items: center;
    gap: 0;
    min-height: 38px;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #f8fafc;
}

.store-rename-control > span {
    padding-left: 10px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 550;
    white-space: nowrap;
}

.store-rename-control > span a {
    color: inherit;
    text-decoration: none;
}

.store-rename-control > span a:hover,
.store-rename-control > span a:focus-visible {
    color: #344054;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.store-rename-control input {
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0 7px 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-size: .8125rem;
    font-weight: 700;
    box-shadow: none;
}

.store-rename-control input:focus {
    border: 0;
    box-shadow: none;
}

.store-rename-control:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .10);
}

.store-rename-control button {
    min-height: 32px;
    margin-right: 3px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #1f2937;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.store-rename-control button:disabled {
    cursor: wait;
    opacity: .65;
}

.store-detail-section {
    margin: 14px;
}

.store-detail-section h3 {
    margin-bottom: 7px;
    font-size: .875rem;
}

.assigned-admin-list {
    border-color: #e5e7eb;
    border-radius: 10px;
    box-shadow: none;
}

.assigned-admin-row {
    padding: 9px;
}

.admin-level {
    background: #eef2f6;
    color: #475569;
}

.store-admin-empty {
    border-color: #d7dde5;
    background: #f8fafc;
}

.store-dialog-done {
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    padding: 10px 12px;
    border-radius: 9px;
}

.store-popup-save {
    width: calc(100% - 28px);
    min-height: 40px;
    margin: 0 14px 8px;
    border-radius: 9px;
}

.store-expiry-section {
    padding: 9px;
}

.expiry-eyebrow,
.expiry-current-copy small,
.expiry-exact summary {
    color: #64748b;
}

.expiry-current {
    min-height: 50px;
    padding: 8px;
    border-color: #e5e7eb;
    border-radius: 9px;
    background: #f8fafc;
    box-shadow: none;
}

.expiry-current:hover {
    border-color: #cbd5e1;
    box-shadow: none;
}

.expiry-current-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 8px;
    background: #e9eef3;
    color: #475569;
}

.expiry-current-chevron {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eef2f6;
    color: #64748b;
}

.expiry-editor {
    margin-top: 9px;
}

.expiry-editor-label {
    font-size: .75rem;
}

.duration-picker {
    padding: 6px;
    border-color: #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.duration-picker::after {
    border-color: #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
}

.duration-wheel-label,
.duration-option,
.expiry-helper {
    font-size: .75rem;
}

.picker-value-line {
    border-color: #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.picker-value-line i,
.expiry-current-inline > i {
    color: #cbd5e1;
}

.expiry-preset {
    padding: 7px 5px;
    border-color: #e5e7eb;
    border-radius: 8px;
    color: #475569;
    box-shadow: none;
}

.expiry-preset:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.expiry-custom-row input {
    border-color: #dfe3e8;
    border-radius: 8px;
}

.expiry-custom-row input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .10);
}

.expiry-custom-save,
.expiry-form > .duration-save {
    border-radius: 8px;
    background: #1f2937;
    box-shadow: none;
}

.admin-section-heading > span {
    background: #eef2f6;
    color: #64748b;
}

.admin-bottom-nav {
    bottom: max(6px, env(safe-area-inset-bottom));
    width: min(calc(100% - 16px), 500px);
    height: 52px;
    padding: 0 4px;
    border-color: #dfe3e8;
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.admin-bottom-nav-indicator::before {
    width: 38px;
    height: 38px;
    border: 3px solid #f5f6f8;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .12);
    transform: translateY(-7px);
}

.admin-bottom-nav-item {
    height: 52px;
    padding: 3px 2px 2px;
    grid-template-rows: 29px 15px;
}

.admin-bottom-nav-icon {
    width: 28px;
    height: 28px;
}

.admin-bottom-nav-icon svg {
    width: 19px;
    height: 19px;
}

.admin-bottom-nav-item.is-active .admin-bottom-nav-icon {
    width: 30px;
    height: 30px;
    color: #111827;
    transform: translateY(-5px);
}

.admin-bottom-nav-item.is-active .admin-bottom-nav-icon svg {
    width: 20px;
    height: 20px;
}

.admin-bottom-nav-label {
    font-size: .75rem;
    font-weight: 550;
}

.admin-bottom-nav-item.is-active .admin-bottom-nav-label {
    font-weight: 750;
}

.admin-bottom-nav-item:focus-visible .admin-bottom-nav-icon {
    outline-color: #94a3b8;
}

html.admin-app-navigating .admin-bottom-nav {
    box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
}

.auth-shell {
    padding: 16px;
}

.auth-card,
.welcome-card {
    padding: 22px;
    border-color: #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}

.auth-card h1,
.welcome-card h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    letter-spacing: -.025em;
}

.auth-card label {
    margin: 14px 0 6px;
    font-size: .875rem;
    font-weight: 650;
}

.auth-card input {
    min-height: 42px;
    padding: 9px 11px;
    border-color: #dfe3e8;
    border-radius: 9px;
    box-shadow: none;
}

.auth-card input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, .10);
}

.auth-card form > button[type="submit"] {
    min-height: 40px;
    margin-top: 16px;
    border-radius: 9px;
    background: #1f2937;
}

.sub-link {
    margin-top: 14px;
    color: #475569;
    font-size: .875rem;
}

.alert {
    margin: 12px 0;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: .8125rem;
}

@media (max-width: 560px) {
    .dashboard-shell {
        padding: 10px 10px calc(70px + env(safe-area-inset-bottom));
    }

    .stores-panel,
    .dashboard-intro,
    .dashboard-placeholder-panel,
    .dashboard-account-panel {
        padding: 12px;
        border-radius: 12px;
    }

    .statistics-panel .dashboard-summary {
        margin-top: 10px;
    }

    .stores-toolbar {
        gap: 6px;
        margin-bottom: 7px;
    }

    .stores-search input,
    .stores-toolbar .create-store-button {
        height: 38px;
        min-height: 38px;
    }

    .create-user-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-accounts-list {
        margin-top: 10px;
    }

    .dashboard-user-row {
        padding: 9px;
    }

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

    .store-detail-summary .is-storage {
        grid-column: 1 / -1;
    }

    .store-rename-heading {
        display: block;
    }

    .store-rename-heading small {
        display: block;
        margin-top: 2px;
    }

    .dashboard-account-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 8px;
    }

    .admin-bottom-nav {
        width: calc(100% - 10px);
        height: 50px;
        border-radius: 13px;
    }

    .admin-bottom-nav-item {
        height: 50px;
        grid-template-rows: 28px 15px;
    }

    .admin-bottom-nav-indicator::before {
        width: 37px;
        height: 37px;
        transform: translateY(-6px);
    }

    .admin-bottom-nav-item.is-active .admin-bottom-nav-icon {
        width: 29px;
        height: 29px;
        transform: translateY(-4px);
    }
}

/* Keep the expanded Add Store form above earlier compact-dialog rules. */
.create-store-dialog {
    width: min(520px, calc(100vw - 24px));
}

.create-store-dialog .store-dialog-surface {
    position: relative;
    min-height: 100%;
}

.create-store-dialog .create-store-form {
    gap: 12px;
}

@media (max-width: 560px) {
    .create-store-dialog {
        width: calc(100vw - 18px);
        max-height: min(91dvh, 760px);
    }

    .create-store-dialog .create-store-form {
        padding: 12px;
    }
}

/* Glass dashboard, responsive wheel sheets, and payment confirmation */
:root {
    --glass-surface: rgba(255, 255, 255, .58);
    --glass-surface-strong: rgba(255, 255, 255, .76);
    --glass-edge: rgba(255, 255, 255, .72);
    --glass-shadow-soft: 0 16px 42px rgba(51, 45, 94, .13), inset 0 1px 0 rgba(255, 255, 255, .76);
    --glass-blur-strong: blur(24px) saturate(155%);
}

html,
body {
    touch-action: pan-x pan-y;
}

body {
    background-color: #eef2ff;
    background-image:
        radial-gradient(circle at 8% 12%, rgba(167, 139, 250, .26), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(56, 189, 248, .22), transparent 30%),
        radial-gradient(circle at 80% 88%, rgba(52, 211, 153, .17), transparent 27%),
        linear-gradient(145deg, #f8f7ff 0%, #edf5ff 48%, #f7fbff 100%);
    background-attachment: fixed;
}

.stores-panel,
.dashboard-intro,
.dashboard-placeholder-panel,
.dashboard-account-panel,
.statistics-panel,
.dashboard-notice,
.store-detail-dialog,
.admin-bottom-nav {
    border: 1px solid var(--glass-edge);
    background: var(--glass-surface);
    box-shadow: var(--glass-shadow-soft);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    backdrop-filter: var(--glass-blur-strong);
}

.stores-search,
.simple-file-row,
.dashboard-stat,
.dashboard-user-row,
.dashboard-account-card,
.store-detail-stat,
.store-rename-section,
.store-expiry-section,
.store-detail-section,
.create-billing-fields,
.create-user-fields,
.create-expiry-trigger,
.create-paid-toggle,
.create-store-field input,
.create-user-field input,
.create-user-field select,
.store-rename-control,
.expiry-current,
.expiry-editor,
.assigned-admin-list {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .50);
    box-shadow: 0 9px 26px rgba(56, 52, 96, .08), inset 0 1px 0 rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.simple-file-row:hover,
.dashboard-user-row:hover,
.create-expiry-trigger:hover,
.create-paid-toggle:hover {
    border-color: rgba(255, 255, 255, .94);
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 13px 30px rgba(65, 56, 118, .12), inset 0 1px 0 #fff;
}

.store-dialog-header,
.create-store-dialog-header {
    border-bottom-color: rgba(255, 255, 255, .34);
    background:
        radial-gradient(circle at 88% -25%, rgba(255, 255, 255, .46), transparent 38%),
        linear-gradient(128deg, rgba(99, 72, 214, .86), rgba(68, 126, 235, .80) 58%, rgba(34, 197, 194, .72));
    -webkit-backdrop-filter: blur(24px) saturate(165%);
    backdrop-filter: blur(24px) saturate(165%);
}

.store-detail-dialog::backdrop {
    background: rgba(34, 31, 64, .34);
    -webkit-backdrop-filter: blur(11px) saturate(130%);
    backdrop-filter: blur(11px) saturate(130%);
}

.admin-bottom-nav {
    background: rgba(255, 255, 255, .64);
}

.create-billing-fields {
    padding: 9px;
}

.create-billing-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(108px, .86fr);
    align-items: end;
    gap: 8px;
}

.create-billing-row .create-paid-toggle {
    min-width: 0;
    min-height: 40px;
    padding: 5px 7px;
}

.create-billing-row .create-paid-copy {
    min-width: 0;
}

.create-billing-row .create-paid-copy strong,
.create-billing-row .create-paid-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.create-billing-row .create-paid-copy strong {
    font-size: .68rem;
}

.create-billing-row .create-paid-switch {
    width: 33px;
    flex-basis: 33px;
}

.create-billing-row .create-paid-toggle input:checked + .create-paid-switch i {
    transform: translateX(12px);
}

.create-store-dialog.has-nested-popup {
    overflow: visible;
}

.create-expiry-popup,
.create-payment-popup {
    position: fixed;
    z-index: 9999;
    inset: 0;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: auto;
    border-radius: 0;
}

.create-expiry-popup[hidden],
.create-payment-popup[hidden] {
    display: none !important;
}

.create-expiry-backdrop,
.create-payment-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(30, 27, 56, .40);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
}

.create-expiry-card,
.create-payment-card {
    position: relative;
    z-index: 1;
    width: min(410px, 100%);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 28px 80px rgba(30, 27, 56, .28), inset 0 1px 0 rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
}

.create-expiry-card .duration-picker,
.create-expiry-card .picker-value-line {
    border-color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.create-payment-card {
    padding: 20px;
    text-align: center;
}

.create-payment-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border: 1px solid rgba(16, 185, 129, .20);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(209, 250, 229, .88), rgba(167, 243, 208, .58));
    color: #047857;
    box-shadow: 0 12px 28px rgba(16, 185, 129, .16), inset 0 1px 0 #fff;
}

.create-payment-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.create-payment-step {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid rgba(100, 116, 139, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .54);
    color: #64748b;
    font-size: .67rem;
    font-weight: 750;
}

.create-payment-card h3 {
    margin: 10px 0 6px;
    color: #111827;
    font-size: 1.12rem;
    letter-spacing: -.025em;
}

.create-payment-card p {
    margin: 0 auto;
    max-width: 310px;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.55;
}

.create-payment-card.is-final .create-payment-icon {
    border-color: rgba(245, 158, 11, .22);
    background: linear-gradient(145deg, rgba(254, 243, 199, .90), rgba(253, 230, 138, .60));
    color: #b45309;
    box-shadow: 0 12px 28px rgba(245, 158, 11, .15), inset 0 1px 0 #fff;
}

.create-payment-actions {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 8px;
    margin-top: 18px;
}

.create-payment-actions button {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 11px;
    background: rgba(255, 255, 255, .56);
    color: #475569;
    font-size: .78rem;
    font-weight: 750;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.create-payment-actions [data-payment-confirm-primary] {
    border-color: rgba(16, 185, 129, .28);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 185, 129, .22), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.create-payment-card.is-final .create-payment-actions [data-payment-confirm-primary] {
    border-color: rgba(245, 158, 11, .34);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 10px 24px rgba(245, 158, 11, .22), inset 0 1px 0 rgba(255, 255, 255, .24);
}

@media (max-width: 560px) {
    .create-billing-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(102px, .82fr);
        gap: 6px;
    }

    .create-billing-row .create-user-field > span,
    .create-billing-row .create-user-field > span i {
        font-size: .64rem;
    }

    .create-billing-row .create-user-field input {
        min-height: 38px;
        padding: 0 7px;
        font-size: .74rem;
    }

    .create-billing-row .create-paid-toggle {
        min-height: 38px;
    }

    .create-expiry-popup,
    .create-payment-popup {
        align-items: flex-end;
        padding: 0;
    }

    .create-expiry-card,
    .create-payment-card {
        width: 100%;
        max-height: min(82dvh, 680px);
        overflow: auto;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
        animation: glass-sheet-in .22s cubic-bezier(.2, .8, .2, 1) both;
    }

    .create-payment-card {
        padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
    }
}

@keyframes glass-sheet-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

/* v8: inline duration picker and compact store details */
.create-billing-row {
    grid-template-columns: minmax(0, 1fr) minmax(132px, .82fr);
}

.create-expiry-inline[hidden],
.member-add-form[hidden],
.member-search-empty[hidden] {
    display: none !important;
}

.create-expiry-inline {
    margin-top: 7px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 13px;
    background: rgba(255, 255, 255, .52);
    box-shadow: 0 10px 26px rgba(56, 52, 96, .08), inset 0 1px 0 rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    animation: inline-wheel-open .18s ease-out both;
}

@keyframes inline-wheel-open {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.create-expiry-inline .picker-value-line {
    min-height: 27px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, .74);
    background: rgba(255, 255, 255, .48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.create-expiry-inline .duration-picker {
    padding: 4px 6px;
    border-color: rgba(255, 255, 255, .74);
    background: rgba(255, 255, 255, .46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.create-expiry-inline .duration-wheel-label {
    height: 20px;
    line-height: 20px;
}

.create-expiry-inline-actions {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 7px;
    margin-top: 7px;
}

.create-expiry-inline-actions button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 9px;
    background: rgba(255, 255, 255, .58);
    color: #475569;
    font-size: .74rem;
    font-weight: 780;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.create-expiry-inline-actions [data-create-expiry-apply] {
    border-color: rgba(99, 102, 241, .25);
    background: linear-gradient(135deg, #6d4aff, #1687ff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(70, 91, 255, .20), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.create-expiry-error {
    margin: 6px 2px 0;
    color: #b91c1c;
    font-size: .69rem;
    font-weight: 720;
}

.store-detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.store-detail-stat,
.store-detail-stat.is-views,
.store-detail-stat.is-unique,
.store-detail-stat.is-storage {
    min-width: 0;
    gap: 6px;
    padding: 7px;
}

.store-detail-stat-icon,
.store-detail-stat.is-views .store-detail-stat-icon,
.store-detail-stat.is-unique .store-detail-stat-icon,
.store-detail-stat.is-storage .store-detail-stat-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.store-detail-stat > span:last-child {
    min-width: 0;
}

.store-detail-stat small,
.store-detail-stat strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-detail-stat small {
    font-size: .62rem;
}

.store-detail-stat strong {
    font-size: .86rem;
}

.store-meta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    margin: 12px 14px 0;
}

.store-meta-grid .store-expiry-section {
    margin: 0;
    padding: 7px;
}

.store-meta-grid .expiry-current {
    min-height: 46px;
    padding: 6px;
}

.store-meta-grid .expiry-current-icon,
.store-price-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(233, 238, 243, .76);
    color: #475569;
}

.store-price-card {
    min-width: 0;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 10px;
    background: rgba(255, 255, 255, .50);
    box-shadow: 0 9px 26px rgba(56, 52, 96, .08), inset 0 1px 0 rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.store-price-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-price-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 6px;
}

.store-price-copy small,
.store-price-copy strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-price-copy small {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: .62rem;
    font-weight: 760;
}

.store-price-copy strong {
    color: #111827;
    font-size: .86rem;
    font-weight: 880;
}

.store-price-status {
    padding: 3px 5px;
    border-radius: 999px;
    background: rgba(239, 68, 68, .09);
    color: #b91c1c;
    font-size: .56rem;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.store-price-card.is-paid .store-price-status {
    background: rgba(16, 185, 129, .11);
    color: #047857;
}

.member-section-heading {
    margin-bottom: 8px;
}

.member-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin-bottom: 8px;
}

.member-search {
    min-width: 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 9px;
    background: rgba(255, 255, 255, .50);
    box-shadow: 0 7px 20px rgba(56, 52, 96, .06), inset 0 1px 0 rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.member-search svg {
    flex: 0 0 auto;
    fill: none;
    stroke: #64748b;
    stroke-width: 2;
    stroke-linecap: round;
}

.member-search input {
    min-width: 0;
    width: 100%;
    height: 34px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font-size: .75rem;
    box-shadow: none;
}

.member-add-toggle {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid rgba(99, 102, 241, .22);
    border-radius: 9px;
    background: linear-gradient(135deg, #6d4aff, #1687ff);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(70, 91, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.member-add-form {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 10px;
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 9px 24px rgba(56, 52, 96, .07), inset 0 1px 0 rgba(255, 255, 255, .84);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.member-add-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.member-add-grid + .member-add-grid {
    margin-top: 7px;
}

.member-add-form .create-user-field input,
.member-add-form .create-user-field select {
    min-height: 36px;
}

.member-add-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 8px;
}

.member-add-actions button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 8px;
    background: rgba(255, 255, 255, .56);
    color: #475569;
    font-size: .72rem;
    font-weight: 780;
}

.member-add-actions [data-member-add-submit] {
    border-color: rgba(99, 102, 241, .22);
    background: #1f2937;
    color: #fff;
}

.member-search-empty {
    padding: 9px;
    border: 1px dashed rgba(100, 116, 139, .24);
    border-radius: 9px;
    color: #64748b;
    font-size: .73rem;
    text-align: center;
}

@media (max-width: 560px) {
    .create-billing-row {
        grid-template-columns: minmax(0, 1fr) minmax(118px, .82fr);
    }

    .store-detail-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .store-detail-stat,
    .store-detail-stat.is-views,
    .store-detail-stat.is-unique,
    .store-detail-stat.is-storage {
        display: block;
        padding: 6px;
        text-align: center;
    }

    .store-detail-stat-icon,
    .store-detail-stat.is-views .store-detail-stat-icon,
    .store-detail-stat.is-unique .store-detail-stat-icon,
    .store-detail-stat.is-storage .store-detail-stat-icon {
        width: 25px;
        height: 25px;
        margin: 0 auto 4px;
    }

    .store-detail-stat small { font-size: .54rem; }
    .store-detail-stat strong { font-size: .76rem; }

    .store-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .store-meta-grid .expiry-current-inline {
        display: block;
    }

    .store-meta-grid .expiry-current-inline > i {
        display: none;
    }

    .store-meta-grid .expiry-current-inline > span,
    .store-price-copy small {
        font-size: .55rem;
    }

    .store-meta-grid .expiry-current-inline > strong,
    .store-price-copy strong {
        display: block;
        font-size: .75rem;
    }

    .store-meta-grid .expiry-current-chevron {
        display: none;
    }

    .store-price-card {
        min-height: 60px;
        gap: 5px;
        padding: 7px;
    }

    .store-price-status {
        padding: 2px 4px;
        font-size: .5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .create-expiry-inline { animation: none; }
}

/* v9: clearer existing-store details */
.store-detail-summary {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: stretch;
    gap: 7px;
}

.store-detail-stat.is-visitors,
.store-detail-stat.is-storage {
    min-width: 0;
    display: block;
    padding: 8px;
    text-align: left;
}

.store-visitor-primary,
.store-storage-primary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.store-visitor-primary > span:last-child,
.store-storage-primary > span:last-child {
    min-width: 0;
}

.store-visitor-primary small,
.store-visitor-primary strong,
.store-storage-primary small,
.store-storage-primary strong,
.store-visitor-unique small,
.store-visitor-unique strong {
    display: block;
}

.store-visitor-unique {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 8px;
    background: rgba(255, 255, 255, .46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.store-visitor-unique small {
    overflow: hidden;
    color: #64748b;
    font-size: .61rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-visitor-unique strong {
    flex: 0 0 auto;
    color: #111827;
    font-size: .82rem;
    font-weight: 900;
}

.store-detail-stat.is-storage {
    grid-column: auto;
    display: flex;
    align-items: center;
}

.store-storage-primary {
    width: 100%;
}

.store-expiry-section {
    margin: 8px 14px 0;
    padding: 7px;
}

.store-expiry-section .expiry-current {
    min-height: 46px;
    padding: 6px;
}

.store-expiry-section .expiry-current-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
}

.store-expiry-section .expiry-editor {
    overflow: hidden;
    transform-origin: top center;
    animation: store-expiry-expand .26s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes store-expiry-expand {
    from {
        opacity: 0;
        transform: translateY(-7px) scaleY(.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.store-expiry-section .expiry-editor-heading {
    margin-bottom: 6px;
}

.store-expiry-section .picker-value-line {
    min-height: 27px;
    margin-bottom: 6px;
}

.store-expiry-section .duration-picker {
    padding: 4px 6px;
}

.store-expiry-section .duration-wheel-label {
    height: 20px;
    line-height: 20px;
}

.store-inline-expiry-save {
    width: 100%;
    min-height: 35px;
    margin-top: 7px;
    border: 1px solid rgba(99, 102, 241, .24);
    border-radius: 9px;
    background: linear-gradient(135deg, #6d4aff, #1687ff);
    color: #fff;
    font-size: .74rem;
    font-weight: 820;
    box-shadow: 0 8px 20px rgba(70, 91, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.store-inline-expiry-save[hidden] {
    display: none !important;
}

.store-price-card {
    min-height: 42px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 1px auto;
    align-items: center;
    gap: 8px;
    margin: 7px 14px 0;
    padding: 7px 10px;
}

.store-price-label {
    color: #64748b;
    font-size: .7rem;
    font-weight: 780;
}

.store-price-value {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: .82rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-price-divider {
    width: 1px;
    height: 20px;
    background: rgba(100, 116, 139, .20);
}

.store-price-status {
    min-width: 58px;
    padding: 5px 8px;
    text-align: center;
}

.member-section {
    margin-top: 10px;
}

.member-toolbar {
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: stretch;
}

.member-add-toggle {
    width: 78px;
    padding: 7px 9px;
    white-space: nowrap;
}

.assigned-admin-list {
    max-height: 230px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.assigned-admin-row {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.member-avatar {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(109, 74, 255, .16), rgba(22, 135, 255, .12));
    color: #5b3fd4;
    font-size: .72rem;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.member-avatar svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.assigned-admin-main {
    min-width: 0;
}

.assigned-admin-name,
.assigned-admin-phone {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assigned-admin-meta {
    align-items: flex-end;
}

@media (max-width: 560px) {
    .store-detail-summary {
        grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
        gap: 5px;
    }

    .store-detail-stat.is-visitors,
    .store-detail-stat.is-storage {
        grid-column: auto;
        display: flex;
        padding: 7px;
        text-align: left;
    }

    .store-detail-stat.is-visitors {
        display: block;
    }

    .store-detail-stat.is-visitors .store-detail-stat-icon,
    .store-detail-stat.is-storage .store-detail-stat-icon {
        width: 25px;
        height: 25px;
        margin: 0;
    }

    .store-visitor-primary small,
    .store-storage-primary small {
        font-size: .55rem;
    }

    .store-visitor-primary strong,
    .store-storage-primary strong {
        font-size: .76rem;
    }

    .store-visitor-unique {
        margin-top: 5px;
        padding: 5px 6px;
    }

    .store-visitor-unique small {
        font-size: .53rem;
    }

    .store-visitor-unique strong {
        font-size: .72rem;
    }

    .store-expiry-section .expiry-current-inline {
        display: flex;
    }

    .store-expiry-section .expiry-current-inline > i {
        display: inline;
    }

    .store-expiry-section .expiry-current-inline > span {
        font-size: .58rem;
    }

    .store-expiry-section .expiry-current-inline > strong {
        display: inline;
        font-size: .75rem;
    }

    .store-price-card {
        grid-template-columns: auto minmax(0, 1fr) 1px auto;
        gap: 6px;
        min-height: 40px;
        padding: 6px 8px;
    }

    .store-price-status {
        min-width: 54px;
        font-size: .54rem;
    }

    .member-toolbar {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 6px;
    }

    .member-add-toggle {
        width: 72px;
    }

    .member-add-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .assigned-admin-row {
        grid-template-columns: 29px minmax(0, 1fr) auto;
        gap: 6px;
        padding: 7px;
    }

    .member-avatar {
        width: 29px;
        height: 29px;
    }

    .assigned-admin-meta {
        max-width: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-expiry-section .expiry-editor {
        animation: none;
    }
}

/* v5 account, billing, and store detail refinement */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

a[href^="tel"],
.assigned-admin-phone,
.dashboard-user-phone {
    color: inherit;
    text-decoration: none;
    -webkit-text-decoration: none;
}

.visitor-pair-copy {
    min-width: 0;
}

.visitor-pair-copy small,
.visitor-pair-copy strong {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.visitor-pair-copy small {
    gap: 5px;
}

.visitor-pair-copy small i,
.visitor-pair-copy strong > i {
    color: #a3adc0;
    font-style: normal;
    font-weight: 650;
}

.visitor-pair-copy strong {
    gap: 8px;
    margin-top: 2px;
}

.visitor-pair-copy strong b {
    color: #111827;
    font: inherit;
}

.expiry-direction {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 7px 0;
    padding: 4px;
    border: 1px solid rgba(100, 116, 139, .12);
    border-radius: 12px;
    background: rgba(238, 242, 255, .72);
}

.expiry-direction button {
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    font-size: .7rem;
    font-weight: 850;
}

.expiry-direction button.is-active {
    background: #fff;
    color: #5b3fd4;
    box-shadow: 0 4px 13px rgba(40, 51, 88, .09);
}

.expiry-form.is-removing-time .expiry-direction button.is-active,
.expiry-form.is-removing-time .store-inline-expiry-save {
    border-color: rgba(225, 29, 72, .20);
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
}

.store-billing-editor {
    position: relative;
    margin: 9px 14px 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(244,247,255,.78));
    box-shadow: 0 9px 26px rgba(47, 56, 96, .08), inset 0 1px 0 #fff;
}

.store-billing-editor .create-billing-row {
    grid-template-columns: minmax(0, 1fr) minmax(118px, .78fr) 58px;
    gap: 7px;
    align-items: end;
}

.store-billing-editor .create-user-field input,
.store-billing-editor .create-paid-toggle {
    min-height: 43px;
}

.store-billing-editor .create-paid-toggle {
    height: 43px;
    padding: 6px 8px;
}

.store-billing-editor .create-paid-copy strong {
    font-size: .62rem;
}

.store-billing-editor .create-paid-copy small {
    font-size: .6rem;
}

.store-billing-save {
    min-height: 43px;
    border: 0;
    border-radius: 11px;
    background: #1b2739;
    color: #fff;
    font-size: .7rem;
    font-weight: 850;
    box-shadow: 0 7px 16px rgba(21, 31, 49, .15);
}

.billing-confirmation,
.account-delete-confirm {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: inherit;
    background: rgba(16, 24, 40, .30);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.billing-confirmation[hidden],
.account-delete-confirm[hidden] {
    display: none !important;
}

.billing-confirmation-card,
.account-delete-confirm > section {
    width: min(100%, 330px);
    padding: 18px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 52px rgba(18, 27, 50, .22);
    text-align: center;
}

.billing-confirmation-icon,
.account-delete-confirm > section > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin: 0 auto 9px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .11);
    color: #15803d;
    font-size: 1rem;
    font-weight: 900;
}

.billing-confirmation-card strong,
.account-delete-confirm strong {
    color: #111827;
    font-size: .92rem;
}

.billing-confirmation-card p,
.account-delete-confirm p {
    margin: 6px 0 14px;
    color: #667085;
    font-size: .7rem;
    line-height: 1.45;
}

.billing-confirmation-card > div,
.account-delete-confirm > section > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.billing-confirmation-card button,
.account-delete-confirm button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 850;
}

.billing-confirmation-card [data-billing-cancel],
.account-delete-confirm [data-account-delete-cancel] {
    background: #eef1f7;
    color: #475467;
}

.billing-confirmation-card [data-billing-confirm] {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

.statistics-panel .dashboard-summary {
    grid-template-columns: repeat(5, minmax(90px, 1fr));
}

.dashboard-stat.stat-paid {
    border-color: rgba(22, 163, 74, .16);
    background: linear-gradient(135deg, rgba(22, 163, 74, .10), rgba(255,255,255,.90));
}

.stat-paid .dashboard-stat-icon {
    color: #15803d;
}

.stat-paid strong {
    white-space: nowrap;
}

.stat-paid strong i {
    color: #15803d;
    font-size: .55em;
    font-style: normal;
}

.member-section {
    margin: 10px 14px 0;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(246,247,255,.76));
    box-shadow: 0 10px 28px rgba(47, 56, 96, .08), inset 0 1px 0 #fff;
}

.member-section .admin-section-heading {
    padding: 0 1px 8px;
}

.member-toolbar,
.accounts-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    align-items: stretch;
}

.member-search,
.accounts-search {
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: 12px;
    background: rgba(255,255,255,.86);
    color: #768197;
    box-shadow: inset 0 1px 0 #fff;
}

.member-search svg,
.accounts-search svg {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.member-search input,
.accounts-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font-size: .76rem;
    font-weight: 700;
}

.member-add-toggle,
.accounts-add-button {
    width: auto;
    min-width: 74px;
    min-height: 42px;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #6d4aff, #1687ff);
    color: #fff;
    font-size: .72rem;
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(77, 91, 230, .20);
}

.member-add-form,
.accounts-add-form {
    margin-top: 8px;
    padding: 11px;
    border: 1px solid rgba(99,102,241,.12);
    border-radius: 14px;
    background: rgba(248,249,255,.86);
}

.member-add-form[hidden],
.accounts-add-form[hidden] {
    display: none !important;
}

.assigned-admin-list,
.dashboard-accounts-list {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

.assigned-admin-row,
.dashboard-user-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(94, 82, 182, .10);
    border-radius: 13px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 5px 16px rgba(38, 47, 82, .045), inset 0 1px 0 #fff;
    text-align: left;
}

.member-avatar,
.dashboard-account-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 50%;
    background: linear-gradient(135deg, #7456ff, #278cff);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(77, 91, 230, .18);
}

.assigned-admin-main,
.dashboard-user-content {
    display: block;
    min-width: 0;
}

.assigned-admin-name,
.dashboard-user-heading strong {
    display: block;
    overflow: hidden;
    color: #121827;
    font-size: .78rem;
    font-weight: 880;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assigned-admin-phone,
.dashboard-user-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-top: 2px;
    overflow: hidden;
    color: #778197;
    font-size: .61rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assigned-admin-phone i,
.dashboard-user-phone i {
    color: #b1b8c6;
    font-style: normal;
}

.assigned-admin-phone b,
.dashboard-user-phone b {
    font: inherit;
}

.assigned-admin-phone b.is-active,
.dashboard-user-phone b.is-active {
    color: #16803c;
}

.assigned-admin-phone b.is-disabled,
.dashboard-user-phone b.is-disabled {
    color: #c1364b;
}

.assigned-admin-meta .admin-level,
.account-row-role {
    display: inline-block;
    max-width: 112px;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid rgba(99,102,241,.10);
    border-radius: 999px;
    background: #f0f2fb;
    color: #526076;
    font-size: .56rem;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-row-role.is-empty {
    width: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.dashboard-account-panel {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
}

.accounts-toolbar {
    margin-top: 16px;
}

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

.account-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 10px;
}

.account-form-actions button,
.account-save-button {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 11px;
    font-size: .7rem;
    font-weight: 850;
}

.account-form-actions button:first-child {
    background: #eceff5;
    color: #586174;
}

.account-form-actions button:last-child,
.account-save-button {
    background: linear-gradient(135deg, #6d4aff, #1687ff);
    color: #fff;
}

.account-row-wrap {
    min-width: 0;
}

.dashboard-user-row {
    grid-template-columns: 42px minmax(0, 1fr) auto 13px;
    appearance: none;
    cursor: pointer;
}

.dashboard-user-row:hover {
    border-color: rgba(99, 102, 241, .24);
    transform: translateY(-1px);
}

.account-row-chevron {
    color: #9aa3b5;
    font-size: 1.25rem;
    line-height: 1;
}

.account-edit-dialog .account-dialog-surface {
    position: relative;
    width: min(94vw, 620px);
    max-height: min(88dvh, 720px);
    overflow-y: auto;
}

.account-edit-form {
    padding: 14px;
}

.account-save-button {
    width: 100%;
    margin-top: 11px;
}

.account-dialog-footer {
    padding: 0 14px 14px;
}

.account-dialog-footer > span {
    display: block;
    color: #7a8498;
    font-size: .64rem;
    text-align: center;
}

.account-delete-button {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(225, 29, 72, .15);
    border-radius: 11px;
    background: rgba(225, 29, 72, .07);
    color: #be123c;
    font-size: .68rem;
    font-weight: 850;
}

.account-delete-confirm {
    position: fixed;
    border-radius: 0;
}

.account-delete-confirm > section > span {
    background: rgba(225, 29, 72, .10);
    color: #be123c;
}

.account-delete-confirm form {
    display: block;
}

.account-delete-confirm form button {
    width: 100%;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
}

.account-search-empty {
    margin-top: 10px;
}

@media (max-width: 760px) {
    .statistics-panel .dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-stat.stat-paid {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .store-billing-editor .create-billing-row {
        grid-template-columns: minmax(0, 1fr) minmax(108px, .82fr);
    }

    .store-billing-save {
        grid-column: 1 / -1;
        min-height: 36px;
    }

    .member-section {
        margin-right: 10px;
        margin-left: 10px;
        padding: 9px;
    }

    .assigned-admin-row {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .dashboard-account-panel {
        padding: 14px 10px;
    }

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

    .dashboard-user-row {
        grid-template-columns: 38px minmax(0, 1fr) auto 10px;
        gap: 7px;
        padding: 9px;
    }

    .account-row-role,
    .assigned-admin-meta .admin-level {
        max-width: 82px;
        padding: 5px 7px;
    }

    .account-edit-form {
        padding: 11px;
    }
}

/* Account profile header */
.account-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.account-profile-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.account-profile-logo {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    padding: 7px;
    border: 1px solid rgba(59, 130, 246, .16);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 7px 18px rgba(30, 64, 175, .10);
    overflow: hidden;
}

.account-profile-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.account-profile-copy > span {
    display: block;
    margin-bottom: 3px;
    color: #7c879b;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dashboard-account-panel .account-profile-copy h1 {
    max-width: min(48vw, 340px);
    margin: 0;
    overflow: hidden;
    color: #172033;
    font-size: 1.15rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-profile-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 7px;
    min-width: 78px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(22, 119, 255, .18);
    border-radius: 12px;
    background: rgba(22, 119, 255, .08);
    color: #1269d3;
    font: inherit;
    font-size: .76rem;
    font-weight: 850;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.account-profile-edit:hover {
    border-color: rgba(22, 119, 255, .30);
    background: rgba(22, 119, 255, .13);
}

.account-profile-edit:active {
    transform: scale(.97);
}

.account-profile-edit svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-profile-header + .accounts-toolbar {
    margin-top: 14px;
}

@media (max-width: 560px) {
    .account-profile-header {
        gap: 10px;
        padding-bottom: 12px;
    }

    .account-profile-logo {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        padding: 6px;
    }

    .dashboard-account-panel .account-profile-copy h1 {
        max-width: 42vw;
        font-size: 1rem;
    }

    .account-profile-edit {
        min-width: 70px;
        min-height: 40px;
        padding-inline: 11px;
    }
}

/* Assigned website logos in account rows and dialogs */
.dashboard-account-avatar {
    position: relative;
    overflow: hidden;
}

.dashboard-account-avatar .account-avatar-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.dashboard-account-avatar.has-store-logo {
    border: 1px solid rgba(148, 163, 184, .22);
    background: #fff;
}

.dashboard-account-avatar.has-store-logo .account-avatar-fallback {
    display: none;
}

.dashboard-account-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
