html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--color-primary);
    color: var(--color-text);
    font-family: "OpenSans", Arial, sans-serif;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

.boot-shell,
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    padding: calc(env(safe-area-inset-top) + 28px) 20px calc(env(safe-area-inset-bottom) + 28px);
    background: linear-gradient(180deg, var(--color-tertiary) 0%, var(--color-primary) 40%, var(--color-primary) 100%);
    color: var(--color-text-light);
}

.boot-shell {
    place-items: center;
}

.boot-shell img,
.login-brand img {
    width: min(220px, 70vw);
    height: auto;
}

.login-brand {
    display: grid;
    justify-items: center;
    gap: 16px;
    text-align: center;
}

.login-brand p {
    margin: 0;
    max-width: 320px;
    font-size: 1rem;
}

.login-brand h1 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.install-landing {
    grid-template-rows: auto auto auto auto;
    align-content: start;
    overflow-y: auto;
}

.install-panel {
    color: var(--color-text);
}

.install-actions {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.ios-install-help {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.ios-install-help p {
    margin: 0;
}

.ios-install-steps {
    box-sizing: border-box;
    width: min(100%, 345px);
    margin: 0;
    padding-left: 24px;
    text-align: left;
}

.ios-install-steps li + li {
    margin-top: 16px;
}

.ios-install-steps span {
    display: block;
    margin-bottom: 8px;
}

.ios-install-help img {
    max-width: min(100%, 345px);
    height: auto;
}

.login-image {
    width: min(100%, 640px);
    max-height: 58vh;
    object-fit: contain;
    justify-self: center;
    align-self: end;
    height: 58vh;
    box-shadow: 0 0 25px 30px var(--color-primary), 0 0 46px 45px var(--color-primary) inset;
    background: url(../assets/images/login3.jpg) 50% / cover border-box padding-box;
}

.login-button,
.primary-button,
.secondary-button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-weight: 600;
    text-decoration: none;
}

.login-button {
    width: 100%;
    max-width: 440px;
    justify-self: center;
    background: var(--color-surface);
    color: var(--color-text);
}

.login-anyway-button {
    width: auto;
    background: transparent;
    color: inherit;
    font-weight: 400;
    text-decoration: underline;
}

.login-anyway-button:focus-visible {
    outline: 3px solid var(--color-text-light);
    outline-offset: 3px;
}

.primary-button {
    background: var(--color-primary);
    color: var(--color-text-light);
}

.primary-button:disabled {
    background: var(--color-border);
    color: var(--color-text-muted);
}

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

.secondary-button.wide,
.add-locker-list-action,
.package-toggle-button {
    width: 100%;
}

.add-locker-list-action,
.package-toggle-button {
    text-decoration: none;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
}

.custom-auth-page {
    grid-template-rows: auto auto;
    align-content: start;
    overflow-y: auto;
}

.custom-auth-page .auth-form {
    align-self: start;
}

.login-brand.compact img {
    width: min(180px, 58vw);
}

.auth-page-content {
    max-width: 560px;
}

.auth-form {
    width: min(100%, 520px);
    justify-self: center;
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    color: var(--color-text);
    box-sizing: border-box;
}

.auth-form label {
    margin-top: 4px;
    font-weight: 600;
}

.auth-form input,
.auth-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    box-sizing: border-box;
}

.auth-form input:focus,
.auth-form textarea:focus {
    border-color: var(--color-primary);
    outline: 3px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.auth-form input[readonly] {
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
}

.auth-form .primary-button,
.auth-form .secondary-button,
.auth-form .login-button {
    width: 100%;
    margin-top: 8px;
}

.custom-auth-page .auth-form .login-button {
    max-width: none;
    background: var(--color-primary);
    color: var(--color-text-light);
}

.custom-auth-page .auth-navigation-actions {
    display: grid;
    width: 100%;
    gap: 10px;
    margin-top: 20px;
}

.custom-auth-page .auth-navigation-actions .primary-button,
.custom-auth-page .auth-navigation-actions .secondary-button {
    width: 100%;
    margin-top: 0;
    box-sizing: border-box;
}

.form-error {
    padding: 12px 14px;
    border: 1px solid #b42318;
    border-radius: 8px;
    background: #fff1f0;
    color: #8a1c13;
}

.auth-links {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 8px;
}

.auth-links a,
.auth-inline-link {
    color: var(--color-primary);
    font-weight: 600;
}

.mobile-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: 1fr auto;
    background: var(--color-primary);
}

.app-main {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
}

.mobile-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: calc(var(--header-height) + env(safe-area-inset-top));
    color: var(--color-text-light);
    /*background: var(--color-tertiary);*/
}

.header-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--color-tertiary), var(--color-primary));
}

.header-content {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: end;
    min-height: calc(var(--header-height) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 12px;
}

.header-leading,
.header-spacer {
    min-width: 44px;
    min-height: 44px;
}

.header-content.logo-mode {
    grid-template-columns: 52px 1fr 52px;
}

.header-content h1 {
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 600;
}

.header-logo {
    justify-self: center;
    align-self: center;
    width: min(160px, 46vw);
    height: auto;
    margin-top: 12px;
}

.icon-button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-light);
    font-size: 1.6rem;
}

.back-button {
    display: inline-grid;
    place-items: center;
}

.back-arrow-icon {
    width: 14px;
    height: 24px;
    fill: currentColor;
}

.back-fallback {
    display: none;
}

.page-content {
    width: min(100%, var(--content-max-width));
    margin: 0 auto;
    padding: 18px 18px 28px;
    display: grid;
    gap: 14px;
}

.list-stack {
    display: grid;
    gap: 12px;
}

.list-card,
.settings-panel,
.state-block,
.toast-message {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    color: var(--color-text)
}

.list-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

.list-card-link {
    color: var(--color-text);
    text-decoration: none;
}

.list-card-link:active {
    transform: scale(0.99);
}

.chevron {
    color: var(--color-text-muted);
    font-size: 1.3rem;
}

.list-card-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.eyebrow {
    margin: 0 0 2px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.list-card h2,
.settings-panel h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.indicator-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.locker-indicator {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
}

.locker-indicator.delivery {
    color: var(--color-primary);
}

.locker-indicator.cold {
    color: var(--color-logo);
}

.locker-indicator.warn {
    color: var(--color-error);
}

.locker-indicator.temperature {
    font-size: 0.82rem;
}

.indicator-count {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: var(--color-primary);
    color: var(--color-text-light);
    font-size: 0.68rem;
    font-weight: 700;
}

.delivery-box-icon {
    width: 30px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
}

.thermometer-icon {
    width: 16px;
    height: 28px;
}

.thermometer-body {
    fill: currentColor;
}

.thermometer-icon.neutral {
    color: var(--color-text-muted);
}

.thermometer-icon.cold {
    color: var(--color-logo);
}

.offline-icon {
    width: 30px;
    height: 24px;
    fill: currentColor;
}

.door-open-icon {
    width: 24px;
    height: 28px;
    fill: currentColor;
}

.door-open-cutout {
    fill: var(--color-surface);
}

.temperature-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.detail-warning-icons {
    margin-top: 2px;
}

.status-pill {
    border-radius: 999px;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    padding: 3px 8px;
    font-size: 0.76rem;
}

.status-pill.ok {
    color: var(--color-primary);
}

.status-pill.warn {
    color: var(--color-error);
}

.pwa-check-list {
    display: grid;
    gap: 8px;
}

.pwa-check-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pwa-check-list h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.pwa-refresh-button {
    min-height: 32px;
    padding: 0;
    font-size: 0.82rem;
}

.pwa-check-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--color-border);
    padding-top: 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.pwa-check-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.pwa-check-detail {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.pwa-check-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.pwa-check-heading + .pwa-check-row {
    border-top: 0;
    padding-top: 0;
}

.pwa-check-status {
    border-radius: 999px;
    background: var(--color-surface-muted);
    padding: 3px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.pwa-check-status.pass {
    color: var(--color-primary);
}

.pwa-check-status.warning {
    color: #7a5a00;
}

.pwa-check-status.fail {
    color: var(--color-error);
}

.state-block,
.settings-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.state-block {
    justify-items: center;
    text-align: center;
}

.error-state {
    border-color: var(--color-error);
}

.toast-message {
    /*margin-bottom: 12px;*/
    padding: 12px 14px;
}

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

.warning-text {
    color: var(--color-error);
    margin: 0;
    text-align: center;
}

.detail-stack,
.form-stack {
    display: grid;
    gap: 14px;
}

.field-label {
    display: grid;
    gap: 4px;
    color: var(--color-text);
    font-weight: 600;
}

.text-field {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-muted);
    color: var(--color-text);
    padding: 8px 10px;
}

.time-field {
    max-width: 180px;
}

.field-error {
    margin: -4px 0 0;
    color: var(--color-error);
    font-size: 0.84rem;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
}

.toggle-row input {
    width: 22px;
    height: 22px;
    accent-color: var(--color-primary);
}

.segmented-control {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.segmented-control button,
.weekday-grid button {
    min-height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface-muted);
    color: var(--color-text);
    padding: 0 16px;
}

.segmented-control button.selected,
.weekday-grid button.selected {
    background: var(--color-logo);
    color: var(--color-text-light);
    border-color: var(--color-logo);
}

.weekday-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.weekday-grid button {
    min-width: 0;
    padding: 0;
}

.schedule-editor {
    display: grid;
    gap: 8px;
}

.locker-hero-panel h2 {
    font-size: 1.35rem;
}

.unlock-panel {
    justify-items: center;
}

.unlock-button {
    width: min(100%, 260px);
    min-height: 64px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    background: var(--color-primary);
    color: var(--color-text-light);
    font-weight: 700;
}

.unlock-button svg {
    width: 30px;
    height: 41px;
    fill: currentColor;
}

.unlock-button:disabled {
    background: var(--color-border);
    color: var(--color-text-muted);
}

.menu-row {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
}

.menu-row-button {
    width: 100%;
    text-align: left;
}

.row-subtitle {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.84rem;
    font-weight: 400;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.row-value {
    color: var(--color-text);
    font-weight: 600;
}

.compact-list {
    display: grid;
    gap: 8px;
}

.compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.compact-row:last-child {
    border-bottom: 0;
}

.claim-row,
.claim-table-row,
.claim-table-header {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.claim-row:last-child,
.claim-table-row:last-child {
    border-bottom: 0;
}

.claims-list {
    display: grid;
}

.claim-table-header {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.claim-type,
.claim-value {
    min-width: 0;
    overflow-wrap: anywhere;
    user-select: text;
}

.language-list {
    display: grid;
    gap: 8px;
}

.language-option {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-muted);
    color: var(--color-text);
}

.language-option.selected {
    border-color: var(--color-primary);
    background: var(--color-surface);
    color: var(--color-primary);
    font-weight: 700;
}

.readonly-line {
    margin: 0;
}

.faq-item {
    display: grid;
    gap: 6px;
}

.faq-item h2,
.faq-item p {
    margin: 0;
}

.qr-reader {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
}

.qr-panel {
    justify-items: center;
}

.qr-code {
    width: min(100%, 320px);
}

.qr-panel .qr-code {
    width: 100%;
    max-width: none;
}

.qr-code img {
    width: 100%;
    height: auto;
    display: block;
}

.spinner {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    animation: spin 0.9s linear infinite;
}

.auth-loading-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 22px;
    padding: calc(env(safe-area-inset-top) + 28px) 20px calc(env(safe-area-inset-bottom) + 28px);
    background: linear-gradient(180deg, var(--color-tertiary) 0%, var(--color-primary) 100%);
    color: var(--color-text-light);
}

.auth-loading-page img {
    width: min(190px, 62vw);
    height: auto;
}

.auth-loading-card {
    width: min(100%, 360px);
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.auth-loading-card h1,
.auth-loading-card p {
    margin: 0;
}

.auth-loading-card .spinner {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: var(--color-text-light);
}

.modal-scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: end center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.35);
}

.prompt-modal,
.confirm-modal {
    width: min(100%, 420px);
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.prompt-modal img {
    width: 132px;
    height: auto;
    justify-self: center;
}

.prompt-modal h2,
.prompt-modal p,
.confirm-modal h2,
.confirm-modal p {
    margin: 0;
}

.offline-qr-modal {
    justify-items: center;
}

.offline-qr-modal .qr-code {
    width: 100%;
}

.offline-qr-body {
    white-space: pre-line;
    text-align: center;
}

.prompt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.prompt-actions .primary-button,
.prompt-actions .secondary-button {
    width: 100%;
}

.cookie-consent-actions {
    grid-template-columns: 1fr;
}

.cookie-feature-list {
    display: grid;
    gap: 8px;
    padding: 10px 0;
}

@media (min-width: 420px) {
    .cookie-consent-actions {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.history-card {
    grid-template-columns: 1fr;
}

.history-row-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-row-title .delivery-box-icon {
    color: var(--color-primary);
}

.history-message {
    margin: 0;
}

.debug-panel pre {
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    line-height: 1.45;
}

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

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

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.bottom-nav a,
.bottom-menu-button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    min-height: 54px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.78rem;
}

.bottom-nav a.active,
.bottom-menu-button[aria-expanded="true"] {
    color: var(--color-primary);
    font-weight: 600;
}

.bottom-nav img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.bottom-menu-button {
    border: 0;
    background: transparent;
}

.burger-icon {
    width: 28px;
    height: 20px;
    position: relative;
    display: inline-block;
}

.burger-icon::before,
.burger-icon::after,
.burger-icon {
    border-top: 3px solid currentColor;
}

.burger-icon::before,
.burger-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
}

.burger-icon::before {
    top: 6px;
}

.burger-icon::after {
    top: 15px;
}

.menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(0, 0, 0, 0.25);
}

.app-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 12px);
    z-index: 30;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.app-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
}

.app-menu a:active {
    background: var(--color-surface-muted);
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.page-content-v2 {
    gap: 22px;
    padding: 24px 22px 34px;
}

body,
.mobile-shell {
    background: var(--color-page);
}

.app-main {
    background: var(--color-page);
}

.mobile-header {
    min-height: calc(var(--header-height) + env(safe-area-inset-top));
}

.header-gradient {
    background: var(--color-tertiary);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.header-content {
    align-items: center;
    padding-bottom: 14px;
}

.header-logo {
    width: min(178px, 46vw);
    margin-top: 0;
}

.page-title-block {
    display: grid;
    gap: 14px;
}

.page-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-title-row img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.page-title-row h1 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
}

.page-title-block p {
    margin: 0;
    max-width: 560px;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    line-height: 1.55;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.section-heading-row h2,
.section-heading-row span {
    margin: 0;
}

.section-heading-row h2 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.section-heading-row span {
    color: var(--color-text-muted);
    font-weight: 600;
}

.edit-placeholder {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    background: #eefaff;
    color: var(--color-logo);
    font-weight: 700;
}

.domain-card {
    display: grid;
    gap: 18px;
    padding: 26px 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
    text-decoration: none;
}

.domain-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
}

.domain-card-title {
    min-width: 0;
}

.domain-card-title h2,
.domain-card-title a {
    margin: 0;
    color: var(--color-text);
    font-size: 1.45rem;
    line-height: 1.18;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.domain-card-title p {
    margin: 6px 0 0;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.35;
}

.availability-line {
    display: block;
    margin-top: 6px;
    color: var(--color-logo);
    font-size: 0.95rem;
}

.icon-tile {
    position: relative;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

.icon-tile img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.icon-tile.locker {
    background: #f1f3f5;
}

.icon-tile.group,
.icon-tile.locker.small {
    background: linear-gradient(135deg, var(--color-tertiary), var(--color-primary));
}

.icon-tile.group img,
.icon-tile.locker.small img {
    filter: brightness(0) invert(1);
}

.icon-tile.small {
    width: 58px;
    height: 58px;
}

.icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 2px solid var(--color-surface);
    border-radius: 999px;
    background: #df3f46;
    color: var(--color-text-light);
    font-size: 0.84rem;
    font-weight: 700;
}

.status-pill-v2 {
    border-radius: 8px;
    padding: 7px 12px;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pill-v2.success {
    background: #dffbea;
    color: #0f7a43;
}

.status-pill-v2.warning {
    background: #fff2c7;
    color: #8a4b0c;
}

.status-pill-v2.danger {
    background: #fff0f0;
    color: var(--color-error);
}

.status-pill-v2.neutral {
    background: #f1f5f9;
    color: var(--color-text);
}

.delivery-summary-banner {
    position: relative;
    overflow: hidden;
    padding: 20px 24px 20px 34px;
    border-radius: var(--radius-card);
    background: #eef3f5;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.delivery-summary-banner::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: var(--color-primary);
}

.locker-card-stack,
.group-card-stack,
.group-locker-stack {
    gap: 24px;
}

.package-count-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
}

.package-count-row .delivery-box-icon {
    width: 26px;
    height: 24px;
}

.latest-package-row,
.package-row {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.latest-package-row span,
.package-row span {
    color: var(--color-text-muted);
}

.unlock-button.wide {
    width: 100%;
    min-height: 62px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-tertiary));
}

.group-card-v2 {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
}

.group-locker-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.locker-detail-card {
    gap: 20px;
}

.card-section-title {
    margin: 0;
    font-size: 1.25rem;
}

.package-list {
    display: grid;
    gap: 12px;
}

.floating-action-button {
    position: fixed;
    right: 22px;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 22px);
    z-index: 18;
    width: 66px;
    height: 66px;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-tertiary));
    color: var(--color-text-light);
    box-shadow: var(--shadow-card);
    font-size: 2.2rem;
    line-height: 1;
}

.quick-actions-modal {
    width: min(100%, 520px);
    display: grid;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.quick-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quick-actions-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-square-button {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #f4f6f8;
    color: var(--color-text);
    font-size: 2rem;
    line-height: 1;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
    justify-items: center;
}

.quick-action {
    width: min(100%, 148px);
    display: grid;
    justify-items: center;
    gap: 12px;
    color: var(--color-text);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.quick-action-icon {
    width: 78px;
    height: 78px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--color-text-light);
    box-shadow: var(--shadow-soft);
    font-weight: 800;
}

.quick-action.blue .quick-action-icon {
    background: #2f6fe8;
}

.quick-action.cyan .quick-action-icon {
    background: #11add4;
}

.quick-action.green .quick-action-icon {
    background: #11b981;
}

.quick-action.orange .quick-action-icon {
    background: #f59e0b;
}

.quick-action.purple .quick-action-icon {
    background: #8b5cf6;
}

.quick-action.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.bottom-nav {
    left: 0;
    right: 0;
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.10);
}

.bottom-nav a,
.bottom-menu-button {
    font-size: 0.82rem;
}

.bottom-nav svg,
.bottom-menu-button svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@media (max-width: 520px) {
    .domain-card-header,
    .group-card-v2,
    .group-locker-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .domain-card-header .status-pill-v2,
    .group-card-v2 .status-pill-v2,
    .group-locker-row .status-pill-v2 {
        grid-column: 2;
        justify-self: start;
    }

    .group-card-v2 .chevron,
    .group-locker-row .chevron {
        display: none;
    }
}
