body.storefront-page {
    background: #f5f5f7;
}

body.tenant-admin-menu-open {
    overflow: hidden;
}

.tenant-admin-mobile-header,
.tenant-admin-menu-backdrop,
.tenant-admin-menu-toggle {
    display: none;
}

.tenant-admin-auth-required {
    width: min(720px, calc(100% - 32px));
    margin: 72px auto;
    padding: 34px;
    border-radius: 28px;
    background: var(--white);
}

.tenant-admin-auth-required h1 {
    margin: 0 0 12px;
    font-size: 34px;
    letter-spacing: -0.045em;
}

.tenant-admin-auth-required p {
    margin: 0 0 24px;
    color: var(--gray);
    font-size: 18px;
    line-height: 1.45;
}

.tenant-admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    max-width: 100%;
    background: #f5f5f7;
}

.tenant-admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: #f5f5f7;
    background: #111114;
}

.tenant-admin-sidebar__brand {
    flex: 0 0 auto;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tenant-admin-sidebar__brand strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.tenant-admin-sidebar__label,
.tenant-admin-card__label,
.tenant-admin-topbar__label {
    display: block;
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tenant-admin-nav {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 26px;
    padding-right: 4px;
    padding-bottom: 18px;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.tenant-admin-nav__group {
    display: grid;
    gap: 6px;
}

.tenant-admin-nav__group + .tenant-admin-nav__group {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.tenant-admin-nav__group-label {
    display: block;
    padding: 0 14px 4px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tenant-admin-nav__item {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    font-weight: 500;
}

.tenant-admin-nav__item--storefront::after {
    margin-left: auto;
    content: "↗";
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.tenant-admin-nav__item:hover,
.tenant-admin-nav__item:focus-visible,
.tenant-admin-nav__item--active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.tenant-admin-sidebar__footer {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 4px;
}

.tenant-admin-sidebar__footer span {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.tenant-admin-sidebar__footer small {
    color: rgba(255, 255, 255, 0.52);
}

.tenant-admin-sidebar__footer a {
    width: fit-content;
    margin-top: 12px;
    color: #7ab7ff;
    font-size: 14px;
}

.tenant-admin-content {
    min-width: 0;
    max-width: 100%;
    padding: 30px;
}

.tenant-admin-topbar {
    min-height: 96px;
    padding: 24px 28px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: var(--white);
}

.tenant-admin-topbar > div {
    min-width: 0;
}

.tenant-admin-topbar h1 {
    margin: 4px 0 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.05;
    font-weight: 650;
    letter-spacing: -0.05em;
}

.tenant-admin-store-status {
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 18px;
    display: grid;
    gap: 4px;
    text-align: right;
    background: #f5f5f7;
}

.tenant-admin-store-status span {
    color: #247a35;
    font-size: 13px;
    font-weight: 700;
}

.tenant-admin-store-status strong {
    font-size: 14px;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.tenant-admin-section,
.tenant-admin-panels {
    margin-top: 20px;
}

.tenant-admin-section--appearance {
    display: grid;
    gap: 24px;
}

.tenant-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tenant-admin-card,
.tenant-admin-panel {
    border-radius: 24px;
    background: var(--white);
}

.tenant-admin-card {
    min-height: 176px;
    padding: 22px;
}

.tenant-admin-card strong {
    display: block;
    margin-top: 12px;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.tenant-admin-card p,
.tenant-admin-panel p {
    margin: 12px 0 0;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.tenant-admin-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tenant-admin-panel {
    padding: 24px;
}

.tenant-admin-section--appearance .tenant-admin-panel,
.tenant-admin-section--appearance .tenant-admin-settings-group {
    scroll-margin-top: 24px;
}

.tenant-admin-panel h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.tenant-gallery-3d-admin__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.tenant-gallery-3d-admin__stats .tenant-admin-card {
    min-height: 150px;
}

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

.tenant-gallery-3d-admin__settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
}

.tenant-gallery-3d-admin__toggle {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.tenant-gallery-3d-admin__toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--blue);
}

.tenant-gallery-3d-admin__placement-header {
    margin-top: 30px;
}

.tenant-gallery-3d-admin__table {
    min-width: 940px;
}

.tenant-gallery-3d-admin__compact-field {
    grid-template-columns: minmax(84px, 1fr) auto;
    align-items: center;
}

.tenant-gallery-3d-admin__compact-field input,
.tenant-gallery-3d-admin__compact-field select {
    padding: 9px 10px;
}

.tenant-gallery-3d-admin__compact-field small {
    color: var(--gray);
    font-weight: 700;
}

@media (max-width: 1080px) {
    .tenant-admin-shell {
        display: block;
        min-width: 0;
    }

    .tenant-admin-content {
        width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    .tenant-admin-mobile-header {
        position: sticky;
        top: 0;
        z-index: 40;
        min-height: 68px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        background: rgba(245, 245, 247, 0.92);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .tenant-admin-mobile-header span {
        display: block;
        color: var(--gray);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .tenant-admin-mobile-header strong {
        display: block;
        margin-top: 3px;
        font-size: 17px;
        line-height: 1.15;
        letter-spacing: -0.035em;
    }

    .tenant-admin-menu-toggle {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: var(--black);
        cursor: pointer;
    }

    .tenant-admin-menu-toggle span {
        width: 17px;
        height: 2px;
        border-radius: 999px;
        background: var(--white);
    }

    .tenant-admin-menu-toggle:focus-visible {
        outline: 3px solid rgba(0, 113, 227, 0.35);
        outline-offset: 2px;
    }

    .tenant-admin-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(0, 0, 0, 0.44);
    }

    .tenant-admin-menu-backdrop.is-visible {
        display: block;
    }

    .tenant-admin-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 90;
        height: auto;
        max-height: min(84vh, 620px);
        border-radius: 28px 28px 0 0;
        transform: translateY(105%);
        transition: transform 220ms ease;
        overflow-y: auto;
    }

    .tenant-admin-nav {
        flex: 0 0 auto;
        min-height: auto;
        padding-right: 0;
        overflow-y: visible;
    }

    .tenant-admin-sidebar.is-open {
        transform: translateY(0);
    }

    .tenant-admin-grid,
    .tenant-admin-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tenant-gallery-3d-admin__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .tenant-admin-content {
        padding: 14px;
    }

    .tenant-admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        min-height: 0;
        padding: 18px;
        border-radius: 20px;
    }

    .tenant-admin-topbar h1 {
        font-size: 28px;
        line-height: 1.1;
    }

    .tenant-admin-store-status {
        width: 100%;
        text-align: left;
    }

    .tenant-admin-grid,
    .tenant-admin-panels {
        grid-template-columns: 1fr;
    }

    .tenant-gallery-3d-admin__settings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tenant-admin-mobile-header {
        padding: 10px 12px;
    }

    .tenant-admin-content {
        padding: 10px;
    }

    .tenant-admin-topbar {
        padding: 14px;
        border-radius: 16px;
    }

    .tenant-admin-topbar h1 {
        font-size: 24px;
    }

    .tenant-admin-store-status {
        padding: 10px 12px;
        border-radius: 14px;
    }
}


.tenant-admin-panel--wide {
    grid-column: 1 / -1;
}

.tenant-admin-page-nav {
    padding: 16px;
    border-radius: 24px;
    background: var(--white);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.tenant-admin-page-nav a {
    min-width: 0;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #e6e6eb;
    border-radius: 999px;
    color: var(--black);
    background: #f5f5f7;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.tenant-admin-page-nav a:hover,
.tenant-admin-page-nav a:focus-visible {
    border-color: var(--blue);
    color: var(--blue);
    background: #ffffff;
    outline: none;
}

.tenant-admin-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.tenant-admin-products-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.tenant-admin-csv-import {
    margin: 16px 0 20px;
    border: 1px solid #e6e6eb;
    border-radius: 16px;
    background: #f9f9fb;
}

.tenant-admin-csv-import summary {
    padding: 14px 16px;
    color: var(--black);
    font-weight: 700;
    cursor: pointer;
}

.tenant-admin-csv-import form {
    padding: 0 16px 16px;
    display: grid;
    gap: 13px;
}

.tenant-admin-csv-import form p {
    margin: 0;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.5;
}

.tenant-admin-csv-import .tenant-admin-action {
    width: fit-content;
}

.tenant-admin-action {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--blue);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.tenant-admin-action:hover,
.tenant-admin-action:focus-visible {
    background: var(--blue-hover);
    outline: none;
}

.tenant-admin-empty {
    margin-top: 22px;
    padding: 22px;
    border-radius: 18px;
    background: #f5f5f7;
}

.tenant-admin-empty strong {
    display: block;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.tenant-admin-table-wrap {
    margin-top: 22px;
    overflow-x: auto;
}

.tenant-admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.tenant-admin-table th,
.tenant-admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e6e6eb;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.tenant-admin-table th {
    color: var(--gray);
    font-weight: 700;
}


.tenant-admin-action--secondary {
    color: var(--black);
    background: #f5f5f7;
}

.tenant-admin-action--secondary:hover,
.tenant-admin-action--secondary:focus-visible {
    background: #e8e8ed;
}

.tenant-admin-alert {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.45;
}

.tenant-admin-alert--success {
    color: #155724;
    background: #dff3e4;
}

.tenant-admin-alert--error {
    color: #8a1f11;
    background: #ffe5df;
}

.tenant-admin-alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.tenant-admin-form {
    margin-top: 24px;
}

.tenant-admin-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

.tenant-admin-field--wide {
    grid-column: 1 / -1;
}

.tenant-admin-field span {
    color: var(--gray);
    font-size: 14px;
    font-weight: 700;
}

.tenant-admin-field input,
.tenant-admin-field select,
.tenant-admin-field textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--black);
    background: var(--white);
    font: inherit;
    font-size: 15px;
}

.tenant-admin-field textarea {
    resize: vertical;
}

.tenant-admin-field input:focus,
.tenant-admin-field select:focus,
.tenant-admin-field textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(0, 113, 227, 0.18);
}

.tenant-admin-form__actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 680px) {
    .tenant-admin-section,
    .tenant-admin-panels {
        margin-top: 14px;
    }

    .tenant-admin-section--appearance {
        gap: 14px;
    }

    .tenant-admin-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .tenant-admin-panel h2 {
        font-size: 21px;
    }

    .tenant-admin-page-nav {
        margin-right: -14px;
        margin-left: -14px;
        padding: 12px 14px;
        border-radius: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .tenant-admin-page-nav a {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .tenant-admin-panel__header,
    .tenant-admin-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tenant-admin-form__grid {
        grid-template-columns: 1fr;
    }

    .tenant-admin-action {
        width: 100%;
    }

    .tenant-admin-products-header-actions,
    .tenant-admin-csv-import .tenant-admin-action {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tenant-admin-panel {
        padding: 12px;
        border-radius: 16px;
    }

    .tenant-admin-page-nav {
        margin-right: -10px;
        margin-left: -10px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .tenant-admin-form {
        margin-top: 16px;
    }

    .tenant-admin-form__grid {
        gap: 12px;
    }

    .tenant-admin-field input,
    .tenant-admin-field select,
    .tenant-admin-field textarea {
        padding: 11px 12px;
        border-radius: 12px;
        font-size: 14px;
    }
}


.tenant-admin-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tenant-admin-row-actions form {
    margin: 0;
}

.tenant-admin-icon-button {
    width: 34px;
    height: 34px;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    background: var(--white);
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.tenant-admin-icon-button:hover,
.tenant-admin-icon-button:focus-visible {
    border-color: var(--blue);
    color: var(--blue);
    outline: none;
}

.tenant-admin-icon-button--danger:hover,
.tenant-admin-icon-button--danger:focus-visible {
    border-color: #c62828;
    color: #c62828;
}


.tenant-admin-check {
    min-width: 0;
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
}

.tenant-admin-check input {
    width: 18px;
    height: 18px;
}

.tenant-admin-check span {
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tenant-admin-upload {
    min-width: 0;
    min-height: 160px;
    border: 2px dashed #c6c6cc;
    border-radius: 20px;
    padding: 24px;
    display: grid;
    place-items: center;
    gap: 8px;
    text-align: center;
    background: #f5f5f7;
    cursor: pointer;
}

.tenant-admin-upload.is-dragover {
    border-color: var(--blue);
    background: rgba(0, 113, 227, 0.08);
}

.tenant-admin-upload span {
    color: var(--gray);
    font-size: 14px;
    font-weight: 700;
}

.tenant-admin-upload strong {
    font-size: 18px;
    letter-spacing: -0.035em;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.tenant-admin-upload small {
    color: var(--gray);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.tenant-admin-upload input {
    width: 100%;
    max-width: 320px;
}

.tenant-admin-images {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.tenant-admin-images > span {
    color: var(--gray);
    font-size: 14px;
    font-weight: 700;
}

.tenant-admin-image-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.tenant-admin-image-card {
    border: 1px solid #d2d2d7;
    border-radius: 18px;
    padding: 10px;
    display: grid;
    gap: 8px;
    background: var(--white);
}

.tenant-admin-image-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
    background: #f5f5f7;
}

.tenant-admin-image-card span {
    font-size: 14px;
    font-weight: 700;
}

.tenant-testimonial-admin__count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--gray);
    background: #f5f5f7;
    font-size: 13px;
    font-weight: 700;
}

.tenant-testimonial-admin__settings {
    margin-top: 18px;
}

.tenant-testimonial-admin__divider {
    margin: 24px 0;
    border-top: 1px solid #e6e6eb;
}

.tenant-testimonial-admin__images {
    margin-top: 24px;
}

.tenant-testimonial-admin__grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.tenant-testimonial-admin__card img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.tenant-testimonial-admin__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tenant-testimonial-admin__actions form {
    margin: 0;
}

.tenant-testimonial-admin__actions .tenant-admin-icon-button {
    position: static;
}

.tenant-testimonial-admin__actions button:disabled,
.tenant-testimonial-admin .tenant-admin-action:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.tenant-newsletter-admin .tenant-admin-panel__header .tenant-admin-action {
    flex: 0 0 auto;
}

.tenant-newsletter-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tenant-newsletter-actions form {
    margin: 0;
}

.tenant-newsletter-actions .tenant-admin-danger {
    background: #b42318;
}

.tenant-newsletter-actions .tenant-admin-danger:hover,
.tenant-newsletter-actions .tenant-admin-danger:focus-visible {
    background: #8f1c13;
}

.tenant-admin-pagination {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tenant-admin-pagination a {
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    background: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.tenant-admin-pagination a:hover,
.tenant-admin-pagination a:focus-visible,
.tenant-admin-pagination a.is-active {
    border-color: var(--blue);
    color: var(--white);
    background: var(--blue);
    outline: none;
}

.tenant-newsletter-summary {
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.tenant-newsletter-summary div {
    min-width: 0;
    padding: 16px;
    border-radius: 8px;
    background: #f5f5f7;
}

.tenant-newsletter-summary dt {
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
}

.tenant-newsletter-summary dd {
    margin: 5px 0 0;
    color: var(--black);
    font-size: 18px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tenant-newsletter-preview {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid #e6e6eb;
    border-radius: 8px;
    color: var(--black);
    background: #ffffff;
    line-height: 1.65;
}

.tenant-newsletter-preview h3 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .tenant-newsletter-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .tenant-newsletter-summary {
        grid-template-columns: 1fr;
    }

    .tenant-newsletter-actions,
    .tenant-newsletter-actions form,
    .tenant-newsletter-actions .tenant-admin-action {
        width: 100%;
    }
}

.tenant-admin-product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    background: #f5f5f7;
}

.tenant-admin-product-thumb--empty {
    color: var(--gray);
}

.tenant-admin-badge {
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #7a4d00;
    background: #fff0c2;
    font-size: 12px;
    font-weight: 700;
}


.tenant-admin-image-card {
    position: relative;
}

.tenant-admin-image-card__primary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tenant-admin-image-card__primary input {
    width: 16px;
    height: 16px;
}

.tenant-admin-image-card__delete {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.94);
}

.tenant-admin-image-card--logo {
    max-width: 180px;
}

.tenant-admin-image-card--logo img {
    aspect-ratio: 2 / 1;
    object-fit: contain;
    padding: 12px;
}

.tenant-admin-image-card--hero {
    max-width: 360px;
}

.tenant-admin-image-card--hero img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.tenant-admin-upload-preview {
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #d2d2d7;
}

.tenant-admin-upload-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
}

.tenant-admin-upload-preview__card {
    overflow: hidden;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    background: #ffffff;
}

.tenant-admin-upload-preview__card img {
    width: 100%;
    height: 70px;
    display: block;
    object-fit: cover;
}

.tenant-admin-upload-preview__card--logo img {
    object-fit: contain;
    padding: 8px;
    background: #ffffff;
}

.tenant-admin-upload-preview__card span {
    padding: 7px 8px 8px;
    display: block;
    color: #6e6e73;
    font-size: 11px;
    line-height: 1.25;
    text-align: left;
    word-break: break-word;
}

.tenant-admin-image-placeholder {
    width: fit-content;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f7;
}

.tenant-admin-image-placeholder img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.tenant-admin-image-placeholder strong {
    font-size: 14px;
    letter-spacing: -0.025em;
}

.tenant-admin-image-placeholder p {
    display: none;
}

img.tenant-admin-product-thumb--empty {
    border: 1px solid #e6e6eb;
}

@media (max-width: 680px) {
    .tenant-admin-upload {
        min-height: 128px;
        padding: 16px;
        border-radius: 16px;
    }

    .tenant-admin-upload strong {
        font-size: 16px;
    }

    .tenant-admin-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
        gap: 10px;
    }

    .tenant-admin-image-card {
        border-radius: 14px;
        padding: 8px;
    }

    .tenant-admin-image-card--logo,
    .tenant-admin-image-card--hero {
        max-width: 100%;
    }

    .tenant-admin-image-placeholder {
        width: 100%;
    }
}


.tenant-admin-table td:first-child {
    font-weight: 650;
}


.tenant-admin-table .tenant-admin-row-actions {
    min-width: 86px;
}


.tenant-admin-filters {
    margin-top: 22px;
    padding: 18px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) minmax(160px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
    background: #f5f5f7;
}

.tenant-admin-filters__actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 1080px) {
    .tenant-admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tenant-admin-filters__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .tenant-admin-filters {
        grid-template-columns: 1fr;
    }

    .tenant-admin-filters__actions {
        flex-direction: column;
    }
}


.tenant-admin-empty {
    margin-top: 22px;
}


.tenant-admin-action--small {
    min-height: 34px;
    padding: 0 14px;
    font-size: 14px;
}

.tenant-admin-details-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tenant-admin-detail-card {
    padding: 18px;
    border-radius: 18px;
    background: #f5f5f7;
}

.tenant-admin-detail-card span {
    display: block;
    color: var(--gray);
    font-size: 13px;
    font-weight: 700;
}

.tenant-admin-detail-card strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.tenant-admin-definition-list {
    margin: 18px 0 0;
    display: grid;
    gap: 14px;
}

.tenant-admin-definition-list div {
    display: grid;
    gap: 4px;
}

.tenant-admin-definition-list dt {
    color: var(--gray);
    font-size: 13px;
    font-weight: 700;
}

.tenant-admin-definition-list dd {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 1080px) {
    .tenant-admin-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .tenant-admin-details-grid {
        grid-template-columns: 1fr;
    }
}


.tenant-admin-order-summary {
    width: min(420px, 100%);
    margin: 22px 0 0 auto;
    display: grid;
    gap: 10px;
}

.tenant-admin-order-summary div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #e6e6eb;
}

.tenant-admin-order-summary dt,
.tenant-admin-order-summary dd {
    margin: 0;
}

.tenant-admin-order-summary dt {
    color: var(--gray);
    font-weight: 700;
}

.tenant-admin-order-summary dd {
    font-weight: 700;
}

.tenant-admin-order-summary__total {
    font-size: 18px;
}

.tenant-admin-order-summary__total dt,
.tenant-admin-order-summary__total dd {
    color: var(--black);
}


.tenant-admin-status-form {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.tenant-admin-status-form label {
    display: grid;
    gap: 8px;
}

.tenant-admin-status-form span {
    color: var(--gray);
    font-size: 13px;
    font-weight: 700;
}

.tenant-admin-status-form select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d8d8df;
    border-radius: 14px;
    background: #fff;
    color: var(--black);
    font: inherit;
}

.tenant-admin-status-form__actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .tenant-admin-status-form {
        grid-template-columns: 1fr;
    }

    .tenant-admin-status-form__actions {
        justify-content: stretch;
    }

    .tenant-admin-status-form__actions .tenant-admin-action {
        width: 100%;
    }
}


.tenant-admin-upload-row {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.tenant-admin-upload-row h3 {
    margin: 0;
    font-size: 18px;
}

.tenant-admin-upload-row p {
    margin: 6px 0 0;
    color: var(--gray);
}

.tenant-admin-image-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.tenant-admin-image-preview .tenant-admin-check {
    min-height: 0;
}

.tenant-admin-logo-preview {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
    padding: 10px;
    border: 1px solid #e6e6eb;
    border-radius: 16px;
    background: #fff;
}

@media (max-width: 680px) {
    .tenant-admin-upload-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


.tenant-admin-field--color {
    align-content: start;
}

.tenant-admin-color-control {
    width: 100%;
    padding: 5px 12px 5px 6px;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
}

.tenant-admin-color-control input[type="color"] {
    width: 42px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.tenant-admin-color-control span {
    color: var(--black);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tenant-admin-layout-options {
    border: 0;
    margin: 0;
    padding: 0;
}

.tenant-admin-layout-options legend {
    margin: 0 0 12px;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.tenant-admin-layout-options__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tenant-admin-layout-option {
    min-width: 0;
    cursor: pointer;
    min-height: 116px;
    padding: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 18px;
    background: #ffffff;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.tenant-admin-layout-option:has(input:checked) {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.tenant-admin-layout-option input {
    margin-top: 3px;
}

.tenant-admin-layout-option strong {
    display: block;
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.tenant-admin-layout-option small {
    display: block;
    margin-top: 7px;
    color: #6e6e73;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .tenant-admin-layout-options__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .tenant-admin-layout-option {
        min-height: 0;
        padding: 14px;
        border-radius: 14px;
    }
}


.tenant-admin-settings-group {
    padding: 22px;
    border: 1px solid #eeeeef;
    border-radius: 22px;
    background: #ffffff;
    display: grid;
    gap: 16px;
}

.tenant-admin-help {
    margin: 0;
    color: #6e6e73;
    font-size: 14px;
    line-height: 1.55;
}

.tenant-admin-plan-notice,
.tenant-admin-plan-usage {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 113, 227, 0.16);
    border-radius: 0.9rem;
    background: rgba(0, 113, 227, 0.07);
    color: #174f84;
    line-height: 1.5;
}

.tenant-admin-plan-limit {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 149, 0, 0.12);
    color: #8a4b00;
    font-size: 0.9rem;
    font-weight: 800;
}

.tenant-admin-help code {
    color: #1d1d1f;
    font-weight: 700;
}

.tenant-admin-payment-options,
.tenant-admin-payment-provider {
    padding-top: 14px;
    border-top: 1px solid #eeeeef;
    display: grid;
    gap: 14px;
}

.tenant-admin-shipping-add {
    padding: 16px;
    border: 1px solid #eeeeef;
    border-radius: 18px;
    background: #ffffff;
    display: grid;
    gap: 14px;
}

.tenant-admin-shipping-methods {
    display: grid;
    gap: 14px;
}

.tenant-admin-shipping-method {
    padding: 16px;
    border: 1px solid #eeeeef;
    border-radius: 18px;
    background: #f5f5f7;
    display: grid;
    gap: 14px;
}

.tenant-admin-shipping-method .tenant-admin-form__grid {
    gap: 12px;
}

.tenant-admin-shipping-empty {
    margin: 0;
}

.tenant-admin-option-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.tenant-admin-option-card {
    padding: 0;
    border: 1px solid #eeeeef;
    border-radius: 16px;
    background: #f5f5f7;
    overflow: hidden;
}

.tenant-admin-option-card[open] {
    background: #ffffff;
}

.tenant-admin-option-summary {
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1.4fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.tenant-admin-option-summary::-webkit-details-marker {
    display: none;
}

.tenant-admin-option-summary__main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.tenant-admin-option-summary__main strong {
    color: #1d1d1f;
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.tenant-admin-option-summary__main span,
.tenant-admin-option-summary__meta {
    color: #6e6e73;
    font-size: 12px;
    font-weight: 700;
}

.tenant-admin-option-summary__values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.tenant-admin-option-chip {
    min-height: 26px;
    max-width: 160px;
    padding: 5px 9px;
    border: 1px solid #e5e5e7;
    border-radius: 999px;
    background: #ffffff;
    color: #1d1d1f;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-admin-option-chip--color {
    padding-left: 6px;
}

.tenant-admin-option-card .tenant-admin-form {
    margin: 0;
    padding: 14px 16px 16px;
    border-top: 1px solid #eeeeef;
    min-width: 0;
}

.tenant-admin-option-card .tenant-admin-form__grid,
.tenant-admin-option-create .tenant-admin-form__grid {
    gap: 12px;
}

.tenant-admin-option-card .tenant-admin-field,
.tenant-admin-option-create .tenant-admin-field {
    gap: 6px;
}

.tenant-admin-option-card .tenant-admin-field input,
.tenant-admin-option-card .tenant-admin-field select,
.tenant-admin-option-card .tenant-admin-field textarea,
.tenant-admin-option-create .tenant-admin-field input,
.tenant-admin-option-create .tenant-admin-field select,
.tenant-admin-option-create .tenant-admin-field textarea {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.tenant-admin-option-card .tenant-admin-field textarea,
.tenant-admin-option-create .tenant-admin-field textarea {
    min-height: 82px;
}

.tenant-admin-option-card .tenant-admin-form__actions {
    margin-top: 14px;
}

.tenant-admin-option-card .tenant-admin-action,
.tenant-admin-option-create .tenant-admin-action {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
}

.tenant-admin-option-assignment {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.tenant-admin-option-assignment .tenant-admin-check-row {
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #eeeeef;
    border-radius: 999px;
    background: #ffffff;
}

.tenant-admin-text-values,
.tenant-admin-color-values {
    display: grid;
    gap: 8px;
}

.tenant-admin-field[hidden],
.tenant-admin-text-values[hidden],
.tenant-admin-color-values[hidden] {
    display: none;
}

.tenant-admin-option-value-rows,
.tenant-admin-color-values__list {
    display: grid;
    gap: 7px;
}

.tenant-admin-option-value-row,
.tenant-admin-color-value-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 46px minmax(88px, 120px) 34px;
    gap: 8px;
    align-items: center;
}

.tenant-admin-option-value-row {
    grid-template-columns: minmax(140px, 1fr) minmax(88px, 120px) 34px;
}

.tenant-admin-option-value-row input[type="text"],
.tenant-admin-color-value-row input[type="text"] {
    min-width: 0;
}

.tenant-admin-option-value-row [data-option-value-price],
.tenant-admin-color-value-row [data-option-value-price] {
    text-align: right;
}

.tenant-admin-color-value-row input[type="color"] {
    width: 46px;
    min-height: 38px;
    padding: 3px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    background: #ffffff;
}

.tenant-admin-option-swatch {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.tenant-admin-order-item-options {
    margin: 8px 0 0;
    color: #6e6e73;
    font-size: 13px;
    line-height: 1.4;
}

.tenant-admin-order-item-options div {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tenant-admin-order-item-options dt {
    font-weight: 700;
}

.tenant-admin-order-item-options dd {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.tenant-admin-coupon-list {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.tenant-admin-coupon-card {
    border: 1px solid #eeeeef;
    border-radius: 16px;
    background: #f5f5f7;
    overflow: hidden;
}

.tenant-admin-coupon-card[open] {
    background: #ffffff;
}

.tenant-admin-coupon-summary {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.tenant-admin-coupon-summary::-webkit-details-marker {
    display: none;
}

.tenant-admin-coupon-summary span {
    color: #6e6e73;
    font-size: 13px;
    font-weight: 700;
}

.tenant-admin-coupon-summary strong {
    display: block;
    color: #1d1d1f;
    font-size: 16px;
    line-height: 1.2;
}

.tenant-admin-coupon-summary small {
    display: block;
    margin-top: 3px;
    color: #6e6e73;
    font-size: 12px;
}

.tenant-admin-coupon-card .tenant-admin-form {
    margin: 0;
    padding: 14px 16px 16px;
    border-top: 1px solid #eeeeef;
}

.tenant-admin-coupon-form .tenant-admin-form__grid {
    gap: 12px;
}

.tenant-admin-coupon-form .tenant-admin-field input,
.tenant-admin-coupon-form .tenant-admin-field select {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 14px;
}

@media (min-width: 760px) {
    .tenant-admin-shipping-add {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
}

@media (max-width: 560px) {
    .tenant-admin-settings-group,
    .tenant-admin-shipping-add,
    .tenant-admin-shipping-method {
        padding: 14px;
        border-radius: 16px;
    }

    .tenant-admin-coupon-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tenant-admin-option-summary {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 14px;
    }

    .tenant-admin-option-chip {
        max-width: 100%;
        line-height: 1.2;
        white-space: normal;
    }

    .tenant-admin-option-card .tenant-admin-form {
        padding: 12px 14px 14px;
    }

    .tenant-admin-color-value-row {
        grid-template-columns: minmax(0, 1fr) 46px minmax(96px, 0.7fr) 34px;
    }

    .tenant-admin-option-value-row {
        grid-template-columns: minmax(0, 1fr) minmax(96px, 0.7fr) 34px;
    }

    .tenant-admin-option-assignment {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .tenant-admin-color-value-row {
        grid-template-columns: 40px minmax(0, 1fr) 34px;
        gap: 6px;
    }

    .tenant-admin-option-value-row {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 6px;
    }

    .tenant-admin-color-value-row [data-option-value-label] {
        grid-column: 1 / -1;
    }

    .tenant-admin-color-value-row input[type="color"] {
        grid-column: 1;
        grid-row: 2;
    }

    .tenant-admin-color-value-row [data-option-value-price] {
        grid-column: 2;
        grid-row: 2;
    }

    .tenant-admin-color-value-row [data-remove-option-value-row] {
        grid-column: 3;
        grid-row: 2;
    }

    .tenant-admin-option-value-row [data-option-value-label] {
        grid-column: 1 / -1;
    }

    .tenant-admin-option-value-row [data-option-value-price] {
        grid-column: 1;
        grid-row: 2;
    }

    .tenant-admin-option-value-row [data-remove-option-value-row] {
        grid-column: 2;
        grid-row: 2;
    }

    .tenant-admin-color-value-row input[type="color"] {
        width: 40px;
    }
}

.tenant-admin-form > .tenant-admin-settings-group + .tenant-admin-settings-group {
    margin-top: 18px;
}

.tenant-admin-settings-group h3 {
    margin: 0;
    color: #1d1d1f;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.tenant-admin-settings-page {
    margin-top: 22px;
    display: grid;
    gap: 18px;
}

.tenant-admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.tenant-admin-settings-page .tenant-admin-panel {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tenant-admin-settings-page .tenant-admin-panel__header {
    padding-bottom: 18px;
    border-bottom: 1px solid #eeeeef;
}

.tenant-admin-settings-page .tenant-admin-panel__header span {
    display: block;
    color: var(--gray);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
}

.tenant-admin-settings-page .tenant-admin-panel__header h2 {
    margin-top: 6px;
}

.tenant-admin-settings-page .tenant-admin-form {
    flex: 1;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
}

.tenant-admin-settings-page .tenant-admin-form__grid {
    gap: 14px;
}

.tenant-admin-settings-page .tenant-admin-form > label,
.tenant-admin-settings-page .tenant-admin-form__grid > label,
.tenant-admin-settings-page .tenant-admin-form--compact > label,
.tenant-admin-settings-page .tenant-admin-form--danger > label {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
}

.tenant-admin-settings-page .tenant-admin-form label > span,
.tenant-admin-settings-page .tenant-admin-choice-group legend {
    color: var(--gray);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
}

.tenant-admin-settings-page .tenant-admin-form input[type="text"],
.tenant-admin-settings-page .tenant-admin-form input[type="email"],
.tenant-admin-settings-page .tenant-admin-form input[type="password"] {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    background: #ffffff;
    color: var(--black);
    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    box-shadow: none;
}

.tenant-admin-settings-page .tenant-admin-form input[type="text"]:focus,
.tenant-admin-settings-page .tenant-admin-form input[type="email"]:focus,
.tenant-admin-settings-page .tenant-admin-form input[type="password"]:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(0, 113, 227, 0.18);
}

.tenant-admin-settings-page .tenant-admin-form small {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.35;
}

.tenant-admin-settings-page .tenant-admin-form__actions {
    margin-top: auto;
    padding-top: 18px;
}

.tenant-admin-settings-page .tenant-admin-action,
.tenant-admin-settings-page .tenant-admin-form--danger button {
    width: auto;
    min-width: 164px;
    max-width: 100%;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
}

.tenant-admin-settings-status {
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.tenant-admin-settings-status--active {
    background: rgba(52, 199, 89, 0.12);
    color: #1f7a3b;
}

.tenant-admin-settings-status--inactive {
    background: rgba(110, 110, 115, 0.12);
    color: #515154;
}

.tenant-admin-form--compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: end;
    gap: 16px;
    margin-top: 14px;
}

.tenant-admin-settings-page .tenant-admin-form--compact {
    display: grid;
    flex: 0 0 auto;
}

.tenant-admin-form--danger {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 18px;
    display: grid;
    gap: 14px;
    background: rgba(255, 59, 48, 0.06);
}

.tenant-admin-form--danger button {
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: #b42318;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    cursor: pointer;
}

.tenant-admin-form--danger button:hover,
.tenant-admin-form--danger button:focus-visible {
    background: #d92d20;
    outline: none;
}

.tenant-admin-choice-group {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 10px;
}

.tenant-admin-choice-group legend {
    margin: 0 0 8px;
}

.tenant-admin-choice {
    min-height: 62px;
    padding: 13px 14px;
    border: 1px solid #eeeeef;
    border-radius: 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    background: #ffffff;
}

.tenant-admin-choice input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--blue);
}

.tenant-admin-choice strong,
.tenant-admin-choice small {
    display: block;
}

.tenant-admin-choice strong {
    color: #1d1d1f;
    font-size: 14px;
    line-height: 1.3;
}

.tenant-admin-choice small {
    margin-top: 4px;
    color: #6e6e73;
    font-size: 13px;
    line-height: 1.4;
}

.tenant-admin-setup-box,
.tenant-admin-recovery-management,
.tenant-admin-dev-code {
    padding: 16px;
    border-radius: 18px;
    background: #f5f5f7;
}

.tenant-admin-dev-code {
    display: grid;
    gap: 5px;
}

.tenant-admin-setup-box,
.tenant-admin-recovery-management {
    display: grid;
    gap: 14px;
}

.tenant-admin-authenticator-setup {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.tenant-admin-qr-wrap {
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
}

.tenant-admin-qr-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

.tenant-admin-authenticator-setup dl {
    margin: 12px 0 0;
    display: grid;
    gap: 8px;
}

.tenant-admin-authenticator-setup dl div {
    display: grid;
    gap: 3px;
}

.tenant-admin-authenticator-setup dt,
.tenant-admin-dev-code span {
    color: #6e6e73;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tenant-admin-authenticator-setup dd,
.tenant-admin-dev-code strong {
    margin: 0;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.tenant-admin-secret,
.tenant-admin-recovery-codes li {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.08em;
}

.tenant-admin-recovery-panel {
    padding: 22px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
    gap: 18px;
    background: #1d1d1f;
    color: #ffffff;
}

.tenant-admin-recovery-panel h2,
.tenant-admin-recovery-panel p {
    margin: 0;
}

.tenant-admin-recovery-panel h2 {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.tenant-admin-recovery-panel p:not(.tenant-admin-section__eyebrow) {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.5;
}

.tenant-admin-recovery-codes {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tenant-admin-recovery-codes li {
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .tenant-admin-settings-grid,
    .tenant-admin-recovery-panel {
        grid-template-columns: 1fr;
    }

    .tenant-admin-authenticator-setup {
        grid-template-columns: 1fr;
    }

    .tenant-admin-qr-wrap {
        width: min(100%, 220px);
    }
}

@media (max-width: 620px) {
    .tenant-admin-form--compact {
        grid-template-columns: 1fr;
    }

    .tenant-admin-settings-page .tenant-admin-action,
    .tenant-admin-settings-page .tenant-admin-form--danger button {
        width: 100%;
    }

    .tenant-admin-recovery-codes {
        grid-template-columns: 1fr;
    }
}

.tenant-admin-check-row {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1d1d1f;
    font-size: 15px;
    letter-spacing: -0.03em;
}

.tenant-admin-check-row input {
    width: 18px;
    height: 18px;
    accent-color: #0071e3;
}

.tenant-admin-consent-page .tenant-admin-section__heading {
    align-items: center;
}

.tenant-admin-consent-version {
    min-width: 132px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f5f5f7;
    display: grid;
    gap: 3px;
    text-align: right;
}

.tenant-admin-consent-version span {
    color: #6e6e73;
    font-size: 12px;
    font-weight: 700;
}

.tenant-admin-consent-version strong {
    color: #1d1d1f;
    font-size: 20px;
}

.tenant-admin-consent-form {
    display: grid;
    gap: 18px;
}

.tenant-admin-consent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.tenant-admin-consent-card {
    align-content: start;
}

.tenant-admin-consent-card > header {
    padding-bottom: 14px;
    border-bottom: 1px solid #eeeeef;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.tenant-admin-consent-card > header p {
    margin: 0 0 5px;
    color: #6e6e73;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.tenant-admin-consent-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.tenant-admin-consent-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #0071e3;
}

.tenant-admin-consent-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.tenant-admin-consent-actions .tenant-admin-action--secondary {
    border: 1px solid #d2d2d7;
    background: #ffffff;
}

.tenant-admin-consent-actions .tenant-admin-action--secondary:hover,
.tenant-admin-consent-actions .tenant-admin-action--secondary:focus-visible {
    border-color: #a1a1a6;
    background: #f5f5f7;
}

@media (max-width: 1120px) {
    .tenant-admin-consent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .tenant-admin-consent-page .tenant-admin-section__heading {
        align-items: stretch;
    }

    .tenant-admin-consent-version {
        width: 100%;
        text-align: left;
    }

    .tenant-admin-consent-card > header {
        display: grid;
    }

    .tenant-admin-consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tenant-admin-consent-actions .tenant-admin-action {
        width: 100%;
    }
}


.tenant-admin-sidebar__logout-form {
    margin: 12px 0 0;
}

.tenant-admin-sidebar__logout-form button {
    width: fit-content;
    padding: 0;
    border: 0;
    color: #7ab7ff;
    background: transparent;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.tenant-admin-sidebar__logout-form button:hover,
.tenant-admin-sidebar__logout-form button:focus-visible {
    text-decoration: underline;
    outline: none;
}

.tenant-billing {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 22px;
}

.tenant-billing > *,
.tenant-billing .tenant-admin-panel,
.tenant-billing .tenant-admin-form,
.tenant-billing .tenant-admin-form__grid,
.tenant-billing .tenant-admin-form__grid > *,
.tenant-billing .tenant-admin-table-wrap {
    min-width: 0;
    max-width: 100%;
}

.tenant-billing .tenant-admin-alert,
.tenant-billing .tenant-admin-form,
.tenant-billing .tenant-admin-table-wrap {
    margin-top: 0;
}

.tenant-billing-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tenant-billing-summary div,
.tenant-billing-plan__body {
    display: grid;
    gap: 5px;
}

.tenant-billing-summary span,
.tenant-billing-plan__body small,
.tenant-billing-method small {
    color: var(--gray);
    font-size: 13px;
}

.tenant-billing-summary strong {
    font-size: 18px;
}

.tenant-billing-renewal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-color: #f2c94c;
    background: #fffaf0;
}

.tenant-billing-renewal h2 {
    margin: 4px 0 10px;
}

.tenant-billing-renewal p {
    max-width: 760px;
}

.tenant-billing-renewal__details {
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.tenant-billing-renewal__details div {
    display: grid;
    gap: 3px;
}

.tenant-billing-renewal__details dt {
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.tenant-billing-renewal__details dd {
    margin: 0;
    font-weight: 700;
}

.tenant-billing-renewal__actions {
    min-width: 180px;
    display: grid;
    gap: 10px;
}

.tenant-billing-renewal__actions form,
.tenant-billing-renewal__actions .tenant-admin-action {
    width: 100%;
}

.tenant-billing-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tenant-billing-plan {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.tenant-billing-plan > input {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.tenant-billing-plan__body {
    height: 100%;
    padding: 20px;
    border: 1px solid #d2d2d7;
    border-radius: 18px;
    align-content: start;
    background: var(--white);
    overflow-wrap: anywhere;
}

.tenant-billing-plan > input:checked + .tenant-billing-plan__body {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.tenant-billing-plan__body > strong {
    padding-right: 28px;
    font-size: 20px;
}

.tenant-billing-plan__body ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #424245;
    font-size: 13px;
    line-height: 1.45;
}

.tenant-billing-checkout-options {
    margin-top: 20px;
}

.tenant-billing-provider-notice {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e6e6eb;
    min-width: 0;
}

.tenant-admin-panel .tenant-billing-provider-notice__title {
    margin: 0;
    color: var(--black);
    font-weight: 700;
}

.tenant-billing-provider-list {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.tenant-billing-provider-item {
    min-width: 0;
    display: grid;
    grid-template-rows: 58px auto;
    align-content: start;
    gap: 12px;
}

.tenant-billing-provider-logo-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
}

.tenant-billing-provider-logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

.tenant-billing-provider-logo--barion {
    width: 235px;
}

.tenant-billing-provider-logo--stripe {
    width: 125px;
}

.tenant-billing-provider-logo--simplepay {
    width: 235px;
}

.tenant-admin-panel .tenant-billing-provider-item p {
    min-width: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .tenant-billing-provider-list {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .tenant-billing-provider-item {
        grid-template-columns: minmax(170px, 235px) minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: center;
        gap: 26px;
    }
}

.tenant-billing-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tenant-billing-method,
.tenant-billing-cancel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.tenant-billing-method {
    margin-top: 14px;
    padding: 14px 0;
    border-top: 1px solid #e6e6eb;
}

.tenant-billing-method span {
    display: grid;
    gap: 3px;
}

.tenant-billing-history-heading {
    margin: 18px 0 8px;
    color: var(--black);
    font-size: 15px;
    letter-spacing: -0.02em;
}

.tenant-billing-history-table th,
.tenant-billing-history-table td {
    padding-top: 11px;
    padding-bottom: 11px;
}

.tenant-billing-status {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    display: inline-flex;
    color: #4b5563;
    background: #f0f1f3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.tenant-billing-status--paid {
    color: #126c2f;
    background: rgba(52, 199, 89, 0.13);
}

.tenant-billing-status--failed,
.tenant-billing-status--cancelled {
    color: #9f241b;
    background: rgba(180, 35, 24, 0.1);
}

.tenant-billing-status--pending {
    color: #805b10;
    background: rgba(255, 184, 0, 0.14);
}

.tenant-billing-status--refunded {
    color: #255aa8;
    background: rgba(0, 113, 227, 0.1);
}

.tenant-billing-older-payments {
    margin-top: 10px;
}

.tenant-billing-older-payments summary {
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #e6e6eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--black);
    background: #f9f9fb;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.tenant-billing-older-payments summary::-webkit-details-marker {
    display: none;
}

.tenant-billing-older-payments summary::after {
    content: "+";
    margin-left: 2px;
    color: var(--blue);
    font-size: 18px;
    font-weight: 500;
}

.tenant-billing-older-payments[open] summary::after {
    content: "−";
}

.tenant-billing-older-payments summary strong {
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--gray);
    background: #ececf1;
    font-size: 11px;
}

.tenant-billing-older-payments .tenant-admin-table-wrap {
    margin-top: 8px;
}

.tenant-billing-documents {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e6e6eb;
}

.tenant-billing-documents__header {
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tenant-billing-documents__header h3 {
    margin: 0;
    color: var(--black);
    font-size: 15px;
    letter-spacing: -0.02em;
}

.tenant-billing-documents__header > span {
    color: var(--gray);
    font-size: 12px;
}

.tenant-billing-invoices {
    display: grid;
    gap: 7px;
}

.tenant-billing-invoices a {
    min-width: 0;
    max-width: 100%;
    padding: 10px 13px;
    border: 1px solid #e6e6eb;
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(80px, 0.55fr) minmax(150px, 1fr) minmax(170px, 1.1fr) auto;
    align-items: center;
    gap: 12px;
    color: var(--black);
    background: #f9f9fb;
    font-size: 13px;
    overflow-wrap: anywhere;
    transition: border-color 160ms ease, background 160ms ease;
}

.tenant-billing-invoices a:hover,
.tenant-billing-invoices a:focus-visible {
    border-color: rgba(0, 113, 227, 0.32);
    background: #f2f7fd;
    outline: none;
}

.tenant-billing-invoice__type {
    color: var(--gray);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tenant-billing-invoice__number {
    color: var(--blue);
}

.tenant-billing-invoice__details {
    color: var(--gray);
}

.tenant-billing-invoice__action {
    color: var(--blue);
    font-weight: 700;
    white-space: nowrap;
}

.tenant-billing .tenant-admin-action {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
}

.tenant-billing-danger {
    background: #b42318;
}

.tenant-billing-danger:hover,
.tenant-billing-danger:focus-visible {
    background: #8f1c13;
}

@media (max-width: 980px) {
    .tenant-billing-plans,
    .tenant-billing-two-column {
        grid-template-columns: 1fr;
    }

    .tenant-billing-invoices a {
        grid-template-columns: minmax(80px, 0.55fr) minmax(140px, 1fr) minmax(150px, 1fr) auto;
    }

    .tenant-billing .tenant-admin-table-wrap {
        overflow: visible;
    }

    .tenant-billing-history-table {
        min-width: 0;
        display: block;
    }

    .tenant-billing-history-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .tenant-billing-history-table tbody {
        display: grid;
        gap: 12px;
    }

    .tenant-billing-history-table tr {
        min-width: 0;
        padding: 8px 14px;
        border: 1px solid #e6e6eb;
        border-radius: 16px;
        display: grid;
        background: #f9f9fb;
    }

    .tenant-billing-history-table td {
        min-width: 0;
        padding: 10px 0;
        border-bottom: 1px solid #e6e6eb;
        display: grid;
        grid-template-columns: minmax(105px, 0.65fr) minmax(0, 1fr);
        gap: 14px;
        overflow-wrap: anywhere;
    }

    .tenant-billing-history-table td:last-child {
        border-bottom: 0;
    }

    .tenant-billing-history-table td::before {
        content: attr(data-label);
        color: var(--gray);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .tenant-billing-history-table .tenant-billing-table-empty {
        display: block;
        border-bottom: 0;
    }

    .tenant-billing-history-table .tenant-billing-table-empty::before {
        content: none;
    }
}

@media (max-width: 680px) {
    .tenant-billing-summary {
        grid-template-columns: 1fr;
    }

    .tenant-billing-method,
    .tenant-billing-cancel,
    .tenant-billing-renewal {
        align-items: stretch;
        flex-direction: column;
    }

    .tenant-billing-plan__body {
        padding: 16px;
    }

    .tenant-billing-history-table tr {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
        padding: 12px 14px;
    }

    .tenant-billing-history-table td {
        padding: 0;
        border-bottom: 0;
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .tenant-billing-history-table td:nth-child(1) {
        order: 1;
    }

    .tenant-billing-history-table td:nth-child(2) {
        order: 3;
    }

    .tenant-billing-history-table td:nth-child(3) {
        order: 4;
    }

    .tenant-billing-history-table td:nth-child(4) {
        grid-column: 1 / -1;
        order: 5;
    }

    .tenant-billing-history-table td:nth-child(5) {
        order: 2;
    }

    .tenant-billing-history-table .tenant-billing-table-empty {
        grid-column: 1 / -1;
    }

    .tenant-billing-invoices,
    .tenant-billing-method form,
    .tenant-billing-cancel form {
        width: 100%;
    }

    .tenant-billing-invoices a {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
    }

    .tenant-billing-invoice__type,
    .tenant-billing-invoice__details {
        grid-column: 1;
    }

    .tenant-billing-invoice__number {
        grid-column: 1;
    }

    .tenant-billing-invoice__action {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
    }

    .tenant-billing-provider-list {
        gap: 22px;
    }

    .tenant-billing-provider-item {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .tenant-billing-provider-logo--barion {
        width: 210px;
    }

    .tenant-billing-provider-logo--stripe {
        width: 105px;
    }

    .tenant-billing-provider-logo--simplepay {
        width: 210px;
    }
}
