:root {
    --hh-bg: #f3f6f4;
    --hh-surface: #ffffff;
    --hh-ink: #1c2a24;
    --hh-muted: #5f7268;
    --hh-border: #d7e0db;
    --hh-brand: #1f6f54;
    --hh-brand-hover: #185844;
    --hh-accent: #e8f3ee;
    --hh-premium: #9a7418;
    --hh-danger: #b42318;
    --hh-radius: var(--bs-border-radius);
    --hh-radius-sm: var(--bs-border-radius);
    --hh-radius-lg: var(--bs-border-radius-lg, 0.75rem);
    --hh-shadow: 0 18px 40px rgba(28, 42, 36, 0.08);
    --hh-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--hh-font);
    color: var(--hh-ink);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--hh-brand) 12%, transparent), transparent 40%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--hh-brand) 8%, transparent), transparent 35%),
        var(--hh-bg);
}

a {
    color: var(--hh-brand);
}

.btn-primary {
    --bs-btn-bg: var(--hh-brand);
    --bs-btn-border-color: var(--hh-brand);
    --bs-btn-hover-bg: var(--hh-brand-hover);
    --bs-btn-hover-border-color: var(--hh-brand-hover);
    --bs-btn-active-bg: var(--hh-brand-hover);
    --bs-btn-active-border-color: var(--hh-brand-hover);
}

.form-control:focus {
    border-color: var(--hh-brand);
    box-shadow: 0 0 0 0.25rem rgba(31, 111, 84, 0.18);
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-shell {
    width: min(100%, calc(62rem + 200px));
    display: grid;
    gap: 0;
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: calc(var(--bs-border-radius) + 0.15rem);
    box-shadow: var(--hh-shadow);
    overflow: hidden;
}

.auth-pitch {
    padding: 2rem 1.75rem 1.5rem;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--hh-brand) 10%, var(--hh-surface)), var(--hh-accent) 70%, color-mix(in srgb, var(--hh-brand) 6%, var(--hh-surface)));
}

.auth-pitch-visual {
    margin: 0 0 1.35rem;
    border-radius: calc(var(--bs-border-radius) + 0.1rem);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--hh-brand) 12%, var(--hh-border));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--hh-brand) 10%, transparent);
    background: color-mix(in srgb, var(--hh-surface) 55%, transparent);
}

.auth-pitch-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 28% center;
}

.auth-pitch-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.auth-locale {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.auth-locale-form {
    display: inline;
    margin: 0;
}

.auth-locale-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--hh-muted);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.3rem 0.45rem;
    border-radius: 0.35rem;
    cursor: pointer;
}

button.auth-locale-btn:hover {
    color: var(--hh-brand);
    background: color-mix(in srgb, var(--hh-surface) 70%, transparent);
}

.auth-locale-btn.is-active {
    color: var(--hh-brand);
    background: var(--hh-surface);
    cursor: default;
}

.auth-pitch-headline {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.65rem;
}

.auth-pitch-lead {
    color: var(--hh-muted);
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.auth-pitch-blog {
    margin: 0 0 1.35rem;
}

.auth-pitch-blog a {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    text-decoration: none;
    color: var(--hh-brand);
}

.auth-pitch-blog a:hover {
    text-decoration: underline;
}

.auth-pitch-features {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-pitch-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--hh-ink);
    line-height: 1.35;
}

.auth-pitch-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: var(--bs-border-radius);
    background: var(--hh-surface);
    color: var(--hh-brand);
    font-size: 0.95rem;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--hh-brand) 12%, transparent);
}

.auth-pitch-app {
    color: var(--hh-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-panel {
    padding: 2rem 1.75rem;
    background: var(--hh-surface);
}

.auth-brand {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1.75rem;
}

.auth-brand-mark,
.app-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--bs-border-radius);
    background: var(--hh-accent);
    color: var(--hh-brand);
    font-size: 1.15rem;
}

.auth-brand-mark img,
.app-brand-mark img {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.35rem;
}

.auth-brand--pitch .auth-brand-mark {
    background: var(--hh-surface);
}

.auth-brand-name,
.app-brand-name {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-brand-tagline {
    color: var(--hh-muted);
    font-size: 0.9rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    color: var(--hh-muted);
    margin-bottom: 1.25rem;
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.auth-social-label {
    margin: 0;
    color: var(--hh-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-social-hint {
    margin: 0;
    color: var(--hh-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.auth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.85rem;
    font-weight: 600;
}

.auth-social-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.auth-social-btn .fa-google {
    color: #db4437;
}

.auth-social-btn .fa-facebook {
    color: #1877f2;
}

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

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

.auth-divider span {
    flex-shrink: 0;
}

.auth-form .form-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

@media (min-width: 768px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.75fr);
        align-items: stretch;
    }

    .auth-pitch {
        padding: 2.5rem 2.25rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid var(--hh-border);
    }

    .auth-panel {
        padding: 2.5rem 2.25rem;
    }

    .auth-pitch-visual {
        margin-bottom: 1.5rem;
    }

    .auth-pitch-features {
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .auth-pitch {
        padding-bottom: 1.25rem;
        border-bottom: 1px solid var(--hh-border);
    }

    .auth-pitch-top {
        margin-bottom: 1.1rem;
    }

    .auth-pitch-lead {
        margin-bottom: 1rem;
    }

    .auth-pitch-visual {
        margin-bottom: 1.1rem;
    }

    .auth-pitch-features {
        gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .auth-pitch-features li {
        font-size: 0.95rem;
    }
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    background: rgba(243, 246, 244, 0.86);
    border-bottom: 1px solid var(--hh-border);
}

.app-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    min-height: 4rem;
    gap: 0.5rem 0.75rem;
    padding-block: 0.5rem;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    order: 1;
}

.app-topbar-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    order: 2;
    margin-left: auto;
}

.app-topbar-group {
    flex: 1 0 100%;
    order: 3;
    min-width: 0;
}

.app-topbar-group .dropdown {
    display: block;
    width: 100%;
}

.app-group-switcher {
    width: 100%;
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    border-color: color-mix(in srgb, var(--hh-brand) 28%, var(--hh-border));
    background: color-mix(in srgb, var(--hh-brand) 10%, var(--hh-surface));
    color: var(--hh-ink);
}

.app-group-switcher.dropdown-toggle::after {
    margin-left: auto;
}

.app-group-switcher:hover,
.app-group-switcher:focus,
.app-group-switcher:active,
.app-group-switcher.show {
    border-color: color-mix(in srgb, var(--hh-brand) 40%, var(--hh-border));
    background: color-mix(in srgb, var(--hh-brand) 14%, var(--hh-surface));
    color: var(--hh-ink);
}

.app-group-switcher-crown {
    display: inline-flex;
    align-items: center;
    color: var(--hh-premium);
    font-size: 0.7rem;
    line-height: 1;
}

.app-group-switcher-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.app-group-menu {
    min-width: 16.5rem;
    margin-top: 0.4rem !important;
    padding: 0.4rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius-sm);
    box-shadow: 0 10px 28px rgba(20, 40, 30, 0.08);
}

.app-group-menu .dropdown-item,
.app-group-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: var(--hh-ink);
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.3;
}

.app-group-menu .dropdown-item:hover,
.app-group-menu .dropdown-item:focus,
.app-group-menu .dropdown-item:active,
.app-group-menu-item:hover,
.app-group-menu-item:focus,
.app-group-menu-item:active {
    background: color-mix(in srgb, var(--hh-brand) 8%, var(--hh-surface));
    color: var(--hh-ink);
}

.app-group-menu .dropdown-item.active,
.app-group-menu .dropdown-item.active:hover,
.app-group-menu .dropdown-item.active:focus,
.app-group-menu .dropdown-item.active:active,
.app-group-menu-item.is-active,
.app-group-menu-item.is-active:hover,
.app-group-menu-item.is-active:focus,
.app-group-menu-item.is-active:active {
    margin-bottom: 0.35rem;
    background: color-mix(in srgb, var(--hh-brand) 12%, var(--hh-surface));
    color: var(--hh-ink);
}

.app-group-menu-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.app-group-menu-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.app-group-menu-item-role {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--hh-muted);
    text-transform: lowercase;
}

.app-group-menu-item-check {
    flex: 0 0 auto;
    color: var(--hh-brand);
    font-size: 0.8rem;
}

.app-premium-upsell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 0.45rem;
    background: color-mix(in srgb, #f4ebcf 55%, var(--hh-surface));
}

.app-group-menu .app-premium-upsell {
    margin: 0;
}

.app-premium-upsell-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.app-premium-upsell-title {
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hh-ink);
}

.app-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, #c9a227 35%, transparent);
    background: linear-gradient(180deg, #f7efd6, #ead89a);
    color: var(--hh-premium);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.app-user-label {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    max-width: 100%;
    vertical-align: baseline;
}

.app-user-label-text {
    min-width: 0;
}

.app-user-premium-crown {
    flex: 0 0 auto;
    font-size: 0.68em;
    color: #8a6410;
    line-height: 1;
}

.app-user-initials {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

.app-user-initials--premium .shopping-item-author-initials {
    border: 1px solid color-mix(in srgb, #c9a227 55%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, #f7efd6 70%, transparent);
}

.app-user-initials .app-user-premium-crown {
    font-size: 0.55rem;
}

.app-premium-badge i {
    font-size: 0.6rem;
    color: #8a6410;
}

.app-premium-upsell-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--hh-muted);
}

.app-premium-upsell-hint i {
    font-size: 0.65rem;
    color: color-mix(in srgb, var(--hh-premium) 70%, var(--hh-muted));
}

a.app-premium-upsell {
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

a.app-premium-upsell:hover {
    background: color-mix(in srgb, #f4ebcf 75%, var(--hh-surface));
}

.app-btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid color-mix(in srgb, #c9a227 40%, var(--hh-border));
    background: linear-gradient(180deg, #fffdf7, #f7efd6);
    color: var(--hh-ink);
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.app-btn-premium:hover,
.app-btn-premium:focus-visible {
    border-color: color-mix(in srgb, #c9a227 55%, var(--hh-border));
    background: linear-gradient(180deg, #fff9eb, #f0e2b0);
    color: var(--hh-ink);
}

.app-btn-premium > i {
    color: var(--hh-premium);
}

.app-btn-premium .app-premium-badge {
    margin-left: 0.1rem;
}

.finance-assets-csv-actions {
    flex: 0 1 auto;
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
}

.finance-assets-csv-actions > .d-flex {
    justify-content: flex-end;
}

.finance-assets-csv-upsell {
    align-items: flex-end;
    text-align: right;
}

.finance-bulk-date {
    max-width: 14rem;
}

.finance-bulk-rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.finance-bulk-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(5.5rem, 0.7fr);
    gap: 0.5rem;
    align-items: center;
}

.finance-bulk-row-name {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-bulk-row-preview {
    grid-column: 2 / 4;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    margin-top: -0.15rem;
}

@media (min-width: 576px) {
    .finance-bulk-row {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(6rem, 0.65fr) minmax(0, 1fr);
    }

    .finance-bulk-row-preview {
        grid-column: auto;
        margin-top: 0;
        text-align: right;
    }
}

.finance-bulk-rates {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .finance-bulk-rates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.finance-bulk-rate-row .form-label {
    margin-bottom: 0.25rem;
}

.premium-page-header .page-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.premium-page-badge {
    font-size: 0.7rem;
}

.premium-status-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .premium-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.premium-status {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: var(--bs-border-radius);
    border: 1px solid var(--hh-border);
    background: var(--hh-surface);
}

.premium-status > i {
    margin-top: 0.15rem;
    font-size: 1.15rem;
}

.premium-status-scope {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--hh-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.premium-status strong {
    display: block;
    margin-bottom: 0.15rem;
}

.premium-status p {
    color: var(--hh-muted);
    font-size: 0.95rem;
}

.premium-status--active {
    border-color: color-mix(in srgb, #c9a227 35%, var(--hh-border));
    background: linear-gradient(180deg, color-mix(in srgb, #f7efd6 40%, var(--hh-surface)), var(--hh-surface));
}

.premium-status--active > i {
    color: var(--hh-premium);
}

.premium-status--free > i {
    color: var(--hh-brand);
}

.premium-compare {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .premium-compare {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

.premium-compare-col .panel-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.premium-compare-col--premium {
    border-color: color-mix(in srgb, #c9a227 28%, var(--hh-border));
    background:
        linear-gradient(180deg, color-mix(in srgb, #f7efd6 35%, var(--hh-surface)), var(--hh-surface) 42%);
}

.premium-benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.premium-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.4;
}

.premium-benefit-list i {
    margin-top: 0.2rem;
    color: var(--hh-brand);
    font-size: 0.85rem;
}

.premium-compare-col--premium .premium-benefit-list i {
    color: var(--hh-premium);
}

.premium-why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.premium-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: var(--bs-border-radius);
    background: color-mix(in srgb, #f7efd6 70%, var(--hh-accent));
    color: var(--hh-premium);
}

.premium-why-list strong {
    display: block;
    margin-bottom: 0.15rem;
}

.premium-cta-note {
    color: var(--hh-muted);
    font-size: 0.95rem;
}

.group-accent-panel.is-unlocked {
    border-color: color-mix(in srgb, #c9a227 28%, var(--hh-border));
    background:
        linear-gradient(180deg, color-mix(in srgb, #f7efd6 35%, var(--hh-surface)), var(--hh-surface) 42%);
}

.group-accent-divider {
    margin: 1rem 0;
    border: 0;
    border-top: 1px dotted var(--hh-border);
    opacity: 1;
}

.group-accent-swatches {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-content: space-between;
    gap: 0.85rem 0;
    width: 100%;
}

.group-accent-swatch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 100%;
    min-width: 0;
}

.group-accent-swatches.is-locked .group-accent-swatch {
    cursor: default;
    opacity: 0.72;
}

.group-accent-swatch-input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.group-accent-swatch-chip {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.4rem;
    border: 1px solid color-mix(in srgb, var(--swatch-brand) 40%, var(--hh-border));
    background: var(--swatch-brand);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.group-accent-swatch-name {
    display: block;
    width: 100%;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--hh-muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-accent-swatch:hover .group-accent-swatch-chip,
.group-accent-swatch-input:focus-visible + .group-accent-swatch-chip {
    border-color: var(--swatch-brand);
}

.group-accent-swatch.is-selected .group-accent-swatch-chip,
.group-accent-swatch:has(.group-accent-swatch-input:checked) .group-accent-swatch-chip {
    border-color: var(--swatch-brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--swatch-brand) 28%, transparent);
}

.group-accent-swatch.is-selected .group-accent-swatch-name,
.group-accent-swatch:has(.group-accent-swatch-input:checked) .group-accent-swatch-name {
    color: var(--hh-ink);
    font-weight: 600;
}

.app-user-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--hh-brand) 22%, var(--hh-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--hh-brand) 12%, var(--hh-surface));
    color: var(--hh-brand);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
}

.app-user-avatar--premium {
    border-color: color-mix(in srgb, #c9a227 45%, var(--hh-border));
    background: color-mix(in srgb, #f7efd6 55%, var(--hh-surface));
}

.app-user-avatar-crown {
    position: absolute;
    top: -0.12rem;
    right: -0.12rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, #c9a227 40%, transparent);
    background: linear-gradient(180deg, #f7efd6, #ead89a);
    color: #8a6410;
    font-size: 0.48rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(20, 40, 30, 0.12);
}

.app-user-avatar:hover,
.app-user-avatar:focus-visible,
.app-user-avatar[aria-expanded="true"] {
    background: color-mix(in srgb, var(--hh-brand) 18%, var(--hh-surface));
    border-color: color-mix(in srgb, var(--hh-brand) 36%, var(--hh-border));
    color: var(--hh-brand);
    outline: none;
}

.app-user-avatar--premium:hover,
.app-user-avatar--premium:focus-visible,
.app-user-avatar--premium[aria-expanded="true"] {
    background: color-mix(in srgb, #f7efd6 70%, var(--hh-surface));
    border-color: color-mix(in srgb, #c9a227 55%, var(--hh-border));
    color: var(--hh-brand);
}

.app-user-menu {
    min-width: 14rem;
    margin-top: 0.4rem !important;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius-sm);
    box-shadow: 0 10px 28px rgba(20, 40, 30, 0.08);
}

.app-user-menu-header {
    max-width: 16rem;
}

.app-user-menu-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.app-user-menu-name .app-user-label {
    max-width: 100%;
}

.app-user-menu-name .app-user-label-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-menu-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
}

.app-user-menu .dropdown-item i {
    width: 1rem;
    text-align: center;
    opacity: 0.75;
}

.app-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius-sm);
    background: var(--hh-surface);
    color: var(--hh-ink);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.app-nav-toggle:hover,
.app-nav-toggle:focus-visible {
    background: var(--hh-accent);
    border-color: color-mix(in srgb, var(--hh-brand) 28%, var(--hh-border));
    color: var(--hh-brand);
    outline: none;
}

.app-nav-toggle-close {
    display: none;
}

.app-nav-toggle[aria-expanded="true"] .app-nav-toggle-open {
    display: none;
}

.app-nav-toggle[aria-expanded="true"] .app-nav-toggle-close {
    display: inline-block;
}

.app-nav {
    flex: 1 0 100%;
    order: 4;
}

.app-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--hh-border);
}

.app-nav-link {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 999px;
    color: var(--hh-muted);
    text-decoration: none;
    font-size: 0.975rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.app-nav-link:hover,
.app-nav-link:focus-visible {
    background: color-mix(in srgb, var(--hh-brand) 8%, transparent);
    color: var(--hh-brand);
    outline: none;
}

.app-nav-link.is-active {
    background: color-mix(in srgb, var(--hh-brand) 14%, var(--hh-surface));
    color: var(--hh-brand);
    font-weight: 600;
}

.app-nav-link.is-active:hover,
.app-nav-link.is-active:focus-visible {
    background: color-mix(in srgb, var(--hh-brand) 18%, var(--hh-surface));
    color: var(--hh-brand-hover);
}

/* Tablet / iPad: one row — brand | group | account | burger */
@media (min-width: 768px) {
    .app-topbar-group {
        flex: 0 1 auto;
        width: auto;
        max-width: 14rem;
        order: 2;
        margin-left: auto;
    }

    .app-topbar-group .dropdown {
        width: auto;
    }

    .app-group-switcher {
        width: auto;
        max-width: 14rem;
    }

    .app-topbar-tools {
        order: 3;
        margin-left: 0;
    }

    .app-nav {
        order: 4;
    }
}

/* Desktop: one row with horizontal nav, no burger */
@media (min-width: 1200px) {
    .app-topbar-inner {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .app-brand {
        order: 1;
    }

    .app-nav.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible;
        flex: 1 1 auto;
        order: 2;
        min-width: 0;
    }

    .app-topbar-group {
        order: 3;
        margin-left: 0;
    }

    .app-topbar-tools {
        order: 4;
        margin-left: 0;
    }

    .app-nav-toggle {
        display: none;
    }

    .app-nav-links {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.15rem;
        padding: 0;
        border-top: 0;
    }

    .app-nav-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.875rem;
        font-weight: 500;
        white-space: nowrap;
    }
}

.app-main {
    padding-block: 2rem 3rem;
}

.app-footer {
    border-top: 1px solid var(--hh-border);
    padding-block: 1.25rem 2rem;
    margin-top: auto;
}

.app-footer-inner {
    display: flex;
    justify-content: center;
}

.app-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.25rem;
    font-size: 0.875rem;
}

.app-footer-nav a {
    color: var(--hh-muted);
    text-decoration: none;
}

.app-footer-nav a:hover {
    color: var(--hh-brand);
    text-decoration: underline;
}

.help-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 36rem;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    background: var(--hh-surface);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.help-link:hover {
    background: var(--hh-accent);
    border-color: color-mix(in srgb, var(--hh-brand) 28%, var(--hh-border));
    color: inherit;
}

.help-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--hh-radius-sm);
    background: var(--hh-accent);
    color: var(--hh-brand);
    flex-shrink: 0;
}

.help-link-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
    font-size: 0.925rem;
}

.help-link-body strong {
    font-weight: 600;
}

.help-link-chevron {
    color: var(--hh-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.help-placeholder {
    max-width: 36rem;
    padding: 1.5rem 1.25rem;
    border: 1px dashed var(--hh-border);
    border-radius: var(--hh-radius);
    background: color-mix(in srgb, var(--hh-surface) 70%, transparent);
    text-align: center;
}

.help-placeholder-icon {
    display: inline-flex;
    margin-bottom: 0.65rem;
    font-size: 1.35rem;
    color: var(--hh-brand);
}

.faq-list.accordion {
    --bs-accordion-border-color: var(--hh-border);
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-bg: transparent;
    --bs-accordion-active-bg: color-mix(in srgb, var(--hh-brand) 6%, transparent);
    --bs-accordion-active-color: var(--hh-ink);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--hh-brand) 18%, transparent);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    overflow: hidden;
    background: var(--hh-surface);
}

.faq-list .accordion-item {
    border-color: var(--hh-border);
    background: transparent;
}

.faq-list .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--hh-ink);
    box-shadow: none;
}

.faq-list .accordion-button:not(.collapsed) {
    color: var(--hh-ink);
}

.faq-list .faq-answer {
    color: var(--hh-muted);
    line-height: 1.55;
    white-space: pre-line;
}

.home-welcome h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.home-lead {
    max-width: 36rem;
    color: var(--hh-muted);
    font-size: 1.05rem;
    margin: 0;
}

.home-actions {
    margin-top: 1.5rem;
}

.home-dashboard-header {
    margin-bottom: 1.75rem;
}

.home-modules {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .home-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .home-modules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-module {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    box-shadow: 0 10px 24px rgba(28, 42, 36, 0.04);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.home-module:hover {
    border-color: rgba(31, 111, 84, 0.35);
    background: var(--hh-accent);
    color: inherit;
    transform: translateY(-1px);
}

.home-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--hh-radius-sm);
    background: var(--hh-accent);
    color: var(--hh-brand);
    font-size: 1.05rem;
}

.home-module:hover .home-module-icon {
    background: var(--hh-surface);
}

.home-module-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.home-module-title {
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.home-module-meta {
    color: var(--hh-muted);
    font-size: 0.925rem;
    line-height: 1.35;
}

.home-module-chevron {
    color: var(--hh-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.home-glance {
    margin-top: 2rem;
}

.home-glance-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.9rem;
}

.home-glance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

@media (min-width: 768px) {
    .home-glance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .home-glance-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-glance-panel {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding: 1rem 1.1rem 1.05rem;
}

.home-glance-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.home-glance-panel-head h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.home-glance-panel-head a {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.home-glance-panel-head a:hover {
    text-decoration: underline;
}

.home-glance-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.home-glance-list li {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    color: var(--hh-ink);
    font-size: 0.95rem;
    line-height: 1.4;
    min-width: 0;
}

.home-glance-qty,
.home-glance-meta {
    color: var(--hh-muted);
    font-size: 0.875rem;
}

.home-glance-notes li {
    align-items: flex-start;
}

.home-glance-note-swatch {
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: var(--note-color, #ffe8a3);
    flex-shrink: 0;
}

.home-glance-note-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
}

.home-glance-more {
    margin: 0.65rem 0 0;
    color: var(--hh-muted);
    font-size: 0.875rem;
}

.home-empty-hint {
    margin: 1.75rem 0 0;
    color: var(--hh-muted);
    max-width: 36rem;
}

.home-activity {
    margin-top: 2rem;
}

.home-activity-list {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    padding-inline: 0.35rem;
}

.home-activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: var(--hh-radius-sm);
    background: var(--hh-accent);
    color: var(--hh-brand);
    font-size: 0.9rem;
}

.home-activity-text {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

a.home-activity-text:hover {
    color: var(--hh-brand);
    text-decoration: underline;
}

.home-activity-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
    color: var(--hh-muted);
    font-size: 0.875rem;
}

.auth-switch {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--hh-muted);
}

.auth-legal-links {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--hh-muted);
}

.auth-legal-links a {
    color: var(--hh-muted);
    text-decoration: none;
}

.auth-legal-links a:hover {
    color: var(--hh-brand);
    text-decoration: underline;
}

.auth-legal-links span {
    margin: 0 0.35rem;
}

.page-title {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.page-lead {
    color: var(--hh-muted);
    margin-bottom: 1.5rem;
}

.content-panel {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    box-shadow: var(--hh-shadow);
    padding: 1.35rem 1.25rem;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
}


.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--hh-accent);
    color: var(--hh-brand);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: lowercase;
}

.invite-url-box .form-control {
    font-size: 0.9rem;
}

.invite-qr-modal .modal-content {
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    box-shadow: var(--hh-shadow);
}

.invite-qr-help {
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 22rem;
    margin-inline: auto;
}

.invite-qr-canvas-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 256px;
    height: 256px;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius-sm);
}

.invite-qr-image {
    display: block;
    width: 240px;
    height: 240px;
}

.invite-qr-image[hidden] {
    display: none !important;
}

.add-form-options {
    border-top: 1px dashed var(--hh-border);
    padding-top: 0.75rem;
}

.add-form-options-summary {
    cursor: pointer;
    user-select: none;
    color: rgba(28, 42, 36, 0.72);
    font-size: 0.9rem;
    font-weight: 600;
}

.add-form-options-summary:hover {
    color: var(--hh-ink);
}

.add-form-options .form-label {
    font-size: 0.85rem;
}

.shopping-list-search .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    border: 0;
    padding: 0;
    line-height: 0;
}

.shopping-list-search .input-group-text i {
    display: block;
    line-height: 1;
    margin-top: 2px;
}

/* "autocompleter" library — the container always gets its base "autocomplete"
   class; theming is scoped to our own className so it matches the design system. */
.autocomplete.shopping-item-suggestions {
    background: var(--hh-surface);
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius-sm);
    box-shadow: var(--hh-shadow);
    padding: 0.35rem;
    font-family: var(--hh-font);
}

.autocomplete.shopping-item-suggestions > div {
    padding: 0.5rem 0.75rem;
    border-radius: var(--bs-border-radius);
    color: var(--hh-ink);
    font-size: 0.95rem;
    cursor: pointer;
}

.autocomplete.shopping-item-suggestions > div:hover,
.autocomplete.shopping-item-suggestions > div.selected {
    background: var(--hh-accent);
    color: var(--hh-brand);
}

.shopping-list-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.shopping-list-search {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: var(--hh-radius-sm);
    border: 1px solid var(--hh-border);
    overflow: hidden;
}

.shopping-list-search .input-group-text {
    width: 2.25rem;
    background: var(--hh-surface);
    color: var(--hh-muted);
}

.shopping-list-search .form-control {
    border: 0;
    box-shadow: none !important;
}

.shopping-list-sort {
    flex: 0 0 auto;
    width: auto;
    max-width: 11rem;
    border-color: var(--hh-border);
    font-size: 0.85rem;
}

.shopping-list-filter-meta,
.shopping-list-filter-empty {
    font-size: 0.8rem;
    margin-top: -0.35rem;
}

.shopping-list-footer {
    border-top: 1px dashed var(--hh-border);
}

.shopping-item-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 65%;
}

.shopping-item-main {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}

.shopping-item-thumb-btn {
    display: inline-flex;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: var(--bs-border-radius);
    cursor: zoom-in;
    line-height: 0;
}

.shopping-item-thumb-btn:hover .shopping-item-thumb,
.shopping-item-thumb-btn:focus-visible .shopping-item-thumb {
    outline: 2px solid color-mix(in srgb, var(--hh-brand) 45%, transparent);
    outline-offset: 1px;
}

.shopping-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    padding: 0.15rem 0.25rem;
    color: var(--hh-ink);
    font-size: 1.05rem;
}

.shopping-check-toggle,
.shopping-item-body-btn {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    line-height: inherit;
}

.shopping-check-toggle {
    flex-shrink: 0;
}

.shopping-item-body-btn {
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.shopping-check-toggle i {
    color: #8a9991;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.shopping-item-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-wrap: wrap;
}

.shopping-item-last-comment {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    min-width: 0;
    color: var(--hh-muted);
    font-size: 0.8rem;
    text-align: right;
}

.comment-author-initials,
.shopping-item-author-initials {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--hh-accent);
    color: var(--hh-brand);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
}

.shopping-item-last-comment .comment-text {
    flex: 1 1 auto;
    min-width: 0;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopping-item-last-comment .comment-time {
    flex-shrink: 0;
    font-size: 0.75rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--hh-accent);
    color: var(--hh-brand);
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shopping-item.is-bought .shopping-item-name {
    text-decoration: line-through;
    color: var(--hh-muted);
}

.shopping-item.is-bought .shopping-check-toggle i {
    color: var(--hh-brand);
}

.shopping-item-comment-toggle {
    position: relative;
    flex-shrink: 0;
}

.shopping-item-edit {
    flex-shrink: 0;
}

.shopping-item-favourite-form,
.shopping-item-image-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.shopping-item-image-btn {
    cursor: pointer;
    margin: 0;
}

.shopping-item-image-btn.has-image {
    color: var(--hh-brand) !important;
}

label.shopping-item-image-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shopping-item-favourite {
    color: var(--hh-muted);
    flex-shrink: 0;
}

.shopping-item-favourite:hover,
.shopping-item-favourite:focus-visible {
    color: #c9971a;
}

.shopping-item-favourite.is-favourite {
    color: #c9971a;
}

.comment-count {
    position: absolute;
    top: 0.05rem;
    right: 0.05rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--hh-brand);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-row {
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--hh-border);
}

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

.comment-meta {
    color: var(--hh-muted);
    font-size: 0.8rem;
}

.shopping-item-delete {
    margin: 0;
}

.audit-item-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.audit-item-name {
    font-weight: 600;
}

.audit-item.is-bought .audit-item-name {
    color: var(--hh-muted);
}

.audit-item.is-deleted .audit-item-name {
    text-decoration: line-through;
    color: var(--hh-muted);
}

.audit-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.card-scan-page {
    min-height: 100vh;
    background: #f7faf8;
}

.card-scan-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.card-scan-top {
    padding: 0;
    border-bottom: 1px solid var(--hh-border);
    background: rgba(255, 255, 255, 0.92);
}

.card-scan-top-inner {
    display: flex;
    min-height: 4rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.card-scan-stage {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-align: center;
}

.loyalty-card-show .card-scan-stage {
    padding: 1.5rem 1.25rem;
}

.card-scan-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.card-scan-type {
    color: var(--hh-muted);
    margin-bottom: 1.25rem;
}

.card-scan-canvas-wrap {
    width: 100%;
    background: #fff;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    box-shadow: var(--hh-shadow);
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 10rem;
}

.card-scan-canvas-wrap svg,
.card-scan-canvas-wrap canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.card-scan-canvas-wrap svg[hidden],
.card-scan-canvas-wrap canvas[hidden],
.card-scan-canvas-wrap [hidden] {
    display: none !important;
}

.card-scan-text-number {
    margin: 0;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.card-scan-photo {
    width: min(100%, 28rem);
}

.card-scan-photo img,
.loyalty-card-thumb {
    display: block;
    width: 100%;
    max-width: 28rem;
    border-radius: var(--hh-radius);
    border: 1px solid var(--hh-border);
    background: #fff;
}

.loyalty-card-thumb {
    max-width: 16rem;
}

.loyalty-card-list-main {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.75rem;
}

.loyalty-card-list-main:hover strong {
    color: var(--hh-brand);
}

.loyalty-card-list-body {
    min-width: 0;
}

.loyalty-card-list-thumbnail {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    aspect-ratio: 1;
    flex: 0 0 3.25rem;
    object-fit: cover;
    object-position: left center;
    border: 1px solid var(--hh-border);
    border-radius: var(--bs-border-radius);
    background: #fff;
}

.loyalty-card-list-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    color: #8a9490;
    background: #dfe5e1;
    text-align: center;
}

.loyalty-card-list-thumbnail-placeholder i {
    display: block;
    font-size: 1.1rem;
    line-height: 1;
    color: #9aa5a0;
}

.loyalty-card-list-thumbnail-placeholder span {
    display: none;
}

.card-image-dropzone {
    position: relative;
    display: flex;
    min-height: 14rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 0;
    border-radius: 0;
    background: #f8faf9;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.card-image-dropzone-input {
    position: absolute;
    z-index: 5;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.card-image-dropzone.is-dragging {
    background: var(--hh-accent);
}

.card-image-dropzone-placeholder {
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    color: var(--hh-muted);
    text-align: center;
}

.card-image-dropzone-placeholder[hidden] {
    display: none;
}

.card-image-dropzone-hint {
    max-width: 14rem;
    line-height: 1.35;
}

.card-image-dropzone-icon {
    display: block;
    color: var(--hh-brand);
    font-size: 1.75rem;
    line-height: 1;
}

.card-image-dropzone-preview {
    display: block;
    width: auto;
    max-width: 100%;
    aspect-ratio: 1.586 / 1;
    object-fit: contain;
    border-radius: var(--bs-border-radius);
    background: #fff;
    pointer-events: none;
}

.card-image-dropzone-preview[hidden] {
    display: none;
}

.card-image-dropzone-filename {
    position: relative;
    z-index: 6;
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
    pointer-events: none;
}

.loyalty-card-form {
    width: 100%;
    margin-inline: auto;
}

.loyalty-card-edit-name {
    display: inline;
    margin-left: 0.35rem;
    color: var(--hh-brand);
    font-weight: 650;
}

.loyalty-card-form .content-panel {
    margin-inline: auto;
}

.card-image-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.card-image-panel {
    display: flex;
    overflow: hidden;
    flex: 1;
    flex-direction: column;
    border: 2px dashed var(--hh-border);
    border-radius: var(--bs-border-radius);
    background: #f8faf9;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-image-panel:has(.card-image-dropzone.is-dragging) {
    border-color: var(--hh-brand);
    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.12);
}

.card-image-panel .card-image-dropzone {
    flex: 1;
}

.card-image-remove {
    position: relative;
    z-index: 6;
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--hh-border);
    background: var(--hh-surface);
    text-align: left;
}

.card-image-remove > :last-child,
.card-image-remove .mb-3 {
    margin-bottom: 0 !important;
}

.card-code-section {
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

.card-code-editor {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--bs-border-radius);
    background: transparent;
    box-shadow: none;
}

.card-code-editor:focus-within {
    box-shadow: none;
}

.card-code-input {
    width: 100%;
    height: 4rem;
    min-height: 0;
    padding-block: 0.7rem;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    color: var(--hh-ink);
    font-size: clamp(2rem, 5vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-align: center;
}

.card-code-input:focus {
    border-color: var(--hh-brand);
    background: #fff;
}

.card-side-gallery {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 2rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--hh-border);
    border-radius: var(--bs-border-radius);
    background: var(--hh-surface);
    box-shadow: 0 16px 40px rgba(28, 42, 36, 0.08);
    text-align: left;
}

.card-side-gallery-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.card-side-gallery-icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: var(--bs-border-radius);
    background: #e8f3ee;
    color: var(--hh-brand);
    font-size: 1.15rem;
}

.card-side-gallery-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
}

.card-side-gallery-header p {
    margin: 0.15rem 0 0;
    color: var(--hh-muted);
    font-size: 0.85rem;
}

.card-side-card {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    color: var(--hh-ink);
    text-decoration: none;
    border: 1px solid var(--hh-border);
    border-radius: var(--bs-border-radius);
    background: #f3f7f5;
    box-shadow: 0 8px 24px rgba(28, 42, 36, 0.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-side-card:only-child {
    width: 100%;
}

.card-side-card:hover {
    color: var(--hh-ink);
    border-color: rgba(31, 111, 84, 0.38);
    box-shadow: 0 14px 32px rgba(28, 42, 36, 0.15);
    transform: translateY(-3px);
}

.card-side-card:focus-visible {
    outline: 3px solid rgba(31, 111, 84, 0.28);
    outline-offset: 3px;
}

.card-side-card-label,
.card-side-card-expand {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border: 1px solid rgba(28, 42, 36, 0.1);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 3px 12px rgba(28, 42, 36, 0.12);
}

.card-side-card-label {
    left: 0.75rem;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-side-card-expand {
    right: 0.75rem;
    width: 2rem;
    border-radius: 50%;
    color: var(--hh-brand);
    font-size: 0.75rem;
}

.card-side-media {
    display: block;
    aspect-ratio: 1.586 / 1;
    overflow: hidden;
}

.card-side-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transition: transform 0.25s ease;
}

.card-side-card:hover .card-side-media img {
    transform: scale(1.025);
}

.barcode-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.75rem;
}

.barcode-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    border: 1px solid var(--hh-border);
    border-radius: var(--bs-border-radius);
    background: #fff;
    padding: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.barcode-type-card:hover,
.barcode-type-card.is-selected {
    border-color: var(--hh-brand);
    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.12);
}

.barcode-type-card-label {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
}

.barcode-type-card-hint {
    color: var(--hh-muted);
    font-size: 0.78rem;
    line-height: 1.3;
    min-height: 2.4em;
}

.barcode-type-card-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    background: #f8faf9;
    border-radius: var(--bs-border-radius);
    padding: 0.35rem;
}

.barcode-type-card-preview canvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: #fff;
}

.barcode-type-card-preview [hidden] {
    display: none !important;
}

.barcode-type-card-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 0.95rem;
    word-break: break-all;
    text-align: center;
}

.barcode-type-card-error {
    color: var(--hh-danger);
    font-size: 0.72rem;
    text-align: center;
}

.barcode-live-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    padding: 1rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius);
    background: #fff;
}

.barcode-live-preview canvas,
.barcode-live-preview svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.barcode-live-preview [hidden] {
    display: none !important;
}

.barcode-live-text {
    color: var(--hh-muted);
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 600;
    word-break: break-all;
}

.barcode-scanner-reader {
    width: 100%;
    max-width: 28rem;
    overflow: hidden;
    border-radius: var(--hh-radius);
    border: 1px solid var(--hh-border);
    background: #111;
}

.barcode-scanner-reader video {
    width: 100% !important;
}

.card-scan-code {
    margin-top: 1rem;
    font-size: 0.95rem;
    word-break: break-all;
    color: var(--hh-ink);
}

.card-scan-hint {
    margin-top: 0.75rem;
    color: var(--hh-muted);
    font-size: 0.9rem;
}

.card-scan-error {
    margin-top: 1rem;
    max-width: 28rem;
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-pitch,
    .auth-panel {
        padding: 1.5rem 1.25rem;
    }
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.error-shell {
    width: min(100%, 32rem);
    text-align: center;
    padding: 2.25rem 1.75rem;
    background: color-mix(in srgb, var(--hh-surface) 92%, transparent);
    border: 1px solid var(--hh-border);
    border-radius: calc(var(--hh-radius) + 0.35rem);
    box-shadow: var(--hh-shadow);
}

.error-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    color: inherit;
}

.error-code {
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: color-mix(in srgb, var(--hh-brand) 70%, var(--hh-ink));
}

.error-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 650;
    color: var(--hh-ink);
}

.error-lead {
    margin: 0 0 1.25rem;
    color: var(--hh-muted);
    line-height: 1.55;
}

.error-path {
    margin: 0;
    padding: 0.85rem 1rem;
    background: var(--hh-accent);
    border: 1px solid color-mix(in srgb, var(--hh-brand) 18%, var(--hh-border));
    border-radius: var(--hh-radius);
    text-align: left;
    word-break: break-all;
}

.error-path-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    color: var(--hh-muted);
}

.error-path code {
    font-size: 0.92rem;
    color: var(--hh-ink);
}

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
    background: color-mix(in srgb, var(--hh-surface) 96%, transparent);
    border-top: 1px solid var(--hh-border);
    box-shadow: 0 -10px 28px rgba(28, 42, 36, 0.08);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
}

.cookie-consent-text {
    flex: 1 1 auto;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--hh-muted);
}

.cookie-consent-accept {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-consent-accept {
        width: 100%;
    }
}

.sticky-notes-color-picker {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0.15rem;
    border: 1px solid var(--hh-border);
    border-radius: 0.45rem;
    cursor: pointer;
    background: transparent;
}

ul.app-list,
.app-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    padding-left: 0;
    list-style: none;
}

.app-list > li {
    list-style: none;
}

.app-list-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.65rem 0.15rem;
    border-radius: var(--bs-border-radius);
}

.app-list-row:not(:last-child) {
    border-bottom: 1px dashed var(--hh-border);
}

.app-list-row:hover {
    background: rgba(31, 111, 84, 0.04);
}

.app-list-row-ghost {
    opacity: 0.4;
}

.app-list-reorder-disabled .drag-handle,
.app-list-row-hidden .drag-handle {
    opacity: 0.35;
    cursor: not-allowed;
}

.app-list-row-handle,
.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    flex: 0 0 auto;
    flex-shrink: 0;
    color: var(--hh-muted);
    cursor: grab;
    touch-action: none;
}

.app-list-row-main {
    flex: 1 1 auto;
    min-width: 0;
}

.app-list-row-actions {
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex: 0 0 auto;
    gap: 0.05rem;
}

.app-list-row-actions form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.app-list-row-actions a,
.app-list-row-actions .btn,
.app-list-row-action-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    line-height: 1;
    text-decoration: none;
}

.app-list-row-actions a:hover,
.app-list-row-actions a:focus,
.app-list-row-actions .btn:hover,
.app-list-row-actions .btn:focus {
    text-decoration: none;
}

.profile-social-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.profile-social-icon {
    width: 1.1rem;
    text-align: center;
}

.profile-social-icon--google {
    color: #db4437;
}

.profile-social-icon--facebook {
    color: #1877f2;
}

.invite-list > .invite-item {
    list-style: none;
    padding: 0.65rem 0.15rem;
}

.invite-list > .invite-item:not(:last-child) {
    border-bottom: 1px dashed var(--hh-border);
}

.invite-item .app-list-row {
    padding: 0;
    border-bottom: 0;
}

.invite-item .app-list-row:hover {
    background: transparent;
}

.invite-item:hover {
    background: rgba(31, 111, 84, 0.04);
    border-radius: var(--bs-border-radius);
}

.add-note-form-inline .sticky-note-input {
    resize: none;
    overflow-y: hidden;
    height: calc(1.5em + 0.75rem + 2px);
    min-height: calc(1.5em + 0.75rem + 2px);
    field-sizing: fixed;
}

.sticky-notes-options-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 0;
}

.sticky-notes-option {
    min-width: 0;
}

.sticky-notes-option .form-label {
    margin-bottom: 0.25rem;
}

.sticky-notes-option-date {
    flex: 1 1 7.5rem;
}

.sticky-notes-option-interval {
    flex: 0 0 4.25rem;
}

.sticky-notes-option-frequency {
    flex: 1 1 8rem;
}

.sticky-notes-option-private {
    flex: 0 0 auto;
    padding-bottom: 0.45rem;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .sticky-notes-options-row {
        flex-wrap: wrap;
    }

    .sticky-notes-option-date,
    .sticky-notes-option-frequency {
        flex: 1 1 calc(50% - 0.25rem);
    }

    .sticky-notes-option-interval {
        flex: 0 0 4.25rem;
    }

    .sticky-notes-option-private {
        flex: 1 1 auto;
        padding-bottom: 0.2rem;
    }
}

.sticky-note-row {
    align-items: flex-start;
    border-left: 0;
    margin-left: 0;
    padding-left: 0.15rem;
}

.sticky-note-swatch {
    flex: 0 0 auto;
    width: 0.7rem;
    height: 0.7rem;
    /* Center on the first content line: (1.02rem * 1.3 - 0.7rem) / 2 */
    margin-top: 0.31rem;
    border: 0;
    border-radius: 50%;
    background: var(--note-color, #ffe8a3);
}

.sticky-note-content {
    margin: 0 0 0.15rem;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--hh-ink);
}

.sticky-note-row .app-list-row-actions {
    /* Match icon buttons to first content line */
    margin-top: 0.05rem;
}

.sticky-note-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.sticky-note-meta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(28, 42, 36, 0.72);
    font-size: 0.8rem;
}

.sticky-note-meta-sep {
    color: rgba(28, 42, 36, 0.45);
    font-size: 0.8rem;
}

.sticky-notes-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 768px) {
    .sticky-notes-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sticky-notes-column {
    min-width: 0;
}

.sticky-notes-section-title {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: rgba(28, 42, 36, 0.72);
}

.sticky-note-private-icon {
    margin-right: 0.35rem;
    color: rgba(28, 42, 36, 0.55);
    font-size: 0.85rem;
}

.sticky-note-due {
    font-weight: 600;
    color: rgba(28, 42, 36, 0.85);
}

.sticky-note-expires {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.routine-title {
    font-weight: 650;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.routine-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
}

.routine-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
}

.routine-badge--weekly {
    background: #e8f1ff;
    color: #1f4f8a;
}

.routine-badge--monthly {
    background: #eaf7ef;
    color: #1f6b45;
}

.routine-badge--yearly {
    background: #f4ece2;
    color: #7a4a18;
}

.routine-assignee {
    color: var(--hh-muted);
    font-size: 0.9rem;
}

/* Recipes */
.recipe-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.recipe-list-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.app-list-thumbnail,
.recipe-list-thumbnail {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: var(--bs-border-radius);
    flex-shrink: 0;
    background: var(--hh-surface-2, #f3f5f4);
}

.app-list-thumbnail-placeholder,
.recipe-list-thumbnail-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hh-muted);
    border: 1px dashed var(--hh-border);
}

.app-list-thumbnail-sm {
    width: 2.5rem;
    height: 2.5rem;
}

.recipe-list-body {
    min-width: 0;
}

.shopping-item-thumb {
    display: block;
    pointer-events: none;
}

.shopping-image-lightbox-content {
    background: #111;
    color: #fff;
    border: 0;
}

.shopping-image-lightbox-content .btn-close {
    filter: invert(1);
}

.shopping-image-lightbox-img {
    display: block;
    width: 100%;
    max-height: min(80vh, 42rem);
    object-fit: contain;
    border-radius: var(--bs-border-radius);
    background: #000;
}

@media (max-width: 767.98px) {
    .shopping-item.app-list-row {
        flex-wrap: wrap;
        align-items: flex-start;
        row-gap: 0.35rem;
    }

    .shopping-item-primary {
        flex: 1 1 0;
        max-width: none;
        min-width: 0;
    }

    .shopping-item-last-comment {
        display: none;
    }

    .shopping-item-recipe-chip {
        max-width: 2rem;
        padding: 0.2rem;
        justify-content: center;
    }

    .shopping-item-recipe-chip span {
        display: none;
    }

    .shopping-item .app-list-row-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
        margin-left: 2.25rem;
        padding-top: 0.1rem;
    }
}

.routine-list-main,
.sticky-note-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.routine-list-body,
.sticky-note-list-body {
    min-width: 0;
    flex: 1;
}

.recipe-picker-bar {
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--bs-border-radius-lg, 0.75rem);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(20, 40, 30, 0.08);
}

.recipe-cover,
.recipe-cover-preview {
    overflow: hidden;
    border-radius: var(--bs-border-radius-lg, 0.75rem);
    border: 1px solid var(--hh-border);
}

.recipe-cover img,
.recipe-cover-preview img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.recipe-cover-preview {
    max-width: 280px;
}

.recipe-instructions {
    line-height: 1.55;
}

.recipe-instructions p:last-child,
.recipe-instructions ul:last-child,
.recipe-instructions ol:last-child {
    margin-bottom: 0;
}

.recipe-trix-editor {
    min-height: 10rem;
    background: #fff;
}

.recipe-trix-editor:empty:not(:focus)::before {
    color: var(--hh-muted);
}

.recipe-ingredient-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.recipe-add-ingredient {
    display: inline-flex;
    align-items: center;
}

.recipe-ingredient-row {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.recipe-ingredient-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
}

.shopping-item-recipe-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 9rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(31, 111, 84, 0.08);
    color: var(--hh-brand);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    flex: 0 1 auto;
    min-width: 0;
}

.shopping-item-recipe-chip:hover,
.shopping-item-recipe-chip:focus {
    background: rgba(31, 111, 84, 0.14);
    color: var(--hh-brand);
    text-decoration: none;
}

.shopping-item-recipe-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopping-item-recipe-thumb {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .recipe-ingredient-fields {
        grid-template-columns: 1fr;
    }

    .shopping-item-recipe-chip {
        max-width: 6.5rem;
    }
}

/* Finance */
.finance-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.finance-subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--hh-border);
    background: var(--hh-surface);
    color: var(--hh-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.finance-subnav-link:hover,
.finance-subnav-link:focus {
    color: var(--hh-brand);
    border-color: rgba(31, 111, 84, 0.35);
    text-decoration: none;
}

.finance-subnav-link.is-active {
    color: #fff;
    background: var(--hh-brand);
    border-color: var(--hh-brand);
}

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

@media (min-width: 768px) {
    .finance-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.finance-summary-card {
    padding: 1rem 1.1rem;
}

.finance-summary-label {
    color: var(--hh-muted);
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.finance-summary-help {
    color: var(--hh-muted);
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.finance-summary-value {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.finance-summary-value--income {
    color: var(--hh-brand);
}

.finance-summary-value--expense {
    color: #b42318;
}

.finance-overview-grid {
    display: grid;
    gap: 0.65rem;
}

.finance-overview-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
}

.finance-overview-row span {
    color: var(--hh-muted);
}

.finance-category-field {
    position: relative;
    min-width: 0;
    width: 100%;
}

.finance-item-amount-base {
    margin-top: 0.1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--hh-muted);
}

.finance-base-currency-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.finance-base-currency-controls {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.finance-base-currency-controls .form-select {
    flex: 0 1 auto;
    min-width: 10rem;
    width: auto;
}

.finance-base-currency-controls .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .finance-base-currency-controls {
        width: 100%;
        margin-left: 0;
    }

    .finance-base-currency-controls .form-select {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.finance-item-title {
    font-weight: 600;
}

.finance-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
    color: var(--hh-muted);
    font-size: 0.85rem;
}

.finance-item-amount {
    flex: 0 0 auto;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-align: right;
    min-width: 6.5rem;
}

.finance-list-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--hh-border);
    font-variant-numeric: tabular-nums;
}

.finance-list-total--once {
    border-top: none;
    padding-top: 0.35rem;
    color: var(--hh-muted);
    font-size: 0.95rem;
}

.finance-table-head {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2.2fr) 4.5rem;
    gap: 0.75rem;
    padding: 0 0.15rem 0.4rem;
    color: var(--hh-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.finance-asset-row,
.finance-record-row {
    display: grid;
    gap: 0.5rem;
    align-items: center;
}

.finance-asset-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.finance-record-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.finance-asset-row .app-list-row-main,
.finance-record-row .app-list-row-main {
    min-width: 0;
}

.finance-asset-category {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--hh-muted);
    font-size: 0.875rem;
    min-width: 0;
}

.finance-asset-record-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: var(--hh-accent);
    color: var(--hh-brand);
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.finance-item-meta .finance-asset-record-count {
    margin-left: 0.15rem;
}

.finance-asset-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.finance-asset-summary-main {
    min-width: 0;
    flex: 1 1 auto;
}

.finance-asset-summary-records {
    flex: 0 0 auto;
    text-align: right;
}

.finance-asset-summary-value-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    line-height: 1.25;
}

.finance-asset-summary .finance-asset-current-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.finance-asset-summary .finance-asset-current-base,
.finance-asset-summary .finance-asset-current-date {
    margin-top: 0;
    font-size: 0.875rem;
}

.finance-asset-records-count {
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    color: var(--hh-brand);
}

.finance-asset-date {
    color: var(--hh-muted);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: nowrap;
}

.finance-asset-date time {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: var(--hh-radius-sm);
    background: var(--hh-accent);
    color: var(--hh-brand);
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.25;
}

.finance-item-meta-sep {
    opacity: 0.55;
}

.finance-item-title-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.finance-item-title-link:hover {
    color: var(--hh-brand);
    text-decoration: underline;
}

.finance-asset-current-label {
    color: var(--hh-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.finance-asset-current-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.finance-asset-current-base {
    margin-top: 0.25rem;
    color: var(--hh-muted);
    font-variant-numeric: tabular-nums;
}

.finance-asset-current-date {
    margin-top: 0.35rem;
    font-size: 0.9rem;
}

.finance-chart-wrap {
    position: relative;
    height: 14rem;
}

.finance-chart-wrap-doughnut {
    height: 14rem;
    max-width: none;
    margin-inline: 0;
}

@media (min-width: 768px) {
    .finance-chart-wrap,
    .finance-chart-wrap-doughnut {
        height: 16rem;
    }
}

@media (min-width: 992px) {
    .finance-chart-wrap,
    .finance-chart-wrap-doughnut {
        height: 18rem;
    }
}

.finance-record-head {
    grid-template-columns: 1.75rem minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.5fr) 4.5rem;
}

@media (min-width: 576px) {
    .finance-asset-row {
        grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2.2fr) 4.5rem;
        gap: 0.75rem;
    }

    .finance-record-row {
        grid-template-columns: 1.75rem minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.5fr) 4.5rem;
        gap: 0.75rem;
    }
}

.finance-record-select-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.finance-record-select-cell .form-check-input {
    margin: 0;
    cursor: pointer;
}

.finance-record-comment {
    margin-top: 0.15rem;
    color: var(--hh-muted);
    font-size: 0.8rem;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.finance-record-bulk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--hh-border);
    border-radius: var(--hh-radius-sm);
    background: color-mix(in srgb, var(--hh-accent) 55%, white);
}

.finance-record-bulk-count {
    color: var(--hh-muted);
    font-size: 0.875rem;
}

.finance-record-rate {
    color: var(--hh-muted);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.finance-record-rate-inline {
    font-variant-numeric: tabular-nums;
    color: var(--hh-ink);
}

.admin-stats .panel-title {
    margin-bottom: 0.75rem;
}

.admin-stats-sections {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .admin-stats-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.admin-stats-list .app-list-row {
    gap: 1rem;
}

.admin-stat-label {
    font-weight: 650;
    letter-spacing: -0.01em;
}

.admin-stat-hint {
    margin-top: 0.1rem;
}

.admin-stat-value {
    flex-shrink: 0;
    min-width: 2.5rem;
    text-align: right;
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: var(--hh-brand);
}

.legal-page {
    padding: 1.5rem 1rem 2.5rem;
}

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

.legal-header {
    margin-bottom: 1.75rem;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: inherit;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.9rem;
}

.legal-nav a {
    color: var(--hh-muted);
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a.is-active {
    color: var(--hh-brand);
    text-decoration: underline;
}

.legal-article {
    padding: 1.75rem 1.5rem;
    background: color-mix(in srgb, var(--hh-surface) 94%, transparent);
    border: 1px solid var(--hh-border);
    border-radius: calc(var(--hh-radius) + 0.25rem);
    box-shadow: var(--hh-shadow);
}

.legal-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.legal-updated {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--hh-muted);
}

.legal-lead {
    margin: 0 0 1.5rem;
    color: var(--hh-muted);
    line-height: 1.55;
}

.legal-section + .legal-section {
    margin-top: 1.35rem;
}

.legal-section h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 650;
}

.legal-section p,
.legal-section li {
    margin: 0;
    line-height: 1.6;
    color: var(--hh-ink);
}

.legal-section ul,
.legal-section ol {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.legal-section li + li {
    margin-top: 0.35rem;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section p + ol,
.legal-section ul + p,
.legal-section ol + p {
    margin-top: 0.75rem;
}

.legal-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--hh-muted);
}

@media (max-width: 575.98px) {
    .legal-article {
        padding: 1.35rem 1.1rem;
    }
}

/* Public blog */
.blog-page {
    padding: 1.5rem 1rem 2.5rem;
    background:
        radial-gradient(1200px 480px at 10% -10%, color-mix(in srgb, var(--hh-brand) 12%, transparent), transparent 60%),
        var(--hh-bg, #f7f8fa);
    min-height: 100vh;
}

.blog-shell {
    width: min(100%, 56rem);
    margin: 0 auto;
}

.blog-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.blog-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.blog-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    font-size: 0.9rem;
}

.blog-nav a {
    color: var(--hh-muted);
    text-decoration: none;
}

.blog-nav a:hover,
.blog-nav a.is-active {
    color: var(--hh-brand);
}

.blog-nav-cta {
    color: var(--hh-brand) !important;
    font-weight: 600;
}

.blog-locale-switcher {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.15rem 0.35rem;
    border: 1px solid var(--hh-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--hh-surface) 90%, transparent);
}

.blog-locale-switcher a {
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.blog-locale-switcher a.is-active {
    background: color-mix(in srgb, var(--hh-brand) 12%, transparent);
    color: var(--hh-brand);
    text-decoration: none;
}

.blog-page-header {
    margin-bottom: 1.5rem;
}

.blog-page-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.blog-page-lead {
    margin: 0;
    color: var(--hh-muted);
    line-height: 1.55;
}

.blog-empty {
    margin: 0;
}

.blog-post-list {
    display: grid;
    gap: 1rem;
}

.blog-post-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: color-mix(in srgb, var(--hh-surface) 94%, transparent);
    border: 1px solid var(--hh-border);
    border-radius: calc(var(--hh-radius) + 0.25rem);
    box-shadow: var(--hh-shadow);
}

@media (min-width: 640px) {
    .blog-post-card {
        grid-template-columns: 13.75rem minmax(0, 1fr);
        align-items: stretch;
        gap: 1.25rem;
        padding: 1rem 1.15rem;
    }

    .blog-post-card--no-cover {
        grid-template-columns: minmax(0, 1fr);
    }
}

.blog-post-card-cover {
    display: block;
    overflow: hidden;
    border-radius: var(--hh-radius);
    aspect-ratio: 4 / 3;
    background: color-mix(in srgb, var(--hh-brand) 8%, transparent);
}

@media (min-width: 640px) {
    .blog-post-card-cover {
        aspect-ratio: auto;
        min-height: 8.5rem;
        height: 100%;
    }
}

.blog-post-card-cover img,
.blog-article-cover img,
.blog-admin-cover-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-date {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: var(--hh-muted);
}

.blog-post-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.blog-post-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-post-card-title a:hover {
    color: var(--hh-brand);
}

.blog-post-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.blog-post-excerpt {
    margin: 0 0 0.75rem;
    color: var(--hh-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.blog-read-more {
    margin-top: auto;
    font-weight: 600;
    text-decoration: none;
}

.blog-back {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.blog-article-header {
    margin-bottom: 1.25rem;
}

.blog-article-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.7rem, 4.5vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.blog-article-lead {
    margin: 0;
    color: var(--hh-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.blog-article-cover {
    margin: 0 0 1.5rem;
    overflow: hidden;
    border-radius: calc(var(--hh-radius) + 0.15rem);
    aspect-ratio: 16 / 9;
}

.blog-article-body {
    line-height: 1.7;
}

.blog-article-body > *:first-child {
    margin-top: 0;
}

.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    margin: 1.5rem 0 0.65rem;
    letter-spacing: -0.02em;
}

.blog-article-body p,
.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 1rem;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--hh-radius);
}

.blog-article-body figure {
    margin: 1.25rem 0;
}

.blog-article-body figcaption {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--hh-muted);
}

.blog-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hh-border);
    font-size: 0.9rem;
    color: var(--hh-muted);
}

.blog-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.blog-footer-start a,
.blog-footer-end a {
    color: var(--hh-brand);
    text-decoration: none;
}

.blog-footer-start a:hover,
.blog-footer-end a:hover {
    text-decoration: underline;
}

.blog-trix-editor {
    min-height: 16rem;
}

.blog-admin-cover-preview {
    max-width: 20rem;
    max-height: 12rem;
    width: auto;
    height: auto;
    border-radius: var(--hh-radius);
    border: 1px solid var(--hh-border);
}

.public-recipe-cover {
    overflow: hidden;
    margin: 0 0 1.25rem;
    border-radius: var(--hh-radius-lg);
    border: 1px solid var(--hh-border);
}

.public-recipe-cover img {
    display: block;
    width: 100%;
    max-height: 28rem;
    object-fit: cover;
}

.public-recipe-header {
    margin: 1.25rem 0 1.5rem;
}

.public-recipe-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.public-recipe-meta {
    font-size: 0.95rem;
}

.public-recipe-lead {
    margin-top: 0.75rem;
    color: var(--hh-muted);
}

.public-recipe-actions {
    margin-bottom: 1.25rem;
}

.public-recipe-ingredients {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-recipe-ingredient-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--hh-border);
}

.public-recipe-ingredient-qty {
    flex: 0 0 auto;
    min-width: 5.5rem;
    color: var(--hh-muted);
    font-variant-numeric: tabular-nums;
}

.public-recipe-ingredient-name {
    flex: 1 1 auto;
    min-width: 0;
}

.public-recipe-ingredient-row:last-child {
    border-bottom: none;
}

.public-recipe-instructions {
    line-height: 1.65;
}

.public-recipe-tip {
    margin-top: 1.25rem;
    background: color-mix(in srgb, var(--hh-brand) 8%, var(--hh-surface));
    border-color: color-mix(in srgb, var(--hh-brand) 25%, var(--hh-border));
}

.public-recipe-guest-basket {
    margin-bottom: 1.25rem;
    background: color-mix(in srgb, var(--hh-brand) 6%, var(--hh-surface));
    border-color: color-mix(in srgb, var(--hh-brand) 20%, var(--hh-border));
}

.public-recipe-tip-label {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.public-recipe-card-meta {
    margin-bottom: 0.35rem;
}


