:root {
    --color-background: #f4f7f6;
    --color-surface: #ffffff;
    --color-text: #17211f;
    --color-muted: #50605d;
    --color-brand: #174f45;
    --color-brand-strong: #0e3932;
    --color-accent: #e9b949;
    --color-border: #d4dfdc;
    --focus-ring: #0b6bcb;
    --shadow-card: 0 0.75rem 2rem rgb(19 56 49 / 9%);
    --radius-small: 0.4rem;
    --radius-large: 1rem;
    --content-width: 72rem;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.6;
}

/* Privacy legal-document administration. */
.legal-admin {
    display: grid;
    gap: 1.4rem;
}

.legal-admin > *,
.legal-admin__section > *,
.legal-admin__editor > *,
.legal-admin__editor-body > * {
    min-width: 0;
    max-width: 100%;
}

.legal-admin__section {
    display: grid;
    gap: 1.15rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid #dce5e1;
    border-radius: 1rem;
    background: var(--color-surface);
    box-shadow: 0 0.65rem 1.5rem rgb(18 54 45 / 6%);
}

.legal-admin__section-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.legal-admin__section-header .eyebrow,
.legal-admin__editor-heading .eyebrow {
    margin: 0 0 0.3rem;
}

.legal-admin__section-header h2,
.legal-admin__editor-heading h3 {
    margin: 0;
}

.legal-admin__section-lead {
    max-width: 70ch;
    margin: 0.45rem 0 0;
    color: #5a6d68;
}

.legal-admin__professional-note {
    margin: 0;
}

.legal-admin__overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-admin__overview li {
    min-width: 0;
}

.legal-admin__overview-card {
    min-height: 6.1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.25rem 0.75rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid #dce5e1;
    border-left: 0.28rem solid #c34b43;
    border-radius: 0.8rem;
    color: #22332f;
    background: #fff8f7;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.legal-admin__overview-card--ready {
    border-left-color: #23846c;
    background: #f3fbf8;
}

.legal-admin__overview-card:hover {
    color: #142a25;
    border-color: #9ebbb3;
    box-shadow: 0 0.45rem 1rem rgb(18 54 45 / 8%);
    transform: translateY(-0.08rem);
}

.legal-admin__overview-number {
    grid-row: 1 / span 2;
    color: #7b8b87;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.legal-admin__overview-content {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.legal-admin__overview-content strong,
.legal-admin__overview-content small {
    overflow-wrap: anywhere;
}

.legal-admin__overview-content small {
    color: #62736f;
    font-size: 0.76rem;
}

.legal-admin__overview-card .legal-admin__status-pill {
    grid-column: 2;
    justify-self: start;
}

.legal-admin__status-pill {
    min-height: 1.7rem;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border: 1px solid #ecc5c1;
    border-radius: 999px;
    color: #873a34;
    background: #fff4f3;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.legal-admin__status-pill--ready {
    border-color: #b9ddd1;
    color: #15604f;
    background: #edf9f5;
}

.legal-admin__status-pill--draft {
    border-color: #e6cd96;
    color: #6e4c12;
    background: #fff9e9;
}

.legal-admin__status-pill > span {
    font-size: 0.8rem;
}

.legal-admin__editors {
    display: grid;
    gap: 1rem;
}

.legal-admin__editor {
    scroll-margin-top: 1rem;
    overflow: clip;
    border: 1px solid #d9e3df;
    border-radius: 0.9rem;
    background: #fbfcfc;
}

.legal-admin__editor:target {
    border-color: #4b9686;
    box-shadow: 0 0 0 0.2rem rgb(40 127 109 / 13%);
}

.legal-admin__editor--invalid,
.legal-admin__editor--invalid:target {
    border-color: #c34b43;
    box-shadow: 0 0 0 0.2rem rgb(195 75 67 / 13%);
}

.legal-admin__editor-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e1e8e6;
    background: #fff;
}

.legal-admin__editor-number {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 0.65rem;
    color: #fff;
    background: #315f55;
    font-size: 0.78rem;
    font-weight: 850;
}

.legal-admin__editor-heading {
    min-width: 0;
}

.legal-admin__editor-heading p:last-child {
    margin: 0.25rem 0 0;
    color: #5d6e69;
    font-size: 0.86rem;
}

.legal-admin__editor-body {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.legal-admin__missing-notice {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border: 1px solid #efcac6;
    border-radius: 0.7rem;
    color: #7b332e;
    background: #fff4f3;
}

.legal-admin__missing-notice > span {
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #c44c43;
    font-weight: 900;
}

.legal-admin__missing-notice p {
    margin: 0;
}

.legal-admin__active-document {
    padding: 0.85rem;
    border: 1px solid #c7e1d8;
    border-radius: 0.75rem;
    background: #f1faf7;
}

.legal-admin__active-document-heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.legal-admin__active-document-heading > div:first-child {
    display: grid;
    gap: 0.1rem;
}

.legal-admin__active-document-heading span {
    color: #587069;
    font-size: 0.8rem;
}

.legal-admin__text-preview {
    min-width: 0;
}

.legal-admin__text-preview summary {
    color: #176354;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.legal-admin__text-preview[open] {
    width: 100%;
    margin-top: 0.6rem;
}

.legal-admin__text-preview[open] summary {
    margin-bottom: 0.7rem;
}

.legal-admin__active-document-heading:has(.legal-admin__text-preview[open]) {
    display: grid;
    align-items: start;
}

.legal-admin__accordion {
    overflow: clip;
    border: 1px solid #d7e2df;
    border-radius: 0.75rem;
    background: #fff;
}

.legal-admin__accordion > summary {
    min-height: 3.8rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    color: #273c37;
    background: #fff;
    cursor: pointer;
}

.legal-admin__accordion > summary:hover {
    background: #f5f8f7;
}

.legal-admin summary:focus-visible {
    outline: 0.2rem solid var(--focus-ring);
    outline-offset: -0.2rem;
}

.legal-admin__accordion > summary > span {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.legal-admin__accordion > summary small {
    color: #687a75;
    font-size: 0.76rem;
    font-weight: 500;
}

.legal-admin__accordion[open] > summary {
    border-bottom: 1px solid #dfe8e5;
    color: #174f45;
    background: #f3f8f6;
}

.legal-admin__accordion-body {
    padding: clamp(0.9rem, 2vw, 1.25rem);
}

.admin-page .legal-admin__document-form,
.admin-page .legal-admin__privacy-publish-form {
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.admin-page .legal-admin__document-form > *,
.admin-page .legal-admin__privacy-publish-form > * {
    grid-column: 1 / -1;
}

.legal-admin__validation-summary {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e6aaa5;
    border-left: 0.28rem solid #c34b43;
    border-radius: 0.7rem;
    color: #742f2a;
    background: #fff3f2;
}

.legal-admin__validation-summary:focus {
    outline: 0.2rem solid var(--focus-ring);
    outline-offset: 0.15rem;
}

.legal-admin__validation-summary p {
    margin: 0;
}

.legal-admin__validation-summary p:last-child {
    color: #76504c;
    font-size: 0.8rem;
}

.legal-admin .form-field--invalid > label:first-child,
.legal-admin .form-field__error {
    color: #8a332d;
}

.legal-admin .form-field--invalid input,
.legal-admin .form-field--invalid textarea {
    border-color: #c34b43;
    background: #fffafa;
}

.legal-admin .form-field--invalid input:focus,
.legal-admin .form-field--invalid textarea:focus,
.legal-admin .migration-confirmation--invalid input:focus {
    outline: 0.2rem solid var(--focus-ring);
    outline-offset: 0.12rem;
}

.legal-admin .form-field__error {
    display: block;
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.45;
}

.legal-admin .migration-confirmation--invalid {
    flex-wrap: wrap;
    border-color: #d88982;
    color: #742f2a;
    background: #fff3f2;
}

.legal-admin .migration-confirmation--invalid > span:not(.form-field__error) {
    min-width: 0;
    flex: 1 1 calc(100% - 1.75rem);
}

.legal-admin .migration-confirmation--invalid .form-field__error {
    flex-basis: 100%;
    margin-left: 1.75rem;
}

.legal-admin__preset-notice {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.9rem;
    border: 1px solid #e7d4a6;
    border-left: 0.28rem solid #c78316;
    border-radius: 0.75rem;
    color: #59451e;
    background: #fffbef;
}

.legal-admin__preset-heading {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    justify-content: space-between;
}

.legal-admin__preset-heading > div {
    display: grid;
    gap: 0.45rem;
}

.legal-admin__preset-heading > div > strong {
    color: #4c3915;
}

.legal-admin__preset-source {
    color: #766235;
    font-size: 0.75rem;
    text-align: right;
}

.legal-admin__preset-notice > p {
    margin: 0;
}

.legal-admin__preset-warning {
    padding: 0.75rem;
    border: 1px solid #e9b9b4;
    border-radius: 0.6rem;
    color: #7b332e;
    background: #fff4f3;
}

.legal-admin__preset-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
}

.legal-admin__preset-facts div {
    min-width: 0;
    padding: 0.65rem;
    border-radius: 0.55rem;
    background: rgb(255 255 255 / 65%);
}

.legal-admin__preset-facts dt {
    color: #7a6840;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-admin__preset-facts dd {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
}

.legal-admin__field-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(12rem, 0.8fr);
    gap: 0.9rem;
}

.legal-admin__content-field textarea {
    min-height: 27rem;
    line-height: 1.65;
    tab-size: 4;
}

.legal-admin__document-form textarea[name="reason"] {
    min-height: 5.5rem;
}

.legal-admin__form-footer {
    display: grid;
    gap: 0.8rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e0e8e6;
}

.legal-admin__form-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.legal-admin__form-actions p {
    max-width: 44rem;
    text-align: right;
}

.legal-admin__privacy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.legal-admin__panel,
.legal-admin__history {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dce5e1;
    border-radius: 0.8rem;
    background: #fbfcfc;
}

.legal-admin__panel--status {
    position: sticky;
    top: 1rem;
}

.legal-admin__panel--publish {
    margin-top: 0.1rem;
}

.legal-admin__settings-form {
    margin-top: 1rem;
}

.legal-admin__facts {
    display: grid;
    gap: .75rem;
    margin: 1rem 0;
}

.legal-admin__facts div {
    padding: .8rem;
    border-radius: .75rem;
    background: #f5f8f7;
}

.legal-admin__facts dt {
    color: #60736d;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.legal-admin__facts dd {
    margin: .25rem 0 0;
    overflow-wrap: anywhere;
}

.legal-admin__facts--inline {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

.legal-admin__facts--inline div {
    min-width: 0;
}

.legal-admin__preview,
.legal-admin__text-preview .legal-document__body {
    border: 1px solid #dce5e1;
    border-radius: .75rem;
    padding: .85rem 1rem;
}

.legal-admin__preview summary {
    cursor: pointer;
    font-weight: 700;
}

.legal-admin__preview .legal-document__body,
.legal-admin__text-preview .legal-document__body {
    max-height: 32rem;
    overflow: auto;
    margin-top: 1rem;
    padding: 1rem;
    background: #f7f9f8;
    border-radius: .5rem;
    line-height: 1.65;
}

.legal-admin code {
    font-size: .78rem;
    overflow-wrap: anywhere;
}

@media (max-width: 72rem) {
    .legal-admin__overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-admin__privacy-grid {
        grid-template-columns: 1fr;
    }

    .legal-admin__panel--status {
        position: static;
    }
}

@media (max-width: 50rem) {
    .legal-admin__overview,
    .legal-admin__field-grid,
    .legal-admin__facts--inline,
    .legal-admin__preset-facts {
        grid-template-columns: 1fr;
    }

    .legal-admin__editor-header {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .legal-admin__editor-header > .legal-admin__status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .legal-admin__active-document-heading,
    .legal-admin__form-actions,
    .legal-admin__preset-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-admin__form-actions p,
    .legal-admin__preset-source {
        text-align: left;
    }

    .legal-admin__content-field textarea {
        min-height: 21rem;
    }
}

@media (max-width: 36rem) {
    .legal-admin__section {
        padding: 0.8rem;
        border-radius: 0.8rem;
    }

    .legal-admin__editor-header {
        gap: 0.65rem;
        padding: 0.85rem;
    }

    .legal-admin__editor-body {
        padding: 0.75rem;
    }

    .legal-admin__overview-card {
        min-height: 0;
    }

    .legal-admin__form-actions .button {
        width: 100%;
    }
}

/* Academic year administration */
.academic-year-admin {
    display: grid;
    gap: 1.35rem;
}

.academic-year-admin > * {
    min-width: 0;
}

.academic-year-header {
    margin-bottom: 0;
}

.academic-year-header__action {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.25rem;
}

.academic-year-notice {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin: 0 !important;
    padding: 0.95rem 1rem !important;
    border: 1px solid #cce5dc !important;
    border-left: 0.28rem solid #26936f !important;
    border-radius: 0.75rem !important;
    color: #225e4c !important;
    background: #edf8f4 !important;
}

.academic-year-notice > span:first-child {
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #26936f;
    font-weight: 900;
}

.academic-year-notice strong,
.academic-year-notice p {
    display: block;
    margin: 0;
}

.academic-year-notice p {
    margin-top: 0.18rem;
}

.academic-year-notice--error {
    border-color: #f0d0cd !important;
    border-left-color: #c34b43 !important;
    color: #87342f !important;
    background: #fff3f2 !important;
}

.academic-year-notice--error > span:first-child {
    background: #c34b43;
}

.academic-year-journey {
    padding: 1rem 1.1rem;
    border: 1px solid #dfe7e5;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffffff, #f5faf8);
    box-shadow: 0 0.4rem 1.5rem rgb(24 55 49 / 5%);
}

.academic-year-journey > p {
    margin: 0 0 0.75rem;
    color: #667772;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.academic-year-journey ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.academic-year-journey li {
    position: relative;
    min-width: 0;
}

.academic-year-journey li:not(:last-child)::after {
    position: absolute;
    z-index: 1;
    top: 1.1rem;
    right: -0.48rem;
    width: 0.75rem;
    height: 1px;
    background: #bfd1cc;
    content: "";
}

.academic-year-journey a {
    min-height: 4.2rem;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.05rem 0.65rem;
    align-content: center;
    padding: 0.65rem;
    border-radius: 0.72rem;
    color: #28423c;
    text-decoration: none;
    transition: background 150ms ease, transform 150ms ease;
}

.academic-year-journey a:hover {
    color: #155748;
    background: #eaf4f1;
    transform: translateY(-1px);
}

.academic-year-journey a > span {
    width: 2rem;
    height: 2rem;
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    border: 1px solid #bed6cf;
    border-radius: 0.58rem;
    color: #176354;
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.academic-year-journey strong,
.academic-year-journey small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.academic-year-journey strong {
    align-self: end;
    font-size: 0.79rem;
}

.academic-year-journey small {
    color: #778681;
    font-size: 0.68rem;
}

.admin-page .academic-year-state,
.admin-page .academic-year-create,
.admin-page .academic-year-list,
.admin-page .academic-year-policy {
    margin-top: 0;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border-radius: 1rem;
}

.academic-year-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.95rem 1.1rem;
    align-items: center;
    border-color: #cfe1dc !important;
    background: linear-gradient(125deg, #ffffff 55%, #edf7f3) !important;
}

.academic-year-state__icon {
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    border-radius: 0.85rem;
    color: #ffffff;
    background: linear-gradient(145deg, #237a68, #145347);
    box-shadow: 0 0.5rem 1rem rgb(23 99 84 / 16%);
}

.academic-year-state__content .eyebrow,
.academic-year-state__content h2,
.academic-year-state__content p {
    margin: 0;
}

.academic-year-state__content h2 {
    margin-top: 0.2rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.academic-year-state__content > p:last-child {
    max-width: 62rem;
    margin-top: 0.35rem;
    color: #60716c;
    font-size: 0.86rem;
}

.academic-year-state__meta {
    display: grid;
    justify-items: end;
    padding: 0.65rem 0.8rem;
    border: 1px solid #d7e4e0;
    border-radius: 0.7rem;
    background: rgb(255 255 255 / 78%);
}

.academic-year-state__meta span {
    color: #74827e;
    font-size: 0.68rem;
    font-weight: 750;
}

.academic-year-state__meta strong {
    color: #174f45;
    font-size: 1.15rem;
}

.academic-year-state > .academic-year-disclosure {
    grid-column: 1 / -1;
}

.academic-year-section-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.academic-year-section-heading .eyebrow,
.academic-year-section-heading h2,
.academic-year-section-heading p {
    margin: 0;
}

.academic-year-section-heading h2 {
    margin-top: 0.2rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.academic-year-section-heading p:last-child {
    max-width: 54rem;
    margin-top: 0.4rem;
    color: #667772;
    font-size: 0.87rem;
}

.academic-year-safety-note {
    max-width: 22rem;
    display: flex;
    flex: 0 0 auto;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #cce4dc;
    border-radius: 0.75rem;
    color: #315c50;
    background: #eff8f5;
}

.academic-year-safety-note > span {
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #2b8d75;
    font-size: 0.75rem;
    font-weight: 900;
}

.academic-year-safety-note p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

.admin-page .academic-year-guided-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 1.25rem 0 0;
    padding: 0;
    overflow: hidden;
    border-color: #d9e5e2;
    border-radius: 0.9rem;
    background: #ffffff;
}

.academic-year-form-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e5ecea;
}

.academic-year-form-step__number {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 0.58rem;
    color: #176354;
    background: #e8f3f0;
    font-size: 0.76rem;
    font-weight: 900;
}

.academic-year-form-step label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.86rem;
}

.academic-year-form-step input,
.academic-year-form-step textarea {
    max-width: 42rem;
}

.academic-year-form-step--confirm {
    align-items: start;
    background: #fbfcfc;
}

.admin-page .academic-year-form-step--confirm .form-check {
    margin: 0;
    padding: 0.15rem 0;
    background: transparent;
}

.academic-year-form-submit {
    display: flex;
    gap: 0.9rem 1.1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    background: #f2f7f5;
}

.academic-year-form-submit p {
    max-width: 38rem;
    margin: 0;
    color: #6a7975;
    font-size: 0.75rem;
}

.academic-year-count,
.status-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border: 1px solid #d8e2df;
    border-radius: 999px;
    color: #52645f;
    background: #f6f8f8;
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge--configured {
    border-color: #cbdfe9;
    color: #2b637a;
    background: #eef7fb;
}

.status-badge--active,
.status-badge--live {
    border-color: #c9e5d9;
    color: #247054;
    background: #edf8f3;
}

.status-badge--archived {
    color: #6d6f76;
    background: #f1f2f4;
}

.academic-year-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 1rem;
    margin-top: 1.15rem;
}

.admin-page .academic-year-card {
    margin: 0;
    padding: 1.1rem;
    border: 1px solid #dce6e3;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 0.45rem 1.35rem rgb(24 55 49 / 5%);
}

.admin-page .academic-year-card--active {
    border-color: #9fcdbf;
    box-shadow: 0 0 0 0.18rem rgb(39 144 111 / 8%), 0 0.55rem 1.5rem rgb(24 90 70 / 8%);
}

.academic-year-card__header {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    justify-content: space-between;
}

.academic-year-card__header .eyebrow,
.academic-year-card__header h3 {
    margin: 0;
}

.academic-year-card__header h3 {
    margin-top: 0.18rem;
    color: #17352f;
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.035em;
}

.academic-year-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.academic-year-card__facts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin: 1rem 0 !important;
    overflow: visible !important;
    border: 1px solid #e2e9e7 !important;
    border-radius: 0.7rem !important;
    background: #f8faf9 !important;
}

.academic-year-card__facts div {
    min-width: 0;
    padding: 0.65rem;
}

.academic-year-card__facts div + div {
    border-left: 1px solid #e2e9e7;
}

.academic-year-card__facts dt,
.academic-year-card__facts dd {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.academic-year-card__facts dt {
    color: #788681 !important;
    font-size: 0.63rem !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.academic-year-card__facts dd {
    margin-top: 0.22rem !important;
    color: #334640;
    font-size: 0.75rem;
    font-weight: 720;
    overflow-wrap: anywhere;
}

.academic-year-card__message,
.academic-year-primary-action,
.academic-year-policy__summary {
    padding: 0.85rem 0.9rem;
    border: 1px solid #d8e5e1;
    border-radius: 0.72rem;
    color: #3d5750;
    background: #f4f8f7;
}

.academic-year-card__message strong,
.academic-year-card__message p,
.academic-year-primary-action h4,
.academic-year-primary-action p {
    margin: 0;
}

.academic-year-card__message p,
.academic-year-primary-action > p {
    margin-top: 0.25rem;
    color: #64736f;
    font-size: 0.77rem;
}

.academic-year-card__message a {
    display: inline-block;
    margin-top: 0.55rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.academic-year-card__message--success {
    border-color: #c4e0d6;
    color: #245e4c;
    background: #edf8f4;
}

.academic-year-primary-action {
    border-color: #c6ded7;
    background: linear-gradient(145deg, #f6fbf9, #edf7f3);
}

.academic-year-primary-action h4 {
    color: #1d5548;
    font-size: 0.9rem;
}

.admin-page .academic-year-form,
.admin-page .academic-year-policy-form {
    grid-template-columns: 1fr;
    margin: 0.8rem 0 0;
    padding: 0.85rem;
    background: #ffffff;
}

.admin-page .academic-year-form > button,
.admin-page .academic-year-policy-form > button {
    grid-column: auto;
}

.academic-year-disclosure {
    margin-top: 0.85rem;
    border: 1px solid #dfe7e5;
    border-radius: 0.72rem;
    background: #ffffff;
}

.academic-year-disclosure > summary {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.72rem 0.8rem;
    color: #40544f;
    font-size: 0.76rem;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}

.academic-year-disclosure > summary::-webkit-details-marker {
    display: none;
}

.academic-year-disclosure > summary::after {
    color: #647771;
    content: "+";
    font-size: 1rem;
}

.academic-year-disclosure[open] > summary::after {
    content: "−";
}

.academic-year-disclosure[open] > summary {
    border-bottom: 1px solid #e5ebe9;
}

.academic-year-disclosure__body {
    padding: 0.85rem;
}

.academic-year-disclosure__body > p:first-child {
    margin-top: 0;
    color: #63736e;
    font-size: 0.8rem;
}

.academic-year-disclosure--warning {
    border-color: #eadfc1;
    background: #fffdf8;
}

.academic-year-card__tools {
    display: grid;
    gap: 0.8rem;
}

.academic-year-card__tools > section {
    padding: 0.8rem;
    border: 1px solid #e2e9e7;
    border-radius: 0.68rem;
}

.academic-year-card__tools h4,
.academic-year-card__tools > section > p {
    margin: 0;
}

.academic-year-card__tools > section > p {
    margin-top: 0.2rem;
    color: #6c7b77;
    font-size: 0.74rem;
}

.academic-year-danger-zone {
    border-color: #eed7d4 !important;
    background: #fff9f8;
}

.admin-page .button-secondary {
    border-color: #cbd8d4;
    color: #35534b;
    background: #edf2f0;
    box-shadow: none;
}

.admin-page .button-secondary:hover {
    color: #213d36;
    background: #dde8e4;
}

.admin-page .button-danger {
    background: #a6423d;
    box-shadow: 0 0.25rem 0.8rem rgb(166 66 61 / 15%);
}

.admin-page .button-danger:hover {
    background: #84322e;
}

.academic-year-empty {
    display: grid;
    justify-items: center;
    margin-top: 1rem;
    padding: 2rem 1rem;
    border: 1px dashed #bed2cc;
    border-radius: 0.85rem;
    color: #5f716c;
    background: #f8fbfa;
    text-align: center;
}

.academic-year-empty > span {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 0.75rem;
    color: #176354;
    background: #e8f3f0;
    font-size: 1.2rem;
}

.academic-year-empty h3,
.academic-year-empty p {
    margin: 0;
}

.academic-year-empty h3 {
    margin-top: 0.7rem;
}

.academic-year-empty p {
    margin-top: 0.25rem;
    font-size: 0.82rem;
}

.academic-year-empty a {
    margin-top: 0.65rem;
    font-weight: 800;
}

.academic-year-policy__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.1rem 0.8rem;
    margin-top: 1rem;
}

.academic-year-policy__summary span {
    grid-row: 1 / 3;
    align-self: center;
    color: #74837f;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.academic-year-policy__summary strong,
.academic-year-policy__summary p {
    margin: 0;
}

.academic-year-policy__summary p {
    color: #667570;
    font-size: 0.76rem;
}

.admin-page .academic-year-policy-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-page .academic-year-policy-form label:first-of-type,
.admin-page .academic-year-policy-form label:last-of-type,
.admin-page .academic-year-policy-form .form-check,
.admin-page .academic-year-policy-form > button {
    grid-column: 1 / -1;
}

@media (max-width: 70rem) {
    .academic-year-journey ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .academic-year-journey li::after {
        display: none;
    }
}

@media (max-width: 52rem) {
    .academic-year-header,
    .academic-year-section-heading,
    .academic-year-form-submit {
        display: grid;
    }

    .academic-year-header__action,
    .academic-year-safety-note {
        max-width: none;
    }

    .academic-year-state {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .academic-year-state__meta {
        grid-column: 1 / -1;
        grid-template-columns: auto auto;
        gap: 0.5rem;
        justify-content: start;
        justify-items: start;
    }

    .academic-year-card__facts {
        grid-template-columns: 1fr !important;
    }

    .academic-year-card__facts div + div {
        border-top: 1px solid #e2e9e7;
        border-left: 0;
    }

    .admin-page .academic-year-policy-form {
        grid-template-columns: 1fr;
    }

    .admin-page .academic-year-policy-form label,
    .admin-page .academic-year-policy-form label:first-of-type,
    .admin-page .academic-year-policy-form label:last-of-type,
    .admin-page .academic-year-policy-form .form-check,
    .admin-page .academic-year-policy-form > button {
        grid-column: auto;
    }
}

@media (max-width: 36rem) {
    .academic-year-journey ol {
        grid-template-columns: 1fr;
    }

    .academic-year-state {
        grid-template-columns: 1fr;
    }

    .academic-year-state__icon {
        width: 2.7rem;
        height: 2.7rem;
    }

    .academic-year-state__meta {
        grid-column: auto;
    }

    .academic-year-card__header {
        display: grid;
    }

    .academic-year-card__badges {
        justify-content: flex-start;
    }

    .academic-year-form-step {
        grid-template-columns: 1fr;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 95% 0%, rgb(233 185 73 / 16%), transparent 24rem),
        var(--color-background);
}

a {
    color: var(--color-brand);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-brand-strong);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 0.2rem solid var(--focus-ring);
    outline-offset: 0.2rem;
}

h1,
h2 {
    line-height: 1.2;
    text-wrap: balance;
}

h1 {
    max-width: 20ch;
    margin: 0;
    font-size: clamp(2rem, 7vw, 4.2rem);
    letter-spacing: -0.035em;
}

h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.container {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-small);
    color: #ffffff;
    background: var(--color-brand-strong);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    border-bottom: 1px solid var(--color-border);
    background: rgb(255 255 255 / 88%);
    backdrop-filter: blur(0.8rem);
}

.site-header__content {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 750;
    text-decoration: none;
}

.brand__logo {
    width: clamp(10.5rem, 15vw, 13rem);
    height: auto;
    display: block;
}

.brand__mark {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.7rem 0.7rem 0.7rem 0.2rem;
    color: #ffffff;
    background: var(--color-brand);
    box-shadow: 0 0.3rem 0 rgb(14 57 50 / 16%);
}

.environment-badge {
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-muted);
    background: var(--color-surface);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.page-content {
    flex: 1;
    padding-block: clamp(3.5rem, 10vw, 7rem);
}

.hero {
    max-width: 58rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--color-brand);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__lead {
    max-width: 48rem;
    margin: 1.5rem 0 0;
    color: var(--color-muted);
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
}

.information-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: clamp(3rem, 8vw, 5rem);
}

.information-card {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.information-card p {
    margin: 0;
    color: var(--color-muted);
}

.site-footer {
    padding-block: 1.5rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    background: var(--color-surface);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

.error-page {
    max-width: 45rem;
}

.error-page__code {
    margin: 0 0 0.5rem;
    color: var(--color-brand);
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 850;
    letter-spacing: -0.06em;
    line-height: 1;
}

.button-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-small);
    color: #ffffff;
    background: var(--color-brand);
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover {
    color: #ffffff;
    background: var(--color-brand-strong);
}

.button-link--compact {
    margin-top: 0;
    padding: 0.5rem 0.75rem;
}

.site-nav {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-left: auto;
}

@media (max-width: 30rem) {
    .site-header__content {
        flex-wrap: wrap;
        padding-block: 0.65rem;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-end;
    }
}

.legal-document__body {
    margin-top: 1.5rem;
    overflow-wrap: anywhere;
    white-space: normal;
}

.request-reference {
    margin-top: 2rem;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.request-reference code {
    overflow-wrap: anywhere;
}

.account-shell {
    width: min(100%, 42rem);
    margin-inline: auto;
}

.account-card {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.account-card h1 {
    max-width: none;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.account-card__lead {
    color: var(--color-muted);
}

.form-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

.form-field label,
.form-field__label {
    font-weight: 750;
}

.form-field input {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    color: var(--color-text);
    background: var(--color-surface);
    font: inherit;
}

.form-field input[aria-invalid="true"] {
    border-color: #a12622;
}

.form-field__hint {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.form-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
}

.form-check input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.button {
    min-height: 2.8rem;
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    color: #ffffff;
    background: var(--color-brand);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

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

.counter-pos {
    width: min(100%, 90rem);
    margin-inline: auto;
}

.counter-pos h1 {
    max-width: none;
    font-size: clamp(2rem, 6vw, 3.5rem);
}

.counter-pos__header,
.counter-pos__section-heading,
.counter-pos__search-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.counter-pos__header {
    align-items: start;
    margin-bottom: 1.5rem;
}

.counter-pos__lead {
    max-width: 62rem;
    color: var(--color-muted);
}

.counter-pos__workspace {
    display: grid;
    gap: 1rem;
}

.counter-pos__scanner,
.counter-pos__basket,
.counter-pos__success {
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.counter-pos__search {
    display: grid;
    gap: 0.5rem;
}

.counter-pos__search label {
    font-weight: 750;
}

.counter-pos__search-row input {
    flex: 1;
    min-width: 0;
    min-height: 3.5rem;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--color-brand);
    border-radius: var(--radius-small);
    font: inherit;
    font-size: 1.2rem;
}

.counter-pos__sound {
    width: fit-content;
}

.counter-pos__feedback {
    min-height: 2rem;
    margin: 1rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-small);
    background: #eef4f2;
    font-weight: 700;
}

.counter-pos__feedback[data-kind="success"] {
    color: #0d5135;
    background: #e6f5ec;
}

.counter-pos__feedback[data-kind="warning"] {
    color: #664b00;
    background: #fff4cf;
}

.counter-pos__feedback[data-kind="error"] {
    color: #84211d;
    background: #fbe9e8;
}

.counter-pos__results {
    margin-top: 1rem;
}

.counter-pos__results ul {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    list-style: none;
}

.counter-pos__result {
    width: 100%;
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    color: var(--color-text);
    background: var(--color-surface);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.counter-pos__result:hover {
    border-color: var(--color-brand);
    background: #f4faf8;
}

.counter-pos__result span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.counter-pos__empty {
    padding: 2rem 1rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-small);
    color: var(--color-muted);
    text-align: center;
}

.counter-pos__lines {
    display: grid;
    gap: 0.75rem;
}

.counter-pos__line {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.counter-pos__line-image {
    width: 5rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-small);
    color: var(--color-muted);
    background: #eef2f1;
    font-size: 0.68rem;
    text-align: center;
}

.counter-pos__line-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.counter-pos__line-details h3,
.counter-pos__line-details p {
    margin: 0;
}

.counter-pos__line-details p {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.counter-pos__line-controls {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.counter-pos__line-controls label {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 750;
}

.counter-pos__line-controls input {
    width: 5rem;
    min-height: 2.8rem;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    font: inherit;
}

.counter-pos select,
.counter-pos textarea {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    color: var(--color-text);
    background: var(--color-surface);
    font: inherit;
}

.counter-pos__totals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-block: 1rem;
}

.counter-pos__totals div {
    padding: 0.75rem;
    border-radius: var(--radius-small);
    background: #eef4f2;
}

.counter-pos__totals dt {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.counter-pos__totals dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.counter-pos__confirm {
    width: 100%;
    min-height: 3.6rem;
    font-size: 1.1rem;
}

.counter-pos__success {
    border-color: #4d9871;
}

.counter-pos__success:focus {
    outline: 0.2rem solid var(--focus-ring);
    outline-offset: 0.2rem;
}

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

.courtesy-receipt {
    width: min(100%, 46rem);
    margin-inline: auto;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    background: #fff;
}

.courtesy-receipt__header {
    text-align: center;
}

.courtesy-receipt__header p {
    margin: 0;
}

.courtesy-receipt__header h1 {
    max-width: none;
    margin-top: 1rem;
    font-size: clamp(1.35rem, 5vw, 2rem);
    letter-spacing: 0;
}

.courtesy-receipt__store,
.courtesy-receipt__reprint {
    font-weight: 850;
}

.courtesy-receipt__reprint {
    margin-top: 0.5rem !important;
    padding: 0.3rem;
    border: 2px solid currentColor;
}

.courtesy-receipt__metadata,
.courtesy-receipt__summary {
    margin-block: 1.2rem;
}

.courtesy-receipt__metadata div,
.courtesy-receipt__summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.courtesy-receipt__metadata dd,
.courtesy-receipt__summary dd {
    margin: 0;
    text-align: right;
}

.courtesy-receipt__items {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.courtesy-receipt__items th,
.courtesy-receipt__items td {
    padding: 0.55rem 0.25rem;
    border-block: 1px solid #aaa;
    text-align: right;
    vertical-align: top;
}

.courtesy-receipt__items th:nth-child(2),
.courtesy-receipt__items td:nth-child(2) {
    text-align: left;
}

.courtesy-receipt__items small {
    display: block;
}

.courtesy-receipt__summary {
    font-size: 1.2rem;
    font-weight: 850;
}

.courtesy-receipt__footer {
    margin-top: 1.5rem;
    text-align: center;
}

.courtesy-receipt__printed {
    font-size: 0.8rem;
}

.courtesy-receipt__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (min-width: 60rem) {
    .counter-pos__workspace {
        grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.75fr);
        align-items: start;
    }

    .counter-pos__basket,
    .counter-pos__success {
        grid-column: 1;
    }

    .counter-pos__confirmation {
        grid-column: 2;
        grid-row: 1 / span 3;
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 38rem) {
    .counter-pos__header,
    .counter-pos__search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .counter-pos__totals {
        grid-template-columns: 1fr;
    }
}

.source-diagnostics__legend,
.source-diagnostic-card {
    border: 1px solid var(--admin-border, #dce7e3);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.75rem 2rem rgb(15 61 53 / 6%);
}

.source-diagnostics__legend {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
}

.source-diagnostics__legend p {
    margin: 0.35rem 0 0;
    color: var(--muted, #657670);
}

.source-diagnostics__year {
    margin-top: 2rem;
}

.source-diagnostics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
    gap: 1rem;
}

.source-diagnostic-card {
    display: flex;
    min-width: 0;
    padding: 1.2rem;
    flex-direction: column;
    gap: 1rem;
}

.source-diagnostic-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.source-diagnostic-card__heading h3,
.source-diagnostic-card__heading p {
    margin: 0;
}

.source-diagnostic-card__facts,
.source-diagnostic-details dl {
    display: grid;
    grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.3fr);
    margin: 0;
}

.source-diagnostic-card__facts dt,
.source-diagnostic-card__facts dd,
.source-diagnostic-details dt,
.source-diagnostic-details dd {
    min-width: 0;
    margin: 0;
    padding: 0.55rem 0;
    border-bottom: 1px solid #edf2f0;
    overflow-wrap: anywhere;
}

.source-diagnostic-card__facts dt,
.source-diagnostic-details dt {
    color: #60736c;
    font-size: 0.82rem;
    font-weight: 700;
}

.source-diagnostic-details {
    padding: 0.9rem;
    border-radius: 0.75rem;
    background: #f4f9f7;
}

.source-diagnostic-details summary {
    cursor: pointer;
    font-weight: 800;
}

.source-diagnostic-details dl {
    margin-top: 0.65rem;
}

.source-diagnostic-card__notice {
    margin: 0;
    padding: 0.8rem;
    border-left: 3px solid #d79b28;
    background: #fff9e8;
}

.source-diagnostic-form {
    display: grid;
    margin-top: auto;
    gap: 0.55rem;
}

.source-diagnostic-form input[type="text"],
.source-diagnostic-form input:not([type]) {
    width: 100%;
}

.customer-book-picker {
    display: grid;
    gap: 0.85rem;
}

.customer-book-picker__toolbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--customer-border, #d8e4e0);
    border-radius: 1rem;
    box-shadow: 0 0.7rem 2rem rgba(20, 55, 46, 0.08);
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    position: sticky;
    top: 5.5rem;
    z-index: 4;
}

.customer-check-all {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    font-weight: 750;
    gap: 0.55rem;
}

.customer-check-all input,
.customer-books-table input[type="checkbox"] {
    accent-color: var(--customer-primary, #116b59);
    block-size: 1.2rem;
    inline-size: 1.2rem;
    margin: 0;
}

.customer-book-picker__count {
    color: var(--customer-muted, #687b75);
    font-size: 0.9rem;
    margin-inline-end: auto;
    white-space: nowrap;
}

.customer-book-picker__hint {
    color: var(--customer-muted, #687b75);
    font-size: 0.88rem;
    margin-inline-start: auto;
}

.customer-table-wrap {
    background: #fff;
    border: 1px solid var(--customer-border, #d8e4e0);
    border-radius: 1.1rem;
    box-shadow: 0 1rem 2.8rem rgba(20, 55, 46, 0.06);
    overflow-x: auto;
}

.customer-books-table {
    border-collapse: collapse;
    inline-size: 100%;
    min-inline-size: 56rem;
}

.customer-books-table th,
.customer-books-table td {
    border-bottom: 1px solid #e4ece9;
    padding: 1rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.customer-books-table thead th {
    background: #f2f7f5;
    color: #556a64;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
}

.customer-books-table tbody tr:last-child > * {
    border-bottom: 0;
}

.customer-books-table tbody tr:hover > * {
    background: #fbfdfc;
}

.customer-books-table__select {
    inline-size: 2.9rem;
    text-align: center !important;
}

.customer-books-table .is-unavailable {
    color: #71817c;
}

.customer-book-title {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    max-inline-size: 30rem;
}

.customer-book-title img {
    aspect-ratio: 3 / 4;
    border-radius: 0.4rem;
    inline-size: 3.1rem;
    object-fit: cover;
}

.customer-book-title div,
.customer-book-adoptions {
    display: grid;
    gap: 0.28rem;
}

.customer-book-title strong {
    color: #163a31;
    line-height: 1.28;
}

.customer-book-title span,
.customer-books-table small {
    color: #6c7d78;
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
}

.customer-book-adoptions span {
    color: #405b54;
    font-size: 0.84rem;
}

.customer-book-adoptions b {
    background: #e5f3ee;
    border-radius: 999px;
    color: #116b59;
    display: inline-block;
    font-size: 0.68rem;
    margin: 0.2rem 0.15rem 0 0;
    padding: 0.2rem 0.42rem;
}

.customer-book-price {
    color: #153d32;
    display: block;
    font-size: 1rem;
    white-space: nowrap;
}

.customer-book-unavailable {
    color: #7a6861;
    display: block;
    font-size: 0.82rem;
    font-weight: 750;
}

@media (max-width: 48rem) {
    .customer-book-picker__toolbar {
        bottom: 0.65rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        top: auto;
    }

    .customer-book-picker__toolbar .button,
    .customer-book-picker__hint {
        grid-column: 1 / -1;
        inline-size: 100%;
        margin: 0;
        text-align: center;
    }

    .customer-table-wrap {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .customer-books-table {
        display: block;
        min-inline-size: 0;
    }

    .customer-books-table thead {
        display: none;
    }

    .customer-books-table tbody {
        display: grid;
        gap: 0.7rem;
    }

    .customer-books-table tr {
        background: #fff;
        border: 1px solid var(--customer-border, #d8e4e0);
        border-radius: 0.95rem;
        box-shadow: 0 0.65rem 1.8rem rgba(20, 55, 46, 0.06);
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        padding: 0.85rem;
    }

    .customer-books-table th,
    .customer-books-table td {
        border: 0;
        display: block;
        padding: 0.25rem 0;
    }

    .customer-books-table__select {
        grid-column: 1;
        grid-row: 1 / span 3;
        inline-size: auto;
        padding-inline-end: 0.75rem !important;
    }

    .customer-books-table th[scope="row"],
    .customer-books-table td:not(.customer-books-table__select) {
        grid-column: 2;
    }

    .customer-book-title img {
        inline-size: 2.7rem;
    }

    .customer-books-table td[data-label="Prezzo"] {
        align-items: baseline;
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 0.55rem;
        padding-top: 0.5rem;
    }
}

/* Order request, review-before-payment and fulfillment workflow. */
.customer-page__hero {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid #d8e6e2;
    border-radius: 1.35rem;
    background: linear-gradient(120deg, #ffffff 0 68%, #eaf6f2 100%);
    box-shadow: 0 0.8rem 2.2rem rgb(20 68 59 / 7%);
}

.customer-page__hero--compact h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.35rem);
    letter-spacing: -0.045em;
    line-height: 1;
}

.customer-page__hero--compact p:last-child {
    max-width: 45rem;
    margin: 0.75rem 0 0;
    color: #62736f;
}

.order-request-page {
    display: grid;
    gap: 1.25rem;
}

.order-request-list {
    display: grid;
    gap: 0.75rem;
}

.order-request-card {
    min-width: 0;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border: 1px solid #d9e6e2;
    border-radius: 1rem;
    color: #1b2d29;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 0.55rem 1.5rem rgb(20 68 59 / 5%);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.order-request-card:hover {
    border-color: #9fc8be;
    box-shadow: 0 0.85rem 2rem rgb(20 68 59 / 10%);
    transform: translateY(-2px);
}

.order-request-card > div:first-child,
.order-request-card__state {
    min-width: 0;
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.order-request-card > div:first-child {
    flex-wrap: wrap;
}

.order-request-card__number {
    font-weight: 850;
    letter-spacing: -0.02em;
}

.order-request-card small {
    width: 100%;
    color: #71817d;
}

.status-pill {
    width: fit-content;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    color: #52635f;
    background: #edf2f1;
    font-size: 0.73rem;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.status-pill--submitted,
.status-pill--under_review,
.status-pill--awaiting_payment,
.status-pill--pending {
    color: #815813;
    background: #fff3d9;
}

.status-pill--quoted,
.status-pill--approved,
.status-pill--converted,
.status-pill--ready_for_pickup,
.status-pill--awaiting_customer_pickup,
.status-pill--shipped,
.status-pill--delivered,
.status-pill--received,
.status-pill--processing,
.status-pill--paid {
    color: #12604d;
    background: #e3f4ee;
}

.status-pill--rejected,
.status-pill--cancelled,
.status-pill--expired,
.status-pill--unavailable {
    color: #8b3934;
    background: #fdeceb;
}

.customer-notice,
.admin-notice {
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid #dbe5e2;
    border-left-width: 0.3rem;
    border-radius: 0.75rem;
    color: #3b514b;
    background: #f7faf9;
}

.customer-notice--success,
.admin-notice--success {
    border-color: #b9dfd3;
    border-left-color: #25846c;
    color: #175b49;
    background: #edf8f4;
}

.customer-notice--warning {
    border-color: #eed8aa;
    border-left-color: #bc8127;
    color: #704e18;
    background: #fff9ed;
}

.admin-notice--error {
    border-color: #efcac7;
    border-left-color: #c24c45;
    color: #7d342f;
    background: #fff2f1;
}

.order-request-progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid #ecd8ad;
    border-radius: 1rem;
    color: #6f501b;
    background: #fff9eb;
}

.order-request-progress--ready {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-color: #bcded4;
    color: #1b5f4e;
    background: #edf8f4;
}

.order-request-progress__icon {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 0.75rem;
    color: #ffffff;
    background: #b67d29;
    font-weight: 900;
}

.order-request-progress--ready .order-request-progress__icon {
    background: #217c65;
}

.order-request-progress p {
    margin: 0.15rem 0 0;
    color: inherit;
    opacity: 0.82;
}

.section-heading,
.admin-page-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
}

.section-heading h2,
.admin-page-heading h1 {
    margin: 0;
}

.section-heading > span {
    color: #71817d;
    font-size: 0.84rem;
    font-weight: 750;
}

.responsive-line-table {
    margin-top: 1rem;
    border: 1px solid #dfe9e6;
    border-radius: 0.85rem;
    overflow: hidden;
}

.responsive-line-table__head,
.responsive-line-table__row {
    display: grid;
    grid-template-columns: minmax(15rem, 2fr) minmax(5rem, 0.55fr) minmax(9rem, 0.9fr) minmax(8rem, 0.7fr);
    gap: 0.8rem;
    align-items: center;
}

.responsive-line-table__head {
    padding: 0.65rem 0.9rem;
    color: #657671;
    background: #f4f8f7;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.responsive-line-table__row {
    padding: 0.85rem 0.9rem;
    border-top: 1px solid #e5ecea;
}

.responsive-line-table__row > div:first-child,
.responsive-line-table__row > div:nth-child(3) {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.responsive-line-table__row small {
    overflow-wrap: anywhere;
    color: #71817d;
}

.mobile-label {
    display: none;
}

.order-request-total {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 0 0;
}

.order-request-total strong {
    color: #145c4e;
    font-size: 1.35rem;
}

.customer-page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.customer-page-actions form {
    margin: 0;
}

.customer-area .button--danger-quiet,
.admin-page .button--danger-quiet {
    border-color: #e7c8c5;
    color: #8b3934;
    background: #fff7f6;
    box-shadow: none;
}

.customer-area .button--danger-quiet:hover,
.admin-page .button--danger-quiet:hover {
    color: #762f2b;
    background: #fdecea;
}

.workflow-settings,
.admin-order-requests,
.admin-order-request {
    display: grid;
    gap: 1.1rem;
}

.workflow-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.workflow-mode-card {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1.25rem;
    border: 1px solid #dfe7e5;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.5rem 1.5rem rgb(24 55 49 / 5%);
}

.workflow-mode-card.is-active {
    border-color: #78b6a7;
    background: linear-gradient(135deg, #ffffff, #edf8f4);
    box-shadow: 0 0 0 0.2rem rgb(40 128 108 / 8%);
}

.workflow-mode-card__icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 0.8rem;
    color: #176354;
    background: #e7f3ef;
    font-weight: 900;
}

.workflow-mode-card h2,
.workflow-mode-card p {
    margin: 0;
}

.workflow-mode-card p:last-child {
    margin-top: 0.35rem;
    color: #657572;
}

.workflow-settings .admin-card {
    margin-top: 0;
}

.workflow-settings .form-stack,
.request-review-form__footer,
.request-reject-form {
    grid-template-columns: 1fr;
}

.form-grid--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-order-requests .needs-action td:first-child {
    box-shadow: inset 0.25rem 0 #c18a2f;
}

.request-review-form {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.request-review-form .table-scroll {
    margin-top: 0;
}

.request-review-form input[type="number"] {
    min-width: 7rem;
}

.request-review-form__footer {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #e1e8e6;
    border-radius: 0.8rem;
    background: #fffdf8;
}

.request-review-form__footer > button {
    grid-column: auto !important;
}

.request-reject-form {
    margin-top: 1.5rem !important;
    border-color: #eed2cf !important;
    background: #fff7f6 !important;
}

.order-fulfillment {
    display: grid;
    gap: 1rem;
    margin-block: 1.5rem;
}

.fulfillment-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.fulfillment-actions .sensitive-action {
    min-width: 0;
    align-content: start;
    grid-template-columns: 1fr;
    margin: 0;
}

.fulfillment-actions .sensitive-action h3,
.fulfillment-actions .sensitive-action p {
    grid-column: 1;
    margin-block: 0;
}

.fulfillment-actions .sensitive-action label {
    min-width: 0;
}

@media (max-width: 52rem) {
    .customer-page__hero,
    .admin-page-heading,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .workflow-mode-grid,
    .form-grid--two,
    .fulfillment-actions {
        grid-template-columns: 1fr;
    }

    .workflow-mode-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .workflow-mode-card > .status-pill {
        grid-column: 2;
    }

    .responsive-line-table {
        border: 0;
        overflow: visible;
    }

    .responsive-line-table__head {
        display: none;
    }

    .responsive-line-table__row {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 0.65rem;
        padding: 1rem;
        border: 1px solid #dfe9e6;
        border-radius: 0.85rem;
        background: #fff;
    }

    .responsive-line-table__row > div:first-child {
        grid-column: 1 / -1;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid #e8eeec;
    }

    .mobile-label {
        display: block;
        margin-bottom: 0.15rem;
        color: #75837f;
        font-size: 0.68rem;
        font-weight: 850;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .order-request-progress--ready {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .order-request-progress--ready .button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 36rem) {
    .order-request-card,
    .order-request-card > div:first-child,
    .order-request-card__state,
    .customer-page-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-request-card__state {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .order-request-hero .status-pill {
        align-self: flex-start;
    }

    .responsive-line-table__row {
        grid-template-columns: 1fr;
    }

    .responsive-line-table__row > div:first-child {
        grid-column: auto;
    }

    .order-request-total {
        align-items: flex-end;
        flex-direction: column;
    }
}

@media print {
    @page {
        size: 80mm auto;
        margin: 4mm;
    }

    body {
        min-height: auto;
        display: block;
        color: #000;
        background: #fff;
        font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
        font-size: 9pt;
        line-height: 1.25;
    }

    .site-header,
    .site-footer,
    .skip-link,
    .courtesy-receipt__actions {
        display: none !important;
    }

    .container,
    .page-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .courtesy-receipt {
        width: 72mm;
        padding: 0;
        border: 0;
    }

    .courtesy-receipt__header h1 {
        font-size: 12pt;
    }

    .courtesy-receipt__items th,
    .courtesy-receipt__items td {
        padding: 1.5mm 0.5mm;
        font-size: 7.5pt;
    }
}

.button:hover {
    background: var(--color-brand-strong);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button--secondary {
    border-color: var(--color-border);
    color: var(--color-text);
    background: var(--color-surface);
}

.button--secondary:hover {
    background: var(--color-background);
}

.notice {
    margin-block: 1rem;
    padding: 0.9rem 1rem;
    border-left: 0.3rem solid var(--color-brand);
    border-radius: var(--radius-small);
    background: #eaf4f1;
}

.notice--error {
    border-left-color: #a12622;
    background: #fff0ef;
}

.notice ul {
    margin-block: 0;
    padding-left: 1.25rem;
}

.account-links {
    margin-top: 1.5rem;
    color: var(--color-muted);
}

.google-auth-button {
    width: 100%;
    min-height: 2.875rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid #c7cdd3;
    border-radius: var(--radius-small);
    color: #1f1f1f;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.google-auth-button:hover {
    border-color: #aeb6be;
    color: #1f1f1f;
    background: #f8f9fa;
}

.google-auth-button:focus-visible {
    outline: 3px solid rgb(23 79 69 / 24%);
    outline-offset: 2px;
}

.google-auth-button__icon,
.google-auth-button > svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    min-width: 1.25rem;
    min-height: 1.25rem;
    max-width: 1.25rem;
    max-height: 1.25rem;
    display: block;
    flex: 0 0 1.25rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block: 1.25rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--color-border);
}

.google-registration-form {
    margin-top: 1.25rem;
}

.google-registration-form__legal {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    color: var(--color-muted);
    background: #f8faf9;
    font-size: 0.875rem;
    line-height: 1.5;
}

.google-registration-form__legal a {
    font-weight: 700;
}

.admin-grid--two {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
    gap: 1rem;
    align-items: start;
    margin-top: 1.5rem;
}

.admin-grid--two .admin-card {
    margin: 0;
}

.code-block {
    display: block;
    padding: 0.8rem;
    overflow-wrap: anywhere;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background: var(--color-background);
    user-select: all;
}

.summary-list {
    display: grid;
    gap: 0.7rem;
    margin-block: 1.25rem;
}

.summary-list > div {
    display: grid;
    grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
    gap: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--color-border);
}

.summary-list dt {
    color: var(--color-muted);
}

.summary-list dd {
    margin: 0;
    font-weight: 700;
}

@media (max-width: 54rem) {
    .admin-grid--two {
        grid-template-columns: 1fr;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.honeypot-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.profile-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 44rem) {
    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 48rem) {
    .container {
        width: min(100% - 4rem, var(--content-width));
    }

    .information-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .information-card {
        padding: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Administrative application shell */
body.admin-body {
    min-height: 100vh;
    display: block;
    color: #172321;
    background: #f3f6f8;
}

/* Administrative authentication */
body.admin-auth-body {
    min-height: 100vh;
    display: block;
    color: #172321;
    background: #ffffff;
}

.admin-auth-main,
.admin-auth-shell {
    min-height: 100vh;
}

.admin-auth-shell {
    display: grid;
    grid-template-columns: minmax(22rem, 0.82fr) minmax(30rem, 1.18fr);
}

.admin-auth-branding {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: #ffffff;
    background:
        radial-gradient(circle at 105% 15%, rgb(93 208 172 / 22%), transparent 24rem),
        radial-gradient(circle at -10% 92%, rgb(233 185 73 / 13%), transparent 22rem),
        linear-gradient(145deg, #164c43 0%, #0d3933 56%, #082a26 100%);
}

.admin-auth-branding::after {
    width: 22rem;
    height: 22rem;
    position: absolute;
    right: -10rem;
    bottom: -10rem;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 50%;
    box-shadow:
        0 0 0 3rem rgb(255 255 255 / 2.5%),
        0 0 0 7rem rgb(255 255 255 / 2%);
    content: "";
    pointer-events: none;
}

.admin-auth-brand {
    width: fit-content;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-decoration: none;
}

.admin-auth-brand:hover {
    color: #ffffff;
}

.admin-auth-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-auth-brand__logo {
    width: min(14rem, 100%);
    height: auto;
    display: block;
    padding: 0.32rem 0.45rem;
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 0.5rem 1.2rem rgb(0 0 0 / 14%);
}

.admin-auth-brand__area {
    color: #b7d4cd;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.admin-auth-brand__mark {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 0.85rem 0.85rem 0.85rem 0.25rem;
    color: #154c42;
    background: #ffffff;
    box-shadow: 0 0.5rem 1.2rem rgb(0 0 0 / 16%);
    font-size: 1.05rem;
    font-weight: 900;
}

.admin-auth-brand > span:last-child {
    display: grid;
    line-height: 1.2;
}

.admin-auth-brand strong {
    font-size: 1rem;
}

.admin-auth-brand small {
    color: #a3c7be;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-auth-branding__message {
    max-width: 36rem;
    position: relative;
    z-index: 1;
    margin-block: auto 3rem;
    padding-top: 5rem;
}

.admin-auth-branding__eyebrow {
    margin: 0 0 0.8rem;
    color: #72d4b6;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.admin-auth-branding__message h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.admin-auth-branding__message > p:last-child {
    max-width: 32rem;
    margin: 1.25rem 0 0;
    color: #b9d1cb;
    font-size: 1rem;
}

.admin-auth-trust-list {
    display: grid;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-auth-trust-list li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.admin-auth-trust-list li > span:first-child {
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgb(112 218 184 / 30%);
    border-radius: 50%;
    color: #79dfbf;
    background: rgb(112 218 184 / 9%);
    font-size: 0.7rem;
    font-weight: 900;
}

.admin-auth-trust-list li > span:last-child {
    display: grid;
    line-height: 1.25;
}

.admin-auth-trust-list strong {
    font-size: 0.78rem;
}

.admin-auth-trust-list small {
    color: #94b6ad;
    font-size: 0.68rem;
}

.admin-auth-branding__footer {
    position: relative;
    z-index: 1;
    margin: 2.5rem 0 0;
    color: #739b91;
    font-size: 0.68rem;
}

.admin-auth-workspace {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 100% 0%, rgb(233 185 73 / 9%), transparent 22rem),
        #f7f9f9;
}

.admin-auth-mobile-header {
    display: none;
}

.admin-auth-content {
    width: min(100% - 2rem, 33rem);
    display: grid;
    flex: 1;
    place-items: center;
    margin-inline: auto;
    padding-block: clamp(2.5rem, 8vh, 6rem);
}

.admin-auth-content .auth-panel {
    width: 100%;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border: 1px solid #dde6e3;
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 1.25rem 3.5rem rgb(24 55 49 / 9%);
}

.admin-auth-content .auth-panel > .eyebrow {
    margin-bottom: 0.55rem;
    color: #1b6b5b;
}

.admin-auth-content .auth-panel h1 {
    max-width: 18ch;
    color: #14211f;
    font-size: clamp(2rem, 5vw, 2.75rem);
    letter-spacing: -0.05em;
}

.admin-auth-content .auth-panel__lead,
.admin-auth-content .auth-panel > h1 + p {
    margin: 0.8rem 0 0;
    color: #6a7975;
    font-size: 0.9rem;
}

.admin-auth-content .auth-panel form {
    display: grid;
    gap: 0.45rem;
    margin-top: 1.45rem;
}

.admin-auth-content .auth-panel label {
    margin-top: 0.55rem;
    color: #30423d;
    font-size: 0.78rem;
    font-weight: 780;
}

.admin-auth-content .auth-panel input:not([type="hidden"]),
.admin-auth-content .auth-panel select,
.admin-auth-content .auth-panel textarea {
    width: 100%;
    min-height: 3.1rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #cad8d4;
    border-radius: 0.62rem;
    color: #182522;
    background: #fbfcfc;
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.admin-auth-content .auth-panel input:not([type="hidden"]):focus,
.admin-auth-content .auth-panel select:focus,
.admin-auth-content .auth-panel textarea:focus {
    border-color: #267b69;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 0.22rem rgb(38 123 105 / 13%);
}

.admin-auth-content .auth-panel button,
.admin-auth-content .auth-panel .button-link {
    width: 100%;
    min-height: 3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.62rem;
    color: #ffffff;
    background: linear-gradient(135deg, #1b6b5b, #145347);
    box-shadow: 0 0.55rem 1.2rem rgb(20 83 71 / 18%);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-auth-content .auth-panel button:hover,
.admin-auth-content .auth-panel .button-link:hover {
    color: #ffffff;
    background: #10493f;
}

.admin-auth-content .auth-panel > p:last-child,
.admin-auth-content .auth-panel__back-link {
    margin: 1.25rem 0 0;
    text-align: center;
}

.admin-auth-content .auth-panel > p:last-child a,
.admin-auth-content .auth-panel__back-link a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0.5rem;
    color: #1c6657;
    font-size: 0.78rem;
    font-weight: 750;
}

.admin-auth-content .form-error,
.admin-auth-content [role="alert"],
.admin-auth-content [role="status"] {
    margin: 1rem 0 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #f0d0cd;
    border-left: 0.25rem solid #bd493f;
    border-radius: 0.55rem;
    color: #87342f;
    background: #fff3f2;
    font-size: 0.78rem;
}

.admin-auth-content [role="status"] {
    border-color: #cce5dc;
    border-left-color: #26936f;
    color: #225e4c;
    background: #edf8f4;
}

.admin-auth-content .auth-secondary-action {
    margin-top: 0.6rem;
}

.admin-auth-content .auth-secondary-action button {
    margin-top: 0;
    border-color: #d5e0dd;
    color: #40544f;
    background: #ffffff;
    box-shadow: none;
}

.admin-auth-content .auth-secondary-action button:hover {
    color: #173f37;
    background: #f2f6f5;
}

.admin-auth-content .mfa-qr-code {
    width: min(100%, 15rem);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 1.25rem auto;
    padding: 0.8rem;
    border: 1px solid #d9e4e1;
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 0.4rem 1.2rem rgb(24 55 49 / 6%);
}

.admin-auth-content .mfa-qr-code svg {
    width: 100%;
    height: auto;
    display: block;
}

.admin-auth-content .auth-panel dl {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.4rem 0.75rem;
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 0.6rem;
    background: #f1f5f4;
    font-size: 0.74rem;
}

.admin-auth-content .auth-panel dt {
    color: #60706c;
    font-weight: 750;
}

.admin-auth-content .auth-panel dd {
    min-width: 0;
    margin: 0;
}

.admin-auth-content .auth-panel code {
    color: #244c42;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

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

.admin-auth-content .recovery-codes li {
    padding: 0.55rem;
    border: 1px solid #dce6e3;
    border-radius: 0.5rem;
    background: #f7f9f9;
    text-align: center;
}

.admin-auth-footer {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem clamp(1.5rem, 4vw, 3rem);
    color: #81908c;
    font-size: 0.68rem;
}

.admin-auth-footer a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    color: #516b64;
    font-weight: 750;
}

.admin-auth-secure {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    color: #58716b;
    font-size: 0.68rem;
    font-weight: 750;
}

.admin-auth-secure i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #2cad72;
    box-shadow: 0 0 0 0.18rem rgb(44 173 114 / 13%);
}

@media (max-width: 60rem) {
    .admin-auth-shell {
        display: block;
    }

    .admin-auth-branding {
        display: none;
    }

    .admin-auth-mobile-header {
        min-height: 4.5rem;
        display: flex;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #dfe7e5;
        background: rgb(255 255 255 / 92%);
        backdrop-filter: blur(1rem);
    }

    .admin-auth-mobile-header .admin-auth-brand {
        color: #172321;
    }

    .admin-auth-mobile-header .admin-auth-brand:hover {
        color: #172321;
    }

    .admin-auth-mobile-header .admin-auth-brand {
        gap: 0.2rem;
    }

    .admin-auth-mobile-header .admin-auth-brand__logo {
        width: 10.5rem;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .admin-auth-mobile-header .admin-auth-brand__area {
        color: #73837f;
    }

    .admin-auth-mobile-header .admin-auth-brand__mark {
        color: #ffffff;
        background: #175f51;
        box-shadow: none;
    }

    .admin-auth-mobile-header .admin-auth-brand small {
        color: #73837f;
    }
}

@media (max-width: 34rem) {
    .admin-auth-content {
        width: min(100% - 1.25rem, 33rem);
        align-items: start;
        padding-block: 1rem 2rem;
    }

    .admin-auth-content .auth-panel {
        padding: 1.25rem;
        border-radius: 0.9rem;
    }

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

    .admin-auth-footer {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .admin-auth-secure {
        width: 0.65rem;
        min-width: 0;
        max-width: 0.65rem;
        flex: 0 0 0.65rem;
        gap: 0;
        overflow: hidden;
        font-size: 0;
        white-space: nowrap;
    }
}

.admin-main {
    min-height: 100vh;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 17.5rem minmax(0, 1fr);
}

body.admin-operation-pending {
    overflow: hidden;
}

.admin-operation-overlay {
    z-index: 1000;
    display: grid;
    position: fixed;
    inset: 0;
    place-items: center;
    padding: 1.25rem;
    background: rgb(8 36 32 / 72%);
    backdrop-filter: blur(0.3rem);
}

.admin-operation-overlay[hidden] {
    display: none;
}

.admin-operation-overlay__panel {
    width: min(100%, 31rem);
    padding: clamp(1.6rem, 5vw, 2.5rem);
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 1.25rem;
    color: #172321;
    background: #ffffff;
    box-shadow: 0 1.75rem 5rem rgb(0 0 0 / 30%);
    text-align: center;
}

.admin-operation-overlay__spinner {
    width: 3.75rem;
    height: 3.75rem;
    display: block;
    margin: 0 auto 1.25rem;
    border: 0.34rem solid #dbece7;
    border-top-color: #17715f;
    border-radius: 50%;
    animation: admin-operation-spin 800ms linear infinite;
}

.admin-operation-overlay__eyebrow {
    margin: 0 0 0.45rem;
    color: #17715f;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.admin-operation-overlay h2 {
    margin: 0;
    color: #14211f;
    font-size: clamp(1.55rem, 5vw, 2rem);
    letter-spacing: -0.035em;
}

.admin-operation-overlay [data-admin-operation-message] {
    margin: 0.75rem auto 1.35rem;
    color: #5e706b;
    line-height: 1.55;
}

.admin-operation-overlay__status {
    display: flex;
    gap: 0.55rem;
    align-items: baseline;
    justify-content: center;
    margin: 0.75rem 0 0;
    color: #40544f;
    font-size: 0.82rem;
}

.admin-operation-overlay__status[hidden] {
    display: none;
}

.admin-operation-overlay__status strong {
    color: #126553;
    font-size: 1.2rem;
}

.admin-operation-overlay__progress {
    height: 0.38rem;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: #e5efec;
}

.admin-operation-overlay__progress span {
    width: 42%;
    position: absolute;
    inset-block: 0;
    left: -42%;
    border-radius: inherit;
    background: linear-gradient(90deg, #17715f, #5fc3a7);
    animation: admin-operation-progress 1.35s ease-in-out infinite;
}

.admin-operation-overlay--determinate .admin-operation-overlay__progress span {
    width: var(--operation-progress, 0%);
    left: 0;
    animation: none;
    transition: width 220ms ease;
}

@keyframes admin-operation-spin {
    to { transform: rotate(360deg); }
}

@keyframes admin-operation-progress {
    0% { transform: translateX(0); }
    100% { transform: translateX(338%); }
}

.admin-sidebar {
    z-index: 40;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    overflow: hidden;
    color: #d8e8e4;
    background:
        radial-gradient(circle at 10% 0%, rgb(56 139 116 / 28%), transparent 18rem),
        linear-gradient(165deg, #123e37 0%, #0b2e2a 56%, #082420 100%);
    box-shadow: 0.5rem 0 2rem rgb(12 35 31 / 8%);
}

.admin-sidebar__brand {
    padding: 1.35rem 1.25rem 1.15rem;
    border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.admin-brand {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
}

.admin-brand:hover {
    color: #ffffff;
}

.admin-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
}

.admin-brand__logo {
    width: min(11.75rem, 100%);
    height: auto;
    display: block;
    padding: 0.28rem 0.38rem;
    border-radius: 0.7rem;
    background: rgb(255 255 255 / 97%);
    box-shadow: 0 0.45rem 1rem rgb(0 0 0 / 16%);
}

.admin-brand__area {
    color: #9fc1b8;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-brand__mark {
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 0.85rem 0.85rem 0.85rem 0.25rem;
    color: #123e37;
    background: #ffffff;
    box-shadow: 0 0.45rem 1rem rgb(0 0 0 / 18%);
    font-size: 1.1rem;
    font-weight: 900;
}

.admin-brand > span:last-child {
    display: grid;
    line-height: 1.25;
}

.admin-brand strong {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.admin-brand small {
    color: #97b9b0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.admin-section-nav {
    display: block;
    flex: 1;
    padding: 0.75rem 0.8rem 1.5rem;
    overflow-y: auto;
    scrollbar-color: rgb(255 255 255 / 20%) transparent;
    scrollbar-width: thin;
}

.admin-nav-group {
    display: grid;
    gap: 0.16rem;
    margin-top: 0.85rem;
}

.admin-nav-group__label {
    margin: 0 0 0.35rem;
    padding-inline: 0.8rem;
    color: #769f95;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.admin-section-nav a {
    min-height: 2.7rem;
    display: flex;
    gap: 0.7rem;
    align-items: center;
    position: relative;
    padding: 0.56rem 0.7rem;
    border-radius: 0.65rem;
    color: #c5d9d4;
    font-size: 0.89rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.admin-section-nav a:hover {
    color: #ffffff;
    background: rgb(255 255 255 / 8%);
    transform: translateX(0.1rem);
}

.admin-section-nav a[aria-current="page"] {
    color: #ffffff;
    background: rgb(255 255 255 / 13%);
    box-shadow: inset 0.18rem 0 #62d0ad;
}

.admin-nav-icon {
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.5rem;
    color: #91b8ae;
    background: rgb(255 255 255 / 6%);
}

.admin-section-nav a[aria-current="page"] .admin-nav-icon {
    color: #a5f0d8;
    background: rgb(98 208 173 / 16%);
}

.admin-nav-icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.admin-sidebar__footer {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid rgb(255 255 255 / 9%);
}

.admin-sidebar__utility-link {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    color: #9fbdb5;
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
}

.admin-sidebar__utility-link:hover {
    color: #ffffff;
    background: rgb(255 255 255 / 6%);
}

.admin-sidebar__logout,
.admin-sidebar__logout button {
    width: 100%;
}

.admin-sidebar__logout button {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-start;
    padding: 0.55rem;
    border: 0;
    border-radius: 0.5rem;
    color: #dff2ec;
    background: rgb(255 255 255 / 8%);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 760;
    cursor: pointer;
}

.admin-sidebar__logout button:hover {
    color: #fff;
    background: rgb(255 255 255 / 14%);
}

.admin-workspace {
    min-width: 0;
}

.admin-topbar {
    z-index: 30;
    min-height: 4.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    position: sticky;
    top: 0;
    padding: 0.75rem clamp(1rem, 3vw, 2.2rem);
    border-bottom: 1px solid #dfe7e5;
    background: rgb(255 255 255 / 91%);
    box-shadow: 0 0.25rem 1.5rem rgb(21 50 44 / 4%);
    backdrop-filter: blur(1rem);
}

.admin-topbar__context {
    display: grid;
    line-height: 1.25;
}

.admin-topbar__context strong {
    font-size: 0.96rem;
}

.admin-topbar__eyebrow {
    color: #71817e;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-topbar__actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-left: auto;
}

.admin-topbar__actions .admin-topbar__status {
    margin-left: 0;
}

.admin-topbar__logout button {
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid #cfe0db;
    border-radius: 0.65rem;
    color: #175d50;
    background: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.admin-topbar__logout button:hover {
    border-color: #8fc2b4;
    background: #f0f8f5;
}

.admin-notifications {
    position: relative;
}

.admin-notifications > summary {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    position: relative;
    place-items: center;
    border: 1px solid #d6e3df;
    border-radius: 0.7rem;
    color: #275f54;
    background: #fff;
    cursor: pointer;
    list-style: none;
}

.admin-notifications > summary::-webkit-details-marker {
    display: none;
}

.admin-notifications > summary svg {
    width: 1.15rem;
    fill: currentColor;
}

.admin-notifications__badge {
    min-width: 1.15rem;
    height: 1.15rem;
    display: grid;
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    place-items: center;
    padding-inline: 0.25rem;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #b73535;
    font-size: 0.62rem;
    font-weight: 900;
}

.admin-notifications__panel {
    width: min(23rem, calc(100vw - 2rem));
    display: grid;
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    overflow: hidden;
    border: 1px solid #d9e4e1;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgb(17 56 48 / 18%);
}

.admin-notifications__heading {
    display: grid;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e2ebe8;
}

.admin-notifications__heading small {
    color: #6c7f79;
}

.admin-notifications__list {
    display: grid;
    padding: 0.45rem;
}

.admin-notifications__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.6rem;
    color: #223d37;
    text-decoration: none;
}

.admin-notifications__list a:hover {
    background: #eef7f4;
}

.admin-notifications__list a strong {
    min-width: 1.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    color: #fff;
    background: #176655;
    text-align: center;
}

.admin-notifications__list p {
    margin: 0;
    padding: 0.8rem;
    color: #657873;
}

.admin-topbar__status {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    padding: 0.42rem 0.7rem;
    border: 1px solid #dce7e3;
    border-radius: 999px;
    color: #49635c;
    background: #f7faf9;
    font-size: 0.74rem;
    font-weight: 750;
}

.admin-price-schedule {
    grid-column: 1 / -1;
    padding: 0.8rem 1rem;
    border: 1px solid #dbe7e3;
    border-radius: 0.75rem;
    background: #f7faf9;
}

.admin-price-schedule summary {
    color: #1d6254;
    font-weight: 800;
    cursor: pointer;
}

.admin-price-schedule p {
    margin: 0.6rem 0;
    color: #647670;
}

.order-status-management {
    margin-block: 1rem 1.5rem;
}

.admin-order-detail {
    display: grid;
    gap: 1.25rem;
}

.admin-order-hero {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
    border: 1px solid #dce7e3;
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 100% 0, rgb(58 145 122 / 12%), transparent 42%),
        linear-gradient(145deg, #ffffff, #f7fbfa);
    box-shadow: 0 0.75rem 2rem rgb(20 67 57 / 7%);
}

.admin-order-hero__heading {
    min-width: 0;
}

.admin-order-hero__heading h1 {
    margin: 0.25rem 0 0;
    font-size: clamp(1.55rem, 3.2vw, 2.55rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.admin-order-hero__meta {
    margin: 0.75rem 0 0;
    color: #657873;
    font-size: 0.88rem;
}

.admin-order-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.order-state {
    min-width: 9.5rem;
    display: grid;
    gap: 0.12rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 0.85rem;
}

.order-state small {
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.76;
}

.order-state strong {
    font-size: 0.88rem;
}

.order-state--success {
    border-color: #b9ddd1;
    color: #175d4b;
    background: #eaf7f2;
}

.order-state--warning {
    border-color: #ecd5a3;
    color: #76521b;
    background: #fff8e8;
}

.order-state--info {
    border-color: #bad9e7;
    color: #245d76;
    background: #eef7fb;
}

.order-state--danger {
    border-color: #ebc5c2;
    color: #823b36;
    background: #fff2f1;
}

.admin-order-next {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid #d9e5e1;
    border-left: 0.3rem solid #287b68;
    border-radius: 0.9rem;
    background: #f8fbfa;
}

.admin-order-next__icon {
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #287b68;
    font-size: 1.15rem;
    font-weight: 900;
}

.admin-order-next small,
.admin-order-next strong {
    display: block;
}

.admin-order-next small {
    margin-bottom: 0.15rem;
    color: #657873;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-order-next--warning {
    border-left-color: #ba7b22;
    background: #fffbf1;
}

.admin-order-next--warning .admin-order-next__icon {
    background: #ba7b22;
}

.admin-order-next--danger {
    border-left-color: #b84d46;
    background: #fff6f5;
}

.admin-order-next--danger .admin-order-next__icon {
    background: #b84d46;
}

.order-journey {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 1rem 1.15rem;
    border: 1px solid #dfe8e5;
    border-radius: 1rem;
    background: #ffffff;
    list-style: none;
}

.order-journey li {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    color: #8a9894;
    text-align: center;
    font-size: 0.76rem;
}

.order-journey li::before {
    position: absolute;
    z-index: 0;
    top: 1rem;
    right: 50%;
    width: 100%;
    height: 0.16rem;
    content: "";
    background: #e1e9e7;
}

.order-journey li:first-child::before {
    display: none;
}

.order-journey li > span {
    z-index: 1;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 0.16rem solid #dfe8e5;
    border-radius: 50%;
    background: #ffffff;
    font-weight: 850;
}

.order-journey li.is-complete,
.order-journey li.is-current {
    color: #1d6656;
}

.order-journey li.is-complete::before,
.order-journey li.is-current::before {
    background: #72b5a5;
}

.order-journey li.is-complete > span {
    border-color: #2b806c;
    color: #ffffff;
    background: #2b806c;
}

.order-journey li.is-current > span {
    border-color: #2b806c;
    box-shadow: 0 0 0 0.28rem rgb(43 128 108 / 12%);
}

.admin-order-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(12rem, 0.65fr) minmax(0, 1.35fr);
    gap: 1rem;
}

.admin-order-summary-card {
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid #dfe8e5;
    border-radius: 0.95rem;
    background: #ffffff;
}

.admin-order-summary-card h2,
.admin-order-summary-card p {
    margin: 0;
}

.admin-order-summary-card h2 {
    margin-top: 0.25rem;
    font-size: 1.05rem;
}

.admin-order-summary-card h2 + p,
.admin-order-summary-card p + p {
    margin-top: 0.5rem;
    color: #63746f;
}

.admin-order-summary-card--total {
    background: linear-gradient(145deg, #f5faf8, #ffffff);
}

.admin-order-summary-card__amount {
    display: block;
    margin-top: 0.35rem;
    color: #145c4e;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.order-activity-mini,
.order-activity-timeline {
    display: grid;
    gap: 0;
    margin: 0.65rem 0 0;
    padding: 0;
    list-style: none;
}

.order-activity-mini li,
.order-activity-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    padding-bottom: 0.75rem;
}

.order-activity-mini li:last-child,
.order-activity-timeline li:last-child {
    padding-bottom: 0;
}

.order-activity-mini li > span,
.order-activity-timeline li > span {
    z-index: 1;
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.3rem;
    border: 0.14rem solid #ffffff;
    border-radius: 50%;
    background: #2c816d;
    box-shadow: 0 0 0 0.12rem #8fc5b8;
}

.order-activity-mini li:not(:last-child)::before,
.order-activity-timeline li:not(:last-child)::before {
    position: absolute;
    top: 0.8rem;
    bottom: 0;
    left: 0.29rem;
    width: 0.12rem;
    content: "";
    background: #d7e7e2;
}

.order-activity-mini strong,
.order-activity-mini small,
.order-activity-timeline strong,
.order-activity-timeline small {
    display: block;
}

.order-activity-mini strong,
.order-activity-timeline strong {
    font-size: 0.8rem;
}

.order-activity-mini small,
.order-activity-timeline small {
    margin-top: 0.15rem;
    color: #74837f;
}

.admin-order-lines,
.admin-order-history {
    margin: 0;
}

.admin-order-lines tbody td {
    vertical-align: middle;
}

.allocation-label {
    display: inline-flex;
    padding: 0.34rem 0.55rem;
    border-radius: 999px;
    color: #246452;
    background: #eaf6f1;
    font-size: 0.74rem;
    font-weight: 750;
    white-space: nowrap;
}

.allocation-label--warning {
    color: #77551e;
    background: #fff3d7;
}

.admin-order-section-title {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    padding-top: 0.5rem;
}

.admin-order-section-title h2,
.admin-order-section-title p {
    margin: 0;
}

.admin-order-section-title > p {
    color: #6a7a76;
    font-size: 0.84rem;
}

.admin-order-history .order-activity-timeline {
    margin-top: 1rem;
}

.order-status-actions {
    display: grid;
    gap: 0.8rem;
}

.order-status-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
    margin: 0;
    padding: 0.9rem;
    border: 1px solid #dce7e3;
    border-radius: 0.8rem;
    background: #f8fbfa;
}

.order-status-actions form label {
    flex: 1 1 14rem;
    margin: 0;
}

.order-status-actions .order-shipment-form {
    border-color: #afd4ca;
    background: #eff8f5;
}

.order-status-actions .danger-zone {
    border-color: #ebc3c3;
    background: #fff7f7;
}

@media (max-width: 68rem) {
    .admin-order-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-order-summary-card--activity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 46rem) {
    .admin-order-hero,
    .admin-order-section-title {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-order-hero__badges {
        justify-content: flex-start;
    }

    .order-state {
        flex: 1 1 9rem;
    }

    .order-journey {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .order-journey li {
        grid-template-columns: auto minmax(0, 1fr);
        justify-items: start;
        align-items: center;
        text-align: left;
    }

    .order-journey li::before {
        top: -0.7rem;
        bottom: auto;
        left: 0.92rem;
        width: 0.16rem;
        height: 0.75rem;
    }

    .admin-order-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-order-summary-card--activity {
        grid-column: auto;
    }
}

.admin-topbar__status > span {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: #2dad72;
    box-shadow: 0 0 0 0.2rem rgb(45 173 114 / 13%);
}

.admin-menu-toggle,
.admin-sidebar-backdrop {
    display: none;
}

.admin-page {
    width: min(100%, 100rem);
    margin-inline: auto;
    padding: clamp(1.35rem, 3vw, 2.6rem);
}

.admin-dashboard,
.admin-page-header > *,
.dashboard-section,
.dashboard-panel,
.metric-card {
    min-width: 0;
    max-width: 100%;
}

.admin-page > section > .eyebrow,
.admin-page .page-shell > .eyebrow {
    margin-bottom: 0.45rem;
}

.admin-page h1 {
    max-width: 32ch;
    color: #13201e;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.045em;
}

.admin-page h2 {
    color: #1b2b28;
    font-size: 1.18rem;
    letter-spacing: -0.018em;
}

.admin-page h3 {
    color: #273a36;
    font-size: 1rem;
}

.admin-page > section > h1 + p,
.admin-page .page-shell > h1 + p {
    max-width: 70rem;
    color: #657572;
}

.admin-page > section > section,
.admin-page .page-shell > section,
.admin-page > section > article,
.admin-page .auth-panel {
    margin-top: 1.25rem;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid #dfe7e5;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 0.4rem 1.5rem rgb(24 55 49 / 5%);
}

.admin-page form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    margin-block: 1rem;
    padding: 1.1rem;
    border: 1px solid #dfe7e5;
    border-radius: 0.8rem;
    background: #fbfcfc;
}

.admin-page form > input[type="hidden"] {
    display: none;
}

.admin-page form label {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
    color: #32443f;
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-page form label:has(input[type="checkbox"]),
.admin-page form label:has(input[type="radio"]),
.admin-page .form-check {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.7rem;
    border-radius: 0.55rem;
    background: #f1f5f4;
    font-weight: 600;
}

.admin-page input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.admin-page select,
.admin-page textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid #cddad7;
    border-radius: 0.52rem;
    color: #182522;
    background: #ffffff;
    font: inherit;
    font-weight: 500;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.admin-page textarea {
    min-height: 6rem;
    resize: vertical;
}

.admin-page input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus-visible,
.admin-page select:focus-visible,
.admin-page textarea:focus-visible {
    border-color: #287f6d;
    outline: 0.2rem solid #176354;
    outline-offset: 0.12rem;
    box-shadow: 0 0 0 0.2rem rgb(40 127 109 / 14%);
}

.admin-page input[type="checkbox"],
.admin-page input[type="radio"] {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    margin-top: 0.15rem;
    accent-color: #176354;
}

.admin-page button,
.admin-page .button,
.admin-page .button-link {
    width: fit-content;
    min-height: 2.65rem;
    padding: 0.58rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    color: #ffffff;
    background: #176354;
    box-shadow: 0 0.25rem 0.8rem rgb(23 99 84 / 15%);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 780;
    text-decoration: none;
    cursor: pointer;
}

.admin-page button:hover,
.admin-page .button:hover,
.admin-page .button-link:hover {
    color: #ffffff;
    background: #104c42;
}

.admin-page form > button,
.admin-page form > .button {
    grid-column: 1 / -1;
}

.admin-page .filter-form,
.admin-page .filter-grid,
.admin-page form[method="get"] {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    align-items: end;
    margin-top: 1.5rem;
    background: #ffffff;
}

.admin-page .filter-form > button,
.admin-page .filter-grid > button,
.admin-page form[method="get"] > button {
    grid-column: auto;
}

.admin-page .sensitive-action {
    border-color: #eadfc1;
    background: #fffdf8;
}

.admin-page .table-scroll {
    margin-top: 1.25rem;
    overflow: auto;
    border: 1px solid #dfe7e5;
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: 0 0.35rem 1.25rem rgb(24 55 49 / 4%);
}

.admin-page table {
    width: 100%;
    border-collapse: collapse;
    color: #273632;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
}

.admin-page th,
.admin-page td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #e7edeb;
    text-align: left;
    vertical-align: top;
}

.admin-page th {
    position: sticky;
    top: 0;
    color: #61716d;
    background: #f6f8f8;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-page tbody tr:last-child td {
    border-bottom: 0;
}

.admin-page tbody tr:hover td {
    background: #f8fbfa;
}

.admin-page td small {
    color: #73817e;
}

.pricing-settings__notice {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-left: 0.25rem solid #c58b24;
    border-radius: 0.6rem;
    color: #5b461d;
    background: #fff9ec;
}

.pricing-settings__notice--success {
    border-color: #2d9b70;
    color: #165d46;
    background: #edf9f4;
}

.pricing-settings__notice--error {
    border-color: #c94c4c;
    color: #7f2e2e;
    background: #fff2f2;
}

.pricing-settings__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.pricing-settings__metrics article {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dbe7e3;
    border-radius: 0.8rem;
    background: linear-gradient(145deg, #ffffff, #f4faf8);
    box-shadow: 0 0.35rem 1.2rem rgb(24 55 49 / 5%);
}

.pricing-settings__metrics strong,
.pricing-settings__metrics span {
    display: block;
}

.pricing-settings__metrics strong {
    color: #155d50;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    letter-spacing: -0.035em;
}

.pricing-settings__metrics span {
    margin-top: 0.18rem;
    color: #687b76;
    font-size: 0.78rem;
    font-weight: 700;
}

.pricing-settings__grid {
    display: grid;
    grid-template-columns: minmax(16rem, 0.72fr) minmax(25rem, 1.28fr);
    gap: 1rem;
    align-items: stretch;
}

.admin-page .pricing-settings__grid > section {
    margin-top: 1rem;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid #dfe7e5;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 0.4rem 1.5rem rgb(24 55 49 / 5%);
}

.admin-page .pricing-settings__active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0, rgb(255 232 167 / 42%), transparent 45%), linear-gradient(145deg, #0e5a4d, #174b43);
}

.admin-page .pricing-settings__active h2,
.admin-page .pricing-settings__active p,
.admin-page .pricing-settings__active .pricing-settings__kicker {
    color: #ffffff;
}

.pricing-settings__kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: #217361;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pricing-settings__percentage {
    margin: 1.1rem 0 0.15rem;
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 850;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.pricing-settings__percentage small {
    font-size: 0.42em;
}

.admin-page .pricing-settings__form {
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.pricing-settings__form label small {
    color: #75837f;
    font-weight: 500;
    line-height: 1.45;
}

.pricing-settings__reason {
    grid-column: 1 / -1;
}

.pricing-settings__section-heading {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
}

.pricing-settings__section-heading p {
    margin: 0;
    color: #71807c;
    font-size: 0.8rem;
}

.admin-page .pricing-settings__preview-form {
    min-width: 18rem;
    margin: 0;
}

.pricing-settings__state {
    display: inline-flex;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    color: #4c625d;
    background: #edf2f1;
    font-size: 0.72rem;
    font-weight: 800;
}

.pricing-settings__state--active {
    color: #155d46;
    background: #dff4e9;
}

.pricing-settings__state--draft {
    color: #765318;
    background: #fff1cd;
}

.pricing-settings__preview {
    border-color: #b9d9d0 !important;
    background: linear-gradient(145deg, #ffffff, #f3faf8) !important;
}

.admin-page .pricing-settings__confirm-form {
    margin-bottom: 0;
}

.pricing-settings__help {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem 1rem;
    align-items: baseline;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px dashed #cbdad6;
    border-radius: 0.8rem;
    color: #526660;
    background: #f8fbfa;
}

.pricing-settings__help p {
    margin: 0;
}

@media (max-width: 56rem) {
    .pricing-settings__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-settings__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 38rem) {
    .pricing-settings__metrics {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    .pricing-settings__metrics article {
        padding: 0.75rem;
    }

    .pricing-settings__section-heading,
    .pricing-settings__help {
        display: block;
    }

    .pricing-settings__section-heading p,
    .pricing-settings__help p {
        margin-top: 0.4rem;
    }
}

.admin-page td form {
    min-width: 16rem;
    grid-template-columns: 1fr;
    margin: 0 0 0.65rem;
    padding: 0.8rem;
}

.admin-page td form > button {
    grid-column: auto;
}

.admin-page .detail-list,
.admin-page dl:not(.counter-pos__totals):not(.courtesy-receipt__metadata):not(.courtesy-receipt__summary) {
    display: grid;
    grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
    margin-block: 1.25rem;
    overflow: hidden;
    border: 1px solid #dfe7e5;
    border-radius: 0.8rem;
    background: #ffffff;
}

.admin-page .detail-list dt,
.admin-page .detail-list dd,
.admin-page dl:not(.counter-pos__totals):not(.courtesy-receipt__metadata):not(.courtesy-receipt__summary) dt,
.admin-page dl:not(.counter-pos__totals):not(.courtesy-receipt__metadata):not(.courtesy-receipt__summary) dd {
    margin: 0;
    padding: 0.72rem 0.9rem;
    border-bottom: 1px solid #e7edeb;
}

.admin-page .detail-list dt,
.admin-page dl:not(.counter-pos__totals):not(.courtesy-receipt__metadata):not(.courtesy-receipt__summary) dt {
    color: #657570;
    background: #f6f8f8;
    font-size: 0.76rem;
    font-weight: 800;
}

.admin-page [role="status"],
.admin-page [role="alert"],
.admin-page .alert,
.admin-page .form-error {
    margin-block: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid #cce5dc;
    border-left: 0.25rem solid #26936f;
    border-radius: 0.55rem;
    color: #225e4c;
    background: #edf8f4;
}

.admin-page [role="alert"],
.admin-page .alert-error,
.admin-page .form-error {
    border-color: #f0d0cd;
    border-left-color: #c34b43;
    color: #87342f;
    background: #fff3f2;
}

.admin-page code {
    padding: 0.15rem 0.32rem;
    border-radius: 0.3rem;
    color: #31524a;
    background: #edf3f1;
    font-size: 0.78em;
    overflow-wrap: anywhere;
}

/* Processi pianificati e cron */
.admin-page .cron-dashboard > section,
.admin-page .cron-dashboard .cron-task,
.admin-page .cron-dashboard .cron-summary-card {
    margin-top: 0;
}

.cron-dashboard__header {
    align-items: center;
}

.cron-alert {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-block: 1rem 1.3rem;
    padding: 1rem 1.1rem;
    border: 1px solid #f0d5a7;
    border-left: 0.3rem solid #d49327;
    border-radius: 0.75rem;
    color: #684a18;
    background: #fff9ed;
}

.cron-alert--error {
    border-color: #efcac6;
    border-left-color: #c44c43;
    color: #7b332e;
    background: #fff4f3;
}

.cron-alert--success {
    border-color: #bfe1d5;
    border-left-color: #23846c;
    color: #155c4c;
    background: #effaf6;
}

.cron-alert__icon {
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #d49327;
    font-weight: 900;
}

.cron-alert--error .cron-alert__icon {
    background: #c44c43;
}

.cron-alert--success .cron-alert__icon {
    background: #23846c;
}

.cron-alert strong {
    display: block;
    color: inherit;
}

.cron-alert p {
    margin: 0.2rem 0 0.45rem;
}

.cron-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-block: 1.2rem 1.4rem;
}

.cron-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #dce7e3;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 0.35rem 1.1rem rgb(24 55 49 / 4%);
}

.cron-summary-card span {
    color: #697974;
    font-size: 0.78rem;
    font-weight: 760;
}

.cron-summary-card strong {
    font-size: 1.65rem;
    font-variant-numeric: tabular-nums;
}

.cron-summary-card--healthy strong { color: #18735e; }
.cron-summary-card--warning strong { color: #a46a0d; }
.cron-summary-card--error strong { color: #af4039; }
.cron-summary-card--neutral strong { color: #657570; }

.admin-page .cron-onboarding {
    display: grid;
    grid-template-columns: minmax(14rem, 0.32fr) minmax(0, 1fr);
    gap: 1.3rem 2rem;
    margin-bottom: 1.5rem;
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    border-color: #cfe3dc;
    background: linear-gradient(135deg, #f5fbf8, #fff);
}

.cron-onboarding__intro p:last-child {
    color: #687873;
}

.cron-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cron-steps li {
    display: flex;
    gap: 0.7rem;
    padding: 0.8rem;
    border: 1px solid #dce9e5;
    border-radius: 0.65rem;
    background: rgb(255 255 255 / 76%);
}

.cron-steps li > span {
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.45rem;
    color: #fff;
    background: #176354;
    font-size: 0.75rem;
    font-weight: 850;
}

.cron-steps p {
    margin: 0.15rem 0 0;
    color: #6c7d78;
    font-size: 0.78rem;
}

.admin-page .cron-runtime {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.admin-page .cron-runtime > div {
    min-width: 0;
    padding: 0.8rem;
}

.admin-page .cron-runtime dt,
.admin-page .cron-runtime dd {
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-page .cron-runtime dd {
    margin-top: 0.35rem;
}

.cron-onboarding__note {
    grid-column: 1 / -1;
    margin: 0;
    color: #5f706b;
    font-size: 0.82rem;
}

.admin-page .cron-task-group {
    margin-top: 1.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.cron-task-group__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 0 0 0.65rem;
}

.cron-task-group__heading .eyebrow,
.cron-task-group__heading h2 {
    margin: 0;
}

.cron-task-list {
    display: grid;
    gap: 0.8rem;
}

.admin-page .cron-task {
    overflow: hidden;
    padding: 0;
    border-left: 0.28rem solid #aab8b4;
}

.admin-page .cron-task--healthy,
.admin-page .cron-task--running { border-left-color: #239071; }
.admin-page .cron-task--warning { border-left-color: #d49327; }
.admin-page .cron-task--error { border-left-color: #c44c43; }
.admin-page .cron-task--conditional { border-left-color: #798b86; }

.cron-task__main {
    padding: 1rem 1.1rem;
}

.cron-task__title-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.cron-task__title-row h3 {
    margin: 0.28rem 0 0;
    font-size: 1.08rem;
}

.cron-importance {
    display: inline-flex;
    padding: 0.2rem 0.42rem;
    border-radius: 99rem;
    color: #176354;
    background: #e9f5f1;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cron-importance--conditional { color: #667570; background: #eef2f1; }
.cron-importance--recommended { color: #765313; background: #fff4dc; }

.cron-status {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border-radius: 99rem;
    color: #62736e;
    background: #f0f4f3;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.cron-status i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentcolor;
}

.cron-status--healthy,
.cron-status--running { color: #17725c; background: #eaf7f2; }
.cron-status--warning { color: #9a650f; background: #fff5df; }
.cron-status--error { color: #ad4038; background: #fff0ef; }

.cron-task__main > p {
    margin: 0.55rem 0 0;
    color: #5f706b;
}

.cron-task__main .cron-task__detail {
    margin-top: 0.2rem;
    color: #7b8985;
    font-size: 0.78rem;
}

.cron-task__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.cron-task__facts > div {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem;
    border-radius: 0.55rem;
    background: #f7f9f8;
}

.cron-task__facts span,
.cron-task__facts small {
    color: #73817d;
    font-size: 0.68rem;
}

.cron-task__facts code {
    width: fit-content;
}

.cron-task__setup {
    border-top: 1px solid #e3eae8;
    background: #fafcfc;
}

.cron-task__setup summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.1rem;
    color: #31534b;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.cron-task__setup summary::-webkit-details-marker { display: none; }
.cron-task__setup[open] summary span { transform: rotate(45deg); }

.cron-command-block {
    margin: 0 1.1rem 0.8rem;
    overflow: hidden;
    border: 1px solid #dbe5e2;
    border-radius: 0.55rem;
    background: #fff;
}

.cron-command-block > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid #e6ecea;
    color: #71807c;
    font-size: 0.7rem;
    font-weight: 800;
}

.admin-page .cron-command-block button {
    min-height: auto;
    padding: 0.28rem 0.5rem;
    font-size: 0.68rem;
    box-shadow: none;
}

.admin-page .cron-command-block button.is-copied { background: #23846c; }

.cron-command-block > code {
    display: block;
    padding: 0.7rem;
    border-radius: 0;
    color: #dcece7;
    background: #18332d;
    font-size: 0.75rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.cron-task__warning {
    margin: 0.8rem 1.1rem;
    color: #885c15;
    font-size: 0.78rem;
}

.admin-page .cron-help {
    display: grid;
    grid-template-columns: minmax(13rem, 0.32fr) minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    background: #153f36;
}

.cron-help h2,
.cron-help .eyebrow,
.cron-help li { color: #fff; }
.cron-help ul { margin: 0; padding-left: 1.2rem; }
.cron-help li + li { margin-top: 0.45rem; }

@media (max-width: 70rem) {
    .cron-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-page .cron-onboarding { grid-template-columns: 1fr; }
    .cron-steps,
    .admin-page .cron-runtime { grid-template-columns: 1fr 1fr; }
    .cron-onboarding__note,
    .admin-page .cron-runtime { grid-column: 1; }
}

@media (max-width: 44rem) {
    .cron-summary,
    .cron-steps,
    .admin-page .cron-runtime,
    .cron-task__facts,
    .admin-page .cron-help { grid-template-columns: 1fr; }
    .cron-task__title-row { display: grid; }
    .cron-status { white-space: normal; }
}

/* Aggiornamento database guidato */
.migration-dashboard__header {
    align-items: center;
}

.migration-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.migration-summary article {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid #dce7e3;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 0.35rem 1.1rem rgb(24 55 49 / 4%);
}

.migration-summary span {
    color: #72817c;
    font-size: 0.72rem;
    font-weight: 780;
}

.migration-summary strong {
    color: #294840;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.migration-summary .migration-summary--attention {
    border-color: #ebcd96;
    background: #fff9ed;
}

.migration-summary .migration-summary--attention strong { color: #9a650f; }
.migration-summary .migration-summary--ready strong { color: #17725c; }

.admin-page .migration-ready,
.admin-page .migration-panel {
    margin-top: 0;
}

.admin-page .migration-ready {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: clamp(1.2rem, 3vw, 2rem);
    border-color: #c6e3d9;
    background: linear-gradient(135deg, #effaf6, #fff);
}

.migration-ready > span {
    width: 3rem;
    height: 3rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #23846c;
    font-size: 1.35rem;
    font-weight: 900;
}

.migration-ready h2,
.migration-ready p { margin: 0; }

.migration-ready p:last-child {
    margin-top: 0.3rem;
    color: #687873;
}

.admin-page .migration-panel {
    overflow: hidden;
    padding: 0;
}

.migration-panel__heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid #e0e9e6;
    background: #f7faf9;
}

.migration-panel__heading h2,
.migration-panel__heading p { margin: 0; }

.migration-panel__heading > span {
    padding: 0.35rem 0.6rem;
    border-radius: 99rem;
    color: #865a13;
    background: #fff0d2;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.migration-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 1.1rem 1.2rem;
    list-style: none;
}

.migration-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem;
    border: 1px solid #e0e8e5;
    border-radius: 0.65rem;
    background: #fff;
}

.migration-list li > span {
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.45rem;
    color: #fff;
    background: #176354;
    font-size: 0.72rem;
    font-weight: 850;
}

.migration-list p {
    margin: 0.2rem 0 0;
    color: #6f7e7a;
    font-size: 0.78rem;
}

.admin-page .migration-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin: 0;
    padding: 1.2rem;
    border: 0;
    border-top: 1px solid #e0e9e6;
    border-radius: 0;
    background: #f7faf9;
    box-shadow: none;
}

.migration-form textarea {
    min-height: 6rem;
}

.migration-confirmation {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.85rem;
    border: 1px solid #dce6e3;
    border-radius: 0.6rem;
    color: #435b55;
    background: #fff;
    font-size: 0.8rem;
    cursor: pointer;
}

.migration-confirmation input {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    margin-top: 0.08rem;
}

.admin-page .migration-submit {
    width: fit-content;
    margin-top: 0.25rem;
}

.migration-form > p {
    margin: 0;
    color: #71807c;
    font-size: 0.72rem;
}

@media (max-width: 58rem) {
    .migration-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 36rem) {
    .migration-summary { grid-template-columns: 1fr; }
    .migration-panel__heading { align-items: flex-start; flex-direction: column; }
    .admin-page .migration-submit { width: 100%; }
}

/* Dashboard */
.admin-page-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.7rem;
}

.admin-page-header .eyebrow {
    margin-bottom: 0.45rem;
}

.admin-page-header__lead {
    max-width: 45rem;
    margin: 0.65rem 0 0;
    color: #687874;
    overflow-wrap: anywhere;
}

.admin-user-card {
    min-width: 15rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem 0.95rem;
    border: 1px solid #dfe7e5;
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: 0 0.35rem 1.2rem rgb(24 55 49 / 5%);
}

.admin-user-card__avatar {
    width: 2.55rem;
    height: 2.55rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.7rem;
    color: #ffffff;
    background: linear-gradient(145deg, #237a68, #145347);
    font-weight: 850;
}

.admin-user-card > span:last-child {
    min-width: 0;
    display: grid;
    line-height: 1.25;
}

.admin-user-card small,
.admin-user-card em {
    color: #788682;
    font-size: 0.7rem;
    font-style: normal;
}

.admin-user-card strong {
    max-width: 15rem;
    overflow: hidden;
    font-size: 0.8rem;
    text-overflow: ellipsis;
}

.admin-user-card em {
    width: fit-content;
    margin-top: 0.2rem;
    padding: 0.13rem 0.4rem;
    border-radius: 999px;
    color: #236a58;
    background: #eaf5f1;
    font-weight: 750;
}

.admin-dashboard .dashboard-section,
.admin-dashboard .dashboard-panel {
    margin-top: 1.2rem;
    padding: 1.2rem;
    border: 1px solid #dfe7e5;
    border-radius: 0.95rem;
    background: #ffffff;
    box-shadow: 0 0.45rem 1.5rem rgb(24 55 49 / 5%);
}

.dashboard-section__heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dashboard-section__heading h2,
.dashboard-section__kicker {
    margin: 0;
}

.dashboard-section__kicker {
    color: #72817e;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-section__link {
    color: #176354;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

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

.metric-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.1rem 0.5rem;
    padding: 1rem;
    border: 1px solid #e2e9e7;
    border-radius: 0.8rem;
    color: #283834;
    background: #fbfcfc;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.metric-card:hover {
    border-color: #cddbd7;
    color: #172622;
    box-shadow: 0 0.65rem 1.5rem rgb(28 65 57 / 9%);
    transform: translateY(-0.15rem);
}

.metric-card__icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    grid-column: 2;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 0.55rem;
    font-size: 0.85rem;
    font-weight: 900;
}

.metric-card__value {
    color: #12201d;
    font-size: 1.9rem;
    font-weight: 850;
    letter-spacing: -0.055em;
    line-height: 1;
}

.metric-card__label {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 750;
}

.metric-card__hint {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    color: #7b8986;
    font-size: 0.68rem;
}

.metric-card--amber .metric-card__icon { color: #8a5b00; background: #fff1cc; }
.metric-card--blue .metric-card__icon { color: #276496; background: #e5f2fc; }
.metric-card--violet .metric-card__icon { color: #704b9c; background: #f0e9fa; }
.metric-card--green .metric-card__icon { color: #217052; background: #e4f5ed; }

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.75fr);
    gap: 1.2rem;
}

.attention-list {
    display: grid;
}

.attention-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.72rem 0.2rem;
    border-bottom: 1px solid #edf1f0;
    color: #263632;
    text-decoration: none;
}

.attention-list a:last-child {
    border-bottom: 0;
}

.attention-list a:hover strong {
    color: #176354;
}

.attention-list__icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 0.55rem;
    font-size: 0.78rem;
    font-weight: 900;
}

.attention-list__icon--amber { color: #8a5b00; background: #fff1cc; }
.attention-list__icon--red { color: #a0443d; background: #fdebea; }
.attention-list__icon--blue { color: #276496; background: #e5f2fc; }
.attention-list__icon--violet { color: #704b9c; background: #f0e9fa; }
.attention-list__icon--green { color: #217052; background: #e4f5ed; }

.attention-list a > span:nth-child(2) {
    min-width: 0;
    display: grid;
}

.attention-list strong {
    font-size: 0.82rem;
}

.attention-list small {
    overflow: hidden;
    color: #7a8885;
    font-size: 0.69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attention-list b {
    min-width: 1.9rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    color: #31433e;
    background: #f0f4f3;
    font-size: 0.75rem;
    text-align: center;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.quick-actions a {
    min-width: 0;
    display: grid;
    padding: 0.8rem;
    border: 1px solid #e1e9e7;
    border-radius: 0.7rem;
    color: #2a3b37;
    background: #fbfcfc;
    text-decoration: none;
}

.quick-actions a:hover {
    border-color: #bdd5ce;
    color: #176354;
    background: #f6fbf9;
}

.quick-actions a > span {
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.55rem;
    border-radius: 0.5rem;
    color: #176354;
    background: #e9f5f1;
    font-weight: 850;
}

.quick-actions strong {
    font-size: 0.78rem;
}

.quick-actions small {
    color: #7a8885;
    font-size: 0.66rem;
}

.session-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e7edeb;
}

.session-actions > div:first-child {
    display: grid;
}

.session-actions strong {
    font-size: 0.76rem;
}

.session-actions small {
    color: #75837f;
    font-size: 0.65rem;
}

.session-actions__buttons {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.admin-page .session-actions form {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.session-actions__buttons a,
.admin-page .session-actions button {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.35rem 0.6rem;
    border: 1px solid #d9e3e0;
    border-radius: 0.45rem;
    color: #405550;
    background: #ffffff;
    box-shadow: none;
    font-size: 0.68rem;
    font-weight: 750;
    text-decoration: none;
}

.admin-page .session-actions button:hover,
.session-actions__buttons a:hover {
    color: #174f45;
    background: #f3f7f6;
}

/* Keep the POS dense and purpose-built inside the administration shell. */
.admin-page .counter-pos {
    width: 100%;
}

.admin-page .counter-pos__confirmation form,
.admin-page .counter-pos form {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

@media (max-width: 82rem) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 67.99rem) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        width: min(86vw, 18rem);
        position: fixed;
        inset: 0 auto 0 0;
        transform: translateX(-105%);
        transition: transform 180ms ease;
    }

    .admin-shell--menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-menu-toggle {
        min-height: 2.5rem;
        display: inline-flex;
        gap: 0.55rem;
        align-items: center;
        padding: 0.5rem 0.65rem;
        border: 1px solid #dce5e3;
        border-radius: 0.55rem;
        color: #2d433e;
        background: #ffffff;
        font: inherit;
        font-size: 0.78rem;
        font-weight: 750;
        cursor: pointer;
    }

    .admin-menu-toggle__icon {
        width: 1rem;
        display: grid;
        gap: 0.18rem;
    }

    .admin-menu-toggle__icon span {
        height: 0.1rem;
        display: block;
        border-radius: 1rem;
        background: currentColor;
    }

    .admin-sidebar-backdrop {
        z-index: 35;
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        visibility: hidden;
        opacity: 0;
        background: rgb(5 23 20 / 54%);
        backdrop-filter: blur(0.15rem);
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .admin-shell--menu-open .admin-sidebar-backdrop {
        visibility: visible;
        opacity: 1;
    }

    .admin-sidebar {
        z-index: 40;
    }
}

@media (max-width: 44rem) {
    .admin-topbar {
        min-height: 4rem;
    }

    .admin-topbar__status {
        width: 0.7rem;
        height: 0.7rem;
        padding: 0;
        overflow: hidden;
        border: 0;
        background: transparent;
    }

    .admin-topbar__status > span {
        flex: 0 0 auto;
    }

    .admin-topbar__logout {
        display: none;
    }

    .admin-notifications__panel {
        right: -2.5rem;
    }

    .admin-page {
        padding: 1.1rem 0.85rem 2rem;
    }

    .admin-page-header {
        display: grid;
    }

    .admin-user-card {
        width: 100%;
        min-width: 0;
    }

    .admin-page form,
    .admin-page .filter-form,
    .admin-page .filter-grid,
    .admin-page form[method="get"] {
        grid-template-columns: 1fr;
    }

    .admin-page .filter-form > button,
    .admin-page .filter-grid > button,
    .admin-page form[method="get"] > button {
        grid-column: 1;
    }

    .admin-page .detail-list,
    .admin-page dl:not(.counter-pos__totals):not(.courtesy-receipt__metadata):not(.courtesy-receipt__summary) {
        grid-template-columns: 1fr;
    }

    .admin-page .detail-list dt,
    .admin-page dl:not(.counter-pos__totals):not(.courtesy-receipt__metadata):not(.courtesy-receipt__summary) dt {
        border-bottom: 0;
    }

    .summary-grid,
    .quick-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-section__heading,
    .session-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .attention-list small {
        white-space: normal;
    }
}

@media print {
    .admin-sidebar,
    .admin-topbar,
    .admin-sidebar-backdrop {
        display: none !important;
    }

    .admin-shell {
        display: block;
    }

    .admin-page {
        width: 100%;
        padding: 0;
    }
}

/* Public home — commercial presentation with technical provenance on demand. */
body.home-page {
    overflow-x: hidden;
    background: #f7faf8;
}

.home-page .site-header {
    z-index: 20;
    position: relative;
    border-bottom-color: rgb(20 72 62 / 10%);
    background: rgb(247 250 248 / 88%);
}

.home-page .site-header__content {
    min-height: 5.25rem;
}

.home-page .brand__mark,
.site-footer .brand__mark {
    border-radius: 0.8rem 0.8rem 0.8rem 0.25rem;
    background: linear-gradient(145deg, #1d6c5c, #0d4238);
    box-shadow: 0 0.45rem 1rem rgb(13 66 56 / 18%);
}

.home-main {
    flex: 1;
}

.home-hero,
.home-benefits,
.home-journey,
.home-attribution,
.home-final-cta {
    width: min(100% - 2rem, 76rem);
    margin-inline: auto;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: center;
    position: relative;
    padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.home-hero::before {
    width: 31rem;
    height: 31rem;
    content: "";
    position: absolute;
    z-index: -1;
    top: -9rem;
    right: -14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(234 187 75 / 22%), rgb(234 187 75 / 0%) 68%);
}

.home-kicker {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin: 0 0 1rem;
    color: #1b6d5b;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-kicker > span:empty {
    width: 1.5rem;
    height: 0.14rem;
    border-radius: 1rem;
    background: #e3ad34;
}

.home-hero h1 {
    max-width: 12ch;
    color: #11221e;
    font-size: clamp(3.1rem, 7.2vw, 6.25rem);
    letter-spacing: -0.07em;
    line-height: 0.96;
}

.home-hero h1 em {
    color: #1b6d5b;
    font-style: normal;
}

.home-hero__lead {
    max-width: 36rem;
    margin: 1.65rem 0 0;
    color: #566762;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.7;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 2rem;
}

.home-button {
    min-height: 3.2rem;
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-weight: 780;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.home-button:hover {
    transform: translateY(-0.12rem);
}

.home-button--primary {
    color: #ffffff;
    background: linear-gradient(145deg, #1d6f5e, #0f4a3f);
    box-shadow: 0 0.75rem 1.5rem rgb(20 91 76 / 20%);
}

.home-button--primary:hover {
    color: #ffffff;
    background: linear-gradient(145deg, #237d69, #123e36);
    box-shadow: 0 0.9rem 1.8rem rgb(20 91 76 / 26%);
}

.home-button--secondary {
    border-color: #ccdad5;
    color: #24443c;
    background: rgb(255 255 255 / 72%);
}

.home-button--secondary:hover {
    border-color: #9ebbb3;
    color: #123f36;
    background: #ffffff;
}

.home-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    color: #677772;
    font-size: 0.82rem;
    font-weight: 650;
    list-style: none;
}

.home-trust-list li {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.home-trust-list span {
    width: 1.15rem;
    height: 1.15rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #2c8b73;
    font-size: 0.65rem;
}

.home-hero__visual {
    position: relative;
}

.home-hero__visual::before,
.home-hero__visual::after {
    content: "";
    position: absolute;
    border-radius: 1.4rem;
    transform: rotate(-7deg);
}

.home-hero__visual::before {
    inset: 1.2rem -1.15rem -1.1rem 1.3rem;
    background: #e5b94e;
}

.home-hero__visual::after {
    inset: -1rem 1.6rem 1.2rem -1rem;
    z-index: -1;
    border: 1px solid #bdd4cd;
    background: #e8f2ef;
    transform: rotate(6deg);
}

.home-showcase {
    min-height: 31rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 1.35rem;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 1.4rem;
    background:
        linear-gradient(160deg, rgb(255 255 255 / 96%), rgb(242 248 245 / 96%));
    box-shadow: 0 1.8rem 4rem rgb(20 67 57 / 18%);
}

.home-showcase__header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.home-showcase__badge {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: #315d53;
    background: #e9f3ef;
    font-size: 0.72rem;
    font-weight: 780;
}

.home-showcase__check {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #1f765f;
    box-shadow: 0 0.45rem 1rem rgb(31 118 95 / 22%);
    font-weight: 900;
}

.home-showcase__illustration {
    min-height: 17rem;
    display: grid;
    place-items: center;
    position: relative;
    margin-top: 1.2rem;
    overflow: hidden;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 50% 42%, rgb(255 255 255 / 65%), transparent 38%),
        linear-gradient(145deg, #dceee8, #f2e4bd);
}

.home-book {
    width: 11.5rem;
    height: 2.8rem;
    position: absolute;
    left: 50%;
    border-radius: 0.35rem 0.7rem 0.7rem 0.35rem;
    box-shadow: 0 0.65rem 1.2rem rgb(35 70 61 / 16%);
    transform-origin: center;
}

.home-book::before {
    width: calc(100% - 0.8rem);
    height: 0.32rem;
    content: "";
    position: absolute;
    right: 0.2rem;
    bottom: 0.28rem;
    border-radius: 0.2rem;
    background: rgb(255 255 255 / 74%);
}

.home-book--one {
    top: 4.6rem;
    background: #1f715f;
    transform: translateX(-48%) rotate(7deg);
}

.home-book--two {
    top: 8rem;
    background: #e0a92d;
    transform: translateX(-55%) rotate(-5deg);
}

.home-book--three {
    top: 11.4rem;
    background: #ee775f;
    transform: translateX(-47%) rotate(3deg);
}

.home-pencil {
    width: 10rem;
    height: 0.72rem;
    position: absolute;
    top: 5.5rem;
    right: -1.6rem;
    border-radius: 1rem 0.2rem 0.2rem 1rem;
    background: linear-gradient(90deg, #f3c34b 0 82%, #d09d2a 82% 88%, #f4d8cf 88%);
    box-shadow: 0 0.4rem 0.8rem rgb(80 62 19 / 14%);
    transform: rotate(-55deg);
}

.home-showcase__copy {
    display: grid;
    gap: 0.2rem;
    margin-top: 1.15rem;
}

.home-showcase__copy strong {
    color: #17362f;
    font-size: 1.05rem;
}

.home-showcase__copy span {
    color: #6b7b76;
    font-size: 0.82rem;
}

.home-showcase__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1rem;
}

.home-showcase__tags span {
    padding: 0.42rem 0.65rem;
    border: 1px solid #dbe7e3;
    border-radius: 999px;
    color: #526761;
    background: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

.home-benefits {
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.home-products {
    width: min(100% - 2.5rem, 76rem);
    margin-inline: auto;
    padding-block: clamp(3.5rem, 7vw, 6rem) 1rem;
}

.home-products__heading {
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.home-products__heading > div {
    max-width: 44rem;
}

.home-products__heading h2 {
    margin: 0;
    color: #132822;
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.home-products__heading p:last-child {
    margin: 1rem 0 0;
    color: #667772;
}

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

.home-product-card {
    overflow: hidden;
    border: 1px solid #dce6e2;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgb(21 61 52 / 6%);
}

.home-product-card__media {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #1d6d5b;
    background: #edf6f2;
    font-size: 2.5rem;
    text-decoration: none;
}

.home-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-product-card__content {
    padding: 1.15rem;
}

.home-product-card__content h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.home-product-card__content h3 a {
    color: #183b33;
    text-decoration: none;
}

.home-product-card__content p {
    margin: 0 0 1rem;
    color: #667772;
}

.home-product-card__content p strong {
    color: #17362f;
    font-size: 1.15rem;
}

.home-product-card__content > a {
    color: #176250;
    font-weight: 750;
}

.home-section-heading {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
}

.home-section-heading .home-kicker {
    justify-content: center;
}

.home-section-heading h2,
.home-journey h2,
.home-final-cta h2 {
    margin: 0;
    color: #132822;
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.home-section-heading > p:last-child,
.home-journey__intro > p {
    margin: 1rem 0 0;
    color: #667772;
    font-size: 1.02rem;
}

.home-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.home-benefit-card {
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid #dce6e2;
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 1rem 2.5rem rgb(21 61 52 / 6%);
}

.home-benefit-card--accent {
    border-color: #cfe2dc;
    background: linear-gradient(155deg, #eef8f4, #ffffff 68%);
    transform: translateY(-0.75rem);
}

.home-benefit-card__icon {
    width: 3.1rem;
    height: 3.1rem;
    display: grid;
    place-items: center;
    border-radius: 0.9rem;
    color: #1d6d5b;
    background: #e7f2ee;
}

.home-benefit-card__icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: currentColor;
}

.home-benefit-card h3 {
    margin: auto 0 0.75rem;
    color: #1a302a;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.home-benefit-card p {
    margin: 0;
    color: #687873;
}

.home-journey {
    display: grid;
    grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(2rem, 5vw, 4.5rem);
    border-radius: 1.6rem;
    color: #e8f3f0;
    background:
        radial-gradient(circle at 94% 6%, rgb(86 164 143 / 32%), transparent 20rem),
        linear-gradient(145deg, #174f45, #0b332d);
    box-shadow: 0 1.5rem 3.5rem rgb(18 64 54 / 14%);
}

.home-journey .home-kicker {
    color: #86d8c1;
}

.home-journey h2 {
    color: #ffffff;
}

.home-journey__intro > p {
    color: #b8cec8;
}

.home-journey__intro > a {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    margin-top: 1.5rem;
    color: #ffffff;
    font-weight: 780;
    text-decoration-color: rgb(255 255 255 / 45%);
}

.home-journey__steps {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-journey__steps li {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 1rem;
    position: relative;
    padding: 0.45rem 0 1.55rem;
}

.home-journey__steps li:not(:last-child)::before {
    width: 1px;
    content: "";
    position: absolute;
    top: 2.75rem;
    bottom: 0.1rem;
    left: 1.55rem;
    background: rgb(255 255 255 / 19%);
}

.home-journey__steps li > span {
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 50%;
    color: #f4ca63;
    background: rgb(255 255 255 / 8%);
    font-size: 0.72rem;
    font-weight: 850;
}

.home-journey__steps strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
}

.home-journey__steps p {
    margin: 0.3rem 0 0;
    color: #afc8c1;
    font-size: 0.88rem;
}

.home-attribution {
    margin-block: clamp(4rem, 8vw, 7rem);
    overflow: hidden;
    border: 1px solid #dbe7e3;
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: 0 0.8rem 2.4rem rgb(25 65 56 / 6%);
}

.home-attribution__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.home-attribution__summary .home-kicker {
    margin-bottom: 0.35rem;
}

.home-attribution__summary h2 {
    margin: 0;
    color: #17332c;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    letter-spacing: -0.035em;
}

.home-attribution__summary p:last-child {
    margin: 0.45rem 0 0;
    color: #64746f;
}

.home-attribution__icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #24775f;
    box-shadow: 0 0.5rem 1.2rem rgb(36 119 95 / 20%);
    font-weight: 900;
}

.home-attribution__details {
    border-top: 1px solid #e3ebe8;
}

.home-attribution__details summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1.25rem, 3vw, 2rem);
    color: #39564e;
    background: #f8faf9;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 760;
    list-style: none;
}

.home-attribution__details summary::-webkit-details-marker {
    display: none;
}

.home-attribution__details summary span {
    font-size: 1.2rem;
    transition: transform 160ms ease;
}

.home-attribution__details[open] summary span {
    transform: rotate(45deg);
}

.home-attribution__technical {
    padding: clamp(1.25rem, 3vw, 2rem);
    color: #62716d;
    font-size: 0.84rem;
}

.home-attribution__technical h3 {
    margin: 0;
    color: #213e36;
    font-size: 1rem;
}

.home-attribution__technical ul {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.home-attribution__technical li {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border: 1px solid #e4ebe9;
    border-radius: 0.65rem;
    background: #fbfcfc;
}

.home-attribution__technical small {
    overflow-wrap: anywhere;
}

.home-attribution__notice {
    margin-bottom: 0;
    padding: 0.8rem;
    border-left: 0.2rem solid #d2a332;
    background: #fff9e9;
}

.home-final-cta {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(4rem, 8vw, 7rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 1.4rem;
    background: linear-gradient(135deg, #e6b441, #f2cb6d);
    box-shadow: 0 1rem 2.5rem rgb(135 99 18 / 13%);
}

.home-final-cta .home-kicker {
    color: #674b08;
}

.home-final-cta h2 {
    max-width: 18ch;
}

.home-button--light {
    flex: 0 0 auto;
    color: #17483d;
    background: #ffffff;
    box-shadow: 0 0.6rem 1.3rem rgb(83 63 17 / 13%);
}

.home-button--light:hover {
    color: #0d382f;
    background: #f8fbfa;
}

.site-footer {
    padding-block: 2rem;
    border-top-color: #dce5e2;
    background: #ffffff;
}

.site-footer__inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.site-footer__brand {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.site-footer__logo {
    width: 11rem;
    height: auto;
    display: block;
}

.site-footer__brand .brand__mark {
    width: 2.15rem;
    height: 2.15rem;
}

.site-footer__brand > span:last-child {
    display: grid;
    line-height: 1.25;
}

.site-footer__brand strong {
    color: #243a34;
    font-size: 0.86rem;
}

.site-footer__brand small {
    color: #7b8985;
    font-size: 0.7rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.25rem;
    align-items: center;
    justify-content: flex-end;
}

.site-footer__links a {
    color: #61716c;
    font-size: 0.75rem;
    font-weight: 650;
    text-decoration: none;
}

.site-footer__links a:hover {
    color: #174f45;
}

.site-footer__credit strong,
.admin-footer strong,
.admin-auth-footer__links strong {
    color: #174f45;
}

.admin-workspace {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-page {
    flex: 1;
}

.admin-footer {
    width: min(100%, 100rem);
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-inline: auto;
    padding: 1rem clamp(1.35rem, 3vw, 2.6rem) 1.5rem;
    color: #82908d;
    font-size: 0.68rem;
}

.admin-footer a {
    color: #667a74;
    font-weight: 650;
    text-decoration: none;
}

.admin-footer a:hover {
    color: #174f45;
}

.admin-auth-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

@media (max-width: 68rem) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.82fr);
        gap: 2.5rem;
    }

    .home-showcase {
        min-height: 28rem;
    }
}

@media (max-width: 52rem) {
    .home-hero {
        grid-template-columns: 1fr;
        padding-top: 4rem;
    }

    .home-hero__content {
        text-align: center;
    }

    .home-hero__content .home-kicker,
    .home-actions,
    .home-trust-list {
        justify-content: center;
    }

    .home-hero h1,
    .home-hero__lead {
        margin-inline: auto;
    }

    .home-hero__visual {
        width: min(100% - 1.5rem, 28rem);
        margin: 1rem auto 0;
    }

    .home-benefits__grid {
        grid-template-columns: 1fr;
    }

    .home-products__heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .home-benefit-card {
        min-height: auto;
    }

    .home-benefit-card--accent {
        transform: none;
    }

    .home-benefit-card h3 {
        margin-top: 2.5rem;
    }

    .home-journey {
        grid-template-columns: 1fr;
    }

    .home-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 38rem) {
    .home-hero,
    .home-products,
    .home-benefits,
    .home-journey,
    .home-attribution,
    .home-final-cta {
        width: min(100% - 1.25rem, 76rem);
    }

    .home-hero h1 {
        font-size: clamp(2.85rem, 15vw, 4.2rem);
    }

    .home-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-button {
        width: 100%;
    }

    .home-trust-list {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-products__grid {
        grid-template-columns: 1fr;
    }

    .home-showcase {
        min-height: 27rem;
        padding: 1rem;
    }

    .home-showcase__badge {
        font-size: 0.65rem;
    }

    .home-journey {
        padding: 1.5rem 1.15rem;
        border-radius: 1rem;
    }

    .home-attribution__summary {
        grid-template-columns: 1fr;
    }

    .site-footer__inner,
    .admin-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__links,
    .admin-auth-footer__links {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
    }
}

@media print {
    .admin-footer {
        display: none !important;
    }
}

/* Customer application — storefront, account and order experience. */
body.customer-area {
    min-height: 100vh;
    color: #182321;
    background:
        radial-gradient(circle at 94% 3%, rgb(234 218 170 / 26%), transparent 24rem),
        linear-gradient(180deg, #f7faf9 0, #f3f7f6 34rem, #eef4f2 100%);
}

.customer-header {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid rgb(29 84 73 / 10%);
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 0.4rem 1.6rem rgb(22 61 54 / 5%);
    backdrop-filter: blur(1rem);
}

.customer-header__inner {
    width: min(100% - 3rem, 76rem);
    min-height: 5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-inline: auto;
}

.customer-brand {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    color: #162522;
    text-decoration: none;
}

.customer-brand__logo {
    width: clamp(10rem, 14vw, 12rem);
    height: auto;
    display: block;
}

.customer-brand__mark {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.85rem 0.85rem 0.85rem 0.25rem;
    color: #fff;
    background: linear-gradient(145deg, #1c6c5c, #0d493e);
    box-shadow: 0 0.45rem 0 rgb(11 60 50 / 14%);
    font-weight: 850;
}

.customer-brand > span:last-child {
    display: grid;
    line-height: 1.1;
}

.customer-brand strong {
    font-size: 1rem;
}

.customer-brand small {
    margin-top: 0.2rem;
    color: #73827f;
    font-size: 0.68rem;
    font-weight: 650;
}

.customer-primary-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-inline: auto;
}

.customer-primary-nav a {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    padding: 0.68rem 0.8rem;
    border-radius: 0.75rem;
    color: #50615d;
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.customer-primary-nav a:hover {
    color: #115c4d;
    background: #edf6f3;
    transform: translateY(-1px);
}

.customer-primary-nav a span {
    color: #1a6c5c;
    font-size: 1.1rem;
}

.customer-primary-nav .customer-nav-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
}

.customer-nav-icon svg,
.customer-action-card__icon svg,
.customer-page-header__art svg,
.customer-empty-state > span:first-child svg {
    width: 1em;
    height: 1em;
    display: block;
    fill: currentcolor;
}

.customer-account-link {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.5rem 0.7rem 0.5rem 0.5rem;
    border: 1px solid #d6e4e0;
    border-radius: 999px;
    color: #173c35;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 0.25rem 0.8rem rgb(20 69 60 / 6%);
}

.customer-account-link__avatar {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #155f51;
    font-size: 0.55rem;
}

.customer-main {
    flex: 1;
}

.customer-app {
    width: min(100% - 3rem, 76rem);
    margin-inline: auto;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.customer-mobile-nav {
    display: none;
}

.customer-kicker {
    margin: 0 0 0.75rem;
    color: #1a6b5b;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.customer-dashboard__hero,
.customer-page-header {
    position: relative;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid rgb(29 91 78 / 10%);
    border-radius: 1.75rem;
    background:
        linear-gradient(112deg, rgb(255 255 255 / 98%) 0 58%, rgb(226 243 237 / 96%) 100%);
    box-shadow: 0 1.25rem 3.5rem rgb(21 73 63 / 9%);
}

.customer-dashboard__hero::after,
.customer-page-header::after {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border: 3rem solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    content: "";
    right: -7rem;
    bottom: -10rem;
}

.customer-dashboard__hero > div,
.customer-page-header > div {
    position: relative;
    z-index: 1;
}

.customer-dashboard__hero h1,
.customer-page-header h1,
.customer-page > h1 {
    max-width: 52rem;
    margin: 0;
    color: #14231f;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.customer-dashboard__hero p:last-child,
.customer-page-header p:last-child,
.customer-page__lead {
    max-width: 42rem;
    margin: 1.15rem 0 0;
    color: #5e706b;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.65;
}

.customer-dashboard__initial,
.customer-page-header__art {
    position: relative;
    z-index: 1;
    width: clamp(5rem, 11vw, 7.5rem);
    height: clamp(5rem, 11vw, 7.5rem);
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 0.7rem solid rgb(255 255 255 / 68%);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #237a68, #0c4d41);
    box-shadow: 0 1rem 2.4rem rgb(18 77 65 / 22%);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 850;
}

.customer-page-header__art svg {
    width: 0.95em;
    height: 0.95em;
}

.customer-page-header--books {
    background: linear-gradient(112deg, #fff 0 58%, #edf0fb 100%);
}

.customer-page-header--books .customer-page-header__art {
    background: linear-gradient(145deg, #6677bd, #35467e);
}

.customer-page-header--orders {
    background: linear-gradient(112deg, #fff 0 58%, #f7ecdb 100%);
}

.customer-page-header--orders .customer-page-header__art {
    background: linear-gradient(145deg, #c28b46, #855621);
}

.customer-page-header--cart {
    background: linear-gradient(112deg, #fff 0 58%, #e8f5f0 100%);
}

.customer-dashboard__section {
    margin-top: clamp(2.8rem, 6vw, 4.5rem);
}

.customer-section-heading,
.customer-results-heading,
.customer-filter-title {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.customer-section-heading h2,
.customer-results-heading h2,
.customer-filter-title h2 {
    margin: 0;
    color: #182723;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.035em;
}

.customer-section-heading > span,
.customer-results-heading > span,
.customer-filter-title > span {
    color: #7a8986;
    font-size: 0.88rem;
}

.customer-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.customer-action-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 7.5rem;
}

.customer-action-card {
    min-height: 10rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.4rem;
    border: 1px solid #dbe7e3;
    border-radius: 1.25rem;
    color: #1c2a27;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 0.7rem 2rem rgb(25 72 63 / 6%);
    transition: border 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.customer-action-card:hover {
    border-color: #acd1c7;
    box-shadow: 0 1.1rem 2.6rem rgb(25 72 63 / 12%);
    transform: translateY(-3px);
}

.customer-action-card--featured {
    border-color: #145d4e;
    color: #fff;
    background: linear-gradient(135deg, #176958, #0e4b40);
}

.customer-action-card__icon {
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    color: #12604f;
    background: #e7f4f0;
    font-size: 1.45rem;
}

.customer-action-card--featured .customer-action-card__icon {
    color: #fff;
    background: rgb(255 255 255 / 14%);
}

.customer-action-card > span:nth-child(2) {
    display: grid;
    gap: 0.35rem;
}

.customer-action-card strong {
    font-size: 1.1rem;
}

.customer-action-card small {
    color: #6d7d79;
    font-size: 0.9rem;
    line-height: 1.45;
}

.customer-action-card--featured small {
    color: rgb(255 255 255 / 72%);
}

.customer-action-card__arrow {
    font-size: 1.35rem;
}

.customer-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.customer-settings-grid a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1.15rem;
    border: 1px solid #dce7e4;
    border-radius: 1rem;
    color: #24332f;
    background: rgb(255 255 255 / 78%);
    text-decoration: none;
}

.customer-settings-grid a:hover {
    border-color: #9cc8bd;
    background: #fff;
}

.customer-settings-grid a > span:first-child {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 0.8rem;
    color: #176451;
    background: #e8f4f1;
    font-weight: 850;
}

.customer-settings-grid a > span:nth-child(2) {
    display: grid;
    gap: 0.2rem;
}

.customer-settings-grid small {
    color: #7a8985;
}

.customer-settings-grid b {
    color: #1b6556;
}

.customer-logout {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dce7e4;
    text-align: right;
}

.customer-text-button {
    padding: 0;
    border: 0;
    color: #6b7774;
    background: transparent;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.customer-text-button:hover {
    color: #9c342f;
}

.customer-page > .eyebrow,
.customer-page > h1 {
    margin-inline: 0;
}

.customer-cart-banner {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid #cfe3dd;
    border-radius: 1rem;
    color: #24453e;
    background: #ecf7f3;
}

.customer-cart-banner--empty {
    display: grid;
    grid-template-columns: auto 1fr auto;
}

.customer-cart-banner__icon {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.75rem;
    color: #fff;
    background: #176655;
}

.customer-cart-banner p {
    margin: 0;
}

.customer-cart-banner strong {
    display: block;
    margin-bottom: 0.2rem;
}

.customer-filter-card,
.customer-area .account-card,
.customer-selection-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #dbe7e3;
    border-radius: 1.25rem;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 0.75rem 2.2rem rgb(20 68 59 / 6%);
}

.customer-filter-card {
    margin-top: 1.25rem;
}

.customer-filter-grid {
    grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr);
    gap: 0.55rem 1rem;
    align-items: end;
}

.customer-filter-grid .form-actions {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.customer-area label,
.customer-area .form-field__label {
    color: #34443f;
    font-size: 0.86rem;
    font-weight: 780;
}

.customer-area input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.customer-area select,
.customer-area textarea {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cfded9;
    border-radius: 0.75rem;
    color: #1f302c;
    background: #fff;
    font: inherit;
    box-shadow: 0 0.1rem 0.2rem rgb(18 61 53 / 3%);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.customer-area textarea {
    min-height: 7rem;
    resize: vertical;
}

.customer-area input:focus,
.customer-area select:focus,
.customer-area textarea:focus {
    border-color: #2d806f;
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgb(45 128 111 / 13%);
}

.customer-area .button {
    min-height: 3rem;
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.1rem;
    border: 1px solid #155e50;
    border-radius: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, #196d5c, #105144);
    box-shadow: 0 0.45rem 1rem rgb(16 81 68 / 13%);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.customer-area .button:hover {
    color: #fff;
    background: #0d493e;
    transform: translateY(-1px);
}

.customer-area .button--secondary {
    border-color: #c9dcd6;
    color: #245348;
    background: #fff;
    box-shadow: none;
}

.customer-area .button--secondary:hover {
    color: #124d41;
    background: #eef6f3;
}

.customer-results-heading {
    margin-top: 3rem;
}

.customer-product-grid,
.customer-area .information-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.customer-area .information-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.35rem;
    border: 1px solid #dbe7e3;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 0.7rem 2rem rgb(20 68 59 / 6%);
}

.customer-area .information-card h2,
.customer-area .information-card h3 {
    margin: 0;
    color: #1b2a27;
}

.customer-area .information-card p {
    color: #687873;
}

.customer-area .information-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 0.75rem;
    border-radius: 0.85rem;
    background: #f4f7f6;
}

.customer-empty-state {
    display: grid;
    justify-items: center;
    margin-top: 1.25rem;
    padding: clamp(2.5rem, 7vw, 5rem) 1.5rem;
    border: 1px dashed #bfd3cd;
    border-radius: 1.35rem;
    color: #52625e;
    background: rgb(255 255 255 / 65%);
    text-align: center;
}

.customer-empty-state > span:first-child {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    color: #176655;
    background: #e3f1ed;
    font-size: 1.8rem;
}

.customer-empty-state h2,
.customer-empty-state strong {
    margin: 0;
    color: #1d302b;
    font-size: 1.25rem;
}

.customer-empty-state p {
    max-width: 34rem;
    margin: 0.6rem 0 1.25rem;
}

.customer-empty-state--compact {
    padding: 2rem 1rem;
}

.customer-data-badge {
    width: fit-content;
    margin: 1.5rem 0;
    padding: 0.6rem 0.85rem;
    border: 1px solid #d3e3df;
    border-radius: 999px;
    color: #52635f;
    background: #fff;
    font-size: 0.82rem;
}

.customer-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 1.75rem 0;
    padding: 0;
    list-style: none;
}

.customer-stepper li {
    position: relative;
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    color: #8b9895;
    font-size: 0.78rem;
    font-weight: 800;
}

.customer-stepper li::before {
    position: absolute;
    z-index: 0;
    top: 1rem;
    right: 50%;
    width: 100%;
    height: 2px;
    content: "";
    background: #dce7e4;
}

.customer-stepper li:first-child::before {
    display: none;
}

.customer-stepper span {
    position: relative;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 2px solid #d4e1dd;
    border-radius: 50%;
    background: #f5f8f7;
}

.customer-stepper .is-complete,
.customer-stepper .is-current {
    color: #145c4e;
}

.customer-stepper .is-complete::before,
.customer-stepper .is-current::before {
    background: #76b6a7;
}

.customer-stepper .is-complete span {
    border-color: #75aa9e;
    color: #145c4e;
    background: #e4f2ee;
}

.customer-stepper .is-current span {
    border-color: #176655;
    color: #fff;
    background: #176655;
    box-shadow: 0 0 0 5px rgb(23 102 85 / 10%);
}

.customer-selection-panel {
    margin-top: 1rem;
}

.customer-selection-panel h2 {
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
}

.customer-selection-recap {
    display: grid;
    gap: 0.65rem;
    margin: 0 0 1.2rem;
}

.customer-selection-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid #d8e6e2;
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 8px 24px rgb(20 68 58 / 5%);
}

.customer-selection-summary__check {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #176655;
    font-weight: 900;
}

.customer-selection-summary div {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.customer-selection-summary div > span,
.customer-selection-summary small {
    color: #72817e;
    font-size: 0.78rem;
}

.customer-selection-summary strong {
    overflow-wrap: anywhere;
    color: #173b34;
}

.customer-selection-summary > a {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: #155e50;
    background: #edf6f3;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.customer-selection-summary > a:hover {
    background: #dfeeea;
}

.customer-selection-strip {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.customer-selection-strip > div {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    flex: 1 1 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d8e6e2;
    border-radius: 0.75rem;
    background: #fff;
}

.customer-selection-strip > div > span {
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #176655;
    font-size: 0.72rem;
    font-weight: 900;
}

.customer-selection-strip p {
    min-width: 0;
    display: grid;
    gap: 0.05rem;
    margin: 0;
}

.customer-selection-strip small {
    color: #72817e;
    font-size: 0.68rem;
}

.customer-selection-strip strong {
    overflow: hidden;
    color: #173b34;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-selection-strip a,
.customer-edit-selection {
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    color: #155e50;
    background: #edf6f3;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.customer-selection-strip a:hover,
.customer-edit-selection:hover {
    background: #dfeeea;
}

.customer-results-heading--books {
    margin-bottom: 0.9rem;
}

.customer-results-heading--books h2 {
    margin: 0;
}

.customer-school-search {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.customer-school-search__heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.customer-selection-panel .customer-school-search__heading h2 {
    margin: 0;
}

.customer-school-search__heading > span {
    padding: 0.42rem 0.7rem;
    border: 1px solid #d7e5e1;
    border-radius: 999px;
    color: #52635f;
    background: #f7faf9;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.customer-school-search__control {
    position: relative;
}

.customer-school-search input {
    width: 100%;
    min-height: 3.45rem;
    padding-inline: 1rem 3rem;
    border: 2px solid #cedfda;
    border-radius: 0.9rem;
    background-image: radial-gradient(circle, transparent 52%, #176655 54% 62%, transparent 64%), linear-gradient(45deg, transparent 44%, #176655 46% 54%, transparent 56%);
    background-position: right 1.15rem center, right 0.85rem top 2.05rem;
    background-repeat: no-repeat;
    background-size: 1.05rem 1.05rem, 0.65rem 0.65rem;
    box-shadow: 0 9px 24px rgb(20 68 58 / 5%);
    font-size: 1rem;
}

.customer-school-search.is-searching input {
    background-image: none;
}

.customer-school-search input:focus {
    border-color: #27806d;
    box-shadow: 0 0 0 4px rgb(39 128 109 / 12%), 0 12px 28px rgb(20 68 58 / 8%);
}

.customer-school-search__spinner {
    width: 1.25rem;
    height: 1.25rem;
    position: absolute;
    top: 50%;
    right: 1rem;
    border: 0.18rem solid #c9ded8;
    border-top-color: #176655;
    border-radius: 50%;
    pointer-events: none;
    transform: translateY(-50%);
    animation: customer-school-search-spin 0.72s linear infinite;
}

.customer-school-search__spinner[hidden] {
    display: none;
}

@keyframes customer-school-search-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-school-search__spinner {
        animation: none;
    }
}

.customer-school-search #school-search-help,
.customer-school-search__status {
    margin: 0;
    color: #72817e;
    font-size: 0.86rem;
}

.customer-school-search__status {
    min-height: 1.2em;
}

.customer-school-search__status:not(:empty) {
    color: #315f55;
    font-weight: 700;
}

#school-autocomplete-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    max-height: min(29rem, 65vh);
    overflow-y: auto;
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0.5rem;
    border: 1px solid #cfe0db;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 22px 55px rgb(18 63 53 / 18%);
    list-style: none;
}

#school-autocomplete-results[hidden] {
    display: none;
}

#school-autocomplete-results[aria-busy="true"] {
    pointer-events: none;
}

#school-autocomplete-results a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.7rem;
    color: #164f44;
    text-decoration: none;
}

#school-autocomplete-results a:hover,
#school-autocomplete-results a:focus,
#school-autocomplete-results a[aria-selected="true"] {
    outline: none;
    background: #edf7f4;
}

#school-autocomplete-results strong {
    overflow-wrap: anywhere;
}

#school-autocomplete-results a > span {
    color: #4e6b64;
    font-size: 0.8rem;
    font-weight: 800;
}

#school-autocomplete-results small {
    grid-column: 1 / -1;
    color: #72817e;
}

.customer-choice-grid {
    display: grid;
    gap: 0.6rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.customer-choice-grid li {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dde8e5;
    border-radius: 0.8rem;
    background: #fbfdfc;
}

.customer-choice-grid li:hover {
    border-color: #9dc9be;
    background: #f1f8f6;
}

.customer-choice-grid li a {
    color: #155e50;
    font-weight: 800;
    text-decoration: none;
}

.customer-choice-grid li span {
    color: #74827f;
    font-size: 0.82rem;
}

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

.customer-choice-grid--compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.customer-order-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem 1rem;
    margin-top: 1.25rem;
}

.customer-order-filters .customer-filter-title,
.customer-order-filters button {
    grid-column: 1 / -1;
}

.customer-order-filters button {
    width: fit-content;
    margin-top: 0.35rem;
}

.customer-form-shell {
    width: min(100%, 46rem);
}

.customer-form-card {
    padding: clamp(1.5rem, 5vw, 3rem) !important;
}

.customer-form-card h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    letter-spacing: -0.05em;
}

.customer-back-link,
.customer-text-link {
    display: inline-block;
    margin-bottom: 1.75rem;
    color: #63736f;
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.customer-back-link:hover,
.customer-text-link:hover {
    color: #155e50;
}

.customer-form-card .form-stack {
    gap: 1.1rem;
    margin-top: 2rem;
}

.customer-form-card .form-actions {
    margin-top: 0.6rem;
}

.customer-danger-zone {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 2rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e9e7;
}

.customer-danger-zone p {
    margin: 0.25rem 0 0;
    color: #75827f;
    font-size: 0.86rem;
}

.customer-privacy__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.customer-privacy__history .information-card {
    margin-top: 1rem;
}

.customer-help-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 0.9rem;
    color: #4e5e5a;
    background: #e8f1ee;
}

.customer-help-note strong {
    grid-row: 1 / 3;
}

.customer-help-note p {
    margin: 0;
}

.customer-fulfillment {
    margin-top: 1.5rem;
}

.customer-fulfillment .customer-section-heading {
    align-items: center;
}

.customer-fulfillment-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.customer-fulfillment-table th,
.customer-fulfillment-table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid #e4ece9;
    text-align: left;
    vertical-align: middle;
}

.customer-fulfillment-table thead th {
    color: #71807c;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.customer-fulfillment-table tbody th {
    color: #20302c;
    font-weight: 800;
}

.customer-fulfillment-table tbody tr:last-child > * {
    border-bottom: 0;
}

.customer-area dl {
    display: grid;
    grid-template-columns: minmax(8rem, 0.7fr) 1fr;
    gap: 0.55rem 1rem;
}

.customer-area dt {
    color: #71807c;
    font-size: 0.84rem;
    font-weight: 700;
}

.customer-area dd {
    margin: 0;
    color: #20302c;
    font-weight: 700;
}

.customer-area nav[aria-label*="Pagin"],
.customer-area nav[aria-label="Continua gli acquisti"],
.customer-area nav[aria-label="Azioni checkout"] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1.25rem;
}

.customer-area nav[aria-label*="Pagin"] a,
.customer-area nav[aria-label="Continua gli acquisti"] a,
.customer-area nav[aria-label="Azioni checkout"] a {
    padding: 0.65rem 0.85rem;
    border: 1px solid #cfe0db;
    border-radius: 0.65rem;
    color: #185c4f;
    background: #fff;
    font-weight: 750;
    text-decoration: none;
}

/* Customer cart — focused review flow with a persistent desktop summary. */
.customer-cart__notice {
    margin-block: 1.25rem 0;
}

.customer-cart__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #dce7e3;
    border-radius: 0.85rem;
    color: #60706c;
    background: rgb(255 255 255 / 72%);
    font-size: 0.84rem;
}

.customer-cart__meta time {
    color: #29463f;
    font-weight: 800;
}

.customer-cart-context {
    margin-top: 1.25rem;
    overflow: hidden;
    border: 1px solid #cfe2dc;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #f2faf7, #ffffff 62%);
    box-shadow: 0 0.8rem 2.25rem rgb(20 68 59 / 7%);
}

.customer-cart-context__heading {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.35rem 1.5rem 0;
}

.customer-cart-context__heading h2,
.customer-cart__section-heading h2,
.customer-cart-summary h2 {
    margin: 0;
    color: #172b26;
    letter-spacing: -0.025em;
}

.customer-cart-context__heading h2 {
    margin-top: 0.18rem;
    font-size: clamp(1.18rem, 2.3vw, 1.55rem);
}

.customer-cart-context__eyebrow {
    margin: 0;
    color: #24715f;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.customer-cart-context__edit {
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    border: 1px solid #c9ddd7;
    border-radius: 0.65rem;
    color: #155d4e;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.customer-cart-context__edit:hover {
    border-color: #8fbeb2;
    color: #0e493e;
    background: #f8fcfa;
}

.customer-area .customer-cart-context__facts {
    display: grid;
    grid-template-columns: 0.65fr 0.8fr 1.3fr 1.3fr;
    gap: 0.7rem;
    margin: 1.1rem 1.5rem 1.35rem;
}

.customer-cart-context__facts > div {
    min-width: 0;
    padding: 0.75rem 0.8rem;
    border: 1px solid #dce9e5;
    border-radius: 0.8rem;
    background: rgb(255 255 255 / 78%);
}

.customer-cart-context__facts dt,
.customer-cart-context__facts dd {
    overflow-wrap: anywhere;
}

.customer-cart-context__facts dt {
    margin-bottom: 0.2rem;
    color: #6c7d78;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.customer-cart-context__facts dd {
    color: #243b35;
    font-size: 0.86rem;
    line-height: 1.35;
}

.customer-cart-student {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
    padding: 1.15rem 1.5rem 1.35rem;
    border-top: 1px solid #dceae6;
    background: #ffffff;
}

.customer-cart-student__field {
    display: grid;
    gap: 0.42rem;
}

.customer-cart-student__field label {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.customer-cart-student__required {
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    color: #845617;
    background: #fff1c9;
    font-size: 0.68rem;
    font-weight: 850;
}

.customer-cart-student__required--saved {
    color: #176044;
    background: #dcf2e5;
}

.customer-cart-student__field p {
    margin: 0;
    color: #6c7b77;
    font-size: 0.76rem;
}

.customer-cart-student > .button {
    min-width: 8.5rem;
}

.customer-cart__empty {
    margin-top: 1.5rem;
}

.customer-cart__empty nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1rem;
}

.customer-cart__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 22.5rem);
    gap: 1.25rem;
    align-items: start;
    margin-top: 2rem;
}

.customer-cart__items {
    min-width: 0;
}

.customer-cart__section-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.customer-cart__section-heading h2,
.customer-cart-summary h2 {
    margin-top: 0.18rem;
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

.customer-cart__section-heading > span {
    color: #75847f;
    font-size: 0.84rem;
    font-weight: 750;
}

.customer-cart__availability-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d8e5e1;
    border-radius: 0.85rem;
    color: #556762;
    background: #f4f8f7;
    font-size: 0.8rem;
}

.customer-cart__availability-note > span {
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #397767;
    font-family: Georgia, serif;
    font-weight: 800;
}

.customer-cart__availability-note p {
    margin: 0;
}

.customer-cart-list,
.customer-cart-item__adoptions {
    margin: 0;
    padding: 0;
    list-style: none;
}

.customer-cart-list {
    display: grid;
    gap: 0.8rem;
}

.customer-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11.5rem, 0.34fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe6e2;
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: 0 0.65rem 1.7rem rgb(20 68 59 / 5%);
}

.customer-cart-item__content,
.customer-cart-item__purchase {
    min-width: 0;
    padding: 1.15rem;
}

.customer-cart-item__content {
    display: flex;
    flex-direction: column;
}

.customer-cart-item__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    align-items: center;
}

.customer-cart-item__badges > span {
    padding: 0.28rem 0.52rem;
    border-radius: 999px;
    color: #536a64;
    background: #eef4f2;
    font-size: 0.66rem;
    font-weight: 800;
}

.customer-cart-item__badges > span:first-child {
    color: #225d50;
    background: #e1f0eb;
}

.customer-cart-item__availability--available {
    color: #176044 !important;
    background: #dcf2e5 !important;
}

.customer-cart-item__availability--backorder,
.customer-cart-item__availability--unknown {
    color: #805615 !important;
    background: #fff0c5 !important;
}

.customer-cart-item__availability--unavailable {
    color: #8b3934 !important;
    background: #fde7e5 !important;
}

.customer-cart-item h3 {
    margin: 0.8rem 0 0;
    overflow-wrap: anywhere;
    color: #192c27;
    font-size: clamp(1rem, 2vw, 1.18rem);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.customer-cart-item__adoptions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
    color: #49635c;
    font-size: 0.76rem;
    font-weight: 750;
}

.customer-cart-item__adoptions li + li::before {
    margin-right: 0.35rem;
    color: #a3b2ae;
    content: "·";
}

.customer-cart-item__source {
    margin: 0.65rem 0 0;
    color: #657772;
    font-size: 0.75rem;
}

.customer-cart-item__availability-copy {
    margin: auto 0 0;
    padding-top: 0.65rem;
    color: #6a7975;
    font-size: 0.78rem;
    line-height: 1.45;
}

.customer-cart-item__purchase {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-left: 1px solid #e4ece9;
    background: #fbfdfc;
    text-align: right;
}

.customer-cart-item__price {
    display: grid;
    gap: 0.1rem;
    margin: 0;
}

.customer-cart-item__price strong {
    color: #164f43;
    font-size: 1.45rem;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.customer-cart-item__price span {
    color: #74837f;
    font-size: 0.72rem;
    font-weight: 700;
}

.customer-cart-item__price--pending {
    max-width: 12rem;
}

.customer-cart-item__price--pending strong {
    color: #75521d;
    font-size: 1rem;
}

.customer-cart-item__tax {
    width: 100%;
    margin-top: 0.7rem;
    color: #596b66;
    font-size: 0.74rem;
}

.customer-cart-item__tax summary {
    width: fit-content;
    margin-left: auto;
    color: #37665a;
    font-weight: 800;
    cursor: pointer;
}

.customer-area .customer-cart-item__tax dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.24rem 0.65rem;
    margin: 0.6rem 0 0;
}

.customer-cart-item__tax dt,
.customer-cart-item__tax dd {
    margin: 0;
    color: #60706c;
    font-size: 0.72rem;
    font-weight: 650;
}

.customer-cart-item__quantity {
    display: grid;
    grid-template-columns: minmax(4.5rem, 0.55fr) 1fr;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.9rem;
}

.customer-cart-item__quantity label {
    grid-column: 1 / -1;
    text-align: left;
}

.customer-area .customer-cart-item__quantity input {
    min-height: 2.65rem;
    padding: 0.55rem;
    text-align: center;
}

.customer-cart-item__quantity .button {
    min-height: 2.65rem;
    padding: 0.5rem 0.7rem;
}

.customer-cart-item__quantity-fixed {
    margin: 0.9rem 0 0;
    color: #526660;
    font-size: 0.78rem;
    font-weight: 800;
}

.customer-cart-item__remove {
    margin-top: auto;
    padding-top: 0.85rem;
}

.customer-cart-item__remove .button {
    min-height: 2.45rem;
    padding: 0.48rem 0.75rem;
    font-size: 0.78rem;
}

.customer-cart-summary {
    position: sticky;
    top: 6.25rem;
    padding: 1.4rem;
    border: 1px solid #cdded9;
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: 0 1rem 2.8rem rgb(17 65 56 / 10%);
}

.customer-cart-summary__count {
    margin: 0.5rem 0 1.1rem;
    color: #73827e;
    font-size: 0.8rem;
}

.customer-area .customer-cart-summary__totals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
}

.customer-cart-summary__totals > div {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e5ecea;
}

.customer-cart-summary__totals dt,
.customer-cart-summary__totals dd {
    margin: 0;
    color: #596a65;
    font-size: 0.86rem;
    font-weight: 700;
}

.customer-cart-summary__grand-total {
    margin-top: 0.2rem;
    padding-top: 0.9rem !important;
    border-bottom: 0 !important;
}

.customer-cart-summary__grand-total dt {
    color: #1c342e;
    font-size: 1rem;
    font-weight: 850;
}

.customer-cart-summary__grand-total dd {
    color: #145b4d;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.customer-cart-summary__pending {
    margin-block: 1rem;
    padding: 0.9rem;
    border-radius: 0.8rem;
    color: #6e5429;
    background: #fff6df;
}

.customer-cart-summary__pending p {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
}

.customer-cart-summary__student-warning {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #efd394;
    border-radius: 0.75rem;
    color: #75501b;
    background: #fff8e8;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
}

.customer-cart-summary__student-warning > span {
    width: 1.45rem;
    height: 1.45rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #b47a24;
    font-weight: 900;
}

.customer-area .customer-cart-summary__cta {
    width: 100%;
    min-height: 3.35rem;
    justify-content: space-between;
    margin-top: 1rem;
    padding-inline: 1rem;
    box-shadow: 0 0.75rem 1.6rem rgb(16 81 68 / 18%);
}

.customer-cart-summary__next-step {
    margin: 0.75rem 0 0;
    color: #71807c;
    font-size: 0.72rem;
    line-height: 1.5;
}

.customer-cart-stale {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid #e2d9c4;
    border-radius: 1rem;
    background: #fffaf0;
}

.customer-cart-stale h2 {
    margin-top: 0;
}

.customer-cart__continue {
    padding-top: 1rem;
    border-top: 1px solid #dce7e3;
}

.customer-cart__continue > span {
    color: #667671;
    font-size: 0.82rem;
    font-weight: 750;
}

@media (max-width: 62rem) {
    .customer-cart__layout {
        grid-template-columns: 1fr;
    }

    .customer-cart-summary {
        position: static;
    }

    .customer-cart-summary__totals {
        max-width: 28rem;
    }
}

@media (max-width: 68rem) {
    .customer-header__inner,
    .customer-app {
        width: min(100% - 2rem, 76rem);
    }

    .customer-primary-nav {
        gap: 0;
    }

    .customer-primary-nav a {
        padding-inline: 0.6rem;
    }

    .customer-primary-nav a span {
        display: none;
    }

    .customer-account-link > span:nth-child(2) {
        display: none;
    }

    .customer-product-grid,
    .customer-area .information-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-order-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48rem) {
    .customer-cart__meta,
    .customer-cart-context__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-area .customer-cart-context__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-cart-student {
        grid-template-columns: 1fr;
    }

    .customer-cart-student > .button {
        width: fit-content;
    }

    .customer-cart-item {
        grid-template-columns: 1fr;
    }

    .customer-cart-item__purchase {
        border-top: 1px solid #e4ece9;
        border-left: 0;
    }

    .customer-header {
        position: static;
    }

    .customer-header__inner {
        min-height: 4.25rem;
    }

    .customer-primary-nav {
        display: none;
    }

    .customer-account-link {
        margin-left: auto;
    }

    .customer-mobile-nav {
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
        margin: -1rem -0.25rem 1.25rem;
        padding: 0.25rem;
        scrollbar-width: none;
    }

    .customer-mobile-nav::-webkit-scrollbar {
        display: none;
    }

    .customer-mobile-nav a {
        flex: 0 0 auto;
        padding: 0.6rem 0.75rem;
        border: 1px solid #d6e5e1;
        border-radius: 999px;
        color: #36524b;
        background: #fff;
        font-size: 0.78rem;
        font-weight: 800;
        text-decoration: none;
    }

    .customer-dashboard__hero,
    .customer-page-header {
        align-items: flex-start;
        padding: 1.6rem;
        border-radius: 1.25rem;
    }

    .customer-dashboard__initial,
    .customer-page-header__art {
        width: 3.8rem;
        height: 3.8rem;
        border-width: 0.4rem;
        font-size: 1.5rem;
    }

    .customer-action-grid,
    .customer-settings-grid,
    .customer-privacy__grid,
    .customer-filter-grid,
    .customer-order-filters {
        grid-template-columns: 1fr;
    }

    .customer-action-card {
        min-height: auto;
    }

    .customer-filter-grid .form-actions,
    .customer-order-filters .customer-filter-title,
    .customer-order-filters button {
        grid-column: 1;
    }

    .customer-product-grid,
    .customer-area .information-grid,
    .customer-choice-grid,
    .customer-choice-grid--compact {
        grid-template-columns: 1fr;
    }

    .customer-cart-banner--empty {
        grid-template-columns: auto 1fr;
    }

    .customer-cart-banner--empty form {
        grid-column: 1 / -1;
    }

    .customer-school-search {
        grid-template-columns: 1fr;
    }

    .customer-danger-zone {
        grid-template-columns: 1fr;
    }

    .customer-fulfillment .customer-section-heading {
        align-items: flex-start;
    }

    .customer-fulfillment-table,
    .customer-fulfillment-table tbody,
    .customer-fulfillment-table tr,
    .customer-fulfillment-table th,
    .customer-fulfillment-table td {
        display: block;
    }

    .customer-fulfillment-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .customer-fulfillment-table tr {
        margin-bottom: 0.75rem;
        padding: 0.9rem;
        border: 1px solid #dce8e4;
        border-radius: 0.9rem;
        background: #fff;
    }

    .customer-fulfillment-table th,
    .customer-fulfillment-table td {
        display: flex;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
        padding: 0.45rem 0;
        border: 0;
        text-align: right;
    }

    .customer-fulfillment-table th[scope="row"] {
        display: block;
        padding-bottom: 0.7rem;
        border-bottom: 1px solid #e6eeeb;
        text-align: left;
    }

    .customer-fulfillment-table td::before {
        content: attr(data-label);
        color: #71807c;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.035em;
        text-transform: uppercase;
    }
}

@media (max-width: 34rem) {
    .customer-cart-context__heading,
    .customer-cart-student,
    .customer-cart-item__content,
    .customer-cart-item__purchase,
    .customer-cart-summary {
        padding-inline: 1rem;
    }

    .customer-area .customer-cart-context__facts {
        grid-template-columns: 1fr;
        margin-inline: 1rem;
    }

    .customer-cart-context__edit,
    .customer-cart-student > .button,
    .customer-cart-item__quantity .button,
    .customer-cart-item__remove,
    .customer-cart-item__remove .button {
        width: 100%;
    }

    .customer-cart__section-heading {
        align-items: flex-start;
    }

    .customer-cart__availability-note {
        align-items: flex-start;
    }

    .customer-cart-item__purchase {
        align-items: stretch;
    }

    .customer-cart-item__price,
    .customer-cart-item__tax {
        text-align: right;
    }

    .customer-cart__continue > span {
        flex-basis: 100%;
    }

    .customer-header__inner,
    .customer-app {
        width: min(100% - 1.25rem, 76rem);
    }

    .customer-brand small,
    .customer-account-link > span:last-child {
        display: none;
    }

    .customer-app {
        padding-block: 1.4rem 3rem;
    }

    .customer-dashboard__hero,
    .customer-page-header {
        display: block;
    }

    .customer-dashboard__initial,
    .customer-page-header__art {
        display: none;
    }

    .customer-dashboard__hero h1,
    .customer-page-header h1,
    .customer-page > h1 {
        font-size: clamp(2.35rem, 13vw, 3.4rem);
    }

    .customer-stepper li {
        font-size: 0.66rem;
    }

    .customer-books--progress .customer-cart-banner {
        padding: 0.7rem 0.8rem;
    }

    .customer-books--progress .customer-data-badge {
        margin-block: 0.75rem;
        padding: 0.45rem 0.65rem;
        font-size: 0.72rem;
    }

    .customer-books--progress .customer-stepper {
        margin-block: 1rem;
    }

    .customer-selection-strip {
        display: grid;
    }

    .customer-selection-strip > div {
        padding: 0.55rem 0.65rem;
    }

    .customer-results-heading.customer-results-heading--books {
        align-items: center;
        flex-direction: row;
    }

    .customer-school-search__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-selection-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .customer-selection-summary > a {
        grid-column: 2;
        width: fit-content;
    }

    .customer-area dl {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .customer-area dd {
        margin-bottom: 0.65rem;
    }

    .customer-section-heading,
    .customer-results-heading,
    .customer-filter-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    .customer-header,
    .customer-mobile-nav,
    .customer-withdrawal-function,
    .customer-logout {
        display: none !important;
    }
}

/* Customer order detail: action-first, plain-language presentation. */
.customer-order-detail {
    display: grid;
    gap: 1.25rem;
}

.customer-order-detail__header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
    padding-block: 0.5rem;
}

.customer-order-detail__header h1 {
    margin: 0;
    color: #14231f;
    font-size: clamp(2.35rem, 6vw, 4rem);
    letter-spacing: -0.055em;
    line-height: 1;
}

.customer-order-detail__number {
    margin: 0.7rem 0 0;
    color: #5f706b;
    font-size: clamp(0.88rem, 1.8vw, 1rem);
    font-weight: 750;
    letter-spacing: 0.025em;
    overflow-wrap: anywhere;
}

.customer-order-detail__status {
    flex: 0 0 auto;
    margin-bottom: 0.35rem;
}

.customer-area .customer-order-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 1.35rem;
    border: 1px solid #dbe7e3;
    border-radius: 1.25rem;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 0.75rem 2.2rem rgb(20 68 59 / 6%);
}

.customer-order-summary > div {
    min-width: 0;
    padding-inline: 1.2rem;
    border-right: 1px solid #e1ebe8;
}

.customer-order-summary > div:first-child {
    padding-left: 0;
}

.customer-order-summary > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.customer-order-summary dt {
    margin: 0 0 0.35rem;
    color: #72827e;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.customer-order-summary dd {
    margin: 0;
    color: #1d2f2a;
    font-size: 0.98rem;
    font-weight: 780;
    overflow-wrap: anywhere;
}

.customer-order-summary .customer-order-summary__total {
    color: #125e4f;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1;
}

.customer-area .customer-order-payment {
    padding: clamp(1.4rem, 4vw, 2.25rem);
    border-color: #9fcfc2;
    background: linear-gradient(135deg, #f4fbf8 0%, #fff 72%);
    box-shadow: 0 1rem 2.8rem rgb(19 92 77 / 10%);
}

.customer-order-payment__heading {
    margin-bottom: 1rem;
}

.customer-order-payment__heading .eyebrow {
    margin-bottom: 0.35rem;
}

.customer-order-payment__facts {
    max-width: 40rem;
    margin-block: 0 1.2rem;
}

.customer-order-payment__action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1.25rem;
    align-items: center;
    padding-top: 1.15rem;
    border-top: 1px solid #d6e8e2;
}

.customer-order-payment__action > p {
    margin: 0;
}

.customer-order-payment__action .form-field__hint {
    grid-column: 1 / -1;
}

.customer-order-payment__button {
    min-width: 11rem;
    font-size: 1.02rem;
}

.customer-order-payment__waiting {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 0.8rem;
    color: #24483f;
    background: #eaf5f1;
}

.customer-order-payment__acceptance {
    display: grid;
    gap: 0.85rem;
    padding-top: 1.15rem;
    border-top: 1px solid #d6e8e2;
}

.customer-order-payment__acceptance > p,
.customer-order-payment__acceptance > section {
    margin: 0;
}

.customer-order-payment__acceptance > section {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #d7e7e2;
    border-radius: 0.9rem;
    background: rgb(255 255 255 / 78%);
}

.customer-order-payment__acceptance > section h3 {
    margin: 0 0 0.75rem;
    color: #203b34;
    font-size: 1rem;
}

.customer-order-payment__acceptance > section ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.customer-order-payment__acceptance > section details {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe9e6;
    border-radius: 0.7rem;
    background: #fff;
}

.customer-order-payment__acceptance > section summary {
    min-height: 3rem;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    color: #245348;
    font-weight: 780;
    line-height: 1.35;
    cursor: pointer;
}

.customer-order-payment__acceptance > section summary::before {
    flex: 0 0 auto;
    content: "+";
    font-size: 1.1rem;
    line-height: 1;
}

.customer-order-payment__acceptance > section details[open] summary::before {
    content: "−";
}

.customer-order-payment__acceptance > section summary::marker,
.customer-order-payment__acceptance > section summary::-webkit-details-marker {
    display: none;
}

.customer-order-payment__acceptance > section details[open] summary {
    border-bottom: 1px solid #e4ecea;
    background: #f5faf8;
}

.customer-order-payment__acceptance > section details > :not(summary) {
    margin-inline: 0.8rem;
}

.customer-order-payment__acceptance > section .legal-document__body {
    max-height: 22rem;
    margin-top: 0.8rem;
    padding-right: 0.35rem;
    overflow: auto;
    color: #405751;
    font-size: 0.9rem;
    line-height: 1.55;
}

.customer-order-payment__acceptance > section code {
    overflow-wrap: anywhere;
}

.customer-order-payment__acceptance .checkbox-row {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    margin: 0;
    padding: 0.8rem;
    border: 1px solid #dce8e4;
    border-radius: 0.75rem;
    background: #fff;
    line-height: 1.45;
    cursor: pointer;
}

.customer-order-payment__acceptance .checkbox-row input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    margin: 0.12rem 0 0;
    accent-color: #176958;
}

.customer-order-payment__acceptance .checkbox-row:has(input:focus-visible) {
    border-color: #2d806f;
    outline: 0.2rem solid rgb(45 128 111 / 22%);
    outline-offset: 0.1rem;
}

.customer-order-payment__acceptance > .button {
    margin-top: 0.25rem;
}

.customer-order-products {
    margin-top: 1.25rem;
}

.customer-order-products > h2 {
    margin-bottom: 0.9rem;
}

.customer-order-products .information-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-order-detail .customer-withdrawal-entry {
    border-style: dashed;
    background: rgb(255 255 255 / 65%);
    box-shadow: none;
}

.customer-order-detail .customer-withdrawal-entry h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

@media (max-width: 52rem) {
    .customer-area .customer-order-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem 0;
    }

    .customer-order-summary > div:nth-child(2) {
        padding-right: 0;
        border-right: 0;
    }

    .customer-order-summary > div:nth-child(3) {
        padding-left: 0;
    }

    .customer-order-products .information-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 36rem) {
    .customer-order-detail__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-order-detail__status {
        margin: 0;
    }

    .customer-area .customer-order-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-order-summary > div {
        padding: 0 0 1rem;
        border-right: 0;
        border-bottom: 1px solid #e1ebe8;
    }

    .customer-order-summary > div:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .customer-order-payment__action {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-order-payment__action .form-field__hint {
        grid-column: 1;
    }

    .customer-order-payment__button {
        width: 100%;
    }

    .customer-order-payment__acceptance > section {
        padding: 0.75rem;
    }

    .customer-order-payment__acceptance > .button {
        width: 100%;
    }
}

/* Online withdrawal function (art. 54-bis customer flow). */
.customer-withdrawal-function {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid #b9d9ce;
    border-left: 4px solid #14705e;
    border-radius: 0.85rem;
    background: #f2f8f5;
    color: #173f36;
}

.customer-withdrawal-function div {
    display: grid;
    gap: 0.15rem;
}

.customer-withdrawal-function span {
    color: #52645e;
    font-size: 0.88rem;
}

.customer-page-header--withdrawal {
    background: linear-gradient(135deg, #f2f8f5 0%, #ffffff 72%);
}

.customer-withdrawal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.customer-withdrawal-card,
.customer-withdrawal-form,
.customer-withdrawal-receipt,
.customer-withdrawal-entry {
    border-color: #cfe4dc;
}

.customer-withdrawal-card dl,
.customer-withdrawal-receipt dl {
    margin-block: 1rem;
}

.customer-withdrawal-receipt code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.customer-withdrawal-receipt__body {
    max-height: 28rem;
    overflow: auto;
    padding: 1rem;
    border: 1px solid #dce7e2;
    border-radius: 0.75rem;
    background: #f8faf9;
    color: #243a34;
    font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
}

@media (max-width: 720px) {
    .customer-withdrawal-function {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-withdrawal-function .button {
        width: 100%;
        text-align: center;
    }
}

/* Versioned cookie-consent centre. Optional categories are blocked by default. */
body.cookie-consent-open {
    overflow: hidden;
}

.site-footer__link-button {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.site-footer__link-button:hover {
    color: var(--brand, #165c4f);
}

.cookie-consent[hidden],
.cookie-consent__preferences[hidden] {
    display: none;
}

.cookie-consent {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    align-items: end;
    padding: clamp(0.75rem, 2.5vw, 2rem);
    background: rgb(8 27 23 / 0.62);
    backdrop-filter: blur(0.25rem);
}

.cookie-consent__dialog {
    position: relative;
    width: min(100%, 58rem);
    max-height: min(90vh, 48rem);
    margin: 0 auto;
    overflow: auto;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid #c8ddd6;
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 1.5rem 4rem rgb(5 35 28 / 0.32);
    color: #162a25;
}

.cookie-consent__dialog:focus {
    outline: 0.2rem solid #f2cb32;
    outline-offset: 0.18rem;
}

.cookie-consent__eyebrow {
    margin: 0 0 0.35rem;
    color: #126b5a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cookie-consent__dialog h2 {
    max-width: 44rem;
    margin: 0;
    color: #10231e;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.12;
}

.cookie-consent__dialog > p:not(.cookie-consent__eyebrow) {
    max-width: 48rem;
    margin: 0.75rem 0 0;
    color: #50655f;
    line-height: 1.55;
}

.cookie-consent__policy-link a {
    color: #0f6554;
    font-weight: 750;
}

.cookie-consent__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid #b9d1ca;
    border-radius: 50%;
    background: #f4f8f6;
    color: #173f36;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.cookie-consent__choice,
.cookie-consent__customize,
.cookie-consent__save {
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 2px solid #176454;
    border-radius: 0.7rem;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.cookie-consent__choice,
.cookie-consent__save {
    background: #176454;
    color: #ffffff;
}

.cookie-consent__choice:hover,
.cookie-consent__save:hover {
    background: #0f4f42;
    border-color: #0f4f42;
}

.cookie-consent__customize {
    background: #ffffff;
    color: #154e43;
}

.cookie-consent__customize:hover {
    background: #edf7f3;
}

.cookie-consent__preferences {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d6e4df;
}

.cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d4e2dd;
    border-radius: 0.75rem;
    background: #f8faf9;
}

.cookie-consent__category span {
    display: grid;
    gap: 0.18rem;
}

.cookie-consent__category small {
    color: #5a6d67;
    line-height: 1.4;
}

.cookie-consent__category input {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    accent-color: #176454;
}

.cookie-consent__category input:disabled {
    opacity: 1;
}

.cookie-consent__save {
    justify-self: end;
}

.cookie-policy .legal-document__body h2 {
    margin-top: 1.75rem;
}

.cookie-policy__list {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0;
}

.cookie-policy__list > div {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid #d8e5e1;
    border-radius: 0.8rem;
    background: #f8faf9;
}

.cookie-policy__list dt {
    margin-bottom: 0.25rem;
    color: #174f45;
    font-weight: 800;
}

.cookie-policy__list dd {
    margin: 0;
}

@media (max-width: 48rem) {
    .cookie-consent__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-consent__customize {
        order: 3;
    }

    .cookie-consent__save {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 30rem) {
    .cookie-consent {
        padding: 0;
    }

    .cookie-consent__dialog {
        max-height: 94vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 1rem 1rem 0 0;
    }

    .cookie-consent__dialog h2,
    .cookie-consent__dialog > p:not(.cookie-consent__eyebrow) {
        padding-right: 2.4rem;
    }

    .cookie-consent__category {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent__dialog {
        scroll-behavior: auto;
    }
}
