:root {
    color-scheme: light;

    --viiu-red: #e50914;
    --viiu-white: #ffffff;
    --viiu-black: #0d0d0d;

    --color-background: var(--viiu-white);
    --color-surface: var(--viiu-white);
    --color-text: var(--viiu-black);
    --color-text-inverse: var(--viiu-white);
    --color-primary: var(--viiu-red);
    --color-primary-text: var(--viiu-white);
    --color-primary-hover: #c80711;
    --color-primary-active: #a9060e;
    --color-header: var(--viiu-black);
    --color-header-text: var(--viiu-white);
    --color-navigation: var(--color-header);
    --color-navigation-text: var(--color-header-text);
    --color-border: rgb(13 13 13 / 16%);
    --color-border-strong: rgb(13 13 13 / 42%);
    --color-muted: rgb(13 13 13 / 65%);
    --color-muted-background: rgb(13 13 13 / 4%);
    --color-surface-muted: var(--color-muted-background);
    --color-surface-hover: rgb(13 13 13 / 7%);
    --color-primary-muted: rgb(229 9 20 / 7%);
    --color-focus-ring: rgb(229 9 20 / 30%);
    --shadow-card: 0 0.5rem 1.5rem rgb(13 13 13 / 8%);
    --shadow-header: 0 0.25rem 1rem rgb(13 13 13 / 14%);
    --radius-small: 0.375rem;
    --radius-medium: 0.75rem;
    --content-width: 72rem;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 100%;
    line-height: 1.55;
    color: var(--color-text);
    background: var(--color-background);
}

.inventory-summary,
.inventory-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.inventory-summary > div,
.inventory-channel {
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    padding: 1rem;
    background: var(--color-surface);
}

.inventory-summary dt,
.inventory-channel strong {
    display: block;
    color: var(--color-text);
    font-weight: 700;
}

.inventory-summary dd,
.inventory-channel span {
    margin: .35rem 0 0;
    display: block;
}

.weekday-options {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    background: var(--color-navigation);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
    background: var(--color-background);
    color: var(--color-text);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--color-primary);
    font-weight: 650;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

a:hover {
    color: var(--color-primary-hover);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 0.1875rem solid var(--color-primary);
    outline-offset: 0.1875rem;
    box-shadow: 0 0 0 0.375rem var(--color-focus-ring);
}

.skip-link {
    position: fixed;
    z-index: 100;
    inset: 0.75rem auto auto 0.75rem;
    padding: 0.65rem 0.9rem;
    transform: translateY(-200%);
    border-radius: var(--radius-small);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--color-navigation);
    color: var(--color-navigation-text);
    box-shadow: var(--shadow-header);
}

.site-header__inner {
    width: min(100% - 2rem, var(--content-width));
    min-height: 4.5rem;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--color-navigation-text);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover {
    color: var(--color-navigation-text);
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.2rem 0.55rem 0.2rem 0.55rem;
    background: var(--color-primary);
    color: var(--color-primary-text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
}

.site-nav__link,
.link-button {
    position: relative;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-small);
    color: var(--color-navigation-text);
    font-size: 0.925rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    bottom: 0.3rem;
    left: 0.75rem;
    height: 0.1875rem;
    border-radius: 999px;
    background: var(--color-primary);
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 120ms ease, transform 120ms ease;
}

.site-nav__link:hover,
.link-button:hover {
    background: rgb(255 255 255 / 10%);
    color: var(--color-navigation-text);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-nav__link.is-active {
    background: rgb(255 255 255 / 8%);
    font-weight: 800;
}

.site-nav--grouped {
    flex-wrap: nowrap;
}

.site-nav__group {
    position: relative;
}

.site-nav__group > summary {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-small);
    color: var(--color-navigation-text);
    cursor: pointer;
    font-size: 0.925rem;
    font-weight: 700;
    list-style: none;
    white-space: nowrap;
}

.site-nav__group > summary::-webkit-details-marker {
    display: none;
}

.site-nav__group > summary::after {
    content: "⌄";
    font-size: 0.8em;
}

.site-nav__group > summary:hover,
.site-nav__group[open] > summary,
.site-nav__group.is-active > summary {
    background: rgb(255 255 255 / 10%);
}

.site-nav__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 15rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.55rem;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--radius-medium);
    background: var(--color-navigation);
    box-shadow: var(--shadow-card);
}

.site-nav__menu a {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-small);
    color: var(--color-navigation-text);
    text-decoration: none;
}

.site-nav__menu a:hover,
.site-nav__menu a[aria-current="page"] {
    background: rgb(255 255 255 / 10%);
}

.container {
    width: min(100% - 2rem, var(--content-width));
    margin: clamp(1.5rem, 4vw, 3rem) auto;
    flex: 1 0 auto;
}

.page-auth .container {
    display: grid;
    place-items: center;
}

.site-footer {
    flex: 0 0 auto;
    padding: 1.25rem 1rem;
    border-top: 0.25rem solid var(--color-primary);
    background: var(--color-navigation);
    color: var(--color-navigation-text);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.card {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.card + .card,
.card + section.card,
section.card + .card,
section.card + section.card {
    margin-top: 1rem;
}

.narrow {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
}

.auth-card {
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.35rem;
    background: var(--color-primary);
}

.auth-card h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
}

.eyebrow {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--color-text);
    line-height: 1.2;
    text-wrap: balance;
}

h1 {
    margin: 0.3rem 0 1rem;
    font-size: clamp(1.8rem, 5vw, 2.65rem);
    letter-spacing: -0.025em;
}

h2 {
    margin-top: 0;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
}

h3 {
    font-size: 1.1rem;
}

p,
ul,
ol,
dl {
    max-width: 75ch;
}

form {
    display: grid;
    gap: 0.85rem;
}

label,
legend {
    color: var(--color-text);
    font-weight: 700;
}

label:has(> input, > select, > textarea) {
    display: grid;
    gap: 0.35rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 2.875rem;
    padding: 0.7rem 0.8rem;
    border: 0.0625rem solid var(--color-border-strong);
    border-radius: var(--radius-small);
    background: var(--color-surface);
    color: var(--color-text);
}

textarea {
    min-height: 7rem;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--color-text);
}

input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    background: var(--color-surface-muted);
    color: var(--color-muted);
}

input[type="checkbox"],
input[type="radio"] {
    width: 1.15rem;
    min-height: 1.15rem;
    accent-color: var(--color-primary);
}

button,
.button {
    min-height: 2.75rem;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    border: 0.125rem solid var(--color-primary);
    border-radius: var(--radius-small);
    background: var(--color-primary);
    color: var(--color-primary-text);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

button:hover,
.button:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
    color: var(--color-primary-text);
}

button:active,
.button:active {
    border-color: var(--color-primary-active);
    background: var(--color-primary-active);
    transform: translateY(0.0625rem);
}

button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.button-secondary {
    border-color: var(--color-text);
    background: var(--color-surface);
    color: var(--color-text);
}

.button-secondary:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-text-inverse);
}

.button-danger {
    border-color: var(--color-primary);
    background: var(--color-text);
    color: var(--color-text-inverse);
}

.button-danger::before {
    content: "!";
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.45rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-primary-text);
    font-size: 0.8rem;
    font-weight: 900;
}

.button-danger:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.inline-form {
    display: inline-flex;
}

.link-button {
    min-height: 2.75rem;
    justify-self: auto;
    border: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.link-button:active {
    background: rgb(255 255 255 / 14%);
    transform: none;
}

.alert {
    position: relative;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem 0.9rem 3.25rem;
    border: 0.0625rem solid var(--color-border);
    border-left: 0.35rem solid var(--color-text);
    border-radius: var(--radius-small);
    background: var(--color-surface-muted);
    color: var(--color-text);
    font-weight: 600;
}

.alert::before {
    content: "i";
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-text);
    color: var(--color-text-inverse);
    font-size: 0.8rem;
    font-weight: 900;
}

.alert-success {
    border-left-color: var(--color-text);
}

.alert-success::before {
    content: "✓";
}

.alert-error {
    border-left-color: var(--color-primary);
    background: var(--color-primary-muted);
}

.alert-error::before {
    content: "!";
    background: var(--color-primary);
}

.alert a {
    font-weight: 800;
}

fieldset {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-small);
}

.choice {
    min-height: 2.75rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--radius-small);
    font-weight: 600;
}

.choice:hover {
    background: var(--color-surface-muted);
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-heading > :first-child {
    min-width: 0;
}

.page-summary {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.025rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.point-overview {
    display: grid;
    grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card-compact {
    padding: clamp(1rem, 2.5vw, 1.4rem);
}

.section-card {
    margin-top: 1rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading h2,
.section-heading p {
    margin-bottom: 0;
}

.back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-size: 0.925rem;
}

.back-link:hover {
    color: var(--color-primary);
}

.point-heading {
    align-items: center;
}

.point-actions {
    justify-content: flex-end;
}

.status-panel {
    border-top: 0.25rem solid var(--color-primary);
}

.status-panel h2 {
    margin-bottom: 0.6rem;
}

.status-form {
    margin-top: 1.2rem;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
}

.badge-status > span {
    color: var(--color-primary);
    font-size: 0.75em;
}

.badge-status-current {
    padding: 0.35rem 0.7rem;
    border-color: var(--color-border-strong);
    background: var(--color-surface);
}

.inline-details {
    margin-top: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.compact-form {
    margin-top: 1rem;
}

.filter-form {
    max-width: 28rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-small);
    background: var(--color-surface-muted);
}

.record-list {
    display: grid;
    gap: 0.65rem;
    padding-left: 1.25rem;
}

.record-list li {
    min-width: 0;
}

.resource-grid .record-list {
    margin-bottom: 0;
}

.resource-grid .record-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border: 0.0625rem solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface-muted);
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 750;
}

.muted {
    color: var(--color-muted);
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 1rem;
}

.media-card {
    display: grid;
    grid-template-columns: minmax(7rem, 40%) 1fr;
    gap: 1rem;
    padding: 1rem;
}

.media-card h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.media-card__preview {
    min-height: 10rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-small);
    background: var(--color-muted-background);
}

.media-card__preview img,
.media-preview img,
.media-preview video {
    width: 100%;
    max-height: 34rem;
    display: block;
    object-fit: contain;
}

.media-card__preview img {
    height: 100%;
    object-fit: cover;
}

.media-card__icon {
    color: var(--color-primary);
    font-size: 3rem;
}

.media-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    gap: 1rem;
}

.hash-value {
    word-break: break-all;
}

.timeline {
    display: grid;
    gap: 0.85rem;
    padding-left: 1.5rem;
}

.text-muted {
    color: var(--color-muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 48rem) {
    .media-card,
    .media-detail-grid {
        grid-template-columns: 1fr;
    }
}

table {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
    background: var(--color-surface);
}

th,
td {
    padding: 0.8rem;
    border-bottom: 0.0625rem solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--color-surface-muted);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

tbody tr:hover {
    background: var(--color-surface-hover);
}

tbody tr:last-child td {
    border-bottom: 0;
}

dl {
    display: grid;
    grid-template-columns: minmax(8rem, 0.5fr) 1fr;
    gap: 0.65rem 1rem;
}

dt {
    font-weight: 800;
}

dd {
    min-width: 0;
    margin: 0;
}

.result-grid {
    grid-template-columns: minmax(12rem, 0.7fr) 1fr;
}

details {
    padding: 1rem;
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-small);
    background: var(--color-surface-muted);
}

summary {
    cursor: pointer;
    font-weight: 800;
}

.danger-zone {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 0.0625rem solid var(--color-border);
    border-left: 0.35rem solid var(--color-primary);
    border-radius: var(--radius-small);
    background: var(--color-primary-muted);
}

.danger-zone h2 {
    margin-bottom: 0.35rem;
}

.danger-zone__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.operation-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.operation-item {
    display: grid;
    gap: 0.35rem;
    justify-items: start;
}

.action-reason {
    max-width: 52rem;
    margin: 0.35rem 0 0;
    color: var(--color-muted);
}

.confirmation-form {
    display: grid;
    gap: 0.85rem;
    justify-items: start;
}

.confirmation-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 52rem;
    font-weight: 700;
}

.confirmation-check input {
    width: 1.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
}

@media (max-width: 48rem) {
    .site-header__inner {
        padding-block: 0.85rem;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid-two,
    .form-grid,
    .point-overview,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        width: 100%;
    }

    .actions .button {
        flex: 1 1 12rem;
    }

    .point-actions {
        justify-content: flex-start;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 30rem) {
    .site-header__inner,
    .container {
        width: min(100% - 1.25rem, var(--content-width));
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-nav__link,
    .link-button,
    .inline-form {
        width: 100%;
    }

    .link-button {
        justify-content: flex-start;
    }

    .card {
        padding: 1.1rem;
        border-radius: 0.55rem;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .actions,
    .danger-zone__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .actions .button,
    .danger-zone button,
    form > button {
        width: 100%;
        justify-self: stretch;
    }

    dl,
    .result-grid {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    dd {
        margin-bottom: 0.65rem;
    }
}

.auth-shell--wide {
    max-width: 53.75rem;
}

.honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.legal-choices {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.legal-document {
    max-width: 52.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.page-shell {
    display: grid;
    gap: 1.5rem;
}

.page-header,
.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero {
    display: block;
    padding-block: clamp(2rem, 7vw, 4.5rem);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.card-grid > .card {
    margin: 0;
}

.amount {
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 800;
}

.detail-card {
    max-width: 52rem;
}

.empty-state {
    padding: 2rem;
    border: 0.0625rem dashed var(--color-border-strong);
    border-radius: var(--radius-medium);
    background: var(--color-muted-background);
}

.account-state {
    max-width: 42.5rem;
    margin: 3rem auto;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-grid .card {
    display: grid;
    gap: 0.35rem;
}

.summary-grid strong {
    color: var(--viiu-red);
    font-size: 2rem;
}

.muted-card {
    border-left: 0.25rem solid var(--viiu-black);
}

.catalog-heading {
    max-width: 54rem;
}

.catalog-filters {
    margin-bottom: 2rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
}

.catalog-card {
    overflow: hidden;
    padding: 0;
}

.catalog-card__media {
    aspect-ratio: 16 / 9;
    background: var(--viiu-black);
}

.catalog-card__media img,
.catalog-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card__body {
    padding: 1.25rem;
}

.catalog-media-fallback {
    display: grid;
    min-height: 100%;
    place-items: center;
    background: linear-gradient(135deg, var(--viiu-black), var(--color-text));
    color: var(--viiu-white);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.catalog-media-fallback--large {
    min-height: 20rem;
}

.catalog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.catalog-gallery figure {
    margin: 0;
}

.catalog-gallery img {
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
}

.catalog-gallery__cover {
    grid-column: span 2;
}

.catalog-gallery figcaption {
    padding-top: 0.4rem;
}

.catalog-notice {
    border-top: 0.3rem solid var(--viiu-red);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

body:has(.wizard-shell) {
    background: rgb(246 246 247);
}

.wizard-shell {
    --wizard-accent: #ea1d2c;
    --wizard-accent-dark: #c80711;
    --wizard-ink: #000000;
    --wizard-muted: rgb(97 97 102);
    --wizard-border: rgb(226 226 229);
    --wizard-soft: rgb(245 245 246);
    --wizard-radius: 0.75rem;

    width: 100%;
    max-width: 68rem;
    margin-inline: auto;
    color: var(--wizard-ink);
    font-size: 1rem;
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.wizard-header__copy {
    max-width: 47rem;
}

.wizard-kicker {
    margin: 0 0 0.35rem;
    color: var(--wizard-muted);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wizard-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.wizard-lead {
    margin: 0.75rem 0 0;
    color: var(--wizard-muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.wizard-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1rem 0 0;
    color: var(--wizard-muted);
    font-size: 0.92rem;
}

.wizard-mobile-current-label {
    display: none;
}

.wizard-cart-link {
    flex: 0 0 auto;
}

.wizard-progress {
    height: 0.45rem;
    margin-bottom: 0.85rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(222 222 225);
}

.wizard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--wizard-accent);
    transition: width 180ms ease-out;
}

.wizard-progress-step-1 { width: 20%; }
.wizard-progress-step-2 { width: 40%; }
.wizard-progress-step-3 { width: 60%; }
.wizard-progress-step-4 { width: 80%; }
.wizard-progress-step-5 { width: 100%; }

.wizard-stepper {
    margin-bottom: 1rem;
}

.wizard-stepper ol {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-stepper ol::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 8%;
    left: 8%;
    height: 0.125rem;
    transform: translateY(-50%);
    background: var(--wizard-border);
}

.wizard-stepper__content {
    position: relative;
    z-index: 1;
    width: fit-content;
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-inline: auto;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    background: rgb(246 246 247);
    color: var(--wizard-muted);
    text-decoration: none;
}

.wizard-stepper__title {
    overflow: visible;
    font-size: clamp(0.875rem, 1.15vw, 1rem);
    line-height: 1.2;
    white-space: nowrap;
}

.wizard-stepper__marker {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: grid;
    place-items: center;
    border: 0.0625rem solid rgb(200 200 204);
    border-radius: 50%;
    background: rgb(238 238 239);
    color: rgb(107 107 112);
    font-weight: 850;
}

.wizard-stepper__step--complete .wizard-stepper__content {
    color: var(--wizard-ink);
}

.wizard-stepper__step--complete .wizard-stepper__marker {
    border-color: var(--wizard-ink);
    background: var(--wizard-ink);
    color: #ffffff;
}

.wizard-stepper__step--current .wizard-stepper__content {
    background: rgb(234 29 44 / 7%);
    color: var(--wizard-ink);
    font-weight: 850;
    box-shadow: inset 0 0 0 0.0625rem rgb(234 29 44 / 20%);
}

.wizard-stepper__step--current .wizard-stepper__marker {
    border-color: var(--wizard-accent);
    background: var(--wizard-accent);
    color: #ffffff;
}

.wizard-notice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border: 0.0625rem solid var(--wizard-border);
    border-radius: 0.625rem;
    background: rgb(238 238 239);
    color: rgb(77 77 82);
    font-size: 0.9rem;
}

.wizard-notice > span {
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 1.4rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgb(215 215 218);
    color: var(--wizard-ink);
    font-size: 0.78rem;
    font-weight: 900;
}

.wizard-notice p {
    margin: 0;
}

.wizard-step {
    display: grid;
    gap: 1.25rem;
}

.wizard-card,
.screen-schedule-card {
    padding: clamp(1.15rem, 3vw, 1.75rem);
    border: 0.0625rem solid var(--wizard-border);
    border-radius: var(--wizard-radius);
    background: #ffffff;
    box-shadow: 0 0.35rem 1.1rem rgb(0 0 0 / 5%);
}

.wizard-card--form {
    max-width: 52rem;
}

.wizard-card--selected {
    border-color: rgb(234 29 44 / 45%);
    box-shadow: 0 0.35rem 1.1rem rgb(0 0 0 / 5%), inset 0.25rem 0 var(--wizard-accent);
}

.wizard-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
}

.wizard-card h2,
.screen-schedule-card h2 {
    margin-bottom: 0.4rem;
}

.wizard-meta,
.wizard-helper {
    color: var(--wizard-muted);
    font-size: 0.92rem;
}

.wizard-selection-badge,
.wizard-availability {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgb(62 62 67);
    font-size: 0.82rem;
    font-weight: 800;
}

.wizard-selection-badge {
    margin-bottom: 0.55rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgb(234 29 44 / 9%);
    color: #a9060e;
}

.wizard-context,
.wizard-total {
    padding: 1rem 1.15rem;
    border: 0.0625rem solid var(--wizard-border);
    border-radius: 0.625rem;
    background: #ffffff;
    color: rgb(77 77 82);
}

.wizard-total {
    display: grid;
    gap: 0.15rem;
}

.wizard-total span,
.wizard-total small {
    color: var(--wizard-muted);
}

.wizard-total strong {
    font-size: 1.15rem;
}

.wizard-error {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border: 0.0625rem solid rgb(234 29 44 / 35%);
    border-radius: 0.625rem;
    background: rgb(234 29 44 / 6%);
    color: #a9060e;
}

.wizard-error p,
.wizard-error ul {
    margin: 0.25rem 0 0;
}

.wizard-error__icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wizard-accent);
    color: #ffffff;
    font-weight: 900;
}

.wizard-field {
    display: grid;
    gap: 0.4rem;
}

.wizard-shell :where(input, select) {
    min-height: 3rem;
    border-color: rgb(188 188 193);
    border-radius: 0.625rem;
}

.wizard-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 0.5rem;
}

.wizard-metrics > div {
    padding: 1rem;
    border-radius: 0.625rem;
    background: var(--wizard-soft);
}

.wizard-metrics dt {
    color: var(--wizard-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.wizard-metrics dd {
    margin: 0.2rem 0 0;
    font-size: 1.08rem;
    font-weight: 850;
}

.wizard-metrics--review {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.wizard-shell .choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0;
    border: 0;
}

.wizard-shell .choice-card {
    min-height: 5.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border: 0.125rem solid var(--wizard-border);
    border-radius: 0.75rem;
    cursor: pointer;
}

.wizard-shell .choice-card:has(input:checked) {
    border-color: var(--wizard-accent);
    background: rgb(234 29 44 / 5%);
    box-shadow: 0 0 0 0.2rem rgb(234 29 44 / 10%);
}

.wizard-shell .choice-card small,
.wizard-shell .choice-card span {
    display: block;
}

.wizard-filter {
    display: grid;
    grid-template-columns: auto minmax(8rem, 1fr) auto minmax(8rem, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.screen-schedule-card {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.screen-schedule-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 0.0625rem solid var(--wizard-border);
}

.screen-schedule-card__header p {
    margin: 0.25rem 0 0;
}

.screen-schedule-card__timezone {
    flex: 0 0 auto;
    color: var(--wizard-muted);
    font-size: 0.85rem;
    text-align: right;
}

.schedule-combination,
.schedule-addition {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 0.0625rem solid var(--wizard-border);
    border-radius: 0.75rem;
    background: rgb(250 250 250);
}

.schedule-combination__heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.schedule-combination__heading h3 {
    margin: 0;
    font-size: 1.15rem;
}

.weekday-fieldset {
    grid-column: 1 / -1;
    gap: 0.75rem;
    padding: 0;
    border: 0;
}

.weekday-fieldset legend {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.weekday-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(3rem, 1fr));
    gap: 0.5rem;
}

.weekday-chip {
    position: relative;
}

.weekday-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.weekday-chip label {
    min-height: 2.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.4rem;
    border: 0.0625rem solid rgb(188 188 193);
    border-radius: 0.625rem;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    user-select: none;
}

.weekday-chip__check {
    display: none;
    font-weight: 900;
}

.weekday-chip input:checked + label,
.weekday-chip label.is-selected {
    border-color: #ea1d2c;
    background: #ea1d2c;
    color: #ffffff;
    font-weight: 800;
}

.weekday-chip input:checked + label .weekday-chip__check {
    display: inline;
}

.weekday-chip input:focus-visible + label {
    outline: 0.1875rem solid #ea1d2c;
    outline-offset: 0.1875rem;
    box-shadow: 0 0 0 0.375rem rgb(234 29 44 / 20%);
}

.selection-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selection-shortcut {
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 0.0625rem solid rgb(188 188 193);
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font-size: 0.84rem;
    font-weight: 750;
}

.selection-shortcut:hover {
    border-color: #000000;
    background: #f5f5f6;
    color: #000000;
}

.wizard-summary {
    padding: 1rem;
    border-radius: 0.625rem;
    background: rgb(238 238 239);
}

.wizard-summary p {
    margin: 0.3rem 0 0;
}

.wizard-summary > strong {
    font-size: 1.05rem;
}

.schedule-combination__actions,
.schedule-remove {
    display: flex;
    justify-content: flex-start;
}

.schedule-remove {
    margin-top: -0.5rem;
}

.wizard-review-window + .wizard-review-window {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 0.0625rem solid var(--wizard-border);
}

.wizard-actions {
    min-height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    border: 0.0625rem solid var(--wizard-border);
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 0.4rem 1.3rem rgb(0 0 0 / 7%);
}

.wizard-actions--single {
    justify-content: flex-end;
}

.wizard-actions .button {
    min-width: 9.5rem;
    min-height: 3rem;
}

.wizard-button-primary {
    border-color: var(--wizard-accent);
    background: var(--wizard-accent);
    color: #ffffff;
}

.wizard-button-primary:hover {
    border-color: var(--wizard-accent-dark);
    background: var(--wizard-accent-dark);
}

.wizard-shell .button-secondary {
    border-color: rgb(170 170 176);
    background: #ffffff;
    color: var(--wizard-ink);
}

.wizard-shell .button-secondary:hover {
    border-color: var(--wizard-ink);
    background: var(--wizard-ink);
    color: #ffffff;
}

.wizard-inline-action {
    width: fit-content;
}

@media (max-width: 64rem) {
    .weekday-grid {
        grid-template-columns: repeat(4, minmax(3.5rem, 1fr));
    }
}

@media (max-width: 47.5rem) {
    .wizard-shell {
        font-size: 1rem;
    }

    .wizard-header,
    .screen-schedule-card__header,
    .schedule-combination__heading {
        display: grid;
        gap: 0.75rem;
    }

    .wizard-cart-link {
        width: 100%;
    }

    .wizard-mobile-current-label {
        display: block;
        margin-top: 0.25rem;
        color: var(--wizard-ink);
        font-size: 1rem;
        letter-spacing: 0;
        text-transform: none;
    }

    .screen-schedule-card__timezone {
        text-align: left;
    }

    .wizard-stepper ol {
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
    }

    .wizard-stepper ol::before {
        right: 10%;
        left: 10%;
    }

    .wizard-stepper__content {
        min-height: 2.75rem;
        padding: 0.25rem;
        background: rgb(246 246 247);
    }

    .wizard-stepper__marker {
        width: 2.25rem;
        height: 2.25rem;
        flex-basis: 2.25rem;
    }

    .wizard-stepper__title {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .wizard-shell .choice-grid,
    .wizard-filter,
    .wizard-metrics {
        grid-template-columns: 1fr;
    }

    .weekday-grid {
        grid-template-columns: repeat(4, minmax(3.4rem, 1fr));
    }

    .selection-shortcuts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selection-shortcut {
        border-radius: 0.625rem;
    }

    .wizard-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin-inline: -0.5rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    .wizard-actions .button {
        min-width: 0;
        flex: 1 1 50%;
    }
}

@media (max-width: 24rem) {
    .weekday-grid {
        grid-template-columns: repeat(3, minmax(3.4rem, 1fr));
    }

    .wizard-actions {
        gap: 0.5rem;
    }

    .wizard-actions .button {
        padding-inline: 0.65rem;
    }
}

@media (max-width: 47.5rem) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .catalog-gallery__cover {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.installation-shell {
    display: grid;
    gap: 1.5rem;
}

.installation-heading {
    margin-bottom: 0;
}

.installation-overview,
.installation-stepper,
.installation-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.installation-overview {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
    word-break: normal;
    overflow-wrap: normal;
}

.installation-overview li {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.installation-overview li span {
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-muted-background);
    color: var(--color-text);
}

.installation-choice-grid,
.installation-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.installation-choice-card {
    display: grid;
    align-content: start;
    gap: 0.85rem;
}

.installation-choice-card > :where(h2, p),
.installation-panel > :where(h3, p) {
    margin-block: 0;
}

.installation-create-partner {
    padding-top: 0.85rem;
    border-top: 1px solid var(--color-border);
}

.installation-create-partner summary {
    cursor: pointer;
    font-weight: 750;
}

.installation-workspace {
    display: grid;
    gap: 1.25rem;
}

.installation-workspace__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.installation-workspace__header :where(h2, p) {
    margin-block: 0.2rem;
}

.installation-status-block {
    max-width: 22rem;
    display: grid;
    justify-items: end;
    gap: 0.35rem;
    color: var(--color-muted);
    text-align: right;
}

.installation-status {
    border: 1px solid var(--color-border);
}

.installation-status--active,
.installation-status--ready_to_activate {
    border-color: var(--color-text);
    background: var(--color-muted-background);
    color: var(--color-text);
}

.installation-status--blocked {
    border-color: var(--color-primary);
    background: var(--color-primary-muted);
    color: var(--color-primary);
}

.installation-progress-bar {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-muted-background);
}

.installation-progress-bar span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--color-primary);
}

.installation-progress-bar[data-progress="14"] span { width: 14%; }
.installation-progress-bar[data-progress="16"] span { width: 16%; }
.installation-progress-bar[data-progress="28"] span { width: 28%; }
.installation-progress-bar[data-progress="33"] span { width: 33%; }
.installation-progress-bar[data-progress="42"] span { width: 42%; }
.installation-progress-bar[data-progress="50"] span { width: 50%; }
.installation-progress-bar[data-progress="57"] span { width: 57%; }
.installation-progress-bar[data-progress="66"] span { width: 66%; }
.installation-progress-bar[data-progress="71"] span { width: 71%; }
.installation-progress-bar[data-progress="83"] span { width: 83%; }
.installation-progress-bar[data-progress="85"] span { width: 85%; }
.installation-progress-bar[data-progress="100"] span { width: 100%; }

.installation-stepper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    min-width: 0;
    word-break: normal;
    overflow-wrap: normal;
}

.installation-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: start;
}

.installation-sidebar {
    position: sticky;
    top: 1rem;
}

.installation-step {
    min-width: 0;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-content: start;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    overflow-wrap: anywhere;
}

.installation-step--current {
    border-color: var(--color-primary);
    background: var(--color-primary-muted);
}

.installation-step__marker {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-muted-background);
    font-weight: 850;
}

.installation-step--complete .installation-step__marker {
    background: var(--color-text);
    color: var(--color-text-inverse);
}

.installation-step--current .installation-step__marker {
    background: var(--color-primary);
    color: var(--color-primary-text);
}

.installation-step h3 {
    margin: 0;
    font-size: 0.95rem;
    overflow-wrap: normal;
}

.installation-step p {
    margin: 0.3rem 0;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.installation-step__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.installation-panel {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-muted-background);
}

.installation-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 0.8rem;
}

.installation-facts :where(dt, dd) {
    margin: 0;
}

.installation-facts dt {
    font-weight: 750;
}

.installation-checklist {
    display: grid;
    gap: 0.5rem;
}

.installation-checklist li {
    position: relative;
    padding-left: 1.75rem;
}

.installation-checklist li::before {
    content: "○";
    position: absolute;
    left: 0;
    color: var(--color-muted);
    font-weight: 900;
}

.installation-checklist li.is-complete::before {
    content: "✓";
    color: var(--color-text);
}

.installation-activation-actions {
    margin-top: 1rem;
}

.installation-list {
    margin-top: 1.5rem;
}

@media (max-width: 48rem) {
    .site-nav--grouped {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav__group {
        position: static;
    }

    .site-nav__group > summary {
        width: 100%;
    }

    .site-nav__menu {
        position: static;
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: none;
    }

    .installation-layout,
    .installation-stepper,
    .installation-choice-grid,
    .installation-detail-grid {
        grid-template-columns: 1fr;
    }

    .installation-workspace__header {
        flex-direction: column;
    }

    .installation-status-block {
        max-width: none;
        justify-items: start;
        text-align: left;
    }

    .installation-sidebar { position: static; }

    .installation-list table,
    .installation-list tbody,
    .installation-list tr,
    .installation-list td {
        display: block;
        width: 100%;
    }

    .installation-list thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .installation-list tbody {
        display: grid;
        gap: 0.85rem;
    }

    .installation-list tr {
        padding: 0.65rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-medium);
    }

    .installation-list td {
        display: grid;
        grid-template-columns: minmax(7rem, 0.4fr) minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.55rem;
        border: 0;
    }

    .installation-list td::before {
        content: attr(data-label);
        color: var(--color-muted);
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
    }
}

@media (max-width: 30rem) {
    .site-nav--grouped {
        grid-template-columns: 1fr;
    }

    .installation-step {
        padding: 0.7rem;
    }
}

.checkout-shell { max-width: 72rem; margin-inline: auto; }
.checkout-layout { display: grid; grid-template-columns: minmax(17rem, 0.82fr) minmax(28rem, 1.18fr); gap: clamp(1rem, 2vw, 1.75rem); align-items: start; }
.checkout-summary { position: sticky; top: 6rem; }
.checkout-summary dl { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.5fr); gap: 0.65rem 1rem; }
.checkout-summary dt { color: var(--color-muted); }
.checkout-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.checkout-total { font-size: 1.4rem; font-weight: 800; }
.checkout-lines { padding-left: 1.25rem; }
.checkout-lines li + li { margin-top: 0.75rem; }
.checkout-lines span, .payment-method small { color: var(--color-muted); }
.payment-methods { padding: clamp(1rem, 2.5vw, 1.75rem); border-color: rgb(13 13 13 / 10%); box-shadow: 0 1.25rem 3rem rgb(13 13 13 / 9%); }
.payment-methods__header { margin-bottom: 1.25rem; }
.payment-methods__header .eyebrow { margin-bottom: 0.3rem; }
.payment-methods__header h2 { margin-block: 0; font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -0.025em; }
.payment-methods__header > p:last-child { margin: 0.35rem 0 0; color: var(--color-muted); }
.payment-method { padding: 0; overflow: clip; border: 1px solid rgb(13 13 13 / 13%); border-radius: 0.875rem; background: var(--color-surface); transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.payment-method + .payment-method { margin-top: 0.875rem; }
.payment-method[open] { border-color: rgb(13 13 13 / 22%); box-shadow: 0 0.65rem 1.5rem rgb(13 13 13 / 7%); }
.payment-method__summary { min-height: 4.5rem; padding: 0.85rem 1rem; cursor: pointer; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 1rem; gap: 0.85rem; align-items: center; list-style: none; user-select: none; }
.payment-method__summary::-webkit-details-marker { display: none; }
.payment-method__summary:hover { background: var(--color-surface-hover); }
.payment-method__icon { width: 2.75rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 0.55rem; background: var(--color-muted-background); color: var(--color-text); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em; }
.payment-method__icon--pix { color: var(--color-text); background: var(--color-muted-background); border-color: var(--color-border); letter-spacing: -0.025em; }
.payment-method__copy { min-width: 0; display: grid; gap: 0.1rem; }
.payment-method__copy strong { font-size: 1rem; }
.payment-method__copy small { line-height: 1.35; }
.payment-method__chevron { width: 0.65rem; height: 0.65rem; border-right: 0.125rem solid currentColor; border-bottom: 0.125rem solid currentColor; transform: rotate(45deg) translate(-0.1rem, -0.1rem); transition: transform 0.18s ease; }
.payment-method[open] .payment-method__chevron { transform: rotate(225deg) translate(-0.05rem, -0.05rem); }
.payment-form { display: grid; gap: 1rem; padding: 1.25rem; border-top: 1px solid var(--color-border); background: linear-gradient(180deg, rgb(13 13 13 / 1.5%), transparent 4rem); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; }
.field-row > div { display: grid; gap: 0.4rem; align-content: start; }
.checkout-field { min-width: 0; display: grid; gap: 0.4rem; align-content: start; }
.checkout-field > label, .checkout-field__label { color: var(--color-text); font-size: 0.925rem; font-weight: 750; line-height: 1.35; }
.checkout-field__label[data-card-field-label] { width: fit-content; cursor: text; }
.payment-form input:not([type="hidden"]), .payment-form select { width: 100%; min-height: 3.375rem; padding: 0.8rem 0.95rem; border: 1px solid rgb(13 13 13 / 25%); border-radius: 0.65rem; background: var(--color-surface); color: var(--color-text); font-size: 1rem; line-height: 1.4; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.payment-form input:not([type="hidden"])::placeholder { color: rgb(13 13 13 / 45%); opacity: 1; }
.payment-form input:not([type="hidden"]):hover, .payment-form select:hover, .secure-card-field:hover { border-color: rgb(13 13 13 / 46%); }
.payment-form input:not([type="hidden"]):focus, .payment-form select:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 0.2rem var(--color-focus-ring); }
.secure-card-field { width: 100%; height: 3.125rem; min-height: 3.125rem; padding: 0 0.95rem; position: relative; z-index: 0; display: flex; align-items: stretch; overflow: visible; border: 1px solid rgb(13 13 13 / 25%); border-radius: 0.65rem; background: var(--color-surface); cursor: text; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.secure-card-field.is-ready { background: var(--color-surface); }
.secure-card-field.is-focused { border-color: var(--color-primary); box-shadow: 0 0 0 0.2rem var(--color-focus-ring); }
.secure-card-field[aria-invalid="true"] { border-color: var(--color-primary); background: var(--color-primary-muted); }
.secure-card-field > div, .secure-card-field > span { width: 100%; height: 100%; min-height: 3rem; display: block; }
.secure-card-field iframe { width: 100% !important; height: 100% !important; min-height: 3rem !important; position: relative; z-index: 1; display: block; border: 0 !important; background: transparent; pointer-events: auto; }
.checkout-form-status { margin: -0.2rem 0 0; color: var(--color-muted); font-size: 0.875rem; text-align: center; }
.checkout-field small { margin: 0; color: var(--color-muted); font-size: 0.8rem; line-height: 1.4; }
.checkout-field .field-error { margin: 0; font-size: 0.85rem; }
.checkout-field[hidden] { display: none; }
.payment-form .button-primary { min-height: 3.5rem; margin-top: 0.25rem; border-radius: 0.7rem; font-size: 1rem; font-weight: 800; box-shadow: 0 0.55rem 1.2rem rgb(229 9 20 / 20%); }
.payment-form .button-primary:hover { box-shadow: 0 0.7rem 1.35rem rgb(229 9 20 / 28%); transform: translateY(-0.0625rem); }
.payment-form .button-primary:disabled { box-shadow: none; transform: none; }
.button-wide { width: 100%; min-height: 3rem; }
.test-environment-badge { display: inline-flex; width: fit-content; padding: 0.45rem 0.75rem; border-radius: 999px; color: var(--color-text); background: var(--color-muted-background); border: 1px solid var(--color-border-strong); font-weight: 700; }
.pix-result { max-width: 40rem; margin-inline: auto; text-align: center; }
.pix-result textarea { width: 100%; overflow-wrap: anywhere; }
.pix-qr { width: min(18rem, 100%); height: auto; margin: 1rem auto; display: block; }

@media (max-width: 48rem) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .checkout-summary dl { grid-template-columns: 1fr; gap: 0.25rem; }
    .checkout-summary dd { text-align: left; margin-bottom: 0.65rem; }
    .payment-methods { padding: 1rem; }
    .payment-form { padding: 1rem; }
}

@media (max-width: 36rem) {
    .checkout-field-row--document { grid-template-columns: 1fr; }
    .checkout-field-row--card-security { gap: 0.65rem; }
    .payment-method__summary { grid-template-columns: 2.5rem minmax(0, 1fr) 0.75rem; padding-inline: 0.85rem; gap: 0.7rem; }
    .payment-method__icon { width: 2.5rem; }
    .payment-method__copy small { font-size: 0.78rem; }
    .payment-form { padding-inline: 0.85rem; }
    .secure-card-field { padding-inline: 0.75rem; }
}
